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

:root {
    --black: #05070a;
    --black2: #0a0d12;
    --white: #ffffff;
    --gray: #9ca3af;
    --line: #202630;
    --blue: #1683ff;
    --blue2: #0b5ed7;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--black);
    color: white;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.app {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(22,131,255,.13),
            transparent 30%
        ),
        var(--black);
}

.header {
    height: 72px;
    border-bottom: 1px solid var(--line);

    display: flex;
    align-items: center;

    padding: 0 24px;

    position: sticky;
    top: 0;

    z-index: 50;

    background:
        rgba(5,7,10,.9);

    backdrop-filter: blur(16px);
}

.menu-btn {
    width: 42px;
    height: 42px;

    border: 1px solid var(--line);
    background: #0b0e13;

    border-radius: 11px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;

    margin-right: 14px;
}

.menu-btn span {
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    width: 38px;
    height: 38px;

    object-fit: cover;

    border-radius: 10px;
}

.brand strong {
    display: block;
    font-size: 15px;
}

.brand small {
    color: var(--gray);
    font-size: 11px;
}

.sidebar {
    position: fixed;

    top: 72px;
    left: 0;

    width: 290px;
    height: calc(100vh - 72px);

    background: #080b10;

    border-right: 1px solid var(--line);

    padding: 22px;

    z-index: 100;

    transform: translateX(-100%);

    transition: .3s ease;

    display: flex;
    flex-direction: column;
}

.sidebar.open {
    transform: translateX(0);
}

.side-head {
    display: flex;
    align-items: center;
    gap: 12px;

    padding-bottom: 22px;

    border-bottom: 1px solid var(--line);
}

.side-head img {
    width: 44px;
    height: 44px;

    border-radius: 12px;

    object-fit: cover;
}

.side-head strong {
    display: block;
}

.side-head span {
    color: var(--gray);
    font-size: 11px;
}

nav {
    margin-top: 20px;
    display: grid;
    gap: 8px;
}

.nav-item {
    border: 1px solid transparent;

    background: transparent;

    color: white;

    display: flex;
    align-items: center;

    text-align: left;

    gap: 12px;

    padding: 12px;

    border-radius: 12px;

    transition: .2s;
}

.nav-item > span {
    width: 38px;
    height: 38px;

    border-radius: 9px;

    display: grid;
    place-items: center;

    background: #10151d;

    color: #60aaff;

    font-weight: bold;
}

.nav-item b {
    display: block;
    font-size: 13px;
}

.nav-item small {
    color: var(--gray);
    font-size: 10px;
}

.nav-item:hover,
.nav-item.active {
    background: #101720;
    border-color: #1e2b3c;
}

.nav-item.active > span {
    background: var(--blue);
    color: white;
}

.side-bottom {
    margin-top: auto;

    border-top: 1px solid var(--line);

    padding-top: 18px;
}

.status {
    font-size: 12px;
    margin-bottom: 16px;

    display: flex;
    align-items: center;
    gap: 7px;
}

.status i {
    width: 7px;
    height: 7px;

    background: #31d158;

    border-radius: 50%;
}

.side-bottom > small {
    color: var(--gray);
    line-height: 1.7;
}

.side-bottom b {
    color: white;
}

.overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.65);

    z-index: 90;

    opacity: 0;
    pointer-events: none;

    transition: .3s;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

main {
    width: 100%;
    max-width: 1100px;

    margin: auto;

    padding: 50px 24px 100px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.hero {
    min-height: 300px;

    display: grid;

    grid-template-columns:
        1fr
        280px;

    gap: 30px;

    align-items: center;
}

.badge {
    display: inline-block;

    padding: 7px 11px;

    border: 1px solid #164f91;

    background: rgba(22,131,255,.08);

    color: #5faaff;

    border-radius: 999px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.2px;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 82px);

    line-height: .9;

    letter-spacing: -5px;

    margin: 20px 0;
}

.hero h1 span {
    color: var(--blue);
}

.hero p {
    color: var(--gray);

    max-width: 570px;

    line-height: 1.7;
}

.hero-card {
    height: 230px;

    border: 1px solid var(--line);

    background:
        linear-gradient(
            145deg,
            #10151c,
            #07090c
        );

    border-radius: 24px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    box-shadow:
        0 20px 60px rgba(0,0,0,.3);
}

.hero-card-icon {
    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    background: var(--blue);

    border-radius: 20px;

    font-size: 35px;

    margin-bottom: 15px;

    box-shadow:
        0 0 35px rgba(22,131,255,.25);
}

.hero-card strong {
    font-size: 18px;
}

.hero-card span {
    color: var(--gray);
    font-size: 12px;
    margin-top: 5px;
}

.upload-card {
    margin-top: 20px;

    padding: 20px;

    border: 1px solid var(--line);

    background: #090c11;

    border-radius: 20px;
}

.drop-zone {
    min-height: 310px;

    border: 1px dashed #35404f;

    border-radius: 16px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    transition: .2s;
}

.drop-zone.dragging {
    border-color: var(--blue);
    background: rgba(22,131,255,.05);
}

.upload-icon {
    width: 60px;
    height: 60px;

    display: grid;
    place-items: center;

    background: #111722;

    border: 1px solid #243248;

    border-radius: 17px;

    color: #5faaff;

    font-size: 28px;

    margin-bottom: 15px;
}

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

.drop-zone p {
    color: var(--gray);
    margin-top: 7px;
}

.drop-zone > span {
    color: #5f6874;
    font-size: 12px;
    margin: 8px 0;
}

.drop-zone small {
    color: #68717d;
    margin-top: 15px;
}

.primary-btn {
    border: 0;

    background: var(--blue);

    color: white;

    padding: 11px 18px;

    border-radius: 10px;

    font-weight: 700;

    transition: .2s;
}

.primary-btn:hover {
    background: #3d9bff;
    transform: translateY(-1px);
}

.file-info {
    margin-top: 15px;

    padding: 13px;

    border: 1px solid var(--line);

    border-radius: 12px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.file-icon {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #10161e;

    color: #6ab0ff;

    font-size: 9px;

    font-weight: bold;
}

.file-details {
    flex: 1;
}

.file-details strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.file-details span {
    color: var(--gray);

    font-size: 11px;
}

.remove-btn {
    width: 32px;
    height: 32px;

    border: 1px solid var(--line);

    background: transparent;

    color: #ff5555;

    border-radius: 8px;

    font-size: 20px;
}

.progress-container {
    margin-top: 18px;
}

.progress-top {
    display: flex;

    justify-content: space-between;

    color: var(--gray);

    font-size: 12px;

    margin-bottom: 8px;
}

.progress-top b {
    color: white;
}

.progress {
    height: 8px;

    background: #171b22;

    border-radius: 99px;

    overflow: hidden;
}

.progress-bar {
    height: 100%;

    width: 0%;

    background: var(--blue);

    border-radius: inherit;

    transition: width .15s;
}

.upload-btn {
    width: 100%;

    margin-top: 18px;

    padding: 14px;

    border: 0;

    border-radius: 11px;

    background: white;

    color: black;

    font-weight: 800;

    transition: .2s;
}

.upload-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
}

.result {
    margin-top: 15px;
}

.result-box {
    padding: 15px;

    border: 1px solid #1e5834;

    background: #08150d;

    border-radius: 12px;
}

.result-box strong {
    display: block;
    color: #4ade80;
    margin-bottom: 8px;
}

.result-url {
    display: flex;
    gap: 8px;
}

.result-url input {
    flex: 1;

    min-width: 0;

    background: #050805;

    color: white;

    border: 1px solid #1e3025;

    padding: 10px;

    border-radius: 8px;
}

.page-title {
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 48px;

    letter-spacing: -2px;

    margin: 15px 0 8px;
}

.page-title p {
    color: var(--gray);

    line-height: 1.7;

    max-width: 650px;
}

.api-url {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px;

    background: #090c11;

    border: 1px solid var(--line);

    border-radius: 12px;

    margin-bottom: 18px;
}

.api-url > span {
    background: #0b6336;

    color: #62f59b;

    padding: 5px 8px;

    border-radius: 6px;

    font-size: 10px;

    font-weight: bold;
}

.api-url code {
    flex: 1;

    overflow: auto;

    color: #a8d2ff;

    font-size: 12px;
}

.copy-small,
.copy-code {
    border: 1px solid #263142;

    background: #111722;

    color: #8ec4ff;

    padding: 7px 10px;

    border-radius: 7px;

    font-size: 11px;
}

.api-test-card,
.code-card,
.downloader-card,
.about-card {
    border: 1px solid var(--line);

    background: #090c11;

    border-radius: 18px;

    padding: 20px;

    margin-bottom: 18px;
}

.api-test-head,
.code-head {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    align-items: center;

    margin-bottom: 20px;
}

.api-test-head h2,
.code-head h2 {
    font-size: 18px;
}

.api-test-head p {
    color: var(--gray);

    font-size: 12px;

    margin-top: 4px;
}

.api-status {
    color: #54e98b;

    font-size: 10px;

    font-weight: bold;

    border: 1px solid #1f6038;

    padding: 6px 9px;

    border-radius: 999px;
}

.test-upload {
    display: flex;

    gap: 10px;

    align-items: center;

    flex-wrap: wrap;
}

.test-upload label {
    color: var(--gray);

    font-size: 12px;

    width: 100%;
}

.test-upload input {
    flex: 1;

    min-width: 200px;

    border: 1px solid var(--line);

    background: #05070a;

    color: white;

    padding: 10px;

    border-radius: 9px;
}

.api-loading {
    color: #60aaff;

    font-size: 12px;

    margin-top: 15px;
}

.json-result {
    margin-top: 15px;

    background: #05070a;

    border: 1px solid var(--line);

    border-radius: 10px;

    padding: 15px;

    overflow: auto;

    max-height: 350px;

    color: #b9d8ff;

    font-size: 12px;

    line-height: 1.6;
}

.code-tabs {
    display: flex;

    gap: 5px;

    background: #05070a;

    padding: 4px;

    border-radius: 9px;
}

.code-tab {
    border: 0;

    background: transparent;

    color: var(--gray);

    padding: 7px 10px;

    border-radius: 6px;

    font-size: 11px;
}

.code-tab.active {
    background: #18202c;

    color: white;
}

.code-box {
    position: relative;

    background: #05070a;

    border: 1px solid var(--line);

    border-radius: 12px;

    overflow: hidden;
}

.code-box pre {
    padding: 20px;

    padding-top: 48px;

    overflow: auto;

    color: #b8d8ff;

    font-size: 12px;

    line-height: 1.7;

    min-height: 150px;
}

.copy-code {
    position: absolute;

    top: 10px;
    right: 10px;

    z-index: 2;
}

.url-input {
    display: flex;

    gap: 10px;
}

.url-input input {
    flex: 1;

    background: #05070a;

    color: white;

    border: 1px solid var(--line);

    padding: 13px;

    border-radius: 10px;

    outline: none;
}

.url-input input:focus {
    border-color: var(--blue);
}

.download-result {
    margin-top: 20px;
}

.download-card {
    border: 1px solid var(--line);

    padding: 15px;

    border-radius: 12px;
}

.download-card img {
    max-width: 240px;

    border-radius: 10px;

    margin-bottom: 12px;
}

.download-card h3 {
    margin-bottom: 6px;
}

.download-card p {
    color: var(--gray);

    font-size: 12px;

    margin-bottom: 12px;
}

.about-card {
    max-width: 760px;

    margin: auto;

    text-align: center;

    padding: 45px 30px;
}

.about-logo img {
    width: 90px;
    height: 90px;

    border-radius: 24px;

    object-fit: cover;

    margin-bottom: 20px;

    box-shadow:
        0 0 50px rgba(22,131,255,.2);
}

.about-card h1 {
    font-size: 45px;

    margin: 15px 0;
}

.about-card > p {
    color: var(--gray);

    line-height: 1.8;

    max-width: 600px;

    margin: 10px auto;
}

.support {
    margin-top: 35px;

    border-top: 1px solid var(--line);

    padding-top: 25px;
}

.support h3 {
    margin-bottom: 15px;
}

.socials {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;
}

.socials a {
    text-decoration: none;

    color: white;

    background: #0d1117;

    border: 1px solid var(--line);

    padding: 12px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    gap: 10px;

    text-align: left;
}

.social-logo {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;
}

.social-logo svg {
    width: 22px;
    height: 22px;

    fill: white;
}

.whatsapp {
    background: #168f45;
}

.telegram {
    background: #168bd2;
}

.socials b {
    display: block;

    font-size: 12px;
}

.socials span {
    color: var(--gray);

    font-size: 10px;
}

footer {
    border-top: 1px solid var(--line);

    padding: 20px 24px;

    display: flex;

    justify-content: space-between;

    color: #6d7682;

    font-size: 11px;
}

footer b {
    color: #aeb7c3;
}

.toast {
    position: fixed;

    bottom: 25px;

    left: 50%;

    transform:
        translate(-50%, 20px);

    background: white;

    color: black;

    padding: 10px 16px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: bold;

    opacity: 0;

    pointer-events: none;

    transition: .3s;

    z-index: 500;
}

.toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}

.welcome {
    position: fixed;

    inset: 0;

    z-index: 1000;

    background: rgba(0,0,0,.78);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    backdrop-filter: blur(10px);
}

.welcome.hidden {
    display: none;
}

.welcome-box {
    width: 100%;
    max-width: 430px;

    background: #0a0d12;

    border: 1px solid #26303d;

    border-radius: 22px;

    padding: 35px 25px;

    text-align: center;

    position: relative;

    box-shadow:
        0 30px 100px rgba(0,0,0,.6);
}

.welcome-box img {
    width: 70px;
    height: 70px;

    object-fit: cover;

    border-radius: 18px;

    margin-bottom: 18px;
}

.welcome-box h2 {
    margin: 18px 0 10px;
}

.welcome-box p {
    color: var(--gray);

    line-height: 1.7;

    font-size: 13px;
}

.welcome-box .primary-btn {
    margin-top: 20px;

    width: 100%;
}

.welcome-close {
    position: absolute;

    right: 15px;
    top: 15px;

    width: 32px;
    height: 32px;

    border: 1px solid var(--line);

    background: #11151b;

    color: white;

    border-radius: 8px;

    font-size: 20px;
}

@media (max-width: 700px) {

    main {
        padding: 35px 15px 80px;
    }

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

    .hero-card {
        display: none;
    }

    .hero h1 {
        font-size: 58px;
    }

    .page-title h1 {
        font-size: 38px;
    }

    .api-url {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .api-url code {
        width: 100%;
        flex-basis: 100%;
        order: 3;
    }

    .code-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .code-tabs {
        width: 100%;
        overflow: auto;
    }

    .code-tab {
        flex: 1;
    }

    .url-input {
        flex-direction: column;
    }

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

    footer {
        flex-direction: column;
        gap: 7px;
        text-align: center;
    }
}
