/* ==================================================
   RESET
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #151b2b;
    background: #ffffff;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.container {
    width: min(1110px, calc(100% - 64px));
    margin: 0 auto;
}


/* ==================================================
   HEADER
================================================== */

.site-header {
    height: 64px;
    border-bottom: 1px solid #e7e9ef;
    background: #ffffff;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    color: #151b2b;
}

.brand-icon {
    display: block;
    width: 140px;
    height: auto;
    object-fit: contain;
}

.brand-icon-footer {
    display: block;
    width: 100px;
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 29px;
    margin-left: auto;
    margin-right: 70px;
}

.main-nav a {
    position: relative;
    padding: 23px 0;
    text-decoration: none;
    color: #596174;
    font-size: 12px;
    font-weight: 600;
}

.main-nav a:hover {
    color: #675cf4;
}

.main-nav a.active {
    color: #675cf4;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #675cf4;
    transform: translateX(-50%);
}

.free-badge {
    padding: 7px 13px;
    border-radius: 20px;
    background: #f0f2ff;
    color: #6670ed;
    font-size: 11px;
    font-weight: 700;
}


/* ==================================================
   HERO
================================================== */

.hero-section {
    background: #f8f9fb;
    border-bottom: 1px solid #e8e9ed;
    padding: 72px 0 72px;
}

.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    padding: 8px 14px;
    margin-bottom: 22px;
    border-radius: 20px;
    background: #f6eaff;
    color: #9562ed;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
     align-items: center;
}

.hero-content h1 {
    margin: 0;
    color: #151b2b;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -1.3px;
    font-weight: 800;
}

.hero-description {
    max-width: 650px;
    margin: 22px auto 0;
    color: #657084;
    font-size: 14px;
    line-height: 1.65;
}


/* ==================================================
   CONVERTER CARDS
================================================== */

.converter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 920px;
    margin: 52px auto 0;
    text-align: left;
}

.converter-card {
    position: relative;
    min-height: 215px;
    padding: 25px 27px 24px;
    border: 1px solid #e1e4ea;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 4px 13px rgba(30, 35, 50, 0.04);
}

.converter-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    float: left;
    margin-right: 13px;
    border-radius: 9px;
    font-size: 19px;
}

.image-icon,
.pdf-icon {
    background: #f0edff;
    color: #765cf5;
}

.converter-card h2 {
    margin: 6px 0 18px;
    color: #1a2030;
    font-size: 16px;
    font-weight: 750;
}

.converter-card p {
    clear: both;
    margin: 0;
    color: #667084;
    font-size: 11.5px;
    line-height: 1.55;
}

.converter-button {
    width: 100%;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
}

.converter-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.purple-button {
    background: linear-gradient(90deg, #6362ef, #914de9);
}

.dark-button {
    background: #131a2a;
}


/* ==================================================
   WHY SECTION
================================================== */

.why-section {
    padding: 70px 0 73px;
    background: #ffffff;
    border-bottom: 1px solid #e7e9ee;
}

.section-title {
    margin: 0;
    text-align: center;
    color: #171e2e;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 39px;
}

.feature-card {
    min-height: 166px;
    padding: 21px 20px;
    border-radius: 13px;
    background: #fafbfc;
}

.feature-icon {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border-radius: 7px;
    background: #ffffff;
    color: #765cf5;
    font-size: 17px;
}

.feature-card h3 {
    margin: 0 0 12px;
    color: #202637;
    font-size: 13px;
    font-weight: 750;
}

.feature-card p {
    margin: 0;
    color: #687285;
    font-size: 10.5px;
    line-height: 1.55;
}


/* ==================================================
   STEPS SECTION
================================================== */

.steps-section {
    padding: 71px 0 72px;
    background: #f8f9fb;
    border-bottom: 1px solid #e7e9ee;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 65px;
    margin-top: 43px;
}

.step-number {
    margin-bottom: 13px;
    color: #b491f3;
    font-size: 27px;
    line-height: 1;
    font-weight: 800;
}

.step h3 {
    margin: 0 0 12px;
    color: #202637;
    font-size: 13px;
    font-weight: 750;
}

.step p {
    max-width: 280px;
    margin: 0;
    color: #687285;
    font-size: 10.5px;
    line-height: 1.55;
}


/* ==================================================
   FAQ
================================================== */

.faq-section {
    padding: 70px 0 76px;
    background: #ffffff;
}

.faq-container {
    max-width: 920px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 39px;
}

.faq-item {
    padding: 19px 20px;
    border: 1px solid #e0e3e9;
    border-radius: 10px;
    background: #ffffff;
}

.faq-item h3 {
    margin: 0 0 12px;
    color: #252b3b;
    font-size: 11.5px;
    font-weight: 750;
}

.faq-item p {
    margin: 0;
    color: #687285;
    font-size: 10.5px;
    line-height: 1.5;
}


/* ==================================================
   FOOTER
================================================== */

.site-footer {
    padding: 30px 0 22px;
    border-top: 1px solid #e4e6eb;
    background: #ffffff;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-brand strong {
    display: block;
    color: #242a39;
    font-size: 11px;
}

.footer-brand p {
    margin: 5px 0 0;
    color: #70798a;
    font-size: 9px;
}

.footer-links {
    display: flex;
    gap: 23px;
}

.footer-links a {
    color: #626b7c;
    font-size: 10px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #675cf4;
}

.footer-bottom {
    margin-top: 27px;
    padding-top: 17px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #a1a7b2;
    font-size: 8.5px;
}

/* ==================================================
   CONVERTER PAGE
================================================== */

.converter-page {
    min-height: calc(100vh - 64px);
    padding: 68px 0 65px;
    background: #f8f9fb;
}

.converter-page-heading {
    margin-bottom: 30px;
}

.converter-page-heading h1 {
    margin: 0 0 12px;
    color: #151b2b;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.converter-page-heading p {
    margin: 0;
    color: #596477;
    font-size: 15px;
}


/* Upload */

.upload-zone {
    min-height: 255px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 2px dashed #6865ff;
    border-radius: 16px;

    background: #ffffff;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.upload-zone:hover,
.upload-zone.drag-over {
    background: #faf9ff;
    border-color: #574fff;
}

.upload-icon {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 50%;

    background: #f0f1ff;
    color: #6363ff;

    font-size: 31px;
    font-weight: 700;
}

.upload-zone h2 {
    margin: 0 0 8px;

    color: #202637;

    font-size: 18px;
    font-weight: 750;
}

.upload-zone p {
    margin: 0 0 14px;

    color: #596477;

    font-size: 14px;
}

.upload-zone > span {
    color: #9aa3b4;
    font-size: 12px;
}


/* Settings */

.settings-card {
    margin-top: 32px;
    padding: 31px;

    border: 1px solid #dfe2e8;
    border-radius: 16px;

    background: #ffffff;

    box-shadow: 0 4px 15px rgba(30, 35, 50, 0.035);
}

.settings-card > h2 {
    margin: 0 0 27px;

    color: #202637;

    font-size: 18px;
    font-weight: 750;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.setting label {
    display: block;
    margin-bottom: 9px;

    color: #596477;

    font-size: 13px;
    font-weight: 650;
}

.setting select {
    width: 100%;
    height: 42px;

    padding: 0 13px;

    border: 1px solid #dce0e7;
    border-radius: 8px;

    background: #f8f9fb;
    color: #252c3c;

    outline: none;

    font-size: 13px;
}

.setting select:focus {
    border-color: #6865ff;
}


/* Quality */

.quality-setting {
    margin-top: 25px;
}

.quality-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
}

.quality-header label {
    color: #596477;
    font-size: 13px;
    font-weight: 650;
}

.quality-header span {
    color: #635cff;
    font-size: 13px;
    font-weight: 650;
}

.quality-setting input[type="range"] {
    width: 100%;
    height: 5px;

    margin: 0;

    accent-color: #6663f5;

    cursor: pointer;
}


/* Convert */

.convert-main-button {
    width: 100%;
    height: 48px;

    margin-top: 23px;

    border: 0;
    border-radius: 10px;

    background: #cbd0d8;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: not-allowed;
}

.convert-main-button.ready {
    background: linear-gradient(90deg, #6362ef, #914de9);
    cursor: pointer;
}

.convert-main-button.ready:hover {
    opacity: 0.92;
}


/* Privacy */

.privacy-note {
    margin: 13px 0 0;

    text-align: center;

    color: #9aa3b4;

    font-size: 11px;
}


/* Converter page mobile */

@media (max-width: 700px) {

    .converter-page {
        padding: 45px 0;
    }

    .converter-page-heading h1 {
        font-size: 29px;
    }

    .converter-page-heading p {
        line-height: 1.5;
    }

    .upload-zone {
        min-height: 230px;
        text-align: center;
        padding: 25px;
    }

    .settings-card {
        padding: 22px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 900px) {

    .main-nav {
        gap: 17px;
        margin-right: 20px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        gap: 30px;
    }
}


@media (max-width: 700px) {

    .container {
        width: min(100% - 32px, 600px);
    }

    .site-header {
        height: auto;
    }

    .header-inner {
        min-height: 64px;
        flex-wrap: wrap;
        padding: 12px 0;
        gap: 12px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 0;
        gap: 17px;
        overflow-x: auto;
    }

    .main-nav a {
        padding: 8px 0 14px;
        white-space: nowrap;
    }

    .main-nav a.active::after {
        bottom: 7px;
    }

    .free-badge {
        margin-left: auto;
    }

    .hero-section {
        padding: 55px 0 55px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-description {
        font-size: 13px;
    }

    .converter-grid {
        grid-template-columns: 1fr;
        margin-top: 38px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .step p {
        max-width: none;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
    }
}


@media (max-width: 420px) {

    .hero-content h1 {
        font-size: 29px;
    }

    .converter-card {
        padding: 21px;
    }

    .free-badge {
        font-size: 9px;
        padding: 6px 9px;
    }
}

/* =========================================================
   ABOUT PAGE ONLY
   Shared header and footer styles are intentionally untouched.
   ========================================================= */

.about-page {
    background: #f8f9fb;
    color: #172033;
}

.about-page .about-mobile-content,
.about-page .about-mobile-topbar {
    display: none;
}

/* ---------------------------------------------------------
   Desktop hero
   --------------------------------------------------------- */

.about-page .about-hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 66px 24px 35px;
    text-align: center;
}

.about-page .about-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: 999px;
    background: #f1efff;
    color: #765cf7;
    font-size: 11px;
    font-weight: 650;
}

.about-page .about-hero h1 {
    margin: 23px 0 18px;
    color: #172033;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    font-weight: 800;
}

.about-page .about-hero p {
    max-width: 650px;
    margin: 0 auto;
    color: #697386;
    font-size: 14px;
    line-height: 1.55;
}

/* ---------------------------------------------------------
   Desktop statistics
   --------------------------------------------------------- */

.about-page .about-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.about-page .about-stat-card {
    min-height: 116px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e3e6ed;
    border-radius: 14px;
}

.about-page .about-stat-icon {
    width: 27px;
    height: 27px;
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #f0efff;
    color: #675cf5;
    font-size: 16px;
    font-weight: 700;
}

.about-page .about-stat-card strong {
    color: #172033;
    font-size: 23px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.about-page .about-stat-card span:last-child {
    margin-top: 7px;
    color: #697386;
    font-size: 11px;
    line-height: 1.35;
}

/* ---------------------------------------------------------
   Values section
   --------------------------------------------------------- */

.about-page .about-values-section {
    margin-top: 48px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e3e6ed;
    border-radius: 18px;
}

.about-page .about-section-heading h2,
.about-page .about-technology-copy h2,
.about-page .about-cta-section h2 {
    margin: 0;
    color: #172033;
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-weight: 800;
}

.about-page .about-section-heading p {
    margin: 8px 0 24px;
    color: #697386;
    font-size: 12px;
    line-height: 1.5;
}

.about-page .about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.about-page .about-value-card {
    min-height: 240px;
    padding: 19px;
    background: #f8f9fb;
    border-radius: 14px;
}

.about-page .about-value-icon {
    width: 27px;
    height: 27px;
    margin-bottom: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #ffffff;
    color: #765cf7;
    font-size: 16px;
    font-weight: 700;
}

.about-page .about-value-card h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 750;
}

.about-page .about-value-card p {
    margin: 0;
    color: #697386;
    font-size: 12px;
    line-height: 1.45;
}

/* ---------------------------------------------------------
   Technology section
   --------------------------------------------------------- */

.about-page .about-technology-section {
    margin-top: 48px;
    padding-bottom: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 65px;
}

.about-page .about-technology-copy p {
    max-width: 390px;
    margin: 24px 0 18px;
    color: #697386;
    font-size: 13px;
    line-height: 1.55;
}

.about-page .about-open-source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #765cf7;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.about-page .about-open-source-link span {
    font-weight: 800;
}

.about-page .about-engine-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e3e6ed;
    border-radius: 14px;
}

.about-page .about-engine-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.about-page .about-engine-header strong {
    color: #172033;
    font-size: 12px;
    font-weight: 750;
}

.about-page .about-engine-header span {
    padding: 4px 8px;
    border-radius: 5px;
    background: #d9f8e7;
    color: #22945a;
    font-size: 9px;
    font-weight: 800;
}

.about-page .about-engine-divider {
    height: 1px;
    margin: 17px 0;
    background: #e7e9ef;
}

.about-page .about-engine-card p {
    margin: 7px 0;
    color: #697386;
    font-size: 11px;
}

.about-page .about-engine-status {
    display: block;
    margin-top: 9px;
    color: #675cf5;
    font-size: 11px;
}

/* ---------------------------------------------------------
   CTA section
   --------------------------------------------------------- */

.about-page .about-cta-section {
    padding: 63px 24px 70px;
    background: linear-gradient(100deg, #f4f3f7, #f3f1f7);
    border-top: 1px solid #e3e6ed;
    text-align: center;
}

.about-page .about-cta-section p {
    max-width: 500px;
    margin: 21px auto 20px;
    color: #697386;
    font-size: 13px;
    line-height: 1.5;
}

.about-page .about-cta-button {
    min-width: 166px;
    min-height: 37px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: linear-gradient(100deg, #625cf4, #8954ee);
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.about-page .about-cta-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* =========================================================
   MOBILE ABOUT PAGE
   ========================================================= */

@media (max-width: 767px) {

    .about-page .about-mobile-back {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #172033;
        text-decoration: none;
        font-size: 24px;
        line-height: 1;
    }

    .about-page .about-desktop-content {
        display: none !important;
    }

    .about-page .about-mobile-content {
        display: block;
    }

    /* Mobile hero */

    .about-page .about-mobile-hero {
        padding: 17px 16px 24px;
    }

    .about-page .about-mobile-eyebrow {
        display: block;
        margin-bottom: 12px;
        color: #765cf7;
        font-size: 12px;
        font-weight: 750;
        letter-spacing: 1.1px;
    }

    .about-page .about-mobile-hero h1 {
        max-width: 340px;
        margin: 0;
        color: #172033;
        font-size: 25px;
        line-height: 1.2;
        letter-spacing: -0.7px;
        font-weight: 800;
    }

    .about-page .about-mobile-hero p {
        margin: 12px 0 0;
        color: #697386;
        font-size: 14px;
        line-height: 1.5;
    }

    /* Mobile statistics */

    .about-page .about-mobile-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0 16px;
    }

    .about-page .about-mobile-stat-card {
        min-height: 78px;
        padding: 15px;
        background: #ffffff;
        border: 1px solid #e1e5ec;
        border-radius: 11px;
    }

    .about-page .about-mobile-stat-card strong {
        display: block;
        color: #675cf5;
        font-size: 21px;
        line-height: 1;
        letter-spacing: -0.4px;
    }

    .about-page .about-mobile-stat-card span {
        display: block;
        margin-top: 7px;
        color: #4f5b70;
        font-size: 12px;
        line-height: 1.35;
    }

    /* Mobile values */

    .about-page .about-values-section {
        margin: 25px 16px 0;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .about-page .about-section-heading h2 {
        font-size: 17px;
        letter-spacing: -0.3px;
    }

    .about-page .about-values-grid {
        margin-top: 13px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .about-page .about-value-card {
        min-height: auto;
        padding: 17px 16px;
        display: flex;
        align-items: center;
        gap: 13px;
        background: #ffffff;
        border: 1px solid #e1e5ec;
        border-radius: 11px;
    }

    .about-page .about-value-icon {
        flex: 0 0 28px;
        margin: 0;
    }

    .about-page .about-value-card h3 {
        margin-bottom: 5px;
        font-size: 14px;
    }

    .about-page .about-value-card p {
        font-size: 12px;
        line-height: 1.4;
    }

    .about-page .about-no-barriers-card {
        display: none;
    }

    /* Mobile technology */

    .about-page .about-technology-section {
        margin: 25px 16px 0;
        padding: 20px;
        display: block;
        background: #ffffff;
        border: 1px solid #e1e5ec;
        border-radius: 13px;
    }

    .about-page .about-technology-copy p {
        max-width: none;
        margin: 0;
        color: #4f5b70;
        font-size: 13px;
        line-height: 1.45;
    }

    .about-page .about-open-source-link,
    .about-page .about-engine-card {
        display: none;
    }

    /* Mobile CTA */

    .about-page .about-cta-section {
        padding: 24px 16px 16px;
        background: transparent;
        border: 0;
    }

    .about-page .about-cta-button {
        width: 100%;
        min-height: 48px;
        border-radius: 11px;
        font-size: 14px;
    }

    /* The shared footer remains unchanged.
       Only its position on this page is adjusted. */

    .about-page .site-footer {
        margin-top: 0;
    }
}

/* =========================================================
   HELP PAGE ONLY
   Shared header and footer styles are not repeated.
   ========================================================= */

.help-page {
    background: #f8f9fb;
    color: #172033;
}

.help-mobile-only {
    display: none;
}

/* ---------------------------------------------------------
   Help hero
   --------------------------------------------------------- */

.help-page .help-hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 62px 24px 34px;
    text-align: center;
}

.help-page .help-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f1efff;
    color: #765cf7;
    font-size: 11px;
    font-weight: 650;
    gap: 8px;
}

.help-page .help-hero h1 {
    margin: 23px 0 18px;
    color: #172033;
    font-size: clamp(35px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -1.8px;
    font-weight: 800;
}

.help-page .help-search {
    width: 100%;
    max-width: 475px;
    height: 37px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 17px;
    background: #ffffff;
    border: 1px solid #e2e5eb;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(23, 32, 51, 0.025);
    text-align: left;
}

.help-page .help-search-icon {
    color: #9ca6b7;
    font-size: 23px;
    line-height: 1;
    transform: rotate(-20deg);
}

.help-page .help-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #172033;
    font: inherit;
    font-size: 12px;
}

.help-page .help-search input::placeholder {
    color: #a3adbd;
}

/* ---------------------------------------------------------
   FAQ content
   --------------------------------------------------------- */

.help-page .help-content {
    padding-bottom: 59px;
}

.help-page .help-category {
    margin-bottom: 34px;
}

.help-page .help-category-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}

.help-page .help-category-icon {
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #eeefff;
    color: #675cf5;
    font-size: 16px;
    font-weight: 700;
}

.help-page .help-category-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.help-page .help-faq-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.help-page .help-faq-item {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e1e5ec;
    border-radius: 9px;
}

.help-page .help-faq-question {
    width: 100%;
    min-height: 42px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 0;
    background: transparent;
    color: #172033;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
}

.help-page .help-faq-chevron {
    flex: 0 0 auto;
    color: #536074;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.help-page .help-faq-answer {
    display: none;
    padding: 0 15px 14px;
}

.help-page .help-faq-answer p {
    margin: 0;
    color: #697386;
    font-size: 11px;
    line-height: 1.55;
}

.help-page .help-faq-item.open .help-faq-answer {
    display: block;
}

.help-page .help-faq-item.open .help-faq-chevron {
    transform: rotate(180deg);
}

/* ---------------------------------------------------------
   Support CTA
   --------------------------------------------------------- */

.help-page .help-support-card {
    min-height: 105px;
    margin-top: 4px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-radius: 13px;
    background: linear-gradient(105deg, #625cf4, #8954ee);
    color: #ffffff;
}

.help-page .help-support-copy h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.help-page .help-support-copy p {
    max-width: 510px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    line-height: 1.45;
}

.help-page .help-support-button {
    flex: 0 0 auto;
    min-width: 126px;
    min-height: 34px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #ffffff;
    color: #675cf5;
    text-decoration: none;
    font-size: 11px;
    font-weight: 750;
    transition: opacity 0.2s ease;
}

.help-page .help-support-button:hover {
    opacity: 0.9;
}

/* =========================================================
   MOBILE HELP PAGE
   ========================================================= */

@media (max-width: 767px) {

    .help-page .help-mobile-topbar .free-badge {
        margin-left: auto;
    }

    .help-page .help-mobile-back {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #172033;
        text-decoration: none;
        font-size: 24px;
        line-height: 1;
    }

    .help-page .help-desktop-only {
        display: none !important;
    }

    .help-page .help-mobile-only {
        display: inline;
    }

    /* Mobile hero */

    .help-page .help-hero {
        padding: 25px 16px 24px;
    }

    .help-page .help-hero-badge {
        padding: 6px 12px;
        font-size: 10px;
    }

    .help-page .help-hero h1 {
        margin: 19px 0 15px;
        font-size: 26px;
        line-height: 1.15;
        letter-spacing: -0.8px;
    }

    .help-page .help-search {
        max-width: none;
        height: 42px;
        padding: 0 16px;
    }

    .help-page .help-search input {
        font-size: 13px;
    }

    /* Mobile FAQ content */

    .help-page .help-content {
        padding: 0 16px 32px;
    }

    .help-page .help-category {
        margin-bottom: 27px;
    }

    .help-page .help-category-heading {
        gap: 9px;
        margin-bottom: 12px;
    }

    .help-page .help-category-icon {
        width: 28px;
        height: 28px;
    }

    .help-page .help-category-heading h2 {
        font-size: 16px;
    }

    .help-page .help-faq-list {
        gap: 9px;
    }

    .help-page .help-faq-item {
        border-radius: 11px;
    }

    .help-page .help-faq-question {
        min-height: 47px;
        padding: 14px 15px;
        font-size: 13px;
    }

    .help-page .help-faq-answer {
        padding: 0 15px 15px;
    }

    .help-page .help-faq-answer p {
        font-size: 13px;
        line-height: 1.4;
    }

    /* Match the shorter mobile screenshot layout */

    .help-page .help-troubleshooting-category {
        display: none;
    }

    /* Mobile support card */

    .help-page .help-support-card {
        min-height: auto;
        margin-top: 0;
        padding: 21px 20px;
        display: block;
        border-radius: 14px;
    }

    .help-page .help-support-copy h2 {
        margin-bottom: 8px;
        font-size: 18px;
    }

    .help-page .help-support-copy p {
        max-width: none;
        font-size: 13px;
        line-height: 1.45;
    }

    .help-page .help-support-button {
        width: 100%;
        min-height: 40px;
        margin-top: 15px;
        border-radius: 7px;
        font-size: 13px;
    }

    /* Shared footer remains unchanged */

    .help-page .site-footer {
        margin-top: 0;
    }
}

/* =========================================================
   PRIVACY PAGE ONLY
   Shared header and footer styles are not repeated.
   ========================================================= */

.privacy-page {
    background: #f8f9fb;
    color: #172033;
}


.privacy-mobile-only {
    display: none;
}

/* ---------------------------------------------------------
   Main privacy layout
   --------------------------------------------------------- */

.privacy-main {
    padding: 52px 0 64px;
}

.privacy-page-heading {
    margin-bottom: 30px;
}

.privacy-page-heading h1 {
    margin: 0 0 13px;
    color: #172033;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.privacy-page-heading p {
    margin: 0;
    color: #536074;
    font-size: 13px;
    line-height: 1.5;
}

.privacy-layout {
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
}

/* ---------------------------------------------------------
   Desktop sidebar
   --------------------------------------------------------- */

.privacy-sidebar {
    padding: 20px 18px;
    background: #ffffff;
    border: 1px solid #e1e5ec;
    border-radius: 13px;
}

.privacy-sidebar h2 {
    margin: 0 0 14px;
    color: #98a2b2;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.privacy-sidebar a {
    display: block;
    margin: 0;
    padding: 6px 0;
    color: #536074;
    font-size: 11px;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-sidebar a:hover,
.privacy-sidebar a.active {
    color: #675cf5;
    font-weight: 700;
}

/* ---------------------------------------------------------
   Desktop privacy card
   --------------------------------------------------------- */

.privacy-card {
    padding: 0 25px;
    background: #ffffff;
    border: 1px solid #e1e5ec;
    border-radius: 13px;
}

.privacy-section {
    padding: 25px 0 24px;
    border-bottom: 1px solid #e4e7ed;
}

.privacy-section:last-child {
    border-bottom: 0;
}

.privacy-section h2 {
    margin: 0 0 16px;
    color: #172033;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.privacy-section p {
    margin: 0;
    color: #536074;
    font-size: 12px;
    line-height: 1.65;
}

.privacy-section strong {
    color: #172033;
    font-weight: 750;
}

.privacy-check-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.privacy-check-list li {
    position: relative;
    padding-left: 20px;
    color: #536074;
    font-size: 12px;
    line-height: 1.45;
}

.privacy-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #675cf5;
    font-size: 14px;
    font-weight: 700;
}

.privacy-check-list strong {
    color: #172033;
}

/* =========================================================
   MOBILE PRIVACY PAGE
   ========================================================= */

@media (max-width: 767px) {

    .privacy-page .privacy-mobile-back {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #172033;
        font-size: 24px;
        line-height: 1;
        text-decoration: none;
    }

    .privacy-page .privacy-desktop-only {
        display: none !important;
    }

    .privacy-page .privacy-mobile-only {
        display: inline;
    }

    .privacy-page .privacy-main {
        padding: 18px 0 16px;
    }

    .privacy-page .privacy-page-heading {
        padding: 0 16px;
        margin-bottom: 19px;
    }

    .privacy-page .privacy-page-heading h1 {
        margin-bottom: 4px;
        font-size: 24px;
        letter-spacing: -0.7px;
    }

    .privacy-page .privacy-page-heading p {
        font-size: 13px;
    }

    .privacy-page .privacy-layout {
        display: block;
        padding: 0 16px;
    }

    .privacy-page .privacy-sidebar {
        display: none;
    }

    .privacy-page .privacy-card {
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .privacy-page .privacy-section {
        margin-bottom: 16px;
        padding: 16px 15px;
        background: #ffffff;
        border: 1px solid #e1e5ec;
        border-radius: 11px;
    }

    .privacy-page .privacy-section:last-child {
        margin-bottom: 0;
    }

    .privacy-page .privacy-section h2 {
        margin-bottom: 11px;
        font-size: 16px;
        line-height: 1.25;
        letter-spacing: -0.3px;
    }

    .privacy-page .privacy-section p {
        font-size: 13px;
        line-height: 1.55;
    }

    .privacy-page .privacy-check-list {
        display: none;
    }

    /* The mobile screenshot contains five cards only */
    .privacy-page .privacy-section:nth-child(6),
    .privacy-page .privacy-section:nth-child(7) {
        display: none;
    }
}


/* =========================================================
   MOBILE HAMBURGER NAVIGATION
   Uses the existing shared header classes.
   ========================================================= */

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 767px) {

    .site-header .header-inner {
        position: relative;
        min-height: 56px;
    }

    .site-header .main-nav {
        display: none;
    }

    .site-header .main-nav.mobile-nav-open {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        z-index: 1000;

        display: flex;
        flex-direction: column;
        gap: 0;

        padding: 8px 16px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 8px 20px rgba(20, 30, 50, 0.08);
    }

    .site-header .main-nav.mobile-nav-open a {
        display: block;
        padding: 13px 4px;
        color: #536074;
        font-size: 14px;
        line-height: 1.3;
        text-decoration: none;
        border-bottom: 1px solid #f0f1f4;
    }

    .site-header .main-nav.mobile-nav-open a:last-child {
        border-bottom: 0;
    }

    .site-header .main-nav.mobile-nav-open a.active,
    .site-header .main-nav.mobile-nav-open a:hover {
        color: #675cf5;
        font-weight: 700;
    }

    .mobile-menu-toggle {
        width: 34px;
        height: 34px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        margin-left: 8px;
        padding: 0;

        background: transparent;
        border: 0;
        border-radius: 8px;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: #172033;
        border-radius: 2px;
        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }

    .mobile-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-header .free-badge {
        margin-left: auto;
    }
}


/* ==================================================
   DOWNLOAD PAGE
   Page-specific styles only.
   Header, footer, container, navigation, and
   other shared styles remain in css/style.css.
================================================== */


/* ==================================================
   PAGE LAYOUT
================================================== */

.download-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.download-main {
    flex: 1;
    padding: 62px 0 70px;
    background: #f8f9fb;
}


/* ==================================================
   ERROR STATE
================================================== */

.download-error {
    max-width: 650px;
    margin: 80px auto;
    padding: 20px;
    text-align: center;
}

.download-error h1 {
    margin: 0 0 12px;
    color: #151b2b;
    font-size: 30px;
    font-weight: 800;
}

.download-error p {
    margin: 0 0 28px;
    color: #687285;
    font-size: 14px;
}

.back-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 44px;
    padding: 0 20px;
    border-radius: 9px;
    background: linear-gradient(90deg, #6362ef, #914de9);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}


/* ==================================================
   SUCCESS HEADING
================================================== */

.conversion-success {
    text-align: center;
    margin-bottom: 36px;
}

.success-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #e1f8ee;
    color: #20b477;

    font-size: 28px;
    font-weight: 800;
}

.conversion-success h1 {
    margin: 0 0 9px;

    color: #151b2b;

    font-size: 31px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.conversion-success p {
    margin: 0;

    color: #687285;

    font-size: 13px;
}


/* ==================================================
   RESULT GRID
================================================== */

.download-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 28px;

    max-width: 1000px;
    margin: 0 auto;
}


/* ==================================================
   PREVIEW CARD
================================================== */

.result-preview-card {
    padding: 24px;

    border: 1px solid #e0e3e9;
    border-radius: 15px;

    background: #ffffff;

    box-shadow: 0 4px 15px rgba(30, 35, 50, 0.035);
}

.result-preview-card h2 {
    margin: 0 0 18px;

    color: #202637;

    font-size: 15px;
    font-weight: 750;
}


/* ==================================================
   PDF PREVIEW
================================================== */

.pdf-cover-preview {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: contain;
    object-position: center;
    background: #fff;
}


/* ==================================================
   SINGLE IMAGE PREVIEW
================================================== */

.single-image-preview {
     display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.single-image-preview img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}


/* ==================================================
   PDF → IMAGE LARGE PREVIEW
================================================== */

.image-preview-grid {
    display: grid;
    gap: 8px;
    width: 100%;
    align-items: center;
    justify-items: center;
}

.image-preview-grid img {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    max-height: 210px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}


/* 1 page */

.pdf-to-image-preview.pages-1 .image-preview-grid {
    grid-template-columns: 1fr;
}

.pdf-to-image-preview.pages-1 .image-preview-grid img {
    max-width: 250px;
    max-height: 300px;
}


/* 2 pages */

.pdf-to-image-preview.pages-2 .image-preview-grid {
    grid-template-columns: repeat(2, 1fr);
}

.pdf-to-image-preview.pages-2 .image-preview-grid img {
    max-width: 220px;
    max-height: 280px;
}


/* 3 pages */

.pdf-to-image-preview.pages-3 .image-preview-grid {
    grid-template-columns: repeat(3, 1fr);
}

.pdf-to-image-preview.pages-3 .image-preview-grid img {
    max-width: 180px;
    max-height: 230px;
}


/* 4 pages */

.pdf-to-image-preview.pages-4 .image-preview-grid {
    grid-template-columns: repeat(2, 1fr);
}

.pdf-to-image-preview.pages-4 .image-preview-grid img {
    max-width: 190px;
    max-height: 210px;
}


/* 5 pages */

.pdf-to-image-preview.pages-5 .image-preview-grid {
    grid-template-columns: repeat(3, 1fr);
}

.pdf-to-image-preview.pages-5 .image-preview-grid img {
    max-width: 170px;
    max-height: 190px;
}


/* 6 pages */

.pdf-to-image-preview.pages-6 .image-preview-grid {
    grid-template-columns: repeat(3, 1fr);
}

.pdf-to-image-preview.pages-6 .image-preview-grid img {
    max-width: 160px;
    max-height: 185px;
}


/* Preview item */

.image-preview-item {
    aspect-ratio: 1 / 1.18;

    overflow: hidden;

    border: 1px solid #e0e3e9;
    border-radius: 8px;

    background: #eef1f4;
}

.image-preview-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}


/* ==================================================
   SMALL PREVIEWS
================================================== */

.small-preview-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    width: 100%;
    margin-top: 12px;
}

.small-preview-grid img {
    display: block;
    width: 100%;
    height: 55px;
    object-fit: contain;
    background: #f5f6f8;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.small-preview-item {
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border: 1px solid #e1e4e9;
    border-radius: 5px;

    background: #eef1f4;
}

.small-preview-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* ==================================================
   PREVIEW INFORMATION
================================================== */

.preview-info {
    display: flex;
    justify-content: space-between;

    margin-top: 15px;

    color: #747d8e;

    font-size: 11px;
}


/* ==================================================
   DOWNLOAD CARD
================================================== */

.result-download-card {
    align-self: start;

    padding: 27px;

    border: 1px solid #e0e3e9;
    border-radius: 15px;

    background: #ffffff;

    box-shadow: 0 4px 15px rgba(30, 35, 50, 0.035);
}

.result-file-label {
    margin-bottom: 8px;

    color: #9aa2b0;

    font-size: 10px;
    font-weight: 600;
}

.result-file-name {
    margin-bottom: 10px;

    color: #202637;

    font-size: 15px;
    font-weight: 750;

    line-height: 1.45;
    word-break: break-word;
}

.result-file-size {
    margin-bottom: 24px;

    color: #929aaa;

    font-size: 11px;
}

.download-button {
    width: 100%;
    height: 46px;

    border: 0;
    border-radius: 9px;

    background: linear-gradient(90deg, #6362ef, #914de9);

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.download-button:hover {
    opacity: 0.92;
}

.download-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.cancel-button {
    width: 100%;
    height: 43px;

    margin-top: 10px;

    border: 1px solid #dfe2e8;
    border-radius: 9px;

    background: #ffffff;

    color: #818a9a;

    font-size: 12px;
    font-weight: 650;

    cursor: pointer;
}

.cancel-button:hover {
    background: #fafbfc;
}

.result-divider {
    height: 1px;

    margin: 23px 0;

    border: 0;

    background: #e7e9ee;
}

.convert-another-button {
    border: 0;

    padding: 0;

    background: transparent;

    color: #6864ed;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.convert-another-button:hover {
    text-decoration: underline;
}


/* ==================================================
   PREVIEW CONTAINER
================================================== */

#previewContainer {
    width: 100%;
    overflow: visible;
}

#previewContainer img {
    max-width: 100%;
    height: auto;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 800px) {

    .download-main {
        padding: 45px 0 55px;
    }

    .download-result-grid {
        grid-template-columns: 1fr;
    }

    .result-download-card {
        order: 2;
    }

    .result-preview-card {
        order: 1;
    }

}

@media (max-width: 520px) {

    .download-result-grid {
        gap: 18px;
    }

    .result-preview-card,
    .result-download-card {
        padding: 19px;
    }

    .conversion-success h1 {
        font-size: 27px;
    }

    .pdf-preview,
    .single-image-preview {
        height: 350px;
    }

    .small-preview-grid {
        grid-template-columns: repeat(6, 1fr);
    }

}


/* ==========================================
   CONVERTLY ADMIN DASHBOARD
========================================== */


/* ==========================================
   RESET & GLOBAL
========================================== */

.admin-layout,
.admin-layout * {
    box-sizing: border-box;
}

.admin-layout {
    --admin-primary: #6366f1;
    --admin-primary-light: #eef0ff;
    --admin-primary-soft: #f4f5ff;

    --admin-text-dark: #172033;
    --admin-text: #34425b;
    --admin-text-muted: #60728f;
    --admin-text-light: #8da0bd;

    --admin-border: #dce4ef;
    --admin-border-light: #e9eef5;

    --admin-background: #f8fafc;
    --admin-white: #ffffff;

    --admin-success: #008f6b;
    --admin-success-bg: #d4f7e7;

    --admin-danger: #d11a2a;
    --admin-danger-bg: #fff1f2;

    --admin-sidebar-width: 260px;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;

    background: var(--admin-background);
    color: var(--admin-text-dark);

    min-height: 100vh;
    display: flex;
}


/* ==========================================
   MAIN LAYOUT
========================================== */

.admin-layout .sidebar {
    width: var(--admin-sidebar-width);
    min-width: var(--admin-sidebar-width);

    background: var(--admin-white);
    border-right: 1px solid var(--admin-border);

    display: flex;
    flex-direction: column;

    padding: 24px;

    position: relative;
    z-index: 100;
}

.admin-layout .main-content {
    flex: 1;
    min-width: 0;
}


/* ==========================================
   SIDEBAR
========================================== */

.admin-layout .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 34px;
}

.admin-layout .brand-logo {
    width: 29px;
    height: 29px;

    background: var(--admin-primary);
    color: white;

    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 700;
}

.admin-layout .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.admin-layout .brand-text strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--admin-text-dark);
}

.admin-layout .brand-text span {
    font-size: 10px;
    font-weight: 700;

    color: var(--admin-primary);

    letter-spacing: 0.3px;
    margin-top: 3px;
}

.admin-layout .sidebar-close {
    display: none;

    margin-left: auto;

    font-size: 25px;
    color: var(--admin-text-muted);
}

.admin-layout .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-layout .nav-section-title {
    font-size: 11px;
    color: var(--admin-text-light);

    font-weight: 700;

    margin-bottom: 5px;
    letter-spacing: 0.2px;
}

.admin-layout .nav-item {
    height: 39px;

    border-radius: 8px;

    display: flex;
    align-items: center;

    gap: 13px;
    padding: 0 12px;

    font-size: 14px;
    color: var(--admin-text);

    text-decoration: none;

    transition: 0.2s ease;
}

.admin-layout .nav-item:hover {
    background: #f6f7fb;
}

.admin-layout .nav-item.active {
    color: var(--admin-primary);
    background: var(--admin-primary-light);

    font-weight: 600;
}

.admin-layout .nav-icon {
    font-size: 21px;
    width: 18px;

    text-align: center;
    line-height: 1;
}

.admin-layout .sidebar-profile {
    margin-top: auto;

    background: #f0f4f9;
    border-radius: 8px;

    padding: 12px 10px;

    display: flex;
    align-items: center;
    gap: 11px;
}

.admin-layout .profile-avatar {
    width: 32px;
    height: 32px;

    border-radius: 50%;
    background: #25435d;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    flex-shrink: 0;
}

.admin-layout .profile-info {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-layout .profile-info strong {
    font-size: 13px;
    color: var(--admin-text-dark);
    white-space: nowrap;
}

.admin-layout .profile-info span {
    font-size: 11px;
    color: var(--admin-text-muted);

    margin-top: 3px;
    white-space: nowrap;
}

.admin-layout .profile-info {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 0;

    text-decoration: none;
}

.admin-layout .logout-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--admin-text-muted);
    padding: 4px 0;
    text-align: left;
}

.admin-layout .logout-btn:hover {
    color: var(--admin-text-dark);
}


/* ==========================================
   HEADER
========================================== */

.admin-layout .top-header {
    height: 80px;

    background: var(--admin-white);
    border-bottom: 1px solid var(--admin-border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;
    gap: 20px;
}

.admin-layout .header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-layout .top-header h1 {
    font-size: 24px;
    line-height: 1.2;

    font-weight: 700;
    color: var(--admin-text-dark);
}

.admin-layout .top-header p {
    font-size: 13px;
    color: var(--admin-text-muted);

    margin-top: 4px;
}

.admin-layout .date-selector {
    height: 33px;

    border: 1px solid var(--admin-border);
    border-radius: 8px;

    background: white;
    color: var(--admin-text);

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 12px;

    font-size: 13px;
    white-space: nowrap;
}

.admin-layout .date-selector:hover {
    border-color: #b9c6d8;
}

.admin-layout .calendar-icon {
    font-size: 15px;
}

.admin-layout .date-chevron {
    color: var(--admin-text-muted);
    font-size: 17px;
    margin-left: 2px;
}

.admin-layout .mobile-menu-btn {
    display: none;

    font-size: 24px;
    color: var(--admin-text-dark);
}


/* ==========================================
   DASHBOARD CONTENT
========================================== */

.admin-layout .dashboard-content {
    padding: 32px;

    max-width: 1500px;
    margin: 0 auto;
}


/* ==========================================
   STAT CARDS
========================================== */

.admin-layout .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
    margin-bottom: 24px;
}

.admin-layout .stat-card {
    background: var(--admin-white);
    border: 1px solid var(--admin-border);

    border-radius: 12px;

    min-height: 143px;

    padding: 19px 20px 17px;
}

.admin-layout .stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-layout .stat-label {
    color: var(--admin-text-muted);

    font-size: 13px;
    font-weight: 600;
}

.admin-layout .stat-icon {
    width: 36px;
    height: 36px;

    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;
    color: var(--admin-primary);

    background: #f1f4f9;
}

.admin-layout .stat-value-row {
    display: flex;
    align-items: baseline;
    gap: 16px;

    margin-top: 11px;
}

.admin-layout .stat-value-row strong {
    font-size: 30px;
    line-height: 1;

    letter-spacing: -0.5px;
    color: var(--admin-text-dark);
}

.admin-layout .stat-description {
    color: var(--admin-text-light);

    font-size: 11px;
    display: block;

    margin-top: 7px;
}


/* ==========================================
   DASHBOARD GRID
========================================== */

.admin-layout .dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;

    gap: 20px;
    align-items: stretch;
}

.admin-layout .panel {
    background: var(--admin-white);
    border: 1px solid var(--admin-border);

    border-radius: 12px;
    min-width: 0;
}

.admin-layout .conversion-panel {
    min-height: 710px;

    display: flex;
    flex-direction: column;

    padding: 20px;
}

.admin-layout .users-panel {
    min-height: 710px;

    padding: 20px;

    display: flex;
    flex-direction: column;
}


/* ==========================================
   PANEL HEADERS
========================================== */

.admin-layout .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;
}

.admin-layout .panel-header h2,
.admin-layout .users-panel h2 {
    font-size: 16px;
    color: var(--admin-text-dark);

    font-weight: 700;
    line-height: 1.2;
}

.admin-layout .panel-header p,
.admin-layout .users-panel-header p {
    font-size: 12px;
    color: var(--admin-text-muted);

    margin-top: 5px;
}

.admin-layout .file-search {
    width: 220px;
    height: 28px;

    border: 1px solid var(--admin-border);
    border-radius: 6px;

    display: flex;
    align-items: center;

    padding: 0 10px;

    flex-shrink: 0;
}

.admin-layout .file-search input,
.admin-layout .users-search input {
    width: 100%;
    min-width: 0;

    border: none;
    outline: none;

    background: transparent;

    font-size: 12px;
    color: var(--admin-text);
}

.admin-layout .file-search input::placeholder,
.admin-layout .users-search input::placeholder {
    color: #91a4c0;
}

.admin-layout .search-icon {
    color: #8fa3c0;

    font-size: 20px;
    margin-right: 7px;

    line-height: 1;
}


/* ==========================================
   FILTERS
========================================== */

.admin-layout .filter-row {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;
    margin-bottom: 16px;
}

.admin-layout .filter-select {
    height: 24px;

    padding: 0 9px;

    border: 1px solid var(--admin-border);
    border-radius: 6px;

    background: white;
    color: var(--admin-text);

    font-size: 12px;
    outline: none;
}

.admin-layout .filter-select:focus {
    border-color: var(--admin-primary);
}

.admin-layout .selected-filter {
    background: var(--admin-primary-light);
    border-color: #dce1ff;

    color: var(--admin-primary);
    font-weight: 600;
}


/* ==========================================
   CONVERSION TABLE
========================================== */

.admin-layout .table-wrapper {
    overflow-x: auto;
}

.admin-layout .conversion-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.admin-layout .conversion-table thead {
    background: #f0f4f9;
}

.admin-layout .conversion-table th {
    height: 32px;

    padding: 0 12px;

    text-align: left;

    color: var(--admin-text);

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}

.admin-layout .conversion-table td {
    height: 55px;

    padding: 8px 12px;

    border-bottom: 1px solid var(--admin-border-light);

    font-size: 13px;
    color: var(--admin-text);

    white-space: nowrap;
}

.admin-layout .conversion-table th:first-child,
.admin-layout .conversion-table td:first-child {
    padding-left: 12px;
}

.admin-layout .transaction-id {
    font-size: 13px;
    font-weight: 700;

    color: var(--admin-text-dark);
}

.admin-layout .transaction-detail {
    font-size: 11px;
    color: var(--admin-text-muted);

    margin-top: 3px;
}

.admin-layout .timestamp {
    color: #8ba0bd !important;
}

.admin-layout .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 19px;

    padding: 0 7px;

    border-radius: 5px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.2px;
}

.admin-layout .status-badge.success {
    background: var(--admin-success-bg);
    color: var(--admin-success);
}

.admin-layout .action-buttons {
    display: flex;
    gap: 7px;
}

.admin-layout .download-btn,
.admin-layout .delete-btn {
    height: 24px;

    padding: 0 9px;

    border-radius: 5px;

    font-size: 12px;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    white-space: nowrap;
}

.admin-layout .download-btn {
    background: var(--admin-primary-light);
    color: var(--admin-primary);
    text-decoration: none;

    font-weight: 600;
}

.admin-layout .download-btn:hover {
    background: #e1e5ff;
}

.admin-layout .delete-btn {
    background: white;
    border: 1px solid var(--admin-border);

    color: var(--admin-danger);
}

.admin-layout .delete-btn:hover {
    background: var(--admin-danger-bg);
}

.admin-layout .mobile-conversion-list {
    display: none;
}


/* ==========================================
   PANEL FOOTER & PAGINATION
========================================== */

.admin-layout .panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: auto;
    padding-top: 20px;
}

.admin-layout .records-count {
    color: var(--admin-text-light);
    font-size: 12px;
}

.admin-layout .pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-layout .page-btn {
    height: 24px;
    min-width: 25px;

    padding: 0 8px;

    border: 1px solid var(--admin-border);
    background: white;

    border-radius: 5px;

    color: var(--admin-text);
    font-size: 11px;
}

.admin-layout .page-btn:hover {
    background: #f5f7fb;
}

.admin-layout .page-btn.active-page {
    background: var(--admin-primary);
    border-color: var(--admin-primary);

    color: white;
}


/* ==========================================
   USERS PANEL
========================================== */

.admin-layout .users-panel-header {
    margin-bottom: 20px;
}

.admin-layout .users-search-row {
    display: flex;
    gap: 8px;

    margin-bottom: 16px;
}

.admin-layout .users-search {
    height: 27px;

    border: 1px solid var(--admin-border);
    border-radius: 6px;

    display: flex;
    align-items: center;

    padding: 0 9px;

    flex: 1;
    min-width: 0;
}

.admin-layout .users-search .search-icon {
    font-size: 19px;
}

.admin-layout .user-date-btn {
    height: 27px;
    min-width: 112px;

    border: 1px solid var(--admin-border);
    border-radius: 6px;

    background: white;
    color: var(--admin-text);

    font-size: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}

.admin-layout .user-filter-row {
    display: flex;
    gap: 8px;

    margin-bottom: 16px;
}

.admin-layout .user-filter-row .filter-select {
    max-width: 130px;
}

.admin-layout .users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-layout .user-card {
    min-height: 56px;

    border-radius: 8px;
    background: #f0f4f9;

    padding: 10px 12px;

    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-layout .user-card-icon {
    font-size: 21px;
    color: var(--admin-text);

    width: 22px;
    flex-shrink: 0;

    text-align: center;
}

.admin-layout .user-card-info {
    display: flex;
    flex-direction: column;

    min-width: 0;
    flex: 1;
}

.admin-layout .user-card-info strong {
    color: var(--admin-text-dark);

    font-size: 13px;
    font-weight: 700;
}

.admin-layout .user-card-info span {
    color: var(--admin-text-light);

    font-size: 10px;

    margin-top: 4px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-layout .user-status {
    font-size: 11px;
    font-weight: 700;

    align-self: flex-start;
    margin-top: 2px;
}

.admin-layout .user-status.active {
    color: var(--admin-success);
}

.admin-layout .user-status.idle {
    color: var(--admin-text-muted);
}

.admin-layout .users-panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;

    margin-top: auto;
    padding-top: 20px;

    font-size: 12px;
    color: var(--admin-text-light);
}

.admin-layout .users-panel-footer a {
    color: var(--admin-primary);
    font-weight: 600;

    white-space: nowrap;
}

.admin-layout .users-panel-footer a:hover {
    text-decoration: underline;
}


/* ==========================================
   SIDEBAR OVERLAY
========================================== */

.admin-layout .sidebar-overlay {
    display: none;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1200px) {

    .admin-layout .dashboard-content {
        padding: 24px;
    }

    .admin-layout .top-header {
        padding: 0 24px;
    }

    .admin-layout .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 16px;
    }

    .admin-layout .conversion-panel,
    .admin-layout .users-panel {
        padding: 18px;
    }

    .admin-layout .conversion-table th,
    .admin-layout .conversion-table td {
        padding-left: 8px;
        padding-right: 8px;
    }

    .admin-layout .download-btn,
    .admin-layout .delete-btn {
        padding: 0 7px;
    }

}


/* ==========================================
   TABLET / SMALL LAPTOP
========================================== */

@media (max-width: 1000px) {

    .admin-layout {
        --admin-sidebar-width: 230px;
    }

    .admin-layout .sidebar {
        padding: 20px;
    }

    .admin-layout .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout .conversion-panel,
    .admin-layout .users-panel {
        min-height: auto;
    }

    .admin-layout .users-panel {
        min-height: 500px;
    }

    .admin-layout .users-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-layout .users-panel-footer {
        margin-top: 25px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    .admin-layout {
        display: block;
    }

    .admin-layout.sidebar-open {
        overflow: hidden;
    }

    /* Sidebar becomes off-canvas */
    .admin-layout .sidebar {
        position: fixed;

        left: 0;
        top: 0;
        bottom: 0;

        width: 260px;
        min-width: 260px;

        transform: translateX(-100%);
        transition: transform 0.25s ease;

        box-shadow: 8px 0 25px rgba(20, 35, 60, 0.08);
    }

    .admin-layout .sidebar.open {
        transform: translateX(0);
    }

    .admin-layout .sidebar-close {
        display: block;
    }

    .admin-layout .sidebar-overlay {
        position: fixed;
        inset: 0;

        background: rgba(15, 23, 42, 0.35);

        z-index: 90;
    }

    .admin-layout .sidebar-overlay.visible {
        display: block;
    }

    .admin-layout .main-content {
        width: 100%;
    }

    .admin-layout .top-header {
        height: auto;
        min-height: 72px;

        padding: 15px 18px;

        align-items: center;
    }

    .admin-layout .mobile-menu-btn {
        display: block;
        flex-shrink: 0;
    }

    .admin-layout .top-header h1 {
        font-size: 20px;
    }

    .admin-layout .top-header p {
        font-size: 11px;
        margin-top: 3px;
    }

    .admin-layout .date-selector {
        height: 32px;

        padding: 0 8px;
        gap: 5px;

        font-size: 11px;
    }

    .admin-layout .date-selector span:nth-child(2) {
        display: none;
    }

    .admin-layout .dashboard-content {
        padding: 18px 14px 28px;
    }

    .admin-layout .stats-grid {
        grid-template-columns: 1fr;

        gap: 12px;
        margin-bottom: 18px;
    }

    .admin-layout .stat-card {
        min-height: 125px;
        padding: 17px;
    }

    .admin-layout .stat-value-row {
        margin-top: 10px;
    }

    .admin-layout .stat-value-row strong {
        font-size: 27px;
    }

    .admin-layout .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-layout .conversion-panel,
    .admin-layout .users-panel {
        padding: 16px;
        border-radius: 10px;
    }

    .admin-layout .conversion-panel {
        min-height: 0;
    }

    .admin-layout .panel-header {
        flex-direction: column;
        gap: 15px;
    }

    .admin-layout .panel-header h2,
    .admin-layout .users-panel h2 {
        font-size: 15px;
    }

    .admin-layout .panel-header p,
    .admin-layout .users-panel-header p {
        font-size: 11px;
        line-height: 1.5;
    }

    .admin-layout .file-search {
        width: 100%;
        height: 32px;
    }

    .admin-layout .filter-row {
        margin-top: 15px;
        margin-bottom: 14px;
        gap: 6px;
    }

    .admin-layout .filter-select {
        height: 29px;
        font-size: 11px;
        max-width: 100%;
    }

    /* Hide desktop table on mobile */
    .admin-layout .table-wrapper {
        display: none;
    }

    /* Show mobile cards */
    .admin-layout .mobile-conversion-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .admin-layout .mobile-conversion-card {
        border: 1px solid var(--admin-border-light);

        border-radius: 8px;
        padding: 13px;

        background: #fff;
    }

    .admin-layout .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;

        gap: 10px;
    }

    .admin-layout .mobile-card-header > div {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .admin-layout .mobile-card-header strong {
        font-size: 13px;
        color: var(--admin-text-dark);
    }

    .admin-layout .mobile-card-header span:not(.status-badge) {
        font-size: 11px;
        color: var(--admin-text-muted);
        margin-top: 3px;
    }

    .admin-layout .mobile-card-details {
        display: grid;
        grid-template-columns: repeat(3, 1fr);

        gap: 8px;

        margin-top: 14px;
        padding-top: 12px;

        border-top: 1px solid var(--admin-border-light);
    }

    .admin-layout .mobile-card-details div {
        display: flex;
        flex-direction: column;

        gap: 4px;
        min-width: 0;
    }

    .admin-layout .mobile-card-details small {
        font-size: 9px;
        color: var(--admin-text-light);
        font-weight: 700;
    }

    .admin-layout .mobile-card-details span {
        font-size: 10px;
        color: var(--admin-text);

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-layout .mobile-card-actions {
        display: flex;
        gap: 8px;
        margin-top: 14px;
    }

    .admin-layout .mobile-card-actions button {
        flex: 1;
        justify-content: center;
        height: 30px;
    }

    .admin-layout .panel-footer {
        margin-top: 18px;
        padding-top: 16px;

        flex-wrap: wrap;
    }

    .admin-layout .records-count {
        font-size: 11px;
    }

    .admin-layout .pagination {
        margin-left: auto;
    }

    .admin-layout .users-panel {
        min-height: 0;
    }

    .admin-layout .users-search-row {
        margin-bottom: 12px;
    }

    .admin-layout .users-search {
        height: 32px;
    }

    .admin-layout .user-date-btn {
        height: 32px;
        min-width: 85px;
    }

    .admin-layout .user-filter-row {
        margin-bottom: 14px;
    }

    .admin-layout .user-filter-row .filter-select {
        max-width: none;
        flex: 1;
    }

    .admin-layout .users-list {
        display: flex;
        gap: 8px;
    }

    .admin-layout .user-card {
        min-height: 58px;
        padding: 10px;
    }

    .admin-layout .user-card-info strong {
        font-size: 12px;
    }

    .admin-layout .user-card-info span {
        font-size: 10px;
    }

    .admin-layout .users-panel-footer {
        margin-top: 20px;
        padding-top: 18px;
        font-size: 11px;
    }

}


/* ==========================================
   EXTRA SMALL MOBILE
========================================== */

@media (max-width: 400px) {

    .admin-layout .top-header {
        padding: 14px;
    }

    .admin-layout .top-header h1 {
        font-size: 18px;
    }

    .admin-layout .dashboard-content {
        padding: 14px 10px 24px;
    }

    .admin-layout .conversion-panel,
    .admin-layout .users-panel {
        padding: 13px;
    }

    .admin-layout .stat-card {
        padding: 15px;
    }

    .admin-layout .mobile-card-details {
        gap: 5px;
    }

    .admin-layout .mobile-card-details span {
        font-size: 9px;
    }

    .admin-layout .mobile-card-header strong {
        font-size: 12px;
    }

    .admin-layout .status-badge {
        font-size: 9px;
        padding: 0 5px;
    }

    .admin-layout .user-card-info span {
        font-size: 9px;
    }

    .admin-layout .user-status {
        font-size: 10px;
    }

    .admin-layout .users-panel-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

}

.files-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid #d9e2f0;
    border-radius: 8px;
    background: #ffffff;
    color: #315a9b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.pagination-btn:hover {
    background: #eef4ff;
    border-color: #315a9b;
}

.pagination-btn.active {
    background: #315a9b;
    border-color: #315a9b;
    color: #ffffff;
}

/* File action buttons */
.file-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.conversion-row[hidden],
.conversion-card[hidden] {
    display: none !important;
}

/* =========================================================
   ADMIN DASHBOARD - DESKTOP FIX
   100% zoom should have the compact appearance of 75%
   ========================================================= */

@media (min-width: 701px) {

    /* -------------------------------
       FIXED SIDEBAR
       ------------------------------- */

    .admin-layout .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        max-height: 100vh;

        overflow: hidden;

        flex-shrink: 0;
    }


    /* -------------------------------
       COMPACT DESKTOP
       ------------------------------- */

    .admin-layout {
        --admin-sidebar-width: 220px;
    }

    .admin-layout .sidebar {
        width: 220px;
        min-width: 220px;
        padding: 18px;
    }

    .admin-layout .sidebar-brand {
        margin-bottom: 25px;
    }

    .admin-layout .nav-item {
        height: 35px;
        gap: 10px;
        padding: 0 10px;
        font-size: 13px;
    }

    .admin-layout .nav-icon {
        font-size: 18px;
        width: 17px;
    }


    /* -------------------------------
       HEADER
       ------------------------------- */

    .admin-layout .top-header {
        height: 64px;
        padding: 0 24px;
    }

    .admin-layout .top-header h1 {
        font-size: 21px;
    }

    .admin-layout .top-header p {
        font-size: 12px;
    }


    /* -------------------------------
       DASHBOARD CONTENT
       ------------------------------- */

    .admin-layout .dashboard-content {
        padding: 24px;
        max-width: 1500px;
    }


    /* -------------------------------
       STAT CARDS
       ------------------------------- */

    .admin-layout .stats-grid {
        gap: 12px;
        margin-bottom: 18px;
    }

    .admin-layout .stat-card {
        min-height: 115px;
        padding: 16px 17px 14px;
    }

    .admin-layout .stat-label {
        font-size: 12px;
    }

    .admin-layout .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .admin-layout .stat-value-row {
        margin-top: 8px;
        gap: 12px;
    }

    .admin-layout .stat-value-row strong {
        font-size: 26px;
    }

    .admin-layout .stat-description {
        font-size: 10px;
        margin-top: 5px;
    }


    /* -------------------------------
       MAIN DASHBOARD GRID
       ------------------------------- */

    .admin-layout .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 16px;
    }


    /* -------------------------------
       PANELS
       ------------------------------- */

    .admin-layout .conversion-panel,
    .admin-layout .users-panel {
        min-height: 620px;
        padding: 17px;
    }


    /* -------------------------------
       PANEL HEADERS
       ------------------------------- */

    .admin-layout .panel-header h2,
    .admin-layout .users-panel h2 {
        font-size: 15px;
    }

    .admin-layout .panel-header p,
    .admin-layout .users-panel-header p {
        font-size: 11px;
    }

    .admin-layout .file-search {
        width: 200px;
        height: 27px;
    }


    /* -------------------------------
       FILTERS
       ------------------------------- */

    .admin-layout .filter-row {
        margin-top: 14px;
        margin-bottom: 13px;
        gap: 6px;
    }

    .admin-layout .filter-select {
        height: 23px;
        font-size: 11px;
    }


    /* -------------------------------
       CONVERSION TABLE
       ------------------------------- */

    .admin-layout .conversion-table th {
        height: 30px;
        padding: 0 9px;
        font-size: 9px;
    }

    .admin-layout .conversion-table td {
        height: 49px;
        padding: 7px 9px;
        font-size: 12px;
    }

    .admin-layout .transaction-id {
        font-size: 12px;
    }

    .admin-layout .transaction-detail {
        font-size: 10px;
    }

    .admin-layout .status-badge {
        height: 18px;
        font-size: 9px;
    }

    .admin-layout .download-btn,
    .admin-layout .delete-btn {
        height: 23px;
        padding: 0 7px;
        font-size: 11px;
    }


    /* -------------------------------
       USERS PANEL
       ------------------------------- */

    .admin-layout .users-panel-header {
        margin-bottom: 15px;
    }

    .admin-layout .users-search-row {
        margin-bottom: 12px;
    }

    .admin-layout .users-search {
        height: 26px;
    }

    .admin-layout .user-date-btn {
        height: 26px;
        min-width: 100px;
        font-size: 11px;
    }

    .admin-layout .user-filter-row {
        margin-bottom: 12px;
    }

    .admin-layout .user-card {
        min-height: 50px;
        padding: 8px 10px;
    }

    .admin-layout .user-card-icon {
        font-size: 19px;
        width: 20px;
    }

    .admin-layout .user-card-info strong {
        font-size: 12px;
    }

    .admin-layout .user-card-info span {
        font-size: 9px;
        margin-top: 3px;
    }

    .admin-layout .user-status {
        font-size: 10px;
    }


    /* -------------------------------
       PROFILE
       ------------------------------- */

    .admin-layout .sidebar-profile {
        padding: 10px 9px;
        gap: 9px;
    }

    .admin-layout .profile-avatar {
        width: 29px;
        height: 29px;
        font-size: 15px;
    }

    .admin-layout .profile-info strong {
        font-size: 12px;
    }

    .admin-layout .profile-info span {
        font-size: 10px;
    }

    .admin-layout .logout-btn {
        font-size: 11px;
    }
}


/* =========================================================
   VERY WIDE SCREENS
   Give the dashboard slightly more breathing room
   ========================================================= */

@media (min-width: 1600px) {

    .admin-layout {
        --admin-sidebar-width: 240px;
    }

    .admin-layout .sidebar {
        width: 240px;
        min-width: 240px;
        padding: 20px;
    }

    .admin-layout .dashboard-content {
        padding: 28px;
    }

    .admin-layout .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 18px;
    }

    .admin-layout .conversion-panel,
    .admin-layout .users-panel {
        padding: 19px;
        min-height: 660px;
    }
}


/* =========================================================
   MOBILE OVERRIDE
   Keep existing mobile sidebar behavior
   ========================================================= */

@media (max-width: 700px) {

    .admin-layout .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;

        width: 260px;
        min-width: 260px;
    }
}

/* ==========================================
   USER / SESSION ID HORIZONTAL SCROLL
========================================== */

.admin-layout .user-id-scroll,
.admin-layout .session-info-scroll {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.admin-layout .user-id-scroll strong,
.admin-layout .session-info-scroll span {
    display: inline-block;
    white-space: nowrap;
}

/* User ID scrolling */
.admin-layout .user-id-scroll:hover strong {
    animation: userIdScroll 4s linear infinite;
}

/* Session information scrolling */
.admin-layout .session-info-scroll:hover span {
    animation: sessionInfoScroll 6s linear infinite;
}

@keyframes userIdScroll {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(
            calc(-100% + 110px)
        );
    }

    100% {
        transform: translateX(
            calc(-100% + 110px)
        );
    }
}

@keyframes sessionInfoScroll {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(
            calc(-100% + 110px)
        );
    }

    100% {
        transform: translateX(
            calc(-100% + 110px)
        );
    }
}



