@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    --crm-blue: #0d537f;
    --crm-blue-dark: #083a5b;
    --crm-blue-soft: #6cb0d6;
    --crm-accent: #1b95e5;
    --crm-bg: #eaf2f8;
    --crm-surface: #ffffff;
    --crm-border: #d8e3ed;
    --crm-text: #11364f;
    --crm-muted: #5f7486;
    --crm-radius: 14px;
    --crm-shadow: 0 8px 18px rgba(13, 57, 88, 0.1);
    --crm-font-size-sm: 0.84rem;
    --crm-font-size-md: 0.96rem;
    --crm-font-size-lg: 1.08rem;
    --reward-cover-aspect-ratio: 1 / 1;
}

html,
body {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--crm-bg);
    color: var(--crm-text);
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: var(--crm-font-size-md);
    line-height: 1.45;
}

.crm-login-body {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(180deg, #eaf3fb 0%, #f8fbff 100%);
}

.login-card {
    border-radius: 18px;
}

.login-logo-wrap {
    margin-bottom: 18px;
    text-align: center;
}

.login-logo-img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 72%;
    width: 190px;
}

.crm-body {
    max-width: 680px;
    margin: 0 auto;
    background:
        radial-gradient(circle at top right, rgba(142, 193, 226, 0.4), transparent 34%),
        linear-gradient(180deg, #ebf2f8 0%, #e4edf5 100%);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    padding-bottom: 84px;
}

.crm-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--crm-border);
    z-index: 100;
}

.header-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--crm-blue-dark);
    letter-spacing: 0.4px;
}

.header-close {
    font-size: 1.35rem;
    color: var(--crm-blue-dark);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.header-close:hover {
    background: #f0f5fa;
    color: var(--crm-blue-dark);
}

.header-spacer {
    width: 40px;
    height: 40px;
    display: inline-block;
}

.dashboard-header-title {
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.hero-section {
    --dashboard-hero-image: none;
    background-image:
        linear-gradient(180deg, rgba(116, 181, 219, 0.62) 0%, rgba(152, 202, 230, 0.38) 42%, rgba(217, 235, 247, 0.82) 100%),
        var(--dashboard-hero-image),
        linear-gradient(180deg, #74b5db 0%, #98cae6 40%, #d9ebf7 100%);
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    padding: 14px 0 18px;
}

.member-wrapper {
    --tier-shell-start: #1a5e8c;
    --tier-shell-end: #70b5d8;
    --tier-card-bg-start: #f3f8fc;
    --tier-card-bg-end: #eef5fb;
    --tier-card-bg-image: none;
    --tier-card-bg-overlay: none;
    --tier-strip-bg: rgba(5, 42, 66, 0.42);
    --tier-icon-bg: #ffffff;
    --tier-icon-color: var(--crm-blue);
    --tier-member-code-color: #0b4f7e;
    --tier-point-label-color: #7c8f9f;
    --tier-point-value-color: #132639;
    border-radius: 24px;
    padding: 12px;
    background: linear-gradient(145deg, var(--tier-shell-start), var(--tier-shell-end));
    box-shadow: 0 12px 30px rgba(3, 39, 61, 0.14);
}

.member-card {
    aspect-ratio: 3 / 2;
    min-height: 0;
    perspective: 1200px;
    position: relative;
}

.member-card-inner {
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    width: 100%;
}

.member-card.is-flipped .member-card-inner {
    transform: rotateY(180deg);
}

.member-card-face {
    background-image:
        var(--tier-card-bg-overlay),
        var(--tier-card-bg-image),
        linear-gradient(90deg, var(--tier-card-bg-start) 0%, var(--tier-card-bg-end) 100%);
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    inset: 0;
    padding: 16px;
    pointer-events: none;
    position: absolute;
}

.member-card-front {
    pointer-events: auto;
    transform: rotateY(0deg);
}

.member-card.is-flipped .member-card-front {
    pointer-events: none;
}

.member-card-back {
    color: #0b2235;
    transform: rotateY(180deg);
}

.member-card.is-flipped .member-card-back {
    pointer-events: auto;
}

.member-card-back-top {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.member-card-back-top-no-logo {
    justify-content: flex-end;
}

.member-card .member-meta {
    margin-top: auto !important;
    position: relative;
    z-index: 2;
}

.member-card-front > .d-flex:first-child {
    position: relative;
    z-index: 2;
}

.member-card-code-panel {
    align-items: center;
    display: grid;
    flex: 1;
    gap: 12px;
    grid-template-columns: minmax(98px, 0.9fr) minmax(150px, 1.1fr);
    min-height: 0;
    padding: 4px 0 0;
}

.member-card-qr-box,
.member-card-barcode-box {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(11, 79, 126, 0.12);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    min-height: 0;
}

.member-card-qr-box {
    aspect-ratio: 1 / 1;
    padding: 6px;
}

.member-card-qr-canvas {
    display: block;
    height: min(100%, 142px);
    max-height: 142px;
    max-width: 142px;
    width: min(100%, 142px);
}

.member-card-barcode-box {
    flex-direction: column;
    gap: 4px;
    min-height: 112px;
    padding: 8px 10px;
}

.member-card-barcode {
    display: block;
    height: 62px;
    max-width: 100%;
    width: 100%;
}

.member-card-code-text {
    color: #0b4f7e;
    font-size: clamp(0.98rem, 3.6vw, 1.28rem);
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-align: center;
}

.member-card-code-error {
    background: rgba(255, 243, 205, 0.92);
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 10px;
    color: #6f4f00;
    font-size: 0.78rem;
    margin-top: 4px;
    padding: 6px 8px;
}

.brand-logo {
    color: var(--brand-logo-color, #00549B);
    display: inline-flex;
    align-items: center;
    min-height: 42px;
}

.brand-logo-img {
    color: inherit;
    display: block;
    width: 190px;
    max-width: 52vw;
    height: auto;
}

.brand-logo-fallback {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
}

.avatar-img,
.qr-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dceaf5;
    color: var(--crm-blue);
    border: none;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    font-size: x-large;
}

.qr-icon:hover,
.qr-icon:focus {
    background: #cfe2f2;
    color: var(--crm-blue-dark);
}

.member-name {
    margin: 0;
    color: #0d3f63;
    font-size: clamp(1rem, 4.6vw, 1.45rem);
    font-weight: 700;
    left: 50%;
    line-height: 1.2;
    max-width: calc(100% - 32px);
    overflow-wrap: anywhere;
    pointer-events: none;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    z-index: 1;
}

.member-code {
    color: var(--tier-member-code-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(1rem, 4.1vw, 1.35rem);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.member-code:hover {
    color: var(--tier-member-code-color);
}

.point-label {
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    color: var(--tier-point-label-color);
}

.point-value {
    color: var(--tier-point-value-color);
    font-size: 2.85rem;
    font-weight: 700;
    line-height: 1;
}

.tier-strip {
    color: #ffffff;
    display: flex;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--tier-strip-bg);
    padding: 10px 12px;
    font-size: 0.95rem;
}

.tier-strip:hover,
.tier-strip:focus {
    color: #ffffff;
}

.tier-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tier-icon-bg);
    color: var(--tier-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tier-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.tier-progress .progress-bar {
    border-radius: 999px;
    background: #22a0ff;
}

.quick-action {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.045);
    background-clip: padding-box;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(5px) brightness(1.08);
    -webkit-backdrop-filter: blur(5px) brightness(1.08);
    border-radius: 18px;
    padding: 16px 8px 14px;
    color: #0b3f63;
    font-weight: 700;
    min-height: 138px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow:
        0 6px 18px rgba(7, 49, 78, 0.024),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -10px 16px rgba(9, 69, 103, 0.006);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    transform: translateZ(0);
    will-change: backdrop-filter, transform;
}

.quick-action::before {
    content: none;
}

.quick-action::after {
    content: none;
}

.quick-action:hover {
    transform: translateY(-3px) translateZ(0);
    background: rgba(255, 255, 255, 0.075);
    box-shadow:
        0 9px 22px rgba(7, 49, 78, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -10px 16px rgba(9, 69, 103, 0.01);
    border-color: rgba(255, 255, 255, 0.18);
    color: #0b3f63;
}

.quick-action:focus-visible {
    outline: 2px solid #1286d1;
    outline-offset: 2px;
}

.quick-action-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #0d537f;
    box-shadow:
        0 6px 14px rgba(7, 49, 78, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.36),
        inset 0 -8px 14px rgba(11, 79, 126, 0.025);
    position: relative;
    z-index: 1;
}

.quick-action-icon i {
    font-size: 1.55rem;
}

.quick-action-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quick-action-icon-custom {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
}

.quick-action-title {
    display: block;
    font-size: 0.96rem;
    letter-spacing: 0.2px;
    text-align: center;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.quick-action-subtitle {
    display: block;
    font-size: 0.66rem;
    color: #628095;
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
}

.quick-action-coupons .quick-action-icon {
    background: rgba(255, 255, 255, 0.12);
}

.quick-action-history .quick-action-icon {
    background: rgba(255, 255, 255, 0.12);
}

.quick-action-coupons .quick-action-icon-custom,
.quick-action-history .quick-action-icon-custom {
    background: transparent;
    box-shadow: none;
}

.promo-card {
    min-height: 170px;
    border-radius: 18px;
    padding: 18px;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--crm-shadow);
}

.promo-card h3 {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.promo-card p {
    font-size: 1.1rem;
    margin: 0 0 10px;
}

.promo-image-button {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    padding: 0;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #d9ebf7;
    box-shadow: var(--crm-shadow);
    text-align: left;
}

.promo-image-button::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(4, 28, 48, 0), rgba(4, 28, 48, 0.42));
    pointer-events: none;
}

.promo-image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-image-button:focus-visible {
    outline: 2px solid #1286d1;
    outline-offset: 3px;
}

.promo-read-pill {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 24px);
    min-height: 34px;
    border-radius: 999px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.94);
    color: #0b4f7e;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
    box-shadow: 0 8px 18px rgba(5, 35, 58, 0.2);
}

.promotion-article-modal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(4, 33, 54, 0.22);
}

.promotion-article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.promotion-article-body {
    padding: 20px;
}

.promotion-article-subtitle {
    margin: 8px 0 0;
    color: #506b80;
    font-size: 0.98rem;
    line-height: 1.4;
}

.promotion-article-content {
    margin-top: 0;
    color: #213d53;
    font-size: 0.96rem;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.promotion-article-content p,
.promotion-article-content ul,
.promotion-article-content ol,
.promotion-article-content blockquote {
    margin-bottom: 0.9rem;
}

.promotion-article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 14px 0;
}

.promotion-article-content a {
    color: #0d537f;
    font-weight: 700;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: #8698ab;
}

.carousel-indicators .active {
    background-color: #0b4f7e;
}

.section-title {
    font-size: 1.72rem;
    letter-spacing: 0.4px;
    color: #0a3658;
    font-weight: 700;
}

.reward-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.reward-card {
    border-radius: 16px;
    background: var(--crm-surface);
    overflow: hidden;
    box-shadow: var(--crm-shadow);
    border: 1px solid var(--crm-border);
    min-width: 0;
}

.reward-card-link {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    min-height: 118px;
    padding: 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.reward-card-link:hover,
.reward-card-link:focus {
    color: inherit;
    transform: translateY(-1px);
}

.reward-card img {
    width: 100%;
    height: 118px;
    align-self: start;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.reward-body {
    padding: 10px 12px 10px 0;
    min-width: 0;
}

.reward-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.reward-body h5 {
    margin: 0;
    color: #062a46;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.45em;
}

.reward-featured-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    background: #fff1d9;
    color: #8c5c04;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.reward-summary {
    margin: 0 0 8px;
    font-size: 0.78rem;
    color: #4d6477;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1em;
}

.reward-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.reward-point-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: #e4f1fb;
    color: #0b4f7d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.reward-open-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0a4b76;
    letter-spacing: 0.2px;
}

.reward-list-more-wrap {
    display: flex;
    justify-content: center;
}

.reward-list-more-btn {
    min-width: 190px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.25px;
    padding: 9px 18px;
}

@media (max-width: 420px) {
    .reward-card-link {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 10px;
        min-height: 108px;
    }

    .reward-card img {
        height: 108px;
    }

    .reward-body {
        padding: 9px 10px 8px 0;
    }

    .reward-body h5 {
        font-size: 0.9rem;
    }

    .reward-list-more-btn {
        min-width: 170px;
        padding: 8px 16px;
        font-size: 0.86rem;
    }

}

.bottom-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--crm-border);
    box-shadow: 0 10px 24px rgba(8, 46, 72, 0.14);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: hidden;
    z-index: 200;
    padding: 0px 15px 10px;
}

.menu-item {
    padding: 8px 6px 10px;
    color: #93a1af;
    font-size: 0.72rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
}

.menu-item i {
    font-size: 1.35rem;
}

.menu-item.active {
    color: var(--crm-blue);
    font-weight: 700;
}

.menu-item:visited {
    color: #93a1af;
}

.menu-item.active:visited {
    color: #0a4a77;
}

.content-page {
    padding: 16px 14px 92px;
}

.profile-body {
    background: #eaf2f8;
}

.profile-body .bottom-menu {
    box-shadow: 0 -2px 10px rgba(8, 46, 72, 0.08);
}

.profile-page .page-panel {
    box-shadow: 0 2px 8px rgba(13, 57, 88, 0.06);
}

.page-header-title {
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--crm-blue-dark);
}

.page-panel {
    background: var(--crm-surface);
    border-radius: var(--crm-radius);
    padding: 14px;
    box-shadow: var(--crm-shadow);
    border: 1px solid var(--crm-border);
}

.birth-date-select-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.birth-date-select-grid .form-select {
    min-width: 0;
}

.page-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-list {
    display: grid;
    gap: 10px;
}

.page-card {
    background: var(--crm-surface);
    border-radius: var(--crm-radius);
    overflow: hidden;
    box-shadow: var(--crm-shadow);
    border: 1px solid var(--crm-border);
}

.reward-page-card img {
    width: 100%;
    height: auto;
    aspect-ratio: var(--reward-cover-aspect-ratio);
    object-fit: cover;
    display: block;
}

.reward-page-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.reward-page-card-link:hover,
.reward-page-card-link:focus {
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.page-card-body {
    padding: 12px;
}

.page-card-body h2 {
    font-size: var(--crm-font-size-lg);
    margin: 0 0 6px;
    color: #0a3556;
}

.reward-tier-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 0.78rem;
}

.reward-tier-label {
    color: #6d8396;
}

.reward-tier-value {
    color: #21445d;
    font-weight: 700;
}

.page-card-body p {
    color: #465a6c;
    font-size: var(--crm-font-size-sm);
    min-height: 46px;
}

.point-text {
    color: #0a4a77;
}

.reward-page-open-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #0a4b76;
    letter-spacing: 0.2px;
}

.reward-page-list {
    display: grid;
    gap: 10px;
}

.reward-list-card {
    background: #ffffff;
    border: 1px solid #edf2f6;
    border-radius: 8px;
    box-shadow: 0 5px 14px rgba(11, 48, 75, 0.07);
    min-width: 0;
    overflow: hidden;
}

.reward-list-card-link {
    color: inherit;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 118px;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.reward-list-card-link:hover,
.reward-list-card-link:focus {
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.reward-list-media {
    background: #e8f0f6;
    display: block;
    min-height: 118px;
}

.reward-list-media img {
    display: block;
    height: 100%;
    min-height: 118px;
    object-fit: cover;
    width: 100%;
}

.reward-list-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 11px 14px 9px 12px;
}

.reward-list-title {
    color: #1f4b68;
    display: -webkit-box;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.32;
    margin-bottom: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.reward-list-status {
    align-items: center;
    color: #343a40;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 5px;
    line-height: 1.25;
    margin-bottom: 4px;
}

.reward-list-left,
.reward-list-countdown {
    align-items: center;
    display: inline-flex;
    gap: 3px;
    min-width: 0;
}

.reward-list-left i {
    font-size: 0.76rem;
}

.reward-list-separator {
    color: #ed332b;
    font-weight: 700;
}

.reward-list-blocked {
    color: #fba3a0;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
}

.reward-list-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.reward-list-points {
    align-items: center;
    color: #788695;
    display: inline-flex;
    gap: 5px;
    min-width: 0;
}

.reward-list-points strong {
    color: #526d83;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1;
}

.reward-list-point-icon {
    align-items: center;
    background: #eef7ff;
    border: 1.5px solid #2d6289;
    border-radius: 50%;
    color: #2d6289;
    display: inline-flex;
    flex: 0 0 auto;
    height: 18px;
    justify-content: center;
    width: 18px;
}

.reward-list-point-icon i {
    font-size: 0.58rem;
    line-height: 1;
}

.reward-list-arrow {
    align-items: center;
    color: #113f5f;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.28rem;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.reward-list-card.is-limited .reward-list-media img {
    filter: saturate(0.9);
}

@media (max-width: 420px) {
    .reward-list-card-link {
        grid-template-columns: 108px minmax(0, 1fr);
        min-height: 108px;
    }

    .reward-list-media,
    .reward-list-media img {
        min-height: 108px;
    }

    .reward-list-content {
        padding: 9px 10px 8px;
    }

    .reward-list-title {
        font-size: 0.84rem;
        margin-bottom: 6px;
    }

    .reward-list-status {
        font-size: 0.66rem;
        gap: 4px;
    }

    .reward-list-blocked {
        font-size: 0.64rem;
    }

    .reward-list-points {
        gap: 5px;
    }

    .reward-list-points strong {
        font-size: 1rem;
    }

    .reward-list-point-icon {
        height: 17px;
        width: 17px;
    }

    .reward-list-arrow {
        font-size: 1.18rem;
        width: 24px;
    }
}

.stat-pill {
    background: #e6f2fb;
    color: #0c4f7d;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.liff-head-panel {
    background:
        radial-gradient(circle at top right, rgba(132, 191, 228, 0.3), transparent 50%),
        linear-gradient(165deg, #f7fbff 0%, #edf5fc 100%);
    border-color: #cfdfed;
}

.liff-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.liff-head-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.liff-head-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #0d537f;
    box-shadow: none;
    flex-shrink: 0;
}

.liff-head-icon i {
    font-size: 1rem;
}

.liff-head-icon img,
.reward-catalog-icon img {
    display: block;
    height: 24px;
    object-fit: contain;
    width: 24px;
}

.liff-head-title {
    color: #0b3f66;
    letter-spacing: 0.2px;
}

.liff-head-subtitle {
    color: #5d7385;
    font-size: 0.82rem;
}

.liff-head-chip {
    background: #dceefc;
    color: #0b4f7d;
}

.liff-head-points {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #5d7385;
}

.reward-catalog-panel {
    background:
        radial-gradient(circle at top right, rgba(126, 183, 222, 0.3), transparent 48%),
        linear-gradient(165deg, #f7fbff 0%, #edf4fb 100%);
    border-color: #cddfee;
}

.reward-catalog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.reward-catalog-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.reward-catalog-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #0d537f;
    box-shadow: none;
    flex-shrink: 0;
}

.reward-catalog-icon i {
    font-size: 1rem;
}

.reward-catalog-title {
    color: #0b3f66;
    letter-spacing: 0.2px;
}

.reward-catalog-subtitle {
    color: #5d7385;
    font-size: 0.82rem;
}

.reward-catalog-pill {
    background: #dceefc;
    color: #0b4f7d;
}

.reward-catalog-points {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #5d7385;
}

.reward-sort-panel {
    padding-top: 10px;
    padding-bottom: 10px;
    border-color: #d5e3ef;
    background: #f8fbfe;
}

.reward-sort-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
}

.reward-sort-label-inline {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0e4267;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    white-space: nowrap;
}

.reward-sort-label-inline i {
    font-size: 0.95rem;
    color: #1b6ea5;
}

.reward-sort-select {
    margin-left: auto;
    width: auto;
    min-width: 188px;
    max-width: 60vw;
    border-radius: 10px;
    border: 1px solid #bfd4e5;
    background: #ffffff;
    color: #0e4267;
    font-weight: 600;
    padding: 0.4rem 2rem 0.4rem 0.7rem;
    box-shadow: 0 2px 6px rgba(15, 67, 103, 0.08);
}

.reward-sort-select:focus {
    border-color: #309ce8;
    box-shadow: 0 0 0 0.2rem rgba(48, 156, 232, 0.18);
}

.reward-sort-apply {
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    color: #5a7084;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: inline-block;
}

.item-title {
    font-size: var(--crm-font-size-lg);
    color: #103450;
    font-weight: 700;
}

.item-subtitle {
    font-size: var(--crm-font-size-sm);
    color: #5f7486;
}

.item-text {
    font-size: var(--crm-font-size-sm);
    color: #476072;
}

.coupon-item {
    border-left: 4px solid var(--crm-blue);
}

.coupon-item-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    padding-right: 34px;
}

.coupon-item-link:hover {
    color: inherit;
    background: #f7fbff;
}

.coupon-item-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6f8394;
    font-size: 1.05rem;
}

.coupon-page-list {
    display: grid;
    gap: 10px;
}

.coupon-list-card {
    background: #ffffff;
    border: 1px solid #edf2f6;
    border-radius: 8px;
    box-shadow: 0 5px 14px rgba(11, 48, 75, 0.07);
    min-width: 0;
    overflow: hidden;
}

.coupon-list-card-link {
    color: inherit;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 118px;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.coupon-list-card-link:hover,
.coupon-list-card-link:focus {
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.coupon-list-media {
    background: #e8f0f6;
    display: block;
    min-height: 118px;
}

.coupon-list-media img {
    display: block;
    height: 100%;
    min-height: 118px;
    object-fit: cover;
    width: 100%;
}

.coupon-list-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 11px 14px 9px 12px;
}

.coupon-list-title-row {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 6px;
    min-width: 0;
}

.coupon-list-title {
    color: #1f4b68;
    display: -webkit-box;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.32;
    min-width: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.coupon-list-meta {
    color: #6a7a88;
    display: flex;
    flex-direction: column;
    font-size: 0.68rem;
    gap: 2px;
    line-height: 1.25;
    margin-bottom: 5px;
}

.coupon-list-meta span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.coupon-list-footer {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: auto;
}

.coupon-list-points {
    align-items: center;
    color: #788695;
    display: inline-flex;
    gap: 6px;
    min-width: 0;
}

.coupon-list-points > i {
    color: #2d6289;
    font-size: 0.95rem;
}

.coupon-list-points strong {
    color: #526d83;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1;
}

.coupon-list-arrow {
    align-items: center;
    color: #113f5f;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.28rem;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.status-badge {
    font-size: 0.75rem;
    border-radius: 999px;
    padding: 4px 9px;
    font-weight: 700;
    flex: 0 0 auto;
}

.status-active {
    background: #d6f7e9;
    color: #087648;
}

.status-used {
    background: #eceff3;
    color: #667585;
}

.status-expired {
    background: #ffe8e8;
    color: #b02d2d;
}

@media (max-width: 420px) {
    .coupon-list-card-link {
        grid-template-columns: 108px minmax(0, 1fr);
        min-height: 108px;
    }

    .coupon-list-media,
    .coupon-list-media img {
        min-height: 108px;
    }

    .coupon-list-content {
        padding: 9px 10px 8px;
    }

    .coupon-list-title {
        font-size: 0.84rem;
    }

    .coupon-list-meta {
        font-size: 0.62rem;
    }

    .coupon-list-points strong {
        font-size: 0.96rem;
    }

    .coupon-list-arrow {
        font-size: 1.18rem;
        width: 24px;
    }

    .coupon-list-title-row .status-badge {
        font-size: 0.62rem;
        padding: 3px 7px;
    }
}

.history-item {
    /* border-left: 4px solid #7eb7de; */
}

.profile-summary {
    background: linear-gradient(145deg, var(--profile-tier-bg-start, #0b4f7e), var(--profile-tier-bg-end, #1b6da0));
    border-color: var(--profile-tier-border, rgba(255, 255, 255, 0.34));
    color: #fff;
    box-shadow: 0 10px 24px rgba(7, 45, 72, 0.2);
}

.profile-summary .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.profile-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    background: rgba(255, 255, 255, 0.2);
}

.line-account-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0 12px;
    border-bottom: 1px solid #e6edf4;
}

.line-account-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef5fb;
    color: #6b8193;
}

.line-account-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.line-account-avatar-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.line-account-avatar-wrap.is-fallback .line-account-avatar {
    display: none;
}

.line-account-avatar-wrap.is-fallback .line-account-avatar-fallback {
    display: flex;
}

.line-account-name {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.profile-info-card {
    display: grid;
    gap: 14px;
}

.profile-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 2px;
}

.profile-info-section {
    display: grid;
    gap: 8px;
}

.profile-info-section-title {
    align-items: center;
    color: #0b4f7e;
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.profile-info-list {
    background: #f8fbfe;
    border: 1px solid #dce8f2;
    border-radius: 12px;
    overflow: hidden;
}

.profile-info-row {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 11px 12px;
}

.profile-info-row + .profile-info-row {
    border-top: 1px solid #e4edf5;
}

.profile-info-label {
    color: #5f7486;
    flex: 0 0 auto;
    font-size: 0.84rem;
    padding-top: 1px;
}

.profile-info-value,
.profile-info-value-wrap {
    color: #12344f;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.profile-info-value-wrap {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-info-note {
    align-items: flex-start;
    background: #eef6fc;
    border: 1px solid #d6e7f4;
    border-radius: 12px;
    color: #587084;
    display: flex;
    font-size: 0.8rem;
    gap: 8px;
    padding: 10px 12px;
}

.profile-info-note i {
    color: #0d537f;
    flex: 0 0 auto;
    margin-top: 1px;
}

.profile-credit {
    display: flex;
    justify-content: center;
    margin: 18px 0 2px;
    padding: 0 8px;
}

.profile-credit-link {
    align-items: center;
    color: #6a7f91;
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 0.74rem;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.profile-credit-link:hover,
.profile-credit-link:focus {
    color: #0d537f;
    text-decoration: none;
}

.profile-credit-logo {
    display: block;
    height: 18px;
    object-fit: contain;
    width: 18px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.stat-box {
    background: var(--profile-tier-stat-bg, rgba(255, 255, 255, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e6edf4;
}

.info-row:last-child {
    border-bottom: none;
}

.page-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.page-link-item:hover {
    background: #f8fbff;
}

.page-link-item i {
    color: #6b8193;
}

.tier-item {
    border-left: 4px solid var(--tier-level-accent, #d0e2f1);
    background: var(--tier-level-bg, #ffffff);
}

.tier-item-active {
    border-left-color: var(--tier-level-accent, #0b4f7e);
    background: var(--tier-level-bg-active, #eef6fc);
}

.tier-list-detail-panel {
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
}

.tier-list-detail-head {
    background: #063f63;
    color: #ffffff;
    padding: 24px 28px 22px;
}

.tier-list-detail-title {
    font-size: 1.26rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 12px;
}

.tier-list-progress {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.tier-list-progress span {
    background: #ffffff;
    display: block;
    height: 100%;
}

.tier-list-tabs {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    text-align: center;
}

.tier-list-tab {
    align-items: center;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.62);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.1;
    min-width: 0;
    min-height: 24px;
    overflow: hidden;
    padding: 4px 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tier-list-tab-active {
    background: #ffffff;
    color: #31536b;
}

.tier-detail-row {
    align-items: center;
    background: #ffffff;
    display: grid;
    gap: 22px;
    grid-template-columns: 142px minmax(0, 1fr);
    padding: 28px;
}

.tier-detail-row:nth-of-type(even) {
    background: #e5e5e5;
}

.tier-detail-row-current {
    box-shadow: inset 5px 0 0 var(--tier-row-accent, #0b4f7e);
}

.tier-mini-card {
    aspect-ratio: 16 / 9;
    background-color: var(--tier-mini-bg-start, #f3f8fc);
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.08)),
        var(--tier-mini-image, none),
        linear-gradient(135deg, var(--tier-mini-bg-start, #f3f8fc), var(--tier-mini-bg-end, #dce8f2));
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: cover, cover, cover;
    border: 1px solid rgba(7, 43, 68, 0.18);
    border-radius: 4px;
    color: var(--tier-mini-text, #0a3556);
    min-width: 0;
    overflow: hidden;
    padding: 9px;
    position: relative;
    width: 100%;
}

.tier-mini-card::after {
    background: rgba(255, 255, 255, 0.2);
    bottom: 0;
    content: "";
    position: absolute;
    right: 15px;
    top: 0;
    transform: skewX(-18deg);
    width: 34px;
}

.tier-mini-card-brand,
.tier-mini-card-center,
.tier-mini-card-footer,
.tier-mini-card-icon {
    position: relative;
    z-index: 1;
}

.tier-mini-card-brand {
    font-size: 0.42rem;
    font-weight: 800;
    letter-spacing: 0;
}

.tier-mini-card-icon {
    align-items: center;
    display: inline-flex;
    font-size: 0.72rem;
    justify-content: center;
    position: absolute;
    right: 8px;
    top: 7px;
}

.tier-mini-card-center {
    left: 50%;
    line-height: 1.05;
    max-width: 76%;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
}

.tier-mini-card-center span {
    display: block;
    font-size: 0.42rem;
    font-weight: 700;
    opacity: 0.75;
}

.tier-mini-card-center strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tier-mini-card-footer {
    align-items: end;
    bottom: 7px;
    display: flex;
    justify-content: space-between;
    left: 9px;
    position: absolute;
    right: 9px;
}

.tier-mini-card-footer span {
    font-size: 0.38rem;
    font-weight: 800;
    letter-spacing: 0;
    max-width: 72%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tier-mini-card-footer strong {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.tier-detail-copy {
    min-width: 0;
}

.tier-detail-copy h2 {
    color: #0a4269;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 6px;
}

.tier-detail-copy p {
    color: #5f6368;
    font-size: 0.88rem;
    line-height: 1.3;
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 420px) {
    .tier-list-detail-head {
        padding: 20px 22px 18px;
    }

    .tier-list-detail-title {
        font-size: 1.1rem;
    }

    .tier-list-tabs {
        gap: 5px;
    }

    .tier-list-tab {
        font-size: 0.7rem;
        min-height: 22px;
        padding: 4px 6px;
    }

    .tier-detail-row {
        gap: 14px;
        grid-template-columns: 112px minmax(0, 1fr);
        padding: 22px 16px;
    }

    .tier-detail-copy h2 {
        font-size: 0.96rem;
    }

    .tier-detail-copy p {
        font-size: 0.78rem;
    }

    .tier-mini-card {
        padding: 7px;
    }

    .tier-mini-card-brand,
    .tier-mini-card-center span {
        font-size: 0.34rem;
    }

    .tier-mini-card-center strong {
        font-size: 0.7rem;
    }

    .tier-mini-card-footer span {
        font-size: 0.32rem;
    }

    .tier-mini-card-footer strong {
        font-size: 0.66rem;
    }
}

.reward-detail-body {
    background:
        radial-gradient(circle at top right, rgba(142, 193, 226, 0.35), transparent 34%),
        linear-gradient(180deg, #ebf2f8 0%, #e4edf5 100%) !important;
}

.reward-detail-body .crm-header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--crm-border);
}

.reward-detail-body .header-title,
.reward-detail-body .header-close {
    color: var(--crm-blue-dark);
}

.reward-detail-page {
    color: var(--crm-text);
    padding-bottom: 225px;
}

.reward-detail-page .page-panel {
    background: var(--crm-surface);
    border-color: var(--crm-border);
    color: var(--crm-text);
    border-radius: 18px;
}

.reward-detail-page .alert-danger {
    background: #3a1f27;
    border-color: #5c2b37;
    color: #ffd7de;
}

.reward-detail-hero {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 0;
    aspect-ratio: var(--reward-cover-aspect-ratio);
    border: 1px solid var(--crm-border);
}

.reward-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reward-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(7, 27, 44, 0.08) 48%, rgba(5, 18, 31, 0.24) 100%),
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.16), transparent 34%);
}

.reward-detail-hero-content {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
}

.reward-detail-hero-content h1 {
    margin: 0;
    font-size: 2.1rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    display: inline-block;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(8, 34, 55, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(2px);
}

.reward-detail-meta-card {
    display: grid;
    gap: 12px;
    background: var(--crm-surface) !important;
    border-color: var(--crm-border) !important;
}

.reward-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e6edf4;
    padding-bottom: 10px;
}

.reward-meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reward-meta-label {
    color: var(--crm-muted);
}

.reward-meta-value {
    text-align: right;
    font-weight: 700;
    color: var(--crm-text);
}

.reward-detail-section-title {
    font-size: 1.28rem;
    color: var(--crm-blue-dark);
    margin: 0 0 12px;
}

.reward-detail-page .reward-detail-section .reward-detail-section-title {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.reward-detail-content-block + .reward-detail-content-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e6edf4;
}

.reward-richtext {
    color: #456074;
    line-height: 1.6;
}

.reward-detail-page .reward-detail-section .reward-richtext {
    font-size: 0.86rem;
    line-height: 1.55;
}

.reward-detail-page .reward-detail-section .reward-richtext p,
.reward-detail-page .reward-detail-section .reward-richtext li,
.reward-detail-page .reward-detail-section .reward-richtext span {
    font-size: inherit;
    line-height: inherit;
}

.reward-detail-page .reward-detail-section .reward-richtext h1 {
    font-size: 1.12rem;
    line-height: 1.35;
}

.reward-detail-page .reward-detail-section .reward-richtext h2 {
    font-size: 1.04rem;
    line-height: 1.4;
}

.reward-detail-page .reward-detail-section .reward-richtext h3 {
    font-size: 0.98rem;
    line-height: 1.42;
}

.reward-detail-page .reward-detail-section .reward-richtext h4,
.reward-detail-page .reward-detail-section .reward-richtext h5,
.reward-detail-page .reward-detail-section .reward-richtext h6 {
    font-size: 0.92rem;
    line-height: 1.44;
}

.reward-richtext p:last-child {
    margin-bottom: 0;
}

.reward-richtext a {
    color: #85c2ff;
}

.reward-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.reward-detail-sticky {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 86px;
    width: min(680px, calc(100% - 20px));
    z-index: 240;
}

.reward-detail-sticky-inner {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.reward-action-sheet {
    background: #f7f9fd;
    border: 1px solid #d6dfeb;
    border-radius: 24px;
    padding: 10px 12px;
    box-shadow: none;
}

.reward-action-btn-row {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 10px;
}

.reward-action-btn-row .reward-sticky-btn {
    width: 100%;
}

.reward-action-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.reward-action-title {
    color: #0d304d;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
}

.reward-action-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 2px solid #204a6a;
    background: #ffffff;
    color: #12344f;
    font-weight: 700;
    font-size: 0.95rem;
}

.reward-sticky-btn,
.reward-action-btn {
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    min-height: 50px;
    font-size: 1rem;
    border: none;
    background: var(--crm-blue);
    border-color: var(--crm-blue);
}

.reward-action-btn:hover,
.reward-action-btn:focus {
    background: var(--crm-blue-dark);
    border-color: var(--crm-blue-dark);
}

.reward-action-btn:disabled {
    opacity: 1;
    background: #8f96a3;
    border-color: #8f96a3;
    color: #eef1f7;
}

.reward-back-btn {
    border: 2px solid #274a66;
    color: #163752;
    background: #ffffff;
}

.reward-back-btn:hover,
.reward-back-btn:focus {
    background: #edf4fa;
    color: #163752;
    border-color: #274a66;
}

.coupon-action-sheet {
    padding: 16px;
}

.coupon-detail-chip-wrap {
    margin: 2px 0 12px;
}

.coupon-detail-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.95rem;
    font-weight: 700;
}

.coupon-detail-chip-active {
    background: #d6f7e9;
    color: #087648;
}

.coupon-detail-chip-used {
    background: #e7ebf1;
    color: #5f6b7a;
}

.coupon-detail-chip-expired {
    background: #f9dfdf;
    color: #a43030;
}

.coupon-detail-meta-card {
    background: var(--crm-surface) !important;
}

/* Coupon Details page typography baseline */
.coupon-detail-body {
    font-size: var(--crm-font-size-md);
}

.coupon-detail-body .reward-detail-hero-content h1 {
    font-size: 1.65rem;
    line-height: 1.25;
}

.coupon-detail-body .coupon-detail-chip {
    font-size: 0.9rem;
}

.coupon-detail-body .reward-meta-label,
.coupon-detail-body .reward-meta-value {
    font-size: var(--crm-font-size-md);
    line-height: 1.45;
}

.coupon-detail-body .reward-detail-section-title {
    font-size: 1.12rem;
}

.coupon-detail-body .reward-richtext,
.coupon-detail-body .reward-richtext p,
.coupon-detail-body .reward-richtext li {
    font-size: var(--crm-font-size-md);
    line-height: 1.6;
}

.coupon-detail-body .app-sheet-title {
    font-size: 1.35rem;
}

.coupon-detail-body .app-sheet-text,
.coupon-detail-body .app-sheet-row,
.coupon-detail-body .app-sheet-row strong {
    font-size: var(--crm-font-size-md);
}

.app-sheet-modal .modal-dialog {
    max-width: min(680px, calc(100% - 20px));
}

.app-sheet-modal .modal-content {
    border: none;
    border-radius: 22px;
    overflow: hidden;
}

.app-sheet-body {
    padding: 26px 22px 20px;
}

.app-sheet-title {
    color: #143652;
    font-size: 1.9rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 12px;
}

.app-sheet-text {
    color: #5f7486;
    font-size: 1.05rem;
    line-height: 1.45;
    margin-bottom: 8px;
}

.app-sheet-text-muted {
    color: #7d8f9d;
}

.app-sheet-code {
    background: #f2f7fc;
    border: 1px solid #d5e0ec;
    border-radius: 14px;
    color: #173956;
    font-weight: 700;
    padding: 10px 12px;
    margin-top: 10px;
}

.app-sheet-summary {
    background: #f2f7fc;
    border: 1px solid #d6e0eb;
    border-radius: 14px;
    padding: 12px;
    margin-top: 12px;
}

.coupon-scan-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #c8d6e5;
}

.coupon-qr-canvas {
    width: 180px;
    height: 180px;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #d5e0ec;
    border-radius: 10px;
    padding: 6px;
}

.coupon-barcode {
    width: 100%;
    max-width: 310px;
    height: 62px;
    background: #ffffff;
    border: 1px solid #d5e0ec;
    border-radius: 8px;
    padding: 4px 8px;
}

.app-sheet-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    color: #506678;
}

.app-sheet-row:last-child {
    margin-bottom: 0;
}

.app-sheet-row strong {
    color: #14324b;
    text-align: right;
}

.app-sheet-btn {
    border-radius: 999px;
    min-height: 58px;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    background: var(--crm-blue);
    border-color: var(--crm-blue);
}

.app-sheet-btn:hover,
.app-sheet-btn:focus {
    background: var(--crm-blue-dark);
    border-color: var(--crm-blue-dark);
}

.app-sheet-btn-outline {
    border-radius: 999px;
    min-height: 58px;
    font-size: 1.15rem;
    font-weight: 700;
    border-width: 2px;
    border-color: #274a66;
    color: #163752;
}

.app-sheet-btn-outline:hover,
.app-sheet-btn-outline:focus {
    background: #edf4fa;
    color: #163752;
    border-color: #274a66;
}

@media (max-width: 576px) {
    .header-title {
        font-size: 1rem;
    }

    .brand-logo {
        min-height: 36px;
    }

    .brand-logo-img {
        width: 156px;
    }

    .member-name {
        font-size: 1rem;
    }

    .member-code {
        font-size: 1.08rem;
    }

    .quick-action {
        min-height: 126px;
        padding: 14px 6px 12px;
        gap: 10px;
    }

    .quick-action-icon {
        width: 52px;
        height: 52px;
    }

    .quick-action-icon i {
        font-size: 1.38rem;
    }

    .quick-action-title {
        font-size: 0.86rem;
    }

    .quick-action-subtitle {
        font-size: 0.6rem;
    }

    .promo-read-pill {
        right: 10px;
        bottom: 10px;
        min-height: 31px;
        padding: 6px 12px;
        font-size: 0.72rem;
    }

    .promotion-article-body {
        padding: 18px;
    }

    .point-value {
        font-size: 2.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .page-grid {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .reward-detail-hero-content h1 {
        font-size: 1.95rem;
    }

    .coupon-detail-body .reward-detail-hero-content h1 {
        font-size: 1.38rem;
    }

    .reward-detail-sticky {
        width: calc(100% - 12px);
        bottom: 80px;
    }

    .reward-action-sheet {
        padding: 8px 10px;
        border-radius: 18px;
    }

    .reward-action-btn-row {
        grid-template-columns: 3fr 7fr;
        gap: 8px;
    }

    .reward-action-title {
        font-size: 1.32rem;
    }

    .reward-action-pill {
        font-size: 0.95rem;
        min-width: 64px;
    }

    .reward-sticky-btn,
    .reward-action-btn,
    .app-sheet-btn,
    .app-sheet-btn-outline {
        min-height: 44px;
        font-size: 0.98rem;
    }

    .app-sheet-title {
        font-size: 1.45rem;
    }

    .coupon-detail-body .app-sheet-title {
        font-size: 1.16rem;
    }

    .app-sheet-text {
        font-size: 0.98rem;
    }

    .coupon-detail-body .app-sheet-text,
    .coupon-detail-body .app-sheet-row,
    .coupon-detail-body .app-sheet-row strong {
        font-size: 0.92rem;
    }

    .coupon-qr-canvas {
        width: 160px;
        height: 160px;
    }

    .coupon-barcode {
        max-width: 270px;
        height: 56px;
    }

    .liff-head-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .liff-head-title {
        font-size: 1.08rem;
    }

    .liff-head-subtitle {
        font-size: 0.76rem;
    }

    .liff-head-points {
        font-size: 0.74rem;
    }

    .reward-catalog-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .reward-catalog-title {
        font-size: 1.08rem;
    }

    .reward-catalog-subtitle {
        font-size: 0.76rem;
    }

    .reward-catalog-points {
        font-size: 0.74rem;
    }

    .reward-sort-form {
        gap: 6px;
    }

    .reward-sort-label-inline {
        font-size: 0.72rem;
        letter-spacing: 0.2px;
    }

    .reward-sort-select {
        min-width: 160px;
        max-width: 56vw;
        padding-right: 1.75rem;
    }
}
