* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% -10%, rgba(31, 106, 165, .14), transparent 38%), #121519;
    color: #fff;
    font-family: "Cairo", sans-serif;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 106, 165, .13) 0%, rgba(31, 106, 165, .06) 35%, transparent 70%);
    filter: blur(20px);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(18, 21, 25, .84);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    backdrop-filter: blur(16px);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    white-space: nowrap;
}

.logo-img {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: contain;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar-links>a:not(.account-btn) {
    padding: 10px 12px;
    color: #9ba7b0;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9px;
    transition: .25s;
}

.navbar-links>a:not(.account-btn):hover {
    color: #fff;
    background: rgba(31, 106, 165, .11);
}

.account-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    color: #fff;
    background: #1f6aa5;
    border-radius: 10px;
    transition: .25s;
}

.account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 106, 165, .28);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(31, 106, 165, .1);
    border: 1px solid rgba(31, 106, 165, .3);
    border-radius: 10px;
}

.analyzer-hero {
    position: relative;
    z-index: 1;
    padding: 70px 0 25px;
}

.section-heading {
    width: min(900px, calc(100% - 20px));
    margin: 0 auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 9px;
    color: #4da8e8;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.section-heading h1 {
    margin: 0 auto 12px;
    color: #fff;
    font-family: "Alexandria", sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.5;
    text-shadow: 0 0 18px rgba(31, 106, 165, .25);
}

.section-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: #8e9aa5;
    font-size: 13px;
    line-height: 1.9;
}

.analyzer-section {
    position: relative;
    z-index: 1;
    padding: 20px 0 80px;
}

.card {
    margin: 0 auto;
    padding: 25px;
    background: linear-gradient(145deg, #191f25, #14191e);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .28);
}

.drop-zone {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
    border: 1px dashed rgba(31, 106, 165, .55);
    border-radius: 16px;
    background: rgba(31, 106, 165, .035);
    cursor: pointer;
    transition: .3s;
}

.drop-zone:hover,
.drop-zone.drag {
    border-color: #4da8e8;
    background: rgba(31, 106, 165, .08);
    box-shadow: 0 0 35px rgba(31, 106, 165, .12);
    transform: translateY(-2px);
}

.drop-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #5bb5ed;
    background: rgba(31, 106, 165, .12);
    border: 1px solid rgba(31, 106, 165, .3);
    border-radius: 18px;
    font-size: 30px;
}

.drop-zone h2 {
    margin: 0 0 7px;
    font-size: 20px;
    font-weight: 800;
}

.drop-zone p {
    margin: 0;
    color: #7d8b96;
    font-size: 12px;
    line-height: 1.8;
}

#fileInput {
    display: none;
}

.file-info {
    display: none;
    margin-top: 15px;
    padding: 12px 15px;
    color: #b8c4cb;
    background: #101519;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    font-size: 12px;
    word-break: break-all;
}

.progress {
    display: none;
    margin-top: 18px;
}

.progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
    color: #82919c;
    font-size: 11px;
}

.progress-bar {
    width: 100%;
    height: 7px;
    overflow: hidden;
    background: #0a0e11;
    border-radius: 20px;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #1f6aa5, #5bb5ed);
    border-radius: 20px;
    transition: width .2s;
}

.status {
    display: none;
    margin-top: 15px;
    padding: 12px 15px;
    color: #8fa0ab;
    background: #101519;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.8;
}

.status.success {
    color: #68d59b;
    border-color: rgba(104, 213, 155, .2);
}

.status.error {
    color: #ff8585;
    border-color: rgba(255, 80, 80, .2);
}

.result {
    display: none;
    margin-top: 30px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.result-header h2 {
    margin: 0;
    font-size: 28.35px;
    font-weight: 800;
}

.copy-button {
    padding: 9px 15px;
    color: #fff;
    background: rgba(31, 106, 165, .13);
    border: 1px solid rgba(31, 106, 165, .45);
    border-radius: 9px;
    transition: .25s;
}

.copy-button:hover {
    background: rgba(31, 106, 165, .25);
    border-color: #4da8e8;
    transform: translateY(-2px);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.info-item {
    padding: 14px;
    background: #101519;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 11px;
    transition: .25s;
}

.info-item:hover {
    border-color: rgba(31, 106, 165, .32);
    transform: translateY(-2px);
}

.info-label {
    display: block;
    margin-bottom: 6px;
    color: #f7f9f9;
    font-size: 15px;
}

.info-value {
    display: block;
    color: #4da8e8;
    font-size: 15.6px;
    font-weight: 800;
    line-height: 1.7;
    word-break: break-all;
}

.section {
    margin-top: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.section-header h3 {
    margin: 0;
    font-size: 21.6px;
    font-weight: 800;
}

.badge {
    padding: 4px 9px;
    color: #62bdf1;
    background: rgba(31, 106, 165, .1);
    border: 1px solid rgba(31, 106, 165, .25);
    border-radius: 20px;
    font-size: 12px;
}

.prop-box {
    max-height: 500px;
    overflow: auto;
    padding: 8px;
    background: #0c1114;
    border-radius: 11px;
}

.prop-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 9px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, .035);
    font-size: 13.2px;
}

.prop-row:last-child {
    border-bottom: 0;
}

.prop-key {
    min-width: 260px;
    color: #62bdf1;
    direction: ltr;
    text-align: left;
    word-break: break-all;
}

.prop-value {
    flex: 1;
    color: #d7dfe4;
    direction: ltr;
    text-align: left;
    word-break: break-all;
}

.path-box {
    padding: 12px 14px;
    color: #8fa0ab;
    background: #101519;
    border: 1px solid rgba(31, 106, 165, .2);
    border-radius: 10px;
    font-size: 11px;
}

.file-list,
#fotaFiles {
    display: none !important;
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 45px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, .05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.footer-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.footer-content p {
    margin: 0;
    color: #687680;
    font-size: 11px;
}

.footer-content small {
    color: #46525a;
    font-size: 10px;
}

.whatsapp-float {
    position: fixed;
    left: -176px;
    bottom: 30px;
    z-index: 9999;
    width: 230px;
    height: 62px;
    display: block;
    color: #fff;
    background: #151c22;
    border: 1px solid rgba(37, 211, 102, .55);
    border-left: 0;
    border-radius: 0 18px 18px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .35), 0 0 25px rgba(37, 211, 102, .1);
    transition: left .4s cubic-bezier(.22, 1, .36, 1);
}

.whatsapp-float:hover {
    left: 0;
}

.whatsapp-icon {
    position: absolute;
    top: 4px;
    right: 7px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #25d366;
    border-radius: 13px;
}

.whatsapp-icon i {
    font-size: 28px;
}

.whatsapp-text {
    position: absolute;
    top: 50%;
    right: 72px;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
    opacity: 0;
    transition: .25s;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
}

.back-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9998;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #1f6aa5;
    border-radius: 11px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: .25s;
}

.back-top:hover {
    background: #287fbe;
}

@media (max-width: 820px) {
    .container {
        width: min(100%, calc(100% - 28px));
    }

    .menu-toggle {
        display: flex;
    }

    .navbar {
        min-height: 68px;
    }

    .navbar-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 14px;
        left: 14px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px;
        background: #151b20;
        border: 1px solid rgba(255, 255, 255, .07);
        border-radius: 13px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: .25s;
    }

    .navbar-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar-links>a:not(.account-btn) {
        width: 100%;
        padding: 11px 13px;
        text-align: right;
    }

    .account-btn {
        width: 100%;
        margin: 3px 0 0;
    }

    .analyzer-hero {
        padding-top: 50px;
    }

    .card {
        padding: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .result-header {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-button {
        width: 100%;
    }

    .prop-row {
        flex-direction: column;
        gap: 5px;
    }

    .prop-key {
        min-width: 0;
    }

    .result-header h2 {
        font-size: 28.35px;
    }

    .section-header h3 {
        font-size: 21.6px;
    }
}

@media (max-width: 600px) {
    .section-heading {
        width: calc(100% - 10px);
    }

    .section-heading h1 {
        font-size: 28px;
    }

    .section-heading p {
        font-size: 12px;
    }

    .drop-zone {
        min-height: 200px;
        padding: 20px 12px;
    }

    .drop-zone h2 {
        font-size: 18px;
    }

    .whatsapp-float {
        left: -158px;
        bottom: 22px;
        width: 210px;
        height: 54px;
    }

    .whatsapp-icon {
        width: 46px;
        height: 46px;
    }

    .whatsapp-icon i {
        font-size: 24px;
    }

    .whatsapp-text {
        right: 62px;
        font-size: 12px;
    }

    .back-top {
        right: 16px;
        bottom: 18px;
    }

    .result-header h2 {
        font-size: 25px;
    }

    .section-header h3 {
        font-size: 19px;
    }

    .info-value {
        font-size: 15.6px;
    }

    .prop-row {
        font-size: 13.2px;
    }
}

@media (max-width: 400px) {
    .container {
        width: calc(100% - 18px);
    }

    .card {
        padding: 10px;
    }

    .section-heading h1 {
        font-size: 24px;
    }

    .drop-zone {
        min-height: 185px;
    }

    .result-header h2 {
        font-size: 23px;
    }

    .section-header h3 {
        font-size: 18px;
    }
}