/* =========================
   NAVBAR
========================= */

.navbar {
    height: 70px;

    background: #fff;
    border-bottom: 1px solid #ececec;

    position: sticky;
    top: 0;

    z-index: 900;
}

.navbar-inner {
    height: 100%;
    width: 100%;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================
   MOBILE BURGER
========================= */

.mobile-sidebar-toggle {
    display: none;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 10px;

    background: transparent;

    cursor: pointer;

    align-items: center;
    justify-content: center;

    color: #111827;
    font-size: 22px;
}

.mobile-sidebar-toggle:hover {
    background: #f3f4f6;
}

/* =========================
   LOGO
========================= */

.logo-link,
.logo-home {
    text-decoration: none;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;

    color: #211d18;

    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.logo .dot {
    color: #ff6a4d;
}

/* =========================
   ACTIONS
========================= */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================
   AUTH
========================= */

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-black {
    padding: 10px 18px;

    border: none;
    border-radius: 10px;

    background: #111827;
    color: #fff;

    cursor: pointer;

    font-size: .9rem;
    font-weight: 500;

    transition: .2s ease;
}

.btn-black:hover {
    background: #000;
    color: #c2c2c2;
}

/* =========================
   USER
========================= */

.user-menu {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 10px;

    border: none;
    border-radius: 12px;

    background: transparent;

    cursor: pointer;

    transition: background .2s ease;
}

.user-trigger:hover {
    background: #f5f5f5;
}

.user-name {
    color: #111827;

    font-size: .95rem;
    font-weight: 500;
}

.avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid #ececec;
}

.user-trigger i {
    color: #6b7280;

    font-size: .75rem;
}

/* =========================
   DROPDOWN
========================= */

.user-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 220px;

    padding: 8px;

    background: #fff;

    border: 1px solid #ececec;
    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition: .2s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
    width: 100%;

    padding: 12px 16px;

    border: 0;
    background: transparent;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #222;
    text-decoration: none;

    cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: #f5f5f5;
}

.user-dropdown i {
    width: 18px;
    text-align: center;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .mobile-sidebar-toggle {
        display: flex;
    }

    .navbar-inner {
        padding: 0 16px;
    }

    .slogan {
        display: none;
    }

    .user-name {
        display: none;
    }

    .logo {
        font-size: 1.1rem;
    }
}

/* =========================
   BALANCE CHIP
========================= */

.balance-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, .07);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    color: inherit;
}

.balance-chip:hover {
    background: rgba(0, 0, 0, .13);
}

.balance-chip .bi {
    font-size: 13px;
    color: #f59e0b;
}

/* Tooltip shown on hover — reads text from data-tooltip attribute */
.balance-chip {
    position: relative;
}

.balance-chip::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 1100;
}

.balance-chip:hover::after {
    opacity: 1;
}

@media (max-width: 360px) {
    .balance-chip {
        padding: 5px 10px;
        font-size: 13px;
        gap: 4px;
    }
    .balance-chip .bi {
        font-size: 12px;
    }
}

/* =========================
   BALANCE MODAL
========================= */

.balance-modal-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 2px;
}

.balance-modal-count {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.balance-modal-count span:not(.balance-value) {
    font-size: 15px;
    font-weight: 400;
    color: #666;
}

.balance-modal-expires {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.balance-tariff-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.balance-tariff-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #ebebeb;
    border-radius: 12px;
}

.balance-tariff-name {
    font-weight: 600;
    font-size: 15px;
}

.balance-tariff-meta {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.balance-tariff-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
}

.balance-tariff-btn:hover {
    background: #333;
}