/* =========================================
   GLOBAL RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* =========================================
   BODY
========================================= */

body {
    background: #f6fbff;
    font-family: 'Segoe UI', sans-serif;
    color: #1f2937;
    min-height: 100vh;
}

/* =========================================
   MAIN PAGE CONTENT
========================================= */

.content {
    width: 100%;
    padding-bottom: 80px;
}

/* =========================================
   TOP HEADER
========================================= */

.topbar {

    position: sticky;
    top: 0;
    left: 0;

    width: 100%;
    height: 64px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 0 18px;

    background: #ffffff;

    border-bottom: 1px solid #edf2f7;

    z-index: 9999;

    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.03);
}

/* MENU BUTTON */

.menu-btn {

    width: 42px;
    height: 42px;

    min-width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    cursor: pointer;

    transition: 0.2s ease;

    color: #1f2937;

    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.menu-btn:hover {
    background: #f1f5f9;
}

.menu-btn:active,
.menu-btn:focus,
.menu-btn:focus-visible {
    outline: none;
}

.menu-btn i {
    font-size: 20px;
}

/* LOGO */

.logo {

    display: flex;
    align-items: center;

    overflow: hidden;
}

.logo a {

    text-decoration: none;

    font-size: 22px;
    font-weight: 900;

    color: #0b2a3d;

    white-space: nowrap;

    letter-spacing: 0.4px;
}

/* =========================================
   SIDE MENU
========================================= */

.side-menu {

    position: fixed;

    top: 64px; /* BELOW HEADER */
    left: -260px;

    width: 260px;

    height: calc(100vh - 64px);

    background: #ffffff;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 10000;

    transition: none;

    box-shadow:
        0 0 35px rgba(0, 0, 0, 0.08);

    padding-top: 12px;

    background: #ffffff;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 10000;

    box-shadow:
        0 0 35px rgba(0, 0, 0, 0.08);

    padding-top: 12px;
}

/* ACTIVE MENU */

.side-menu.active {
    left: 0;
}

/* SCROLLBAR */

.side-menu::-webkit-scrollbar {
    width: 5px;
}

.side-menu::-webkit-scrollbar-thumb {
    background: #d6dee8;
    border-radius: 20px;
}

/* MENU LINKS */

.side-menu a {

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 15px 22px;

    text-decoration: none;

    color: #374151;

    font-size: 15px;
    font-weight: 600;

    transition: 0.18s ease;
}

/* ICON */

.side-menu a i {

    width: 22px;

    text-align: center;

    font-size: 17px;

    color: #1e88e5;
}

/* HOVER */

.side-menu a:hover {

    background: #f5f9ff;

    color: #1e88e5;
}

/* =========================================
   BALANCE BOX
========================================= */

.balance-box {

    margin: 0 14px 14px;

    padding: 18px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #eef6ff,
            #dfeeff
        );

    border: 1px solid #d5e6ff;
}

.balance-title {

    font-size: 13px;
    font-weight: 700;

    color: #45627c;

    margin-bottom: 6px;
}

.balance-value {

    font-size: 22px;
    font-weight: 900;

    color: #0b2a3d;
}

/* =========================================
   OVERLAY
========================================= */

.menu-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.35);

    opacity: 0;
    visibility: hidden;

    transition: none;

    z-index: 9998;
}

/* SHOW */

.menu-overlay.active {

    opacity: 1;
    visibility: visible;
}

/* =========================================
   FOOTER
========================================= */

.footer {

    width: 100%;

    margin-top: 50px;

    padding: 28px 18px;

    text-align: center;

    background: transparent;

    border-top: none;

    color: rgba(255,255,255,0.75);

    font-size: 14px;
    line-height: 1.7;

    backdrop-filter: blur(2px);
}
/* FOOTER LINKS */

.footer a {

    color: #7dd3fc;

    text-decoration: none;

    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* =========================================
   FLOAT TELEGRAM BUTTON
========================================= */

.telegram-float {

    position: fixed;

    right: 18px;
    bottom: 18px;

    z-index: 9997;
}

.telegram-float i {

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #229ED9;

    color: #ffffff;

    font-size: 24px;

    box-shadow:
        0 8px 24px rgba(34, 158, 217, 0.35);

    transition: 0.2s ease;
}

.telegram-float i:hover {

    transform: translateY(-2px);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .topbar {
    height: 60px;
    padding: 0 14px;
}

.side-menu {
    top: 60px;
    height: calc(100vh - 60px);
}

    .logo a {
        font-size: 19px;
    }

    .side-menu {
        width: 250px;
        left: -250px;
    }

    .side-menu a {
        padding: 14px 18px;
        font-size: 14px;
    }

    .balance-value {
        font-size: 20px;
    }

    .telegram-float i {

        width: 54px;
        height: 54px;

        font-size: 22px;
    }
}

/* =========================================
   EXTRA SMALL DEVICES
========================================= */

@media (max-width: 480px) {

    .logo a {
        font-size: 17px;
    }

    .menu-btn {
        width: 40px;
        height: 40px;
    }

    .menu-btn i {
        font-size: 18px;
    }

    .side-menu {
        width: 240px;
        left: -240px;
    }
}