﻿/* ============== Vars ============== */
:root {
    --green: #7AB700;
    --green-dark: #006A4B;
    --text: #2E2E2E;
    --muted: #6B7280;
    --bg: #FFFFFF;
    --radius: 16px;
}

/* ============== Header (desktop/tablet) ============== */
.adiva-header {
    position: sticky;
    top: 0;
    z-index: 2500;
    background: var(--bg);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    font-family: "Montserrat",sans-serif;
}

.adiva-wrap {
    margin: 0 15px;
    padding: 16px 0 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 32px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo {
    height: 56px;
    width: auto;
    display: block;
}

.bar {
    margin-left: auto;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    min-height: 56px;
}

.links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}

    .links a {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: var(--text);
        font-weight: 600;
        font-size: 16px;
        line-height: 1;
    }

        .links a:hover {
            color: var(--green);
        }

    .links .ico {
        width: 20px;
        height: 20px;
        display: block;
    }

.right-rail {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    background: #F7FAFC;
    border: 1px solid #E6EAE8;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
}

    .cta-btn:hover {
        background: #F1F5F7;
    }

    .cta-btn .ico {
        border-radius: 999px;
/*        background: var(--green-dark);
*/        display: grid;
        place-items: center;
        padding: 6px;
    }

        .cta-btn .ico img {
            width: 26px;
            height: 26px;
            display: block;
        }

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #F0F4F2;
    border: 1px solid #DDE5DE;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    line-height: 1;
}

    .user-pill .avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
        background: var(--green-dark);
    }

    .user-pill .user-meta {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }

    .user-pill .name {
        font-size: 14px;
    }

    .user-pill .id {
        font-size: 12px;
        color: var(--muted);
    }

    .user-pill .caret {
        width: 14px;
        height: 14px;
        opacity: .75;
    }

.user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #E6EAE8;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    padding: 6px;
    min-width: 220px;
}

    .user-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 10px;
        color: var(--text);
        text-decoration: none;
        font-weight: 600;
    }

        .user-menu a:hover {
            background: #F7FAF9;
        }

    .user-menu .ico {
        width: 18px;
        height: 18px;
    }

/* ============== Hamburger (mobile only) ============== */
.hamburger-btn, .close-btn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.hamburger-btn {
    display: none;
    margin-left: auto;
    align-items: center;
    justify-content: center;
}

    .hamburger-btn img, .close-btn img {
        width: 14px;
        height: 14px;
        display: block;
    }

/* ============== Mobile drawer ============== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.mobile-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.mobile-logo {
    height: 40px;
    width: auto;
}

.mobile-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 16px 20px;
}

/* Loyalty card */
.mobile-card {
    margin-top: 4px;
}

.loyalty-panel {
    background: linear-gradient(100deg, #006A4B 0%, #197A3C 50%, #7AB700 100%);
    color: #fff;
    border-radius: 14px;
    padding: 14px 14px 12px;
    box-shadow: 0 2px 0 rgba(0,0,0,.04);
    width: 100%;
}

.lp-title {
    font-size: 11px;
    letter-spacing: .6px;
    font-weight: 800;
    text-transform: uppercase;
    opacity: .95;
    margin-bottom: 8px;
}

.lp-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 12px;
}

.lp-coin {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    display: grid;
    place-items: center;
}

    .lp-coin img {
        width: 22px;
        height: 22px;
        display: block;
    }

.lp-points {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.lp-label {
    font-size: 11px;
    opacity: .9;
}

.lp-value {
    font-size: 20px;
    font-weight: 800;
    margin-top: 1px;
}

.lp-id {
    font-size: 12px;
    background: rgba(255,255,255,.18);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.lp-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-name {
    font-weight: 700;
}

/* Lists */
.mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E6EAE8;
    overflow: hidden;
}

.mobile-list--lines li {
    border-bottom: 1px solid #EEF2F1;
}

    .mobile-list--lines li:last-child {
        border-bottom: 0;
    }

.mobile-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

    .mobile-list a:hover {
        background: #F7FAF9;
    }

.mobile-list img {
    width: 22px;
    height: 22px;
    display: block;
}

/* Bottom blocks */
.mobile-bottom {
    margin-top: auto;
}

.mobile-bottom-social {
    padding-top: 6px;
}

.mobile-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

    .mobile-social img {
        width: 30px;
        height: 30px;
        display: block;
    }

/* ============== Desktop profile dropdown (Figma card) ============== */
.user-menu.user-menu--profile {
    right: 0;
    top: calc(100% + 10px);
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.um-card {
    width: 360px;
    background: #fff;
    border: 2px solid var(--green-dark);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    padding: 12px;
}

.um-loyalty {
    /*background:linear-gradient(100deg,#0B8A5A 0%, #34B072 55%, #46C67F 100%);*/
    background: linear-gradient(100deg, #006A4B 0%, #197A3C 50%, #7AB700 100%);
    color: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: inset 0 -10px 18px rgba(0,0,0,.08);
}

.um-lp-title {
    font-size: 11px;
    letter-spacing: .6px;
    font-weight: 800;
    text-transform: uppercase;
    opacity: .95;
    margin-bottom: 8px;
}

.um-lp-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 10px;
}

.um-lp-coin {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    display: grid;
    place-items: center;
}

    .um-lp-coin img {
        width: 20px;
        height: 20px;
        display: block;
    }

.um-lp-points {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.um-lp-label {
    font-size: 11px;
    opacity: .9;
}

.um-lp-value {
    font-size: 20px;
    font-weight: 800;
    margin-top: 1px;
}

.um-lp-id {
    font-size: 12px;
    background: rgba(255,255,255,.18);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.um-lp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.um-lp-name {
    font-weight: 700;
}

.um-actions {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E6EAE8;
}

    .um-actions li {
        border-bottom: 1px solid #EEF2F1;
    }

        .um-actions li:last-child {
            border-bottom: 0;
        }

    .um-actions a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        color: var(--text);
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
    }

        .um-actions a:hover {
            background: #F7FAF9;
        }

    .um-actions .ico {
        width: 18px;
        height: 18px;
        display: block;
    }

.um-icon-loyalty,
.mobile-ico-loyalty {
    position: relative;
    width: 20px;
    height: 16px;
    border: 2px solid #6B7280;
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block;
}

.um-icon-loyalty::before,
.mobile-ico-loyalty::before {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    top: 2px;
    height: 2px;
    background: #6B7280;
    border-radius: 2px;
    box-shadow: 0 4px 0 #6B7280, 0 8px 0 #6B7280;
}

.mobile-ico-loyalty {
    flex: 0 0 auto;
    margin-left: 1px;
}

/* ============== Breakpoints ============== */
@media (max-width:1024px) {
    .bar {
        display: none;
    }

    .hamburger-btn {
        display: inline-flex;
    }

    .brand-logo {
        height: 40px;
    }
}

@media (max-width:360px) {
    .mobile-container {
        max-width: 360px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .lp-coin {
        width: 34px;
        height: 34px;
    }

        .lp-coin img {
            width: 20px;
            height: 20px;
        }

    .lp-value {
        font-size: 18px;
    }
}

/* ============== Loyalty card popup ============== */
.loyalty-card-dialog {
    padding: 0 !important;
    overflow: hidden;
}

.lcd-hero {
    background: linear-gradient(100deg, #006A4B 0%, #197A3C 50%, #7AB700 100%);
    color: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: inset 0 -12px 22px rgba(0,0,0,.08);
}

.lcd-title {
    font-size: 12px;
    letter-spacing: .6px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.lcd-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 10px;
}

.lcd-coin {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    display: grid;
    place-items: center;
}

    .lcd-coin img {
        width: 24px;
        height: 24px;
        display: block;
    }

.lcd-points {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.lcd-label {
    font-size: 11px;
    opacity: .92;
}

.lcd-value {
    font-size: 36px;
    font-weight: 800;
    margin-top: 2px;
}

.lcd-id {
    font-size: 14px;
    background: rgba(255,255,255,.18);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
}

.lcd-name {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
}

.lcd-barcode-wrap {
    margin-top: 14px;
    border: 2px solid #E6EAE8;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    text-align: center;
}

#loyaltyBarcodeSvg {
    width: 340px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.lcd-card-number {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 800;
    color: #1F2937;
    letter-spacing: .4px;
}

@media (max-width: 640px) {
    .lcd-value {
        font-size: 30px;
    }

    .lcd-id {
        font-size: 12px;
    }
}
