/* HEADER */
:root {
    --js-bg: #EDEDED;
    --js-header-bg: #2b2b2b;
    --js-primary: #008374;
    --js-primary-soft: #0aa790;
    --js-primary-dark: #026655;
    --js-secondary-dark: #313131;
    --js-accent: #F6B925;
    --js-card-bg: #ffffff;
    --js-chip-bg: #f9fafb;
    --js-border: #dddddd;
    --js-border-soft: #e5e7eb;
    --js-text-main: #1f2937;
    --js-text-muted: #6b7280;
    --yellow: #f6bb26;
    --teal-light: #008d7f;
}

.header {
    background: var(--js-header-bg);
    color: #fff;
    padding: 0.75em 1.5em;
    box-shadow: 0 0.125em 0.3125em rgba(0, 0, 0, .25);
    position: sticky;
    top: 0;
    z-index: 20;
    padding-inline: 8em;
}
body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    overflow-x: hidden;
}
.logo {
    cursor: pointer;
}

.header-inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    flex-wrap: wrap;
    margin-right: 0.3em;
}


.logo-wrap {
    display: flex;
    align-items: center;
    gap: 1em;
    min-width: 0;
}

.logo {
    font-size: 2em;
    font-weight: 800;
    letter-spacing: 0.018em;
    display: flex;
    align-items: center;
}

.logo span:first-child {
    color: #fff
}

.logo span:last-child {
    color: var(--js-accent)
}

.logo-tag {
    font-size: 0.85em;
    padding: 0.13em 0.5em;
    border-radius: var(--radius-pill);
    background: rgba(246, 185, 37, .18);
    color: var(--js-accent);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2em;
    flex-wrap: wrap;
}

/* ================= HEADER PILLS ================= */

.hdr-pill {
    display: flex;
    align-items: center;
    gap: 0.45em;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0.35em 0.75em;
    /* border-radius: var(--radius-pill); */
    /* border: 0.0625em solid rgba(255, 255, 255, 0.12); */
    /* background: rgba(255, 255, 255, 0.04); */
    transition: 0.3s ease-in-out;
    white-space: nowrap;
    font-weight: 600;
    display: none;
    color: #fff;
    padding-inline: 0;
    margin-inline: 0.2em;
    position: relative;
}

.hdr-pill .ico,
.hdr-pill svg {
    margin-bottom: 0.1em;
}

.hdr-pill .header-link {
    border-bottom: 0.25em solid transparent;
    transition: 0.3s ease-in-out;
}

.hdr-pill:hover .header-link {
    border-bottom: 0.25em solid #f6bb03;
}

.hdr-pill .ico svg {
    color: #fff;
}

.hdr-pill:hover {
    border-color: var(--yellow);
}

.hdr-pill span.ico {
    font-size: 1.1em;
}

.ico i {
    font-size: 1em;
    color: #fff;
}

.hdr-badge {
    background: #dc3545;
    color: #fff;
    font-size: 0.8em;
    padding: 0;
    border-radius: 50%;
    font-weight: 700;
    min-width: 1.2em;
    height: 1.2em;
    display: flex;
    align-items: center;
    line-height: 0;
    justify-content: center;
    position: absolute;
    left: 0.91em;
    top: 0.2em;
}

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

.user-mini {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.3em 0.6em;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
}

.user-avatar {
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: var(--js-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95em;
}

.user-name {
    font-size: 0.9em;
    font-weight: 600;
}

/* ================= USER AVATAR + INFO ================= */
.mode-btn i {
    color: inherit;
    font-size: 1.1em;
}

.user-avatar {
    width: 2.5em;
    height: 2.5em;
    background: var(--teal-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.625em;
    cursor: pointer;
    position: relative;
}

.user-name {
    font-size: 0.875em;
    font-weight: 500;
}

.btn i {
    font-size: 1.1em;
}

/* ================= DROPDOWN MENU ================= */
/* ================= USER INFO BUTTON ================= */

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #008374;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.user-name {
    font-weight: 600;
}

/* ================= SIDEBAR ================= */

.user-sidebar {
    position: fixed;
    top: 0;
    right: -37em;
    width: 32em;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.user-sidebar.active {
    right: 0;
    visibility: visible;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 1500;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Header */
.user-sidebar .close-btn {
    font-size: 1.1em;
    cursor: pointer;
    color: #fff;
    background-color: var(--teal-light);
    width: 2em;
    height: 2em;
    display: flex;
    z-index: 1111;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    right: 1em;
    position: absolute;
    top: 1em;
    line-height: 1.1em;
}

/* User Info Top */
.dropdown-header .user-name {
    font-size: 1.1em;
    font-weight: 700;
}

.dropdown-header .user-mail {
    font-size: 1em;
    color: #666;
}

/* Sidebar Items */
.dropdown-wrapper {
    display: grid;
    gap: 1em;
    margin-top: 1em;
    grid-template-columns: repeat(auto-fit, minmax(11.25em, 1fr));
    padding: 1.6em;
}


.dropdown-icon i {
    font-size: 1em
}



@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-0.625em);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 0.2em 0.75em;
    border-bottom: 0.0625em solid #e0e0e0;
    font-size: 1.1em;
    background: var(--js-header-bg);
    color: #fff;
    padding: 1.6em;
}

.dropdown-header .user-name {
    color: #fff;
    font-weight: 700;
}

.dropdown-header .user-mail {
    color: #fff;
    margin-bottom: 0.2em;
}

.dropdown-item {
    padding: 0.8em;
    display: flex;
    align-items: flex-start;
    gap: 0;
    cursor: pointer;
    transition: all 0.2s;
    color: #2d2d2d;
    text-decoration: none;
    border: 0.0825em solid #f0f0f0;
    border-radius: 1.1em;
    flex-direction: column;
    transition: 0.3s ease-in-out;
}

.dropdown-item:hover {
    background: var(--teal-light);
    color: #fff;
}
.dropdown-icon {
    font-size: 1.125em;
    width: 1.25em;
    text-align: center;
}

.dropdown-menu,
.dropdown-menu * {
    font-size: inherit;
}

.dropdown-header .user-name {
    font-size: 1.225em;
    font-weight: 700;
}

.dropdown-header .user-mail {
    font-size: 1em;
}

.dropdown-item {
    font-size: 1.2em;
}

.dropdown-icon {
    font-size: 1.125em;
}
.logout-btn {
    padding: 1em 2em;
    border: none;
    border-radius: 3em;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    cursor: pointer;
    transition: 0.16s;
    white-space: nowrap;
    box-shadow: 0 0.625em 1.375em rgba(15, 23, 42, .22);
    width: 100%;
    background-color: #313131;
    margin-top: 0;
    color: #fff;
}
.logout-btn:hover {
    background: #313131;
    transform: translateY(-0.2em);
    opacity: 0.99999;
}
.action-btn-container{
    padding: 1.5em;
    padding-bottom: 1.2em;
}
/* Bottom Navigation (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2d2d2d;
    display: flex;
    justify-content: space-around;
    padding: .625em 0;
    /* 10px */
    box-shadow: 0 -.125em .625em rgba(0, 0, 0, 0.1);
    /* -2px 10px */
    z-index: 999;
    font-size: 1em;
    /* scaling base */
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3125em;
    /* 5px */
    color: #999;
    cursor: pointer;
    padding: .5em .3125em;
    /* 8px 5px */
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-item.active {
    color: #ffa500;
    transform: translateY(-.125em);
    /* -2px */
}

.bottom-nav .mobile-nav-icon {
    font-size: 1.5em;
    /* 24px */
    position: relative;
}

.bottom-nav .nav-badge {
    position: absolute;
    top: -.3125em;
    /* -5px */
    right: -.5em;
    /* -8px */
    background: #dc3545;
    color: #fff;
    font-size: .7em;
    padding: 0;
    border-radius: 50%;
    font-weight: 700;
    min-width: 1.4em;
    height: 1.4em;
    display: flex;
    align-items: center;
    line-height: 0;
    justify-content: center;
}

.nav-label {
    font-size: 1em;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff !important;
    border-bottom: 0.2em solid transparent;
}

.bottom-nav .nav-item:hover .nav-label {
    border-bottom: 0.2em solid #f6bb26;
}

.bottom-nav .user-info {
    margin: 0.2em 0;
}

.mobile-dropdown {
    display: none;
}

.mobile-nav-icon svg {
    height: 1.3em;
    color: #fff;
    margin: 0.2em 0;
}

.mobile-nav-icon.bell svg {
    color: #f6bb26;
}

.mobile-nav-icon.heart svg {
    color: #f6bb26;
}

.ico svg {
    height: 1em;
    color: #fff;
}

.ico.bell svg {
    color: #f6bb26;
    height: 1em;
}

.ico .highlight {
    color: #dc3545;
    height: 1em;
}

.logo img {
    height: 2em;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.ico svg,
.hdr-pill svg {
    height: 1em;
    width: 1.3em;
}

.dropdown-header .user-info {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-bottom: 0.6em;
}

.dropdown-header .user-avatar {
    width: 1.7em;
    height: 1.7em;
    border-radius: 50%;
    background: var(--js-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5em;
}

.dropdown-header .user-name {
    font-weight: 800;
    margin-top: -0.3em;
    letter-spacing: -0.00521em;
    font-size: 1.62em;
    color: #fff;
}

.dropdown-header .user-info .user-id {
    font-size: .983em;
    color: #fff;
    font-weight: 400;
    margin-top: -0.7em;
}

.dropdown-header .user-info .user-id span {
    font-weight: bold;
}

.dropdown-header {
    text-align: center;
}


.user-menu {
    position: relative;
    display: inline-block;
}

.user-btn{
    background: #f5f7fb;
    border: 1px solid #e4e7ec;
    padding: 1em 1.2em;
    border-radius: 0.5em;
    cursor: pointer;
    color: #2d2d2d;
}


.user-menu {
    max-width: 15em;
}


/* Toggle Button */
.user-btn{
    width: 100%;
    background: #f5f7fb;
    border: none;
    padding: 0.7em;
    min-height: 1.8em;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.6em;
    transition: 0.3s ease;
    border: 0.1em solid transparent;
}
.user-btn:hover{
    border: 0.1em solid var(--teal-light);
}
/* Dropdown */

.user-menu__dropdown {

    max-height: 0;

    overflow: hidden;

    transition: max-height 0.35s ease;

    background: #f9fafb;

    margin-top: 0.2em;

    border-radius: 0.2em;

}


/* Open */

.user-menu__dropdown.active {

    max-height: 500px;

}


/* Items */

.user-menu__item {
    display: flex;
    gap: 0.5em;
    padding: 0.6em;
    cursor: pointer;
    border-radius: 0.4em;
    color: var(--js-header-bg);
    border: 1px solid transparent;
}

.user-menu__item:hover {

    border: 1px solid var(--js-border);
    color: var(--js-primary-dark);
    background-color: #e6f7f5;

}
.user-wrap{
    margin-top: 1em;
    padding: 1.6em;
}
.user-btn-container {
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-direction: column;
}
.user-btn {
    padding: 1em 1.2em;
    min-height: unset;
    width: 100%;
    border-radius: 2em;
}
.user-plan {
    font-size: 1em;
    padding: 0.5em 1em;
    border-radius: 1em;
    line-height: 1;
    display: flex;
    background: #0aa790;
    align-items: center;
    justify-content: center;
    border: 0.1em solid #0aa790;
    margin-top: 0.1em;
    color: #fff;
}
.dropdown-header h3 {
    font-size: 1.6em;
    line-height: 1em;
    margin: 0;
    font-weight: 700;
}
@media (min-width: 768px) {
    .hdr-pill {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hdr-pill {
        display: flex;
    }

    .logo {
        font-size: 2.5em;
    }

    .logo img {
        height: 1.6em;
    }

    .header {
        padding-inline: 2em;
    }

    .user-sidebar {
        width: 25em;
        overflow-y: auto;
    }

.dropdown-wrapper {
    display: grid;
    gap: .5em;
    margin-top: 1em;
    grid-template-columns: repeat(auto-fit, minmax(10.25em, 1fr));
    padding: 0.7em;
}
.user-wrap {
    margin-top: 1em;
    padding: 0.7em;
}
    .user-avatar {
        font-size: 1.35em;
    }

    .header-inner {
        justify-content: center;
    }

    .header-actions {
        display: none;
    }
    .side-nav .nav-label{
        color: var(--js-primary) !important;
    }
    .action-btn-container {
    margin-bottom: 1em;
}
}

@media (min-width: 768px) {
    .hdr-pill {
        display: flex;
    }

    .bottom-nav {
        display: none;
    }
}
.new-badge {
    text-wrap: nowrap;
}