:root {
    --tx-primary: #000666;
    --tx-primary-2: #1a237e;
    --tx-secondary: #8c33b3;
    --tx-gold: #f8c14a;
    --tx-surface: #fbf8ff;
    --tx-muted: #6b6f85;
    --tx-card: #fff;
    --tx-border: #e4e1ea
}

body {
    font-family: Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
    background: var(--tx-surface);
    color: #1b1b21
}

a {
    text-decoration: none;
}

.tx-gradient {
    background: linear-gradient(135deg,#000666 0%,#4c56af 52%,#8c33b3 100%)
}

.btn-primary {
    --bs-btn-bg: var(--tx-primary);
    --bs-btn-border-color: var(--tx-primary);
    --bs-btn-hover-bg: #1a237e;
    --bs-btn-hover-border-color: #1a237e
}

.btn-gold {
    background: var(--tx-gold);
    border-color: var(--tx-gold);
    color: #231b00;
    font-weight: 700
}

.card {
    border: 1px solid var(--tx-border);
    border-radius: 1.25rem;
    box-shadow: 0 12px 36px rgba(0,6,102,.07)
}

.tx-kpi {
    transition: .2s
}

    .tx-kpi:hover {
        transform: translateY(-3px)
    }

.app-shell {
    display: flex;
    min-height: 100vh
}

.sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid var(--tx-border);
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1rem
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#000666,#8c33b3);
    color: #fff
}

.nav-pills .nav-link {
    color: #454652;
    border-radius: 1rem;
    padding: .75rem 1rem;
    font-weight: 600
}

    .nav-pills .nav-link.active, .nav-pills .nav-link:hover {
        background: #e0e0ff;
        color: #000666
    }

.app-main {
    flex: 1;
    min-width: 0
}

.topbar {
    background: rgba(251,248,255,.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--tx-border);
    position: sticky;
    top: 0;
    z-index: 10
}

.page-wrap {
    padding: 1.5rem
}

.hero {
    background: radial-gradient(circle at 80% 20%,rgba(217,125,255,.22),transparent 30%),linear-gradient(180deg,#fff,#fbf8ff)
}

.hero-title {
    font-size: clamp(2.4rem,5vw,5rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.05em
}

.text-gradient {
    background: linear-gradient(90deg,#000666,#8c33b3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.badge-tier {
    border-radius: 999px;
    padding: .45rem .75rem
}

.table > :not(caption) > * > * {
    padding: 1rem
}

.progress {
    height: .75rem;
    border-radius: 999px
}

.progress-bar {
    background: linear-gradient(90deg,#000666,#8c33b3)
}

.mobile-bottom-nav {
    display: none
}

@media(max-width:991.98px) {
    .app-shell {
        display: block
    }

    .sidebar {
        display: none
    }

    .page-wrap {
        padding: 1rem;
        padding-bottom: 5.5rem
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--tx-border);
        z-index: 1000;
        justify-content: space-around;
        padding: .55rem
    }

        .mobile-bottom-nav a {
            font-size: .78rem;
            text-decoration: none;
            color: #454652;
            text-align: center
        }

        .mobile-bottom-nav i {
            display: block;
            font-size: 1.25rem
        }

    .hero-title {
        font-size: 2.4rem
    }
}

.mockup {
    border: 1px solid var(--tx-border);
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0,6,102,.16);
    overflow: hidden
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0ff;
    color: #000666
}

.coupon-card {
    background: linear-gradient(135deg,#fff,#f8d8ff);
    border: 1px dashed #8c33b3
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e0e0ff;
    color: #000666;
    font-weight: 800
}

.qr-placeholder {
    width: 130px;
    height: 130px;
    background: repeating-linear-gradient(45deg,#111 0 6px,#fff 6px 12px);
    border: 8px solid #fff;
    box-shadow: 0 0 0 1px var(--tx-border);
    border-radius: .75rem
}

.login-card {
    max-width: 460px;
    margin: auto
}

.empty-state {
    border: 2px dashed var(--tx-border);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    color: var(--tx-muted)
}

.btn-star {
    background: linear-gradient(135deg,var(--tx-primary),var(--tx-secondary));
    border: 0;
    color: #fff;
    font-weight: 700
}

    .btn-star:hover {
        color: #fff;
        filter: brightness(1.05)
    }

.auth-wrap {
    background: radial-gradient(circle at 15% 10%,rgba(248,193,74,.20),transparent 32%),radial-gradient(circle at 85% 15%,rgba(140,51,179,.20),transparent 30%)
}

.ts-card {
    background: #fff;
    border: 1px solid var(--tx-border);
    border-radius: 1.5rem;
    box-shadow: 0 22px 65px rgba(0,6,102,.12)
}

/* Customer portal v3 */
.customer-portal-shell {
    min-height: 100vh;
    background: radial-gradient(circle at 12% 8%,rgba(248,193,74,.20),transparent 30%),radial-gradient(circle at 85% 12%,rgba(140,51,179,.16),transparent 28%),linear-gradient(180deg,#fff,#fbf8ff)
}

.customer-topbar {
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,.88) !important
}

.portal-hero {
    border: 0
}

.portal-points {
    font-size: clamp(2.8rem,6vw,5.2rem);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.06em
}

.membership-card {
    max-width: 320px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 1.75rem;
    background: rgba(255,255,255,.13);
    box-shadow: 0 25px 70px rgba(0,0,0,.20);
    backdrop-filter: blur(16px)
}

.qr-box {
    width: 128px;
    height: 128px;
    border-radius: 1rem;
    border: 8px solid #fff;
    background: repeating-linear-gradient(45deg,#111 0 6px,#fff 6px 12px);
    box-shadow: 0 16px 40px rgba(0,0,0,.18)
}

.portal-stat h3 {
    font-weight: 900;
    letter-spacing: -.04em
}

.reward-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e0e0ff;
    color: #000666;
    font-size: 1.35rem
}

.reward-card {
    transition: .2s
}

    .reward-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 48px rgba(0,6,102,.12)
    }

.reward-locked {
    opacity: .68
}

.min-h-42 {
    min-height: 42px
}

.coupon-ticket {
    background: linear-gradient(135deg,#fff 0%,#fff8dd 54%,#f8d8ff 100%);
    border: 1px dashed #8c33b3
}

.letter-space {
    letter-spacing: .08em
}

.customer-bottom-nav {
    display: none
}

@media(max-width:767.98px) {
    .customer-bottom-nav {
        position: fixed;
        display: flex;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        background: #fff;
        border-top: 1px solid var(--tx-border);
        justify-content: space-around;
        padding: .55rem .25rem
    }

        .customer-bottom-nav a {
            text-decoration: none;
            color: #454652;
            text-align: center;
            font-size: .76rem
        }

        .customer-bottom-nav i {
            display: block;
            font-size: 1.25rem
        }

    .customer-portal-shell .container {
        padding-bottom: 5.5rem
    }

    .portal-hero .card-body {
        padding: 1.5rem !important
    }

    .membership-card {
        max-width: 100%
    }
}
