@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Noto+Sans+TC:wght@400;500;600;700;800;900&display=swap');

:root {
    color-scheme: light;
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    color: var(--text-color, #20242a);
    background: var(--page-bg-color, #f7f5f0);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    color: var(--text-color, #20242a);
    background-color: var(--page-bg-color, #f7f5f0);
    background-image: var(--page-bg-image, none);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.register-panel {
    width: min(720px, 100%);
    background: var(--panel-bg-color, #ffffff);
    border: 1px solid #ded9ce;
    border-radius: 8px;
    padding: clamp(20px, 4vw, 32px);
    box-shadow: 0 20px 50px rgba(24, 32, 41, 0.08);
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.brand-block {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 8px;
    color: #7a5c35;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1, h2, p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-size: clamp(28px, 6vw, 34px);
    line-height: 1.18;
}

h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.brand-block p {
    color: color-mix(in srgb, var(--text-color, #20242a) 76%, #ffffff);
    line-height: 1.7;
    margin-bottom: 0;
}

.language-switcher {
    flex: 0 0 150px;
    display: grid;
    gap: 6px;
}

.register-form {
    display: grid;
    gap: 18px;
}

label, fieldset {
    display: grid;
    gap: 8px;
}

fieldset {
    border: 1px solid #ded9ce;
    border-radius: 8px;
    padding: 14px;
}

legend, label span {
    font-weight: 700;
    font-size: 14px;
}

input, select, button, .line-button, .submit-button {
    width: 100%;
    min-height: 46px;
    border-radius: 6px;
    font: inherit;
}

input, select {
    border: 1px solid #c8c1b7;
    padding: 10px 12px;
    background: #fff;
}

button, .line-button, .submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--submit-bg-color, #1d4f60);
    color: var(--submit-text-color, #fff);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    padding: 0 16px;
}

button:hover, .line-button:hover, .submit-button:hover {
    filter: brightness(0.9);
}

.line-button {
    background: #06c755;
    color: #ffffff;
}

.line-button:hover {
    background: #05a848;
}

.line-status {
    margin: 12px 0 0;
    border: 1px solid #b9d8c2;
    background: #eef8f1;
    border-radius: 8px;
    color: #245c34;
    padding: 12px 14px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #707780;
    font-size: 13px;
    margin: 18px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ded9ce;
}

.split-fields {
    display: grid;
    grid-template-columns: minmax(180px, 220px) 1fr;
    gap: 14px;
}

.radio-row, .check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.radio-row input, .check-row input {
    width: auto;
    min-height: auto;
    margin-top: 3px;
}

.radio-row span, .check-row span {
    line-height: 1.45;
}

.field-error {
    margin: 0;
    color: #b3261e;
    font-size: 13px;
    line-height: 1.45;
}

.success-box {
    border: 1px solid #b9d8c2;
    background: #eef8f1;
    border-radius: 8px;
    padding: 18px;
}

.success-box p {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .page-shell {
        align-items: start;
        padding: 16px 12px;
    }

    .page-header {
        display: grid;
    }

    .language-switcher {
        width: 100%;
        flex-basis: auto;
    }

    .split-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .page-shell {
        padding: 10px 8px;
    }

    .register-panel {
        padding: 18px 14px;
    }

    input, select, button, .line-button, .submit-button {
        min-height: 44px;
    }
}

.admin-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px 1fr;
    background: #f4f6f8;
    color: #20242a;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #18202a;
    color: #ffffff;
    padding: 22px 16px;
}

.admin-brand {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 22px;
}

.admin-sidebar nav {
    display: grid;
    gap: 6px;
}

.admin-sidebar a {
    color: #d8dee6;
    text-decoration: none;
    border-radius: 6px;
    padding: 10px 12px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: #2c3745;
    color: #ffffff;
}

.admin-main {
    padding: 28px;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.admin-topbar h1 {
    font-size: 28px;
    margin: 0;
}

.admin-eyebrow {
    margin: 0 0 6px;
    color: #657180;
    font-size: 13px;
    font-weight: 700;
}

.admin-preview-link,
.admin-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: #1d4f60;
    color: #ffffff;
    padding: 0 16px;
    text-decoration: none;
    font-weight: 700;
}

.admin-preview-link,
.admin-preview-link:visited,
.admin-preview-link:hover {
    color: #fff;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-card,
.admin-panel {
    background: #ffffff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(24, 32, 42, 0.06);
}

.admin-card {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.admin-card span {
    color: #657180;
    font-size: 14px;
    font-weight: 700;
}

.admin-card strong {
    font-size: 30px;
}

.admin-panel {
    padding: 20px;
    margin-bottom: 18px;
}

.admin-form {
    display: grid;
    gap: 16px;
}

.admin-form.narrow {
    max-width: 640px;
}

.admin-form.compact-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
    align-items: end;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    min-height: 42px;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #e6ebf0;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #657180;
    font-size: 13px;
}

.admin-form textarea {
    min-height: 96px;
    resize: vertical;
}

.admin-form-wide {
    grid-column: 1 / -1;
}

.admin-table input {
    min-width: 120px;
}

.admin-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-check-row input {
    width: auto;
    min-height: auto;
}

.admin-note {
    color: #657180;
    margin: 0;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.member-tier-editor {
    border: 1px solid rgba(75, 82, 68, 0.18);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.42);
}

.member-tier-editor-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.member-tier-editor-heading h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.member-tier-editor-heading p {
    margin: 0;
    color: #706d63;
    font-size: 13px;
}

.member-tier-group {
    display: grid;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid rgba(75, 82, 68, 0.14);
}

.member-tier-group:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.member-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.member-tier-card {
    display: grid;
    gap: 8px;
    align-content: start;
    border: 1px solid rgba(75, 82, 68, 0.16);
    border-radius: 8px;
    padding: 12px;
    background: rgba(250, 249, 244, 0.82);
}

.member-tier-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    font-weight: 700;
}

.member-tier-check input {
    width: 16px;
    height: 16px;
    min-height: 16px;
}

.member-tier-card small {
    color: #777369;
}

.member-tag-editor {
    border: 1px solid rgba(75, 82, 68, 0.18);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.42);
}

.member-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.member-tag-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(75, 82, 68, 0.14);
    border-radius: 8px;
    background: rgba(250, 249, 244, 0.82);
    padding: 8px 10px;
}

.member-tag-option input {
    width: 16px;
    height: 16px;
    min-height: 16px;
}

.admin-member-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.admin-member-tag {
    --tag-color: #6f706b;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid var(--tag-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #2b2d30;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    padding: 0 10px;
    white-space: nowrap;
}

.admin-flash {
    background: #eef8f1;
    border: 1px solid #b9d8c2;
    color: #245c34;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.admin-image-preview {
    display: grid;
    gap: 12px;
}

.admin-image-preview-card {
    position: relative;
    width: min(420px, 100%);
    overflow: hidden;
    border: 1px solid #d4cabb;
    border-radius: 8px;
    background: #fffdf7;
    padding: 10px;
}

.admin-image-preview.is-removed,
.admin-image-preview-card.is-removed {
    display: none;
}

.admin-image-preview-card .admin-image-frame {
    width: 100%;
}

.admin-image-preview img {
    width: min(320px, 100%);
    border-radius: 8px;
    border: 1px solid #dde3ea;
}

.admin-image-preview .admin-form-preview-image {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border: 0;
    border-radius: 6px;
    background: #f6f1e8;
    display: block;
}

.admin-file-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    border: 1px solid var(--admin-border, #c8c1b4);
    border-radius: var(--ui-radius-sm, 6px);
    background: #fffdf7;
    padding: 6px;
}

.admin-file-picker input[type="file"] {
    position: absolute;
    width: 1px;
    min-width: 1px;
    height: 1px;
    min-height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: var(--ui-radius-sm, 6px);
    background: var(--admin-accent-dark, #434b3e);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 0 14px;
    cursor: pointer;
    white-space: nowrap;
}

.admin-file-picker .admin-file-button {
    color: #fff;
}

.admin-file-name {
    min-width: 0;
    color: var(--admin-muted, #716b60);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-table-thumb {
    width: 92px;
    height: 46px;
    object-fit: cover;
    border: 1px solid #d4cabb;
    border-radius: 6px;
    display: block;
}

.admin-brand-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.admin-brand-logo-thumb,
.admin-brand-logo-fallback {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid #d4cabb;
    border-radius: 6px;
    background: #fffdf7;
}

.admin-brand-logo-thumb {
    object-fit: contain;
    display: block;
    padding: 4px;
}

.admin-brand-logo-fallback {
    display: inline-grid;
    place-items: center;
    color: #434b3e;
    font-weight: 900;
}

.admin-brand-logo-preview {
    max-width: 260px;
}

.admin-file-picker:focus-within {
    border-color: var(--admin-accent-dark, #434b3e);
    outline: 3px solid rgba(67, 75, 62, 0.16);
}

.admin-tier-swatch {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: var(--tier-bg, #1d4f60);
    color: var(--tier-color, #ffffff);
    font-size: 12px;
    font-weight: 850;
    padding: 0 10px;
}

.admin-image-frame {
    position: relative;
    width: min(320px, 100%);
}

.admin-image-frame img {
    display: block;
    width: 100%;
    transition: opacity 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.admin-image-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-grid;
    place-items: center;
    width: 34px;
    min-height: 34px;
    border: 1px solid rgba(155, 64, 54, 0.24);
    border-radius: 50%;
    background: rgba(255, 253, 247, 0.94);
    color: var(--admin-danger, #9b4036);
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(50, 48, 42, 0.16);
}

.admin-image-remove input {
    position: absolute;
    width: 1px;
    min-width: 1px;
    height: 1px;
    min-height: 1px;
    opacity: 0;
}

.admin-image-remove:hover,
.admin-image-remove:has(input:checked) {
    background: var(--admin-danger, #9b4036);
    color: #ffffff;
}

.admin-image-frame:has(.admin-image-remove input:checked) img,
.admin-image-frame.is-marked-remove img {
    border-color: var(--admin-danger, #9b4036);
    filter: grayscale(0.3);
    opacity: 0.48;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .admin-main {
        padding: 18px 12px;
    }

    .admin-form.compact-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin visual refresh */
.admin-body {
    grid-template-columns: 264px minmax(0, 1fr);
    background: #eef2f5;
    color: #1f2933;
    font-size: 15px;
}

.admin-sidebar {
    background: #ffffff;
    color: #1f2933;
    border-right: 1px solid #d9e1e8;
    padding: 20px 14px;
    box-shadow: 10px 0 30px rgba(31, 41, 51, 0.04);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 8px 6px 18px;
    border-bottom: 1px solid #e5ebf0;
}

.admin-brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #1f5d6b;
    color: #ffffff;
    font-weight: 800;
}

.admin-brand strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
}

.admin-brand small {
    display: block;
    color: #6b7785;
    font-size: 12px;
    margin-top: 3px;
}

.admin-nav-label {
    width: calc(100% - 16px);
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    margin: 0 8px 8px;
    color: #7d8794;
    padding: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}

.admin-sidebar nav {
    gap: 4px;
}

.admin-sidebar a {
    position: relative;
    color: #3c4856;
    border-radius: 8px;
    padding: 11px 12px 11px 16px;
    font-weight: 650;
}

.admin-sidebar a::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 11px;
    bottom: 11px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
}

.admin-sidebar a:hover {
    background: #f3f6f8;
    color: #1f2933;
}

.admin-sidebar a.active {
    background: #e7f1f3;
    color: #173f4d;
}

.admin-sidebar a.active::before {
    background: #1f5d6b;
}

.admin-main {
    padding: 30px clamp(18px, 4vw, 42px);
}

.admin-topbar {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 12px 28px rgba(31, 41, 51, 0.05);
}

.admin-topbar h1 {
    font-size: 26px;
    line-height: 1.2;
}

.admin-page-subtitle {
    margin: 7px 0 0;
    color: #667382;
    line-height: 1.5;
}

.admin-preview-link,
.admin-submit {
    width: auto;
    min-height: 40px;
    background: #1f5d6b;
    box-shadow: 0 8px 18px rgba(31, 93, 107, 0.16);
    white-space: nowrap;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-chip,
.admin-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #edf3f5;
    color: #1f5d6b;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.admin-logout-link {
    color: #667382;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.admin-logout-link:hover {
    color: #1f2933;
}

.admin-preview-link:hover,
.admin-submit:hover {
    filter: brightness(0.94);
}

.admin-grid {
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    gap: 12px;
}

.admin-card,
.admin-panel {
    border: 1px solid #dce4eb;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(31, 41, 51, 0.05);
}

.admin-card {
    position: relative;
    min-height: 126px;
    padding: 18px 18px 16px;
    overflow: hidden;
}

.admin-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: #1f5d6b;
}

.admin-card:nth-child(2)::before {
    background: #8a6f2a;
}

.admin-card:nth-child(3)::before {
    background: #5a6f9f;
}

.admin-card:nth-child(4)::before {
    background: #a15d44;
}

.admin-card:nth-child(5)::before {
    background: #4f7a4d;
}

.admin-card span {
    color: #667382;
    font-size: 13px;
}

.admin-card strong {
    font-size: 32px;
    line-height: 1;
}

.admin-card small {
    color: #7d8794;
    font-size: 12px;
    line-height: 1.4;
}

.admin-panel {
    padding: 22px;
}

.admin-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-section-heading h2 {
    margin-bottom: 6px;
    font-size: 20px;
}

.admin-section-heading p {
    margin: 0;
    color: #667382;
    line-height: 1.6;
}

.admin-task-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-task-list div {
    border: 1px solid #e2e8ee;
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfd;
}

.admin-task-list strong,
.admin-task-list span {
    display: block;
}

.admin-task-list strong {
    margin-bottom: 6px;
}

.admin-task-list span {
    color: #667382;
    line-height: 1.55;
}

.admin-form {
    gap: 18px;
}

.admin-form label span,
.admin-form legend {
    color: #344051;
}

.admin-required-mark {
    margin-left: 4px;
    color: #b3261e;
    font-style: normal;
    font-weight: 950;
}

.admin-form-error-summary {
    border: 1px solid rgba(179, 38, 30, 0.28);
    border-radius: 8px;
    background: #fff3ef;
    color: #9b3028;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    padding: 12px 14px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    border-color: #cfd9e3;
    background: #ffffff;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: #1f5d6b;
    outline: 3px solid rgba(31, 93, 107, 0.12);
}

.admin-form .admin-field-invalid input,
.admin-form .admin-field-invalid select,
.admin-form .admin-field-invalid textarea {
    border-color: #b3261e;
    background: #fffafa;
}

.admin-form .admin-field-invalid input:focus,
.admin-form .admin-field-invalid select:focus,
.admin-form .admin-field-invalid textarea:focus {
    border-color: #b3261e;
    outline-color: rgba(179, 38, 30, 0.16);
}

.admin-field-message {
    margin: -2px 0 0;
    color: #b3261e;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.admin-form.compact-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
    gap: 14px;
}

.admin-table {
    min-width: 780px;
}

.admin-table th {
    background: #f7f9fb;
    color: #5d6977;
    font-weight: 800;
    white-space: nowrap;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
}

.admin-table tbody tr:hover {
    background: #fbfcfd;
}

.admin-table input {
    border-color: #d5dde5;
}

.admin-table input[type="checkbox"],
.admin-form input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    accent-color: #1f5d6b;
}

.admin-country-table th:first-child,
.admin-country-table td:first-child {
    width: 96px;
}

.admin-switch {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: auto;
    cursor: pointer;
}

.admin-switch input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-switch span {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #c8d2dc;
    transition: background 160ms ease, box-shadow 160ms ease;
}

.admin-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(31, 41, 51, 0.22);
    transition: transform 160ms ease;
}

.admin-switch input:checked + span {
    background: #1f5d6b;
}

.admin-switch input:checked + span::after {
    transform: translateX(20px);
}

.admin-switch input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(31, 93, 107, 0.16);
}

.admin-new-row {
    background: #fbfcfd;
}

.admin-permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-color: #dce4eb;
}

.admin-permission-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    background: #fbfcfd;
    padding: 10px 12px;
}

.admin-permission-option span {
    font-size: 14px;
}

.admin-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-pill-list span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    background: #f1f5f8;
    color: #3c4856;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 700;
}

.admin-flash {
    border-color: #bad8c6;
    background: #eef8f2;
    box-shadow: 0 10px 22px rgba(36, 92, 52, 0.06);
}

.admin-flash.danger {
    border-color: #efc5c0;
    background: #fff1ef;
    color: #9a2f26;
}

.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #eef2f5;
    color: #1f2933;
    padding: 20px;
}

.admin-login-shell {
    width: min(420px, 100%);
}

.admin-login-panel {
    background: #ffffff;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(31, 41, 51, 0.08);
    padding: 28px;
}

.admin-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.admin-login-brand p,
.admin-login-brand h1 {
    margin: 0;
}

.admin-login-brand p {
    color: #667382;
    font-size: 13px;
    font-weight: 800;
}

.admin-login-brand h1 {
    font-size: 26px;
}

@media (max-width: 1180px) {
    .admin-grid,
    .admin-task-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        padding: 14px 12px;
    }

    .admin-brand {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    }

    .admin-main {
        padding: 14px 10px 24px;
    }

    .admin-topbar {
        align-items: flex-start;
        display: grid;
        padding: 16px;
    }

    .admin-topbar-actions {
        display: grid;
        width: 100%;
    }

    .admin-preview-link {
        width: 100%;
    }

    .admin-grid,
    .admin-task-list {
        grid-template-columns: 1fr;
    }

    .admin-form.compact-grid {
        grid-template-columns: 1fr;
    }

    .admin-permission-grid {
        grid-template-columns: 1fr;
    }
}

/* Wabi-sabi / exposed concrete admin theme */
:root {
    --admin-bg: #e8e6df;
    --admin-surface: #f7f5ef;
    --admin-surface-soft: #efede6;
    --admin-border: #d4d0c5;
    --admin-ink: #282823;
    --admin-muted: #746f64;
    --admin-accent: #6f7565;
    --admin-accent-dark: #4e5547;
    --admin-clay: #9b6b55;
}

.language-switcher {
    flex: 0 0 auto;
    min-width: 0;
}

.language-switcher > span {
    display: block;
    margin-bottom: 6px;
    color: color-mix(in srgb, var(--text-color, #20242a) 70%, #ffffff);
    font-size: 12px;
    font-weight: 800;
}

.language-options {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #d7d0c6;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    padding: 4px;
}

.language-options a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    color: inherit;
    font-size: 13px;
    font-weight: 750;
    padding: 0 12px;
    text-decoration: none;
    white-space: nowrap;
}

.language-options a.active {
    background: #26342d;
    color: #ffffff;
}

.admin-body,
.admin-login-body {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 38%),
        var(--admin-bg);
    color: var(--admin-ink);
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: #d7d4ca;
    border-right: 1px solid #c9c4b8;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.28);
}

.admin-sidebar-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.admin-sidebar-main nav {
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.admin-brand {
    border-bottom-color: #c7c2b7;
}

.admin-brand-mark,
.admin-preview-link,
.admin-submit {
    background: var(--admin-accent-dark);
    box-shadow: none;
}

.admin-brand small,
.admin-nav-label,
.admin-page-subtitle,
.admin-card small,
.admin-section-heading p,
.admin-task-list span,
.admin-note,
.admin-logout-link {
    color: var(--admin-muted);
}

.admin-sidebar a {
    color: #3f3f38;
}

.admin-nav-group {
    display: grid;
    gap: 4px;
}

.admin-nav-links {
    display: grid;
    gap: 4px;
}

.admin-mobile-menu-toggle,
.admin-mobile-menu-backdrop {
    display: none;
}

.admin-nav-group + .admin-nav-group {
    margin-top: 14px;
}

.admin-nav-group .admin-nav-label {
    margin: 0 0 2px;
}

.admin-sidebar a:hover {
    background: rgba(255, 255, 255, 0.28);
}

.admin-sidebar a.active {
    background: rgba(247, 245, 239, 0.72);
    color: #262923;
}

.admin-sidebar a.active::before {
    background: var(--admin-clay);
}

.admin-sidebar-footer {
    flex: 0 0 auto;
    display: grid;
    gap: 10px;
    border-top: 1px solid #c7c2b7;
    padding-top: 14px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(86, 82, 73, 0.16);
    border-radius: 8px;
    background: rgba(247, 245, 239, 0.52);
    padding: 10px;
}

.admin-profile strong,
.admin-profile small {
    display: block;
}

.admin-profile small {
    color: var(--admin-muted);
    font-size: 12px;
}

.admin-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--admin-accent);
    color: #ffffff;
    font-weight: 800;
}

.sidebar-preview {
    width: 100%;
}

.admin-logout-form {
    margin: 0;
}

.admin-logout-link {
    width: 100%;
    min-height: 38px;
    border: 1px solid #c6c0b3;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    color: #423f38;
}

.admin-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid #c6c0b3;
    border-radius: 6px;
    background: transparent;
    color: #423f38;
    font-weight: 750;
    padding: 0 16px;
    cursor: pointer;
}

.admin-modal-trigger {
    width: auto;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(38, 36, 31, 0.42);
}

.modal.show {
    display: flex;
}

.modal-open {
    overflow: hidden;
}

.modal-dialog {
    width: min(720px, 100%);
    max-height: calc(100vh - 40px);
}

.modal-content {
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface);
    box-shadow: 0 28px 70px rgba(38, 36, 31, 0.24);
}

.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
}

.modal-header {
    border-bottom: 1px solid var(--admin-border);
}

.modal-body {
    display: grid;
    gap: 16px;
    max-height: min(62vh, 620px);
    overflow-y: auto;
    padding: 20px;
}

.modal-footer {
    justify-content: flex-end;
    border-top: 1px solid var(--admin-border);
}

.modal-title {
    margin: 0;
    font-size: 22px;
}

.btn-close {
    width: 34px;
    min-height: 34px;
    border: 1px solid #c6c0b3;
    border-radius: 50%;
    background: transparent;
    color: #423f38;
    cursor: pointer;
    font-size: 0;
    padding: 0;
}

.btn-close::before,
.btn-close::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 2px;
    background: currentColor;
}

.btn-close {
    position: relative;
}

.btn-close::before {
    transform: rotate(45deg);
}

.btn-close::after {
    transform: rotate(-45deg);
}

.admin-topbar,
.admin-card,
.admin-panel,
.admin-login-panel {
    background: var(--admin-surface);
    border-color: var(--admin-border);
    box-shadow: 0 16px 36px rgba(69, 66, 59, 0.08);
}

.admin-eyebrow {
    color: var(--admin-accent-dark);
}

.admin-card::before {
    background: var(--admin-accent);
}

.admin-card:nth-child(2)::before {
    background: #7a786c;
}

.admin-card:nth-child(3)::before {
    background: #8a7767;
}

.admin-card:nth-child(4)::before {
    background: var(--admin-clay);
}

.admin-card:nth-child(5)::before {
    background: #565f50;
}

.admin-card span,
.admin-table th {
    color: #625d53;
}

.admin-task-list div,
.admin-table th,
.admin-new-row {
    background: var(--admin-surface-soft);
}

.admin-form input,
.admin-form select,
.admin-table input,
input,
select {
    border-color: #c9c4b8;
}

.admin-form input:focus,
.admin-form select:focus {
    border-color: var(--admin-accent-dark);
    outline-color: rgba(78, 85, 71, 0.18);
}

.admin-switch input:checked + span {
    background: var(--admin-accent-dark);
}

.admin-user-chip,
.admin-status-pill,
.admin-pill-list span {
    background: #e4e1d8;
    color: #4f5547;
}

.admin-sidebar .admin-preview-link,
.admin-sidebar .admin-preview-link:visited,
.admin-sidebar .admin-preview-link:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .admin-sidebar {
        display: block;
    }

    .admin-sidebar-footer {
        margin-top: 12px;
    }

    .language-options {
        width: 100%;
    }

    .language-options a {
        flex: 1;
    }

    .modal {
        align-items: flex-end;
        padding: 10px;
    }

    .modal-dialog,
    .modal-content {
        max-height: calc(100vh - 20px);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
}

/* Design system pass: exposed concrete CRM UI */
:root {
    --ui-radius: 8px;
    --ui-radius-sm: 6px;
    --ui-control: 44px;
    --ui-shadow-soft: 0 18px 48px rgba(50, 48, 42, 0.11);
    --ui-shadow-tight: 0 10px 24px rgba(50, 48, 42, 0.08);
    --admin-bg: #e3e0d7;
    --admin-bg-rough: #d7d2c6;
    --admin-surface: #f8f6ef;
    --admin-surface-soft: #eeebe2;
    --admin-surface-deep: #d2cdc1;
    --admin-border: #c8c1b4;
    --admin-ink: #272722;
    --admin-muted: #716b60;
    --admin-accent: #666d5f;
    --admin-accent-dark: #434b3e;
    --admin-clay: #9a6a53;
    --admin-danger: #9b4036;
}

.page-shell {
    align-items: center;
    padding: clamp(18px, 5vw, 56px) 14px;
    background-blend-mode: multiply;
}

.page-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 42%),
        radial-gradient(circle at 18% 16%, rgba(255,255,255,0.12), transparent 28%);
}

.register-panel {
    position: relative;
    width: min(680px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: var(--ui-radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
}

.page-header {
    align-items: flex-start;
    margin-bottom: 26px;
}

.eyebrow {
    letter-spacing: 0;
    color: currentColor;
    opacity: 0.78;
}

.brand-block p {
    color: currentColor;
    opacity: 0.82;
}

.language-switcher > span {
    color: currentColor;
    opacity: 0.72;
}

.language-options {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.language-options a {
    color: currentColor;
    opacity: 0.82;
}

.language-options a.active {
    background: rgba(255, 255, 255, 0.92);
    color: #252722;
    opacity: 1;
}

.register-form {
    gap: 16px;
}

.register-form fieldset {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.register-form input,
.register-form select {
    min-height: var(--ui-control);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.92);
    color: #252722;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}

.register-form input:focus,
.register-form select:focus {
    border-color: rgba(255, 255, 255, 0.82);
    outline: 3px solid rgba(255, 255, 255, 0.22);
}

.radio-row,
.check-row {
    min-height: 36px;
    align-items: center;
}

.radio-row input,
.check-row input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    accent-color: var(--submit-bg-color, #434b3e);
}

.line-button,
.submit-button {
    min-height: 48px;
    border-radius: var(--ui-radius-sm);
    box-shadow: var(--ui-shadow-tight);
}

.divider {
    color: currentColor;
    opacity: 0.72;
}

.divider::before,
.divider::after {
    background: rgba(255, 255, 255, 0.32);
}

.success-box,
.line-status {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.18);
    color: currentColor;
}

.admin-body,
.admin-login-body {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0) 36%),
        linear-gradient(90deg, rgba(86,82,73,0.05) 1px, transparent 1px),
        var(--admin-bg);
    background-size: auto, 28px 28px, auto;
    color: var(--admin-ink);
}

.admin-body {
    grid-template-columns: 276px minmax(0, 1fr);
}

.admin-sidebar {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0)),
        var(--admin-bg-rough);
    border-right: 1px solid rgba(75, 70, 61, 0.18);
    padding: 18px 14px;
    box-shadow: inset -1px 0 rgba(255, 255, 255, 0.36);
}

.admin-brand {
    min-height: 64px;
    margin-bottom: 18px;
    border-bottom-color: rgba(75, 70, 61, 0.18);
}

.admin-brand-mark,
.admin-avatar {
    background: var(--admin-accent-dark);
    color: #fff;
}

.admin-sidebar nav {
    gap: 5px;
}

.admin-sidebar a {
    min-height: 42px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--ui-radius);
    color: #3d3b34;
}

.admin-sidebar a:hover {
    background: rgba(248, 246, 239, 0.54);
    border-color: rgba(94, 88, 76, 0.12);
}

.admin-sidebar a.active {
    background: var(--admin-surface);
    border-color: rgba(94, 88, 76, 0.16);
    box-shadow: var(--ui-shadow-tight);
}

.admin-sidebar-footer {
    gap: 12px;
}

.admin-profile {
    background: rgba(248, 246, 239, 0.62);
    border-color: rgba(94, 88, 76, 0.16);
}

.admin-main {
    padding: clamp(16px, 3vw, 34px);
}

.admin-topbar,
.admin-card,
.admin-panel,
.admin-login-panel,
.modal-content {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow-soft);
}

.admin-topbar {
    min-height: 116px;
    align-items: center;
}

.admin-eyebrow {
    color: var(--admin-accent-dark);
    font-weight: 800;
}

.admin-topbar h1 {
    color: var(--admin-ink);
    font-size: clamp(24px, 2.4vw, 32px);
}

.admin-page-subtitle {
    max-width: 760px;
}

.admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
    gap: 14px;
}

.admin-card {
    min-height: 128px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0)),
        var(--admin-surface);
}

.admin-card::before {
    height: 3px;
}

.admin-card strong {
    font-size: clamp(28px, 3vw, 36px);
}

.admin-section-heading {
    align-items: flex-start;
}

.admin-task-list div {
    background: var(--admin-surface-soft);
    border-color: rgba(94, 88, 76, 0.14);
}

.admin-submit,
.admin-preview-link,
.admin-secondary-button,
.admin-logout-link {
    min-height: var(--ui-control);
    border-radius: var(--ui-radius-sm);
    font-weight: 800;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.admin-submit,
.admin-preview-link {
    background: var(--admin-accent-dark);
    color: #fff;
}

.admin-secondary-button,
.admin-logout-link {
    background: rgba(248, 246, 239, 0.42);
    border-color: var(--admin-border);
    color: #39372f;
}

.admin-submit:hover,
.admin-preview-link:hover,
.admin-secondary-button:hover,
.admin-logout-link:hover {
    transform: translateY(-1px);
    filter: none;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-table input,
.admin-table select,
.admin-login-panel input {
    min-height: var(--ui-control);
    border: 1px solid var(--admin-border);
    border-radius: var(--ui-radius-sm);
    background: #fffdf7;
    color: var(--admin-ink);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-table input:focus,
.admin-table select:focus,
.admin-login-panel input:focus {
    border-color: var(--admin-accent-dark);
    outline: 3px solid rgba(67, 75, 62, 0.16);
}

.admin-table-wrap {
    border: 1px solid var(--admin-border);
    border-radius: var(--ui-radius);
    background: #fffdf7;
}

.admin-table {
    min-width: 820px;
}

.admin-table th {
    position: sticky;
    top: 0;
    background: var(--admin-surface-soft);
    color: #5f594e;
    font-size: 12px;
    letter-spacing: 0;
}

.admin-table th,
.admin-table td {
    border-bottom-color: rgba(94, 88, 76, 0.14);
    padding: 13px 14px;
    vertical-align: middle;
    line-height: 1.45;
}

.admin-table tbody tr:hover {
    background: #f4f1e8;
}

.admin-switch span {
    background: #b9b3a7;
    box-shadow: inset 0 0 0 1px rgba(69, 66, 59, 0.08);
}

.admin-switch input:checked + span {
    background: var(--admin-accent-dark);
}

.admin-permission-grid {
    gap: 12px;
}

.admin-permission-option {
    min-height: 48px;
    border-color: rgba(94, 88, 76, 0.16);
    background: #fffdf7;
}

.admin-permission-option:has(input:checked) {
    border-color: var(--admin-accent-dark);
    background: #ece9df;
}

.admin-pill-list span,
.admin-status-pill,
.admin-user-chip {
    background: #e4e0d5;
    color: #474d40;
}

.admin-super-pill {
    background: var(--admin-accent-dark, #434b3e) !important;
    color: #fff !important;
}

.admin-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-inline-form {
    margin: 0;
}

.admin-compact-button {
    width: auto;
    min-width: 68px;
    min-height: 36px;
    padding: 0 12px;
}

.admin-danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(155, 64, 54, 0.26);
    border-radius: var(--ui-radius-sm, 6px);
    background: rgba(155, 64, 54, 0.08);
    color: var(--admin-danger, #9b4036);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.admin-danger-button:hover:not(:disabled) {
    background: var(--admin-danger, #9b4036);
    color: #fff;
}

.admin-danger-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.admin-super-option {
    border-color: rgba(67, 75, 62, 0.28);
    background: #ece9df;
}

.admin-super-option span {
    font-weight: 850;
}

.modal-footer .admin-modal-action {
    width: 120px;
    min-height: 42px;
    padding: 0 14px;
}

.admin-flash {
    border-color: #b8c8b2;
    background: #eef2e8;
    color: #3e5638;
}

.admin-flash:not(.danger) {
    animation: admin-flash-fade 4.8s ease forwards;
}

@keyframes admin-flash-fade {
    0%,
    68% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.admin-flash.danger,
.field-error {
    color: var(--admin-danger);
}

.modal {
    background: rgba(38, 36, 31, 0.52);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    width: min(760px, 100%);
}

.modal-content {
    overflow: hidden;
}

.modal-header,
.modal-footer {
    background: rgba(238, 235, 226, 0.72);
}

.btn-close {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    background: #fffdf7;
}

@media (max-width: 900px) {
    .admin-body {
        display: block;
    }

    .admin-sidebar {
        height: auto;
        max-height: none;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid rgba(75, 70, 61, 0.18);
    }

    .admin-sidebar-main {
        overflow: visible;
    }

    .admin-sidebar nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
    }

    .admin-sidebar a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .admin-sidebar-footer {
        grid-template-columns: 1fr 1fr;
    }

    .admin-profile {
        grid-column: 1 / -1;
    }

    .admin-topbar {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .register-panel {
        border-radius: var(--ui-radius);
        padding: 20px 16px;
    }

    .page-header {
        gap: 16px;
    }

    .language-switcher,
    .language-options {
        width: 100%;
    }

    .language-options a {
        min-width: 0;
    }

    .admin-main {
        padding: 12px 10px 22px;
    }

    .admin-topbar,
    .admin-panel {
        padding: 16px;
    }

    .admin-sidebar-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-body.admin-mobile-menu-open {
        overflow: hidden;
    }

    .admin-sidebar {
        position: static;
        width: 0;
        height: 0;
        min-height: 0;
        max-height: 0;
        overflow: visible;
        border: 0;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .admin-sidebar-main {
        display: block;
        overflow: visible;
    }

    .admin-brand {
        width: 0;
        min-height: 0;
        margin: 0;
        border: 0;
        padding: 0;
    }

    .admin-brand > .admin-brand-mark,
    .admin-brand > span {
        display: none;
    }

    .admin-mobile-menu-toggle {
        position: fixed;
        z-index: 220;
        right: 16px;
        bottom: max(20px, calc(env(safe-area-inset-bottom) + 20px));
        width: 48px;
        height: 48px;
        min-height: 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin: 0;
        border: 1px solid rgba(255, 255, 255, 0.34);
        border-radius: 50%;
        background: #3d3b34;
        padding: 0;
        box-shadow: 0 8px 22px rgba(31, 30, 27, 0.28);
        transition: bottom 180ms ease, background 180ms ease;
    }

    .admin-mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        display: block;
        border-radius: 2px;
        background: #ffffff;
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .admin-sidebar.is-mobile-open .admin-mobile-menu-toggle {
        bottom: max(158px, calc(env(safe-area-inset-bottom) + 158px));
        background: #272822;
    }

    .admin-sidebar.is-mobile-open .admin-mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .admin-sidebar.is-mobile-open .admin-mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .admin-sidebar.is-mobile-open .admin-mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .admin-sidebar nav {
        position: fixed;
        z-index: 202;
        top: 0;
        bottom: 142px;
        left: 0;
        width: 100%;
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.35);
        background: #ddd9ce;
        padding: max(18px, env(safe-area-inset-top)) 14px 10px;
        box-shadow: 0 18px 34px rgba(31, 30, 27, 0.18);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .admin-sidebar.is-mobile-open nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .admin-sidebar-footer {
        position: fixed;
        z-index: 202;
        bottom: 0;
        left: 0;
        width: 100%;
        min-height: 142px;
        display: grid;
        align-content: center;
        border-top: 1px solid rgba(75, 70, 61, 0.16);
        background: #ddd9ce;
        padding: 10px 14px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .admin-sidebar.is-mobile-open .admin-sidebar-footer {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .admin-mobile-menu-backdrop {
        position: fixed;
        z-index: 190;
        inset: 0;
        width: 100%;
        height: auto;
        min-height: 0;
        display: block;
        border: 0;
        background: rgba(20, 20, 18, 0.38);
        padding: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 200ms ease;
    }

    .admin-sidebar.is-mobile-open + .admin-mobile-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-main {
        margin-top: 0;
    }

    .admin-nav-group,
    .admin-nav-group + .admin-nav-group {
        min-width: 0;
        display: block;
        margin-top: 0;
        border-top: 1px solid rgba(75, 70, 61, 0.16);
    }

    .admin-nav-group .admin-nav-label {
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0;
        border: 0;
        background: transparent;
        color: #3d3b34;
        padding: 0 10px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        text-align: left;
        cursor: pointer;
    }

    .admin-nav-group .admin-nav-label::after {
        content: "";
        width: 8px;
        height: 8px;
        flex: 0 0 8px;
        border-right: 2px solid #69675f;
        border-bottom: 2px solid #69675f;
        transform: rotate(45deg) translate(-2px, -2px);
        transition: transform 160ms ease;
    }

    .admin-nav-group.is-open .admin-nav-label::after {
        transform: rotate(225deg) translate(-2px, -2px);
    }

    .admin-nav-links {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
        padding: 0 4px 8px;
    }

    .admin-nav-group.is-open .admin-nav-links {
        display: grid;
    }

    .admin-sidebar .admin-nav-links > a {
        width: 100%;
        min-height: 42px;
        justify-content: center;
        padding: 6px 4px;
        font-size: 13px;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }
}

/* Simple registration override: keep frontend theme-controlled and restrained */
.register-panel {
    overflow: visible;
    background: var(--panel-bg-color, #ffffff);
    border-color: #ded9ce;
    padding: clamp(22px, 4vw, 32px);
    box-shadow: 0 20px 50px rgba(24, 32, 41, 0.08);
    backdrop-filter: none;
}

.register-panel h1 {
    color: var(--text-color, #20242a);
}

.register-panel .eyebrow,
.register-panel .brand-block p {
    color: color-mix(in srgb, var(--text-color, #20242a) 72%, #ffffff);
}

.register-form label,
.register-form fieldset {
    color: var(--text-color, #20242a);
}

.register-form label span,
.register-form legend {
    color: color-mix(in srgb, var(--text-color, #20242a) 88%, #000000);
    letter-spacing: 0;
}

.register-form fieldset {
    display: grid;
    gap: 10px;
    border-color: #ded9ce;
    background: transparent;
    padding: 14px;
}

.register-form fieldset legend {
    padding: 0 4px;
}

.radio-row,
.check-row {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.radio-row input,
.check-row input {
    appearance: auto;
    flex: 0 0 auto;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    border: initial;
    background: initial;
    padding: 0;
    accent-color: var(--submit-bg-color, #1d4f60);
}

.radio-row span,
.check-row span {
    color: var(--text-color, #20242a);
    font-weight: 600;
}

.register-form input,
.register-form select {
    border-color: #c8c1b7;
    background: #ffffff;
    color: #252722;
}

.register-form input::placeholder {
    color: #7a7d76;
}

.divider {
    color: #707780;
}

.divider::before,
.divider::after {
    background: #ded9ce;
}

.split-fields {
    align-items: end;
}

.field-error {
    color: #b3261e;
}

.manual-register-toggle {
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
    border: 1px solid #c8c1b7;
    border-radius: var(--ui-radius-sm, 6px);
    background: rgba(255, 255, 255, 0.72);
    color: #252722;
    font-weight: 800;
    box-shadow: none;
}

.manual-register-toggle:hover {
    background: #ffffff;
    filter: none;
}

.manual-register-panel {
    display: none;
}

.manual-register-panel.is-open {
    display: block;
}

.success-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
    color: var(--text-color, #20242a);
}

.success-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--submit-bg-color, #1d4f60);
    color: var(--submit-text-color, #fff);
    font-size: 30px;
    font-weight: 900;
}

.success-kicker {
    margin: 0;
    color: color-mix(in srgb, var(--text-color, #20242a) 70%, #ffffff);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.success-card h2 {
    margin: 0;
    font-size: clamp(28px, 6vw, 38px);
}

.success-copy,
.success-note {
    max-width: 460px;
    margin: 0;
    color: color-mix(in srgb, var(--text-color, #20242a) 76%, #ffffff);
    line-height: 1.7;
}

.member-pass {
    width: min(420px, 100%);
    display: grid;
    gap: 10px;
    margin: 8px 0 2px;
    border: 1px solid #ded9ce;
    border-radius: var(--ui-radius, 8px);
    background: #ffffff;
    color: #252722;
    padding: 18px;
    box-shadow: 0 14px 32px rgba(24, 32, 41, 0.08);
}

.member-pass span {
    color: #707780;
    font-size: 13px;
    font-weight: 800;
}

.member-pass strong {
    font-size: clamp(28px, 7vw, 42px);
    letter-spacing: 0;
}

.member-pass-bar {
    height: 48px;
    border-radius: 4px;
    background:
        repeating-linear-gradient(
            90deg,
            #20242a 0 3px,
            transparent 3px 6px,
            #20242a 6px 8px,
            transparent 8px 13px,
            #20242a 13px 14px,
            transparent 14px 18px
        ),
        #ffffff;
}

.success-actions {
    width: min(420px, 100%);
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.success-actions .submit-button,
.success-actions .success-secondary {
    margin: 0;
    text-decoration: none;
}

.success-actions .submit-button {
    background: var(--submit-bg-color, #1d4f60);
    color: var(--submit-text-color, #fff);
}

.success-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.verification-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
    color: var(--text-color, #20242a);
}

.verification-form {
    width: min(360px, 100%);
    margin-top: 8px;
    text-align: left;
}

.verification-form input[name="verification_code"] {
    text-align: center;
    font-size: 28px;
    font-weight: 850;
}

.verification-dev-code {
    margin: 0;
    border: 1px dashed #c8c1b7;
    border-radius: var(--ui-radius-sm, 6px);
    background: rgba(255, 255, 255, 0.62);
    color: #5f594e;
    padding: 10px 12px;
    text-align: center;
}

.verification-dev-code strong {
    color: #252722;
    font-size: 18px;
}

.verification-back {
    width: min(360px, 100%);
    min-height: 44px;
    margin-top: 2px;
    text-decoration: none;
}

.member-code-bar {
    display: block;
    width: 132px;
    height: 26px;
    margin-top: 7px;
    border-radius: 3px;
    background:
        repeating-linear-gradient(
            90deg,
            #2d2b26 0 2px,
            transparent 2px 4px,
            #2d2b26 4px 5px,
            transparent 5px 9px
        ),
        #fffdf7;
}

.member-shell {
    min-height: 100vh;
    color: #252722;
    background-color: var(--member-center-bg, var(--page-bg-color, #f7f5f0));
    background-image: var(--page-bg-image, none);
    background-position: center;
    background-size: cover;
    padding: 18px 12px 28px;
}

.member-app {
    width: min(430px, 100%);
    min-height: calc(100vh - 46px);
    margin: 0 auto;
    display: grid;
    align-content: start;
    gap: 14px;
    border: 1px solid rgba(222, 217, 206, 0.78);
    border-radius: 8px;
    background: var(--member-center-surface, #f8f6ef);
    box-shadow: 0 24px 70px rgba(24, 32, 41, 0.16);
    padding: 18px 14px 96px;
    position: relative;
}

.member-topbar,
.member-card-head,
.member-section-title,
.member-progress-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.member-eyebrow {
    margin: 0 0 5px;
    color: #716b60;
    font-size: 12px;
    font-weight: 900;
}

.member-topbar h1 {
    margin: 0;
    font-size: 26px;
}

.member-menu-button,
.member-icon-button {
    width: 42px;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #3a3a34;
    font-size: 0;
    display: inline-grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
}

.member-topbar-actions {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.member-menu-button span {
    width: 20px;
    height: 14px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    position: relative;
}

.member-menu-button span::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 2px solid currentColor;
    transform: translateY(-50%);
}

.member-icon-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-language-menu {
    position: relative;
}

.member-language-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 132px;
    display: grid;
    gap: 2px;
    border: 1px solid #ded8cd;
    border-radius: 8px;
    background: #fffdf7;
    box-shadow: 0 16px 36px rgba(36, 34, 29, 0.16);
    padding: 6px;
}

.member-language-popover[hidden] {
    display: none;
}

.member-language-popover a {
    min-height: 34px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    color: #5f594e;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    padding: 0 10px;
}

.member-language-popover a:hover,
.member-language-popover a.active {
    background: #f0eee7;
    color: #25282c;
}

.member-menu-modal,
.member-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 92;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.member-menu-modal.active,
.member-profile-modal.active {
    display: flex;
}

.member-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 27, 24, 0.48);
}

.member-menu-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 360px);
    display: grid;
    gap: 14px;
    border: 1px solid #ded6ca;
    border-radius: 8px;
    background: #fffdf7;
    box-shadow: 0 24px 60px rgba(24, 22, 18, 0.2);
    padding: 18px;
}

.member-menu-head {
    position: relative;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.member-menu-head-center {
    min-height: 34px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.member-menu-head span,
.member-profile-form label span {
    display: block;
    color: #716b60;
    font-size: 12px;
    font-weight: 850;
}

.member-menu-head strong {
    display: block;
    margin-top: 3px;
    color: #25282c;
    font-size: 18px;
}

.member-menu-head button {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #716b60;
    font-size: 24px;
    line-height: 1;
    padding: 0;
}

.member-menu-item {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #ded9ce;
    border-radius: 0;
    background: transparent;
    color: #25282c;
    text-align: left;
    text-decoration: none;
    padding: 18px 0;
}

.member-menu-logout-form {
    margin: 0;
}

.member-menu-logout-form .member-menu-item {
    cursor: pointer;
    font: inherit;
}

.member-menu-item span {
    font-size: 15px;
    font-weight: 900;
}

.member-topbar-qr-button {
    display: inline-grid;
    visibility: visible;
    opacity: 0.92;
}

.member-icon-button .member-topbar-source-icon {
    width: 30px;
    height: 30px;
    display: block;
    fill: none;
    stroke: none;
    padding: 0;
}

.brand-wall-app {
    gap: 18px;
}

.brand-wall-topbar {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    min-height: 44px;
}

.brand-wall-topbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 42px;
    color: #3a3a34;
    font-size: 34px;
    line-height: 1;
    text-decoration: none;
}

.brand-wall-topbar h1 {
    margin: 0;
    color: #25282c;
    font-size: 22px;
    font-weight: 950;
    text-align: center;
}

.brand-wall-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.brand-wall-card {
    min-width: 0;
    min-height: 158px;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 10px;
    border: 1px solid #ded9ce;
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.82);
    color: #25282c;
    text-align: center;
    text-decoration: none;
    padding: 16px 12px;
}

.brand-wall-card[href]:hover {
    border-color: color-mix(in srgb, var(--member-theme-color, #1d4f60) 42%, #ded9ce);
    box-shadow: 0 12px 28px rgba(36, 34, 29, 0.1);
}

.brand-wall-logo {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 1px solid #ddd7cb;
    border-radius: 8px;
    background: #fffdf7;
    overflow: hidden;
}

.brand-wall-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.brand-wall-logo span {
    color: var(--member-theme-color, #1d4f60);
    font-size: 32px;
    font-weight: 950;
}

.brand-wall-card strong {
    max-width: 100%;
    color: #25282c;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.brand-wall-card p {
    margin: 0;
    color: #716b60;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.brand-wall-empty {
    border: 1px solid #ded9ce;
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.82);
    color: #716b60;
    font-size: 14px;
    font-weight: 850;
    text-align: center;
    padding: 28px 16px;
}

.member-profile-form {
    display: grid;
    gap: 12px;
}

.member-profile-form label {
    display: grid;
    gap: 6px;
}

.member-profile-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d7d0c2;
    border-radius: 6px;
    background: #fff;
    color: #25282c;
    font-size: 16px;
    padding: 0 12px;
}

.member-profile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 4px;
}

.member-profile-actions button {
    border: 0;
    background: transparent;
    color: var(--member-theme-color, #1d4f60);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    padding: 0;
}

.member-profile-page {
    gap: 18px;
}

.member-profile-page-head {
    min-height: 42px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 8px;
}

.member-profile-page-head h1 {
    margin: 0;
    color: #25282c;
    font-size: 20px;
    font-weight: 950;
    text-align: center;
}

.member-back-button {
    width: 42px;
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #3a3a34;
    font-size: 34px;
    line-height: 1;
    text-decoration: none;
}

.member-profile-card {
    display: grid;
    gap: 16px;
    border: 1px solid #ded9ce;
    border-radius: 8px;
    background: #fffdf7;
    padding: 18px;
}

.member-profile-card label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.member-form-note {
    margin: 0;
    color: #716b60;
    font-size: 14px;
    line-height: 1.7;
}

.member-profile-card label span,
.member-choice-group legend {
    color: #716b60;
    font-size: 13px;
    font-weight: 900;
}

.member-profile-card input[type="text"],
.member-profile-card input[type="email"],
.member-profile-card textarea,
.member-profile-card select,
.member-profile-card input[type="date"],
.member-profile-card input[name="otp_code"],
.member-profile-card input:not([type]) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid #d7d0c2;
    border-radius: 6px;
    background: #fff;
    color: #25282c;
    font-size: 16px;
    padding: 0 12px;
}

.member-profile-card textarea {
    min-height: 120px;
    resize: vertical;
    padding: 12px;
    line-height: 1.6;
}

.member-profile-card select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #716b60 50%), linear-gradient(135deg, #716b60 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding-right: 34px;
}

.member-profile-card input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
}

.member-profile-phone-grid {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    min-width: 0;
}

.member-profile-otp {
    display: grid;
    gap: 8px;
}

.member-profile-otp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #716b60;
    font-size: 13px;
    font-weight: 900;
}

.member-profile-otp-head strong {
    color: var(--member-theme-color, #1d4f60);
    font-size: 12px;
}

.member-profile-otp-head strong.pending {
    color: #9a5a3d;
}

.member-profile-otp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
}

.member-profile-otp-row button {
    min-height: 46px;
    border: 1px solid #d7d0c2;
    border-radius: 6px;
    background: #f8f6ef;
    color: #3a3a34;
    font-size: 13px;
    font-weight: 900;
    padding: 0 12px;
    white-space: nowrap;
    cursor: pointer;
}

.member-choice-group {
    display: grid;
    gap: 10px;
    margin: 0;
    border: 0;
    padding: 0;
}

.member-choice-group label {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ded9ce;
    border-radius: 8px;
    background: #f8f6ef;
    padding: 0 12px;
}

.member-choice-group input {
    width: 16px;
    height: 16px;
    accent-color: var(--member-theme-color, #1d4f60);
}

.member-profile-card .member-profile-actions {
    width: 100%;
    justify-self: end;
    justify-content: flex-end;
    padding-top: 8px;
}

.member-profile-card .member-profile-actions button {
    width: auto;
    min-height: auto;
}

.member-profile-card .member-profile-actions button:disabled {
    color: #9b9488;
    cursor: not-allowed;
}

.member-profile-actions a {
    color: #716b60;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

@media (max-width: 640px) {
    .member-profile-phone-grid {
        grid-template-columns: 1fr;
    }

    .member-profile-otp-row {
        grid-template-columns: 1fr;
    }

    .member-profile-card {
        padding: 16px;
    }

    .member-profile-card input[type="date"] {
        font-size: 15px;
    }

    .member-menu-modal,
    .member-profile-modal {
        align-items: end;
        padding: 0;
    }

    .member-menu-panel {
        width: 100%;
        max-height: min(82vh, 560px);
        overflow: auto;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -18px 42px rgba(24, 22, 18, 0.22);
    }
}

.member-card {
    display: grid;
    gap: 14px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.13), rgba(255,255,255,0)),
        var(--member-card-image, none),
        var(--member-card-bg, var(--submit-bg-color, #1d4f60));
    background-size: cover;
    background-position: center;
    color: var(--member-card-color, var(--submit-text-color, #ffffff));
    padding: 18px;
    box-shadow: 0 18px 38px rgba(29, 79, 96, 0.22);
}

.member-app.voucher-detail-mode,
.member-app.campaign-detail-mode,
.member-app.point-detail-mode {
    gap: 0;
    padding: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    min-height: calc(100vh - 46px);
    min-height: calc(100dvh - 46px);
}

.member-app.voucher-detail-mode > .member-topbar,
.member-app.voucher-detail-mode > .member-alert,
.member-app.voucher-detail-mode > .member-card,
.member-app.voucher-detail-mode > .member-card-wallet,
.member-app.voucher-detail-mode > .member-quick-actions,
.member-app.campaign-detail-mode > .member-topbar,
.member-app.campaign-detail-mode > .member-alert,
.member-app.campaign-detail-mode > .member-card,
.member-app.campaign-detail-mode > .member-card-wallet,
.member-app.campaign-detail-mode > .member-quick-actions,
.member-app.point-detail-mode > .member-topbar,
.member-app.point-detail-mode > .member-alert,
.member-app.point-detail-mode > .member-card,
.member-app.point-detail-mode > .member-card-wallet,
.member-app.point-detail-mode > .member-quick-actions {
    display: none;
}

.member-app.voucher-detail-mode .member-tab-panels,
.member-app.campaign-detail-mode .member-tab-panels,
.member-app.point-detail-mode .member-tab-panels {
    gap: 0;
}

.member-app.voucher-detail-mode .member-tab-panel.active,
.member-app.campaign-detail-mode .member-tab-panel.active,
.member-app.point-detail-mode .member-tab-panel.active {
    display: block;
}

.member-card-head span,
.member-code-area span {
    display: block;
    opacity: 0.76;
    font-size: 12px;
    font-weight: 800;
}

.member-card-head strong {
    display: block;
    margin-top: 3px;
    font-size: 22px;
}

.member-chip {
    min-height: 28px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.12);
    opacity: 1 !important;
}

.member-qr-button {
    width: 34px;
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 8px;
    background: rgba(255,255,255,0.13);
    color: currentColor;
    padding: 0;
    box-shadow: none;
}

.member-qr-button span {
    width: 17px;
    height: 17px;
    display: block;
    opacity: 1;
    background:
        linear-gradient(currentColor 0 0) 0 0 / 7px 7px no-repeat,
        linear-gradient(currentColor 0 0) 10px 0 / 7px 7px no-repeat,
        linear-gradient(currentColor 0 0) 0 10px / 7px 7px no-repeat,
        linear-gradient(currentColor 0 0) 12px 12px / 5px 5px no-repeat,
        linear-gradient(currentColor 0 0) 8px 8px / 3px 3px no-repeat;
}

.member-name {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
}

.member-code-area {
    display: grid;
    gap: 7px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    padding: 12px;
}

.member-code-area--hidden {
    height: 93px;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
}

.member-code-area strong {
    font-size: 24px;
    letter-spacing: 0;
}

.member-real-barcode {
    width: 100%;
    height: 46px;
    display: block;
    color: currentColor;
    opacity: 0.96;
}

.member-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    place-items: center;
    padding: 22px;
}

.member-qr-modal.active {
    display: grid;
}

.member-qr-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 19, 17, 0.58);
    backdrop-filter: blur(2px);
}

.member-qr-panel {
    position: relative;
    width: min(320px, 100%);
    display: grid;
    justify-items: center;
    gap: 14px;
    border-radius: 8px;
    background: #fffdf7;
    color: #252722;
    padding: 22px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.member-qr-panel span {
    color: #716b60;
    font-size: 13px;
    font-weight: 900;
}

.member-qr-panel strong {
    font-size: 22px;
    letter-spacing: 0;
}

.member-qr-panel button {
    width: 100%;
    min-height: 42px;
    border-radius: 8px;
    background: var(--member-theme-color, #1d4f60);
    color: var(--submit-text-color, #ffffff);
    font-weight: 900;
}

.member-qr-svg {
    width: 190px;
    height: 190px;
    display: block;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
}

.member-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    border: 1px solid #d7d0c2;
    border-radius: 8px;
    background: #fffdf7;
    padding: 5px;
    box-shadow: 0 12px 28px rgba(50, 48, 42, 0.06);
}

.member-quick-actions button {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #5f594e;
    box-shadow: none;
    font-size: 13px;
    font-weight: 900;
    padding: 0 6px;
}

.member-quick-actions button.active {
    background: var(--member-theme-color, #1d4f60);
    color: var(--submit-text-color, #ffffff);
}

.member-tab-panels,
.member-tab-panel {
    display: grid;
    gap: 14px;
}

.member-tab-panel {
    display: none;
}

.member-tab-panel.active {
    display: grid;
}

.voucher-filter-bar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 2px 14px;
}

.voucher-filter-bar button {
    flex: 0 0 auto;
    width: auto;
    height: 30px;
    min-height: 30px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border: 0;
    border-radius: 8px;
    background: #f4f3f0;
    color: #928d84;
    font-weight: 850;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    padding: 0 11px;
    box-shadow: none;
}

.voucher-filter-bar button:hover {
    color: var(--member-theme-color, #1d4f60);
}

.voucher-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.voucher-filter-sheet.active {
    display: flex;
}

.voucher-filter-sheet.active .voucher-filter-backdrop {
    animation: voucher-filter-backdrop-in 220ms ease-out both;
}

.voucher-filter-sheet.active .voucher-filter-drawer {
    animation: voucher-filter-drawer-up 320ms cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes voucher-filter-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes voucher-filter-drawer-up {
    from { transform: translate3d(0, 100%, 0); }
    to { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .voucher-filter-sheet.active .voucher-filter-backdrop,
    .voucher-filter-sheet.active .voucher-filter-drawer {
        animation: none;
    }
}

.voucher-filter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.54);
    backdrop-filter: blur(1px);
}

.voucher-filter-panel {
    position: relative;
    width: min(82vw, 336px);
    max-height: min(62vh, 420px);
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
    border-radius: 14px;
    background: #eeeeee;
    color: #1d1d1d;
    padding: 18px 18px 14px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.voucher-filter-panel h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
}

.voucher-filter-options {
    width: 100%;
    min-width: 0;
    max-height: 312px;
    display: grid;
    gap: 8px;
    justify-self: stretch;
    overflow-y: auto;
    padding: 0;
}

.voucher-filter-options button {
    width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    color: #5d5d5d;
    font-size: 13px;
    font-weight: 850;
    text-align: left;
    padding: 0 10px;
    box-shadow: none;
    justify-content: start;
}

.voucher-filter-radio {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #dddddd;
    box-shadow: inset 0 0 0 1px #cfcfcf;
}

.voucher-filter-options button.active .voucher-filter-radio {
    background: var(--member-theme-color, #1d4f60);
    box-shadow: inset 0 0 0 3px #ffffff, 0 0 0 1px var(--member-theme-color, #1d4f60);
}

.voucher-filter-options button.active {
    color: #1d1d1d;
}

.voucher-filter-cancel {
    justify-self: end;
    width: auto;
    min-height: 28px;
    border: 0;
    background: transparent;
    color: #777777;
    font-size: 13px;
    font-weight: 850;
    padding: 0;
    box-shadow: none;
}

.member-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 9px;
}

.member-kpi-grid article,
.member-panel {
    border: 1px solid #ded9ce;
    border-radius: 8px;
    background: #fffdf7;
    box-shadow: 0 12px 28px rgba(50, 48, 42, 0.06);
}

.member-kpi-grid article {
    min-height: 104px;
    display: grid;
    gap: 5px;
    padding: 12px 10px;
}

.member-kpi-grid span,
.member-section-title p,
.member-kpi-grid small,
.voucher-ticket small,
.campaign-strip small,
.member-feed small {
    color: #716b60;
}

.member-kpi-grid span,
.voucher-ticket span,
.campaign-strip span,
.member-feed span {
    font-size: 12px;
    font-weight: 850;
}

.member-kpi-grid strong {
    font-size: 22px;
}

.member-kpi-grid small {
    font-size: 11px;
    line-height: 1.35;
}

.member-panel {
    display: grid;
    gap: 14px;
    padding: 15px;
}

.member-section-title h2,
.member-section-title p {
    margin: 0;
}

.member-section-title h2 {
    font-size: 18px;
}

.member-section-title p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
}

.member-tier-current {
    display: block;
    margin-top: 5px;
    color: #25282c;
    font-size: 17px;
    line-height: 1.25;
}

.member-tier-expiry {
    display: block;
    margin-top: 3px;
    color: #716b60;
    font-size: 12px;
    font-weight: 750;
}

.member-tier-owned-groups {
    display: grid;
    gap: 12px;
}

.member-tier-owned-group {
    display: grid;
    gap: 8px;
    border-top: 1px solid #ded9ce;
    padding-top: 12px;
}

.member-tier-owned-group h3,
.member-tier-owned-group p {
    margin: 0;
}

.member-tier-owned-group h3 {
    color: #6f6a60;
    font-size: 13px;
    font-weight: 900;
}

.member-tier-owned-group p {
    color: #aaa398;
    font-size: 13px;
    font-weight: 750;
}

.member-tier-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.member-tier-chip {
    display: grid;
    gap: 2px;
    min-width: 118px;
    border: 1px solid #ded9ce;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
    padding: 9px 10px;
}

.member-tier-chip strong {
    color: #292b2e;
    font-size: 13px;
    font-weight: 950;
}

.member-tier-chip small {
    color: #787267;
    font-size: 11px;
    font-weight: 750;
}

.member-section-title a {
    color: var(--member-theme-color, #1d4f60);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.member-progress {
    display: grid;
    gap: 9px;
}

.member-progress-track {
    height: 10px;
    border-radius: 999px;
    background: #e8e2d7;
    overflow: hidden;
}

.member-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--member-theme-color, #1d4f60);
}

.member-progress-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #716b60;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.member-progress-labels {
    color: #565146;
    font-size: 12px;
    font-weight: 850;
}

.member-tier-redemption-list {
    display: grid;
    gap: 10px;
}

.member-tier-redemption-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 0;
    border-bottom: 1px solid #ded9ce;
    background: transparent;
    padding: 14px 0;
    text-align: left;
}

.member-tier-redemption-card:last-child {
    border-bottom: 0;
}

.member-tier-redemption-card strong,
.member-tier-redemption-card small,
.member-tier-redemption-card p {
    display: block;
}

.member-tier-redemption-card strong {
    color: #25282c;
    font-size: 15px;
    font-weight: 900;
}

.member-tier-redemption-card small {
    margin-top: 4px;
    color: var(--member-theme-color, #1d4f60);
    font-size: 13px;
    font-weight: 900;
}

.member-tier-redemption-card p {
    margin: 6px 0 0;
    color: #716b60;
    font-size: 13px;
    line-height: 1.5;
}

.member-tier-card-arrow {
    color: #8f887d;
    font-size: 28px;
    line-height: 1;
}

.member-tier-redemption-form {
    justify-self: end;
}

.member-tier-redemption-card .voucher-use-button {
    width: 84px;
    min-width: 84px;
    height: 34px;
    min-height: 34px;
    border-radius: 8px;
    padding: 0;
    font-size: 13px;
    line-height: 1;
    justify-self: end;
}

.member-tier-list-view:not(.active) {
    display: none;
}

.member-tier-detail-form {
    margin-top: auto;
}

.voucher-list,
.member-feed {
    display: grid;
    gap: 10px;
}

.voucher-list {
    justify-items: stretch;
}

.member-alert {
    border: 1px solid #cfd8c8;
    border-radius: 8px;
    background: #f3f8ef;
    color: #36512d;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 14px;
}

.member-alert.success {
    animation: member-alert-fade 4.8s ease forwards;
}

.member-alert.error {
    border-color: #dfc0b7;
    background: #fff3ef;
    color: #8a2f1e;
}

@keyframes member-alert-fade {
    0%,
    72% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.voucher-card {
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    background: #fffdf7;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(50, 48, 42, 0.07);
}

.voucher-card.muted {
    opacity: 0.72;
}

.voucher-list-view,
.campaign-list-view,
.point-redemption-list-view {
    display: none;
}

.voucher-list-view.active,
.voucher-detail-view.active,
.campaign-list-view.active,
.campaign-detail-view.active,
.point-redemption-list-view.active {
    display: grid;
}

.member-app.point-detail-mode [data-member-panel="points"] > .member-kpi-grid,
.member-app.point-detail-mode .point-redemption-list-view {
    display: none;
}

.member-app.tier-detail-mode > .member-topbar,
.member-app.tier-detail-mode > .member-alert,
.member-app.tier-detail-mode > .member-card,
.member-app.tier-detail-mode > .member-card-wallet,
.member-app.tier-detail-mode > .member-quick-actions {
    display: none;
}

.member-app.tier-detail-mode {
    max-width: 430px;
    padding: 0;
    background: #f8f6ef;
}

.voucher-detail-view,
.campaign-detail-view {
    display: none;
    gap: 16px;
    min-height: calc(100vh - 46px);
    min-height: calc(100dvh - 46px);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(45, 44, 39, 0.34), rgba(45, 44, 39, 0.78)),
        var(--member-center-surface, #f8f6ef);
    color: #ffffff;
    padding: 0 16px 18px;
    overflow: hidden;
}

.voucher-detail-header {
    min-height: 58px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    margin: 0 -16px;
    padding: 0 14px;
    background: rgba(49, 48, 43, 0.36);
    backdrop-filter: blur(12px);
}

.voucher-detail-header button {
    width: 40px;
    min-height: 40px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 42px;
    line-height: 1;
    padding: 0;
}

.voucher-detail-header h2 {
    margin: 0;
    font-size: 22px;
    text-align: center;
}

.voucher-list-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    justify-content: stretch;
    justify-self: stretch;
    justify-items: stretch;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #2b2d30;
    padding: 0;
    text-align: center;
    box-shadow: none;
}

.voucher-list-card.muted {
    opacity: 0.68;
}

.voucher-list-banner {
    display: block;
    width: 100%;
    justify-self: stretch;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(29, 79, 96, 0.96), rgba(117, 101, 83, 0.92));
    box-shadow: 0 12px 24px rgba(42, 40, 35, 0.16);
}

.voucher-list-banner img,
.voucher-detail-banner img,
.campaign-list-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.voucher-list-banner.empty,
.voucher-detail-banner.empty {
    display: block;
}

.voucher-list-meta {
    display: grid;
    gap: 4px;
    justify-items: center;
}

.voucher-list-meta strong {
    color: #334044;
    font-size: 19px;
    font-weight: 950;
    line-height: 1.3;
}

.voucher-list-meta small {
    color: #9a958c;
    font-size: 15px;
    font-weight: 750;
}

.voucher-detail-banner {
    height: 168px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(29, 79, 96, 0.96), rgba(117, 101, 83, 0.92));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.voucher-detail-banner strong {
    min-height: 100%;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
}

.voucher-detail-body {
    display: grid;
    gap: 10px;
}

.voucher-detail-body h3,
.voucher-detail-body h4,
.voucher-detail-body p {
    margin: 0;
}

.voucher-detail-body h3 {
    font-size: 22px;
    line-height: 1.35;
}

.voucher-detail-period,
.voucher-detail-foot {
    color: rgba(255, 255, 255, 0.72);
}

.voucher-detail-body h4 {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
}

.voucher-detail-body p {
    font-size: 15px;
    line-height: 1.75;
}

.voucher-detail-foot {
    margin-top: 18px;
    font-size: 13px;
    text-align: center;
}

.voucher-use-button {
    width: 100%;
    min-height: 54px;
    border-radius: 999px;
    background: var(--member-theme-color, #1d4f60);
    color: var(--submit-text-color, #ffffff);
    font-size: 18px;
    font-weight: 950;
    margin-top: auto;
}

.voucher-banner {
    position: relative;
    min-height: 118px;
    background:
        linear-gradient(135deg, rgba(29, 79, 96, 0.96), rgba(117, 101, 83, 0.92));
}

.voucher-banner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.voucher-banner.empty {
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
}

.voucher-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.voucher-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.voucher-title-row span,
.voucher-body small {
    color: #716b60;
    font-size: 12px;
    font-weight: 850;
}

.voucher-title-row em {
    border-radius: 999px;
    background: rgba(29, 79, 96, 0.1);
    color: var(--member-theme-color, #1d4f60);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    padding: 4px 9px;
    white-space: nowrap;
}

.voucher-body strong {
    display: block;
    font-size: 18px;
}

.voucher-body p {
    color: #5f594e;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.voucher-body dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.voucher-body dl div {
    border: 1px solid #e9e2d7;
    border-radius: 8px;
    background: #f8f6ef;
    padding: 9px;
}

.voucher-body dt,
.voucher-body dd {
    margin: 0;
}

.voucher-body dt {
    color: #786f61;
    font-size: 11px;
    font-weight: 850;
}

.voucher-body dd {
    color: #2b2d30;
    font-size: 13px;
    font-weight: 900;
    margin-top: 3px;
}

.voucher-redeem-button {
    width: 100%;
    min-height: 42px;
    border-radius: 999px;
    background: var(--member-theme-color, #1d4f60);
    color: var(--submit-text-color, #ffffff);
    padding: 0 16px;
}

.voucher-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.voucher-modal.active {
    display: flex;
}

.voucher-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 27, 24, 0.52);
}

.voucher-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 360px);
    display: grid;
    gap: 12px;
    border: 1px solid #ded6ca;
    border-radius: 8px;
    background: #fffdf7;
    color: #2b2d30;
    padding: 20px;
    box-shadow: 0 28px 70px rgba(25, 24, 21, 0.28);
}

.voucher-modal-panel > span {
    color: var(--member-theme-color, #1d4f60);
    font-size: 12px;
    font-weight: 900;
}

.voucher-modal-panel h3,
.voucher-modal-panel p {
    margin: 0;
}

.voucher-modal-panel h3 {
    max-width: calc(100% - 40px);
    font-size: 20px;
}

.voucher-modal-panel p {
    color: #615a4f;
    font-size: 13px;
    line-height: 1.6;
}

.voucher-redeem-form {
    display: grid;
    gap: 10px;
}

.voucher-redeem-error {
    border: 1px solid rgba(155, 64, 54, 0.22);
    border-radius: 7px;
    background: rgba(155, 64, 54, 0.08);
    color: #9b4036 !important;
    font-size: 13px;
    font-weight: 850;
    padding: 10px 12px;
}

.voucher-redeem-form input {
    min-height: 40px;
    border: 1px solid #d8d0c3;
    border-radius: 7px;
    background: #fffdf9;
    color: #2b2d30;
    font-size: 13px;
    padding: 0 10px;
}

.voucher-disabled {
    width: 100%;
    min-height: 40px;
    border-radius: 999px;
    background: var(--member-theme-color, #1d4f60);
    color: var(--submit-text-color, #ffffff);
    padding: 0 14px;
}

.voucher-confirm-actions,
.voucher-redeem-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    margin-top: 4px;
}

.voucher-confirm-actions button,
.voucher-redeem-actions button {
    width: auto;
    min-height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6c665d;
    font-size: 14px;
    font-weight: 850;
    padding: 4px 0;
    box-shadow: none;
}

.voucher-confirm-actions button:last-child,
.voucher-redeem-actions button:last-child {
    color: var(--member-theme-color, #1d4f60);
}

.voucher-disabled {
    opacity: 0.55;
}

.voucher-empty {
    border: 1px dashed #d4cabb;
    border-radius: 8px;
    color: #716b60;
    padding: 18px;
    text-align: center;
}

.voucher-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e4ded2;
    border-radius: 8px;
    background: #f8f6ef;
    padding: 12px;
}

.voucher-ticket strong,
.campaign-strip strong,
.member-feed strong {
    display: block;
    margin: 4px 0;
}

.voucher-ticket button {
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    border-radius: 999px;
    background: var(--member-theme-color, #1d4f60);
    color: var(--submit-text-color, #ffffff);
    padding: 0 14px;
}

.voucher-ticket.muted {
    background: #fffaf0;
}

.campaign-strip {
    display: grid;
    gap: 18px;
}

.campaign-list-card,
.campaign-empty {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    border: 0;
    background: transparent;
    color: #2b2d30;
    padding: 0;
    text-align: center;
    box-shadow: none;
}

.campaign-list-banner {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.62)),
        linear-gradient(135deg, #8a7767, #434b3e);
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 24px rgba(42, 40, 35, 0.16);
}

.campaign-list-banner.empty {
    background:
        linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.62)),
        linear-gradient(135deg, #9a6a53, #666d5f);
}

.campaign-list-meta,
.campaign-empty {
    display: grid;
    gap: 4px;
    justify-items: center;
}

.campaign-empty {
    min-height: 150px;
    align-content: center;
    border: 1px solid #ded9ce;
    border-radius: 8px;
    background: #fffdf7;
    padding: 16px;
}

.campaign-list-meta strong,
.campaign-empty strong {
    color: #334044;
    font-size: 19px;
    font-weight: 950;
    line-height: 1.3;
}

.campaign-list-meta small {
    color: #9a958c;
    font-size: 15px;
    font-weight: 750;
}

.campaign-strip small,
.campaign-strip span {
    color: #716b60;
}

.campaign-list-view .voucher-filter-bar {
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 0;
    margin-bottom: 17px;
}

.member-app.member-active-tab-campaigns .member-tab-panels {
    margin-top: 12px;
}

.campaign-list-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    color: #ffffff;
    letter-spacing: 1px;
}

.campaign-list-heading strong {
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 1px;
}

.campaign-list-heading span {
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 1px;
}

.campaign-list-view .voucher-filter-bar .voucher-filter-trigger {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin: 0;
    padding: 0;
}

.campaign-list-view .voucher-filter-trigger img {
    width: 20px;
    height: 20px;
    display: block;
}

.campaign-list-view .campaign-strip {
    display: grid;
    align-self: start;
    align-content: start;
    gap: 18px;
}

.campaign-list-view .campaign-filter-empty[hidden] {
    display: none;
}

.campaign-list-view.active {
    align-content: start;
    grid-auto-rows: max-content;
    gap: 0;
}

.campaign-list-view .campaign-empty-state {
    box-sizing: border-box;
    width: 100%;
    max-width: 350px;
    height: 271px;
    min-height: 271px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 21px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 53px 20px 20px;
    box-shadow: none;
}

.campaign-list-view .campaign-empty-state > img {
    width: 101px;
    height: 101px;
    display: block;
    flex: 0 0 101px;
    object-fit: contain;
}

.campaign-list-view .campaign-empty-state > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1px;
    text-align: center;
}

.campaign-list-view .campaign-empty-state strong,
.campaign-list-view .campaign-empty-state span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.campaign-list-view .campaign-list-card {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    padding: 0;
    color: #ffffff;
    text-align: left;
    box-shadow: none;
}

.campaign-list-view .campaign-list-banner {
    width: 100%;
    height: auto;
    aspect-ratio: 350 / 205;
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: #1a1a1a;
}

.campaign-list-view .campaign-list-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.campaign-list-view .campaign-list-meta {
    box-sizing: border-box;
    width: 100%;
    height: 67px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
    background: #353535;
    padding: 11px 9px 11px 15px;
}

.campaign-list-copy {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
}

.campaign-list-view .campaign-list-copy strong {
    max-width: 100%;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.campaign-list-view .campaign-list-copy > span {
    max-width: 100%;
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.campaign-list-enter {
    width: 17px;
    height: 17px;
    display: block;
    flex: 0 0 17px;
    align-self: flex-end;
    object-fit: contain;
}

.campaign-list-view .campaign-list-date {
    width: 100%;
    height: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #a3a3a3;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
}

.campaign-detail-link {
    width: 100%;
    min-height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--member-theme-color, #1d4f60);
    color: var(--submit-text-color, #ffffff);
    font-size: 16px;
    font-weight: 950;
    text-decoration: none;
    margin-top: 12px;
}

.member-feed div {
    border-bottom: 1px solid #ebe5da;
    padding-bottom: 10px;
}

.member-feed div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 640px) {
    .register-panel {
        padding: 20px 16px;
    }

    .success-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .member-shell {
        padding: 0;
    }

    .member-app {
        min-height: 100vh;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .brand-wall-app {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .member-app.voucher-detail-mode,
    .member-app.campaign-detail-mode,
    .member-app.point-detail-mode,
    .voucher-detail-view {
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
    }

    .member-kpi-grid {
        grid-template-columns: 1fr;
    }

    .voucher-body dl,
    .voucher-redeem-form {
        grid-template-columns: 1fr;
    }

    .campaign-strip {
        grid-template-columns: 1fr;
    }
}

.campaign-detail-view.campaign-figma-detail {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    gap: 0;
    overflow: visible;
    border-radius: 0;
    background: #000000;
    color: #ffffff;
    padding: 17px 20px 40px;
}

.campaign-detail-view.campaign-figma-detail.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.campaign-detail-head {
    width: 100%;
    height: 40px;
    flex: 0 0 40px;
}

.campaign-detail-back-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    display: block;
    border: 0;
    background: transparent;
    padding: 0;
}

.campaign-detail-back-button img {
    width: 40px;
    height: 40px;
    display: block;
}

.campaign-detail-title {
    width: 100%;
    margin: 27px 0 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: 1px;
    text-align: left;
    overflow-wrap: anywhere;
}

.campaign-detail-hero {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 235px;
    flex: 0 0 235px;
    margin-top: 24px;
    overflow: hidden;
    border-radius: 10px;
    background: #1a1a1a;
}

.campaign-detail-hero > img:not(.campaign-detail-alarm) {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.campaign-detail-alarm {
    position: absolute;
    left: 76px;
    bottom: 47px;
    width: 12px;
    height: 12px;
    display: block;
}

.campaign-detail-content {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    margin-top: 27px;
}

.campaign-detail-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
}

.campaign-detail-section h3,
.campaign-detail-section p {
    width: 100%;
    margin: 0;
    color: #ffffff;
    letter-spacing: 1px;
}

.campaign-detail-section h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.campaign-detail-section p,
.campaign-detail-info-link {
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 1px;
    text-align: justify;
}

.campaign-detail-rich-content {
    width: 100%;
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.campaign-detail-rich-content p,
.campaign-detail-rich-content div {
    margin: 0 0 12px;
}

.campaign-detail-rich-content p:last-child,
.campaign-detail-rich-content div:last-child {
    margin-bottom: 0;
}

.campaign-detail-rich-content ul,
.campaign-detail-rich-content ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

.campaign-detail-divider {
    width: 100%;
    height: 1px;
    display: block;
    object-fit: fill;
}

.campaign-detail-info-link {
    display: block;
    margin-top: -17px;
    text-decoration: none;
}

/* Figma member interface refresh */
.member-shell {
    background: #000000;
    color: var(--member-center-text, #ffffff);
    padding: 0;
}

.member-app {
    width: min(430px, 100%);
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-rows: auto auto 1fr auto;
    gap: 14px;
    border: 0;
    border-radius: 0;
    background: #000000;
    color: var(--member-center-text, #ffffff);
    box-shadow: none;
    padding: 18px 18px 92px;
}

.member-app.tier-detail-mode {
    max-width: 430px;
    min-height: 100vh;
    min-height: 100dvh;
    border: 0;
    background: #000000;
    color: var(--member-center-text, #ffffff);
    box-shadow: none;
}

.member-app.tier-detail-mode .member-tab-panels {
    gap: 0;
}

.member-app.tier-detail-mode .member-tab-panel.active {
    display: block;
}

.member-topbar {
    min-height: 42px;
}

.member-menu-button,
.member-icon-button {
    color: var(--member-center-text, #ffffff);
    opacity: 0.92;
}

.member-menu-button:hover,
.member-icon-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.member-notice-button {
    justify-self: start;
}

.member-topbar-qr-button span {
    width: 18px;
    height: 18px;
    display: block;
    background:
        linear-gradient(#ffffff, #ffffff) 0 0 / 7px 7px no-repeat,
        linear-gradient(#ffffff, #ffffff) 11px 0 / 7px 7px no-repeat,
        linear-gradient(#ffffff, #ffffff) 0 11px / 7px 7px no-repeat,
        linear-gradient(#ffffff, #ffffff) 11px 11px / 3px 3px no-repeat,
        linear-gradient(#ffffff, #ffffff) 15px 11px / 3px 7px no-repeat,
        linear-gradient(#ffffff, #ffffff) 11px 15px / 7px 3px no-repeat;
    opacity: 0.92;
}

.member-language-popover {
    border-color: rgba(255, 255, 255, 0.14);
    background: #141414;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.48);
}

.member-language-popover a {
    color: rgba(255, 255, 255, 0.72);
}

.member-language-popover a:hover,
.member-language-popover a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.member-card {
    min-height: 154px;
    align-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0)),
        var(--member-card-image, none),
        var(--member-card-bg, #111111);
    background-size: cover;
    background-position: center;
    box-shadow: none;
    padding: 17px 18px;
}

.member-card-head strong {
    font-size: 24px;
    line-height: 1.12;
}

.member-name {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.86);
}

.member-qr-button {
    width: 30px;
    min-height: 30px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: currentColor;
}

.member-code-area--hidden {
    height: 56px;
}

.member-home-hero {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 71px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 0;
}

.member-home-hero p,
.member-home-hero strong,
.member-home-hero span {
    display: block;
    margin: 0;
}

.member-home-hero p {
    color: #ffffff;
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
}

.member-home-summary-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.member-home-tier,
.member-home-points {
    display: flex;
    align-items: center;
}

.member-home-tier {
    min-width: 0;
    height: 17px;
    gap: 7px;
}

.member-home-tier-icon {
    box-sizing: border-box;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    line-height: 0;
}

.member-home-tier-icon svg {
    box-sizing: border-box;
    width: 17px;
    height: 17px;
    display: block;
}

.member-home-tier-icon path {
    fill: var(--member-card-bg, var(--member-theme-color, #ffffff));
    stroke: var(--member-icon-border-color, transparent);
    stroke-width: 1px;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.member-home-tier strong {
    height: 17px;
    display: inline-flex;
    align-items: center;
    align-self: center;
    transform: translateY(1px);
    color: rgba(255, 255, 255, 0.52);
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 17px;
    letter-spacing: 1px;
}

.member-home-points {
    flex: 0 0 auto;
    gap: 7px;
}

.member-home-points img {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: block;
}

.member-home-points strong {
    color: #ffffff;
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1px;
}

.member-app.member-active-tab-home > .member-card-wallet--global {
    display: none;
}

body:has(.member-app.member-active-tab-home) {
    overflow: hidden;
}

.member-app.member-active-tab-home {
    width: min(430px, 100%);
    max-width: 100%;
    min-width: 0;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}

.member-app.member-active-tab-home .member-tab-panels,
.member-app.member-active-tab-home [data-member-panel="home"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.member-app.member-active-tab-home > .member-topbar {
    box-sizing: border-box;
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    margin-right: auto;
    margin-left: auto;
}

.member-app.member-active-tab-home > .member-topbar > .member-notice-button {
    transform: translateX(-10px);
}

.member-app.member-active-tab-home > .member-topbar > .member-topbar-actions {
    transform: translateX(7px);
}

.member-home-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    gap: 12px;
}

.member-app.member-active-tab-home [data-member-panel="home"] {
    gap: 0;
}

.member-app.member-active-tab-home .member-home-hero {
    margin-bottom: 40px;
}

.member-app.member-active-tab-home .member-home-section + .member-home-section {
    margin-top: 40px;
}

.member-home-carousel {
    width: 100%;
    display: grid;
    gap: 12px;
    overflow: hidden;
    min-width: 0;
}

.member-home-carousel-track {
    width: 100%;
    min-width: 0;
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.member-home-carousel-track::-webkit-scrollbar {
    display: none;
}

.member-home-banner {
    min-width: 0;
    width: 100%;
    flex: 0 0 100%;
    height: 161px;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    scroll-snap-align: start;
    background: linear-gradient(135deg, #1d4f60, #766b5b);
}

.member-home-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}

.member-home-carousel-progress {
    width: 100%;
    height: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-home-carousel-progress button {
    width: 25px;
    height: 2px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    transition: width 180ms ease, background-color 180ms ease;
}

.member-home-carousel-progress button.active {
    width: 54px;
    background: #ffffff;
}

.admin-banner-sort-list {
    display: grid;
    gap: 10px;
}

.admin-banner-sort-item {
    display: grid;
    grid-template-columns: 34px 132px minmax(160px, 1fr) auto auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(32, 36, 42, 0.12);
    border-radius: 12px;
    background: #ffffff;
}

.admin-banner-sort-item.dragging { opacity: 0.45; }
.admin-banner-sort-item img { width: 132px; height: 61px; object-fit: cover; border-radius: 8px; }
.admin-banner-sort-item strong, .admin-banner-sort-item small { display: block; }
.admin-banner-sort-item small { margin-top: 4px; color: #73777d; }
.admin-drag-handle { border: 0; background: transparent; color: #74787d; font-size: 22px; cursor: grab; padding: 0; }
.admin-banner-status { padding: 5px 9px; border-radius: 999px; background: #ececec; color: #666; font-size: 12px; font-weight: 800; }
.admin-banner-status.active { background: #dff4e7; color: #16743b; }

.admin-brand-content-editor {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(32, 36, 42, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
}

.admin-brand-content-heading,
.admin-brand-content-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-brand-content-heading > div {
    display: grid;
    gap: 4px;
}

.admin-brand-content-heading strong {
    color: #20242a;
    font-size: 16px;
}

.admin-brand-content-heading small {
    color: #73777d;
    font-size: 12px;
}

.admin-brand-content-blocks {
    display: grid;
    gap: 14px;
}

.admin-brand-content-block {
    display: grid;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(32, 36, 42, 0.14);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(32, 36, 42, 0.04);
}

.admin-brand-content-block.dragging {
    opacity: 0.5;
}

.admin-brand-content-block-head {
    justify-content: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(32, 36, 42, 0.1);
}

.admin-brand-content-block-head strong {
    color: #30343a;
    font-size: 14px;
}

.admin-brand-content-drag,
.admin-brand-content-remove,
.admin-brand-rich-toolbar button {
    min-height: 0;
    border: 0;
    box-shadow: none;
}

.admin-brand-content-drag {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 7px;
    background: #eef0eb;
    color: #596056;
    cursor: grab;
}

.admin-brand-content-remove {
    width: auto;
    height: 30px;
    margin-left: auto;
    padding: 0 10px;
    border-radius: 7px;
    background: #fff0ed;
    color: #a84939;
    font-size: 12px;
}

.admin-brand-rich-field {
    display: grid;
    gap: 0;
}

.admin-brand-rich-field > span {
    margin-bottom: 6px;
    color: #30343a;
    font-size: 13px;
    font-weight: 700;
}

.admin-brand-rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px;
    border: 1px solid #d9dcd5;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: #f5f6f2;
}

.admin-brand-rich-toolbar button {
    width: auto;
    height: 30px;
    padding: 0 9px;
    border-radius: 6px;
    background: #ffffff;
    color: #454a51;
    font-size: 12px;
}

.admin-brand-rich-toolbar button:hover {
    background: #e4e8df;
}

.admin-rich-font-size {
    width: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #454a51;
    font-size: 12px;
    font-weight: 700;
}

.admin-rich-font-size input {
    width: 62px;
    min-height: 30px;
    height: 30px;
    border-radius: 6px;
    background: #ffffff;
    padding: 0 7px;
    font-size: 12px;
}

.admin-rich-font-size small {
    color: #73777d;
    font-size: 11px;
}

.admin-rich-font-size button {
    height: 30px;
    padding: 0 10px;
    background: #39443a;
    color: #ffffff;
}

.admin-campaign-rich-editor {
    min-height: 220px;
}

.admin-brand-rich-editor {
    min-height: 150px;
    overflow-y: auto;
    padding: 12px 14px;
    border: 1px solid #d9dcd5;
    border-radius: 0 0 9px 9px;
    background: #ffffff;
    color: #20242a;
    font-size: 14px;
    line-height: 1.7;
    outline: 0;
}

.admin-brand-rich-editor:focus {
    border-color: #76806f;
    box-shadow: 0 0 0 3px rgba(93, 105, 87, 0.1);
}

.admin-brand-rich-editor:empty::before {
    content: attr(data-placeholder);
    color: #9a9e98;
    pointer-events: none;
}

.admin-brand-rich-editor p {
    margin: 0 0 10px;
}

.admin-brand-rich-editor ul,
.admin-brand-rich-editor ol {
    margin: 0 0 10px;
    padding-left: 24px;
}

@media (max-width: 820px) {
    .admin-banner-sort-item { grid-template-columns: 28px 96px 1fr; }
    .admin-banner-sort-item img { width: 96px; height: 50px; }
}

.member-home-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.member-home-heading h2 {
    margin: 0;
    color: #ffffff;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 1px;
}

.member-home-heading a,
.member-home-heading button {
    width: auto;
    min-height: auto;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 850;
    padding: 0;
    text-decoration: none;
    box-shadow: none;
}

.member-home-brand-heading {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    position: relative;
    padding-right: 52px;
    color: #ffffff;
    text-decoration: none;
}

.member-home-brand-next {
    width: 40px;
    height: 40px;
    min-height: 0;
    flex: 0 0 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    box-shadow: none;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    visibility: visible;
    opacity: 1;
    position: absolute;
    z-index: 2;
    top: 5px;
    right: 0;
}

.member-home-brand-next:disabled {
    cursor: default;
}

.member-home-brand-heading > span {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.member-home-brand-heading strong {
    width: 100%;
    display: block;
    color: #ffffff;
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.member-home-brand-heading small {
    width: 100%;
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 1px;
}

.member-home-brand-heading img,
.member-home-brand-heading svg {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: block;
}

.member-home-feature {
    width: 100%;
    display: grid;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    padding: 0;
    text-align: left;
}

article.member-home-feature {
    cursor: default;
}

.member-home-feature-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #1d4f60, #766b5b);
}

.member-home-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-home-feature small,
.member-home-brand-card small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.member-home-feature strong {
    display: block;
    color: #ffffff;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.3;
}

.member-home-feature em {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.55;
}

.member-home-brand-carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-right: 0;
    overflow: visible;
}

.member-home-brand-track {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.member-home-brand-track::-webkit-scrollbar { display: none; }

.member-home-brand-slide {
    width: 145px;
    height: 170px;
    min-height: 0;
    flex: 0 0 145px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #262626;
    color: #ffffff;
    scroll-snap-align: start;
    box-shadow: none;
    transition: height 180ms ease;
    touch-action: pan-x;
}

.member-home-brand-slide.active { height: 180px; }
.member-home-brand-slide-image { width: 100%; height: 135px; min-height: 0; flex: 0 0 135px; display: grid; place-items: center; overflow: hidden; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: height 180ms ease, flex-basis 180ms ease; cursor: pointer; }
.member-home-brand-slide.active .member-home-brand-slide-image { height: 145px; flex-basis: 145px; }
.member-home-brand-slide-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.member-home-brand-slide-image > span { font-size: 40px; font-weight: 800; }
.member-home-brand-slide-footer { width: 100%; height: 35px; flex: 0 0 35px; display: flex; align-items: center; padding: 0 10px; background: #353535; }
.member-home-brand-slide-footer strong { min-width: 0; overflow: hidden; color: #fff; font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif; font-size: 13px; font-weight: 500; line-height: 1; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }

.member-home-brand-progress {
    width: calc(100% - 22px);
    height: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.member-home-brand-progress button {
    width: 25px;
    height: 2px;
    min-height: 0;
    flex: 0 0 25px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #3e3e3e;
    box-shadow: none;
    transition: width 180ms ease, flex-basis 180ms ease, background-color 180ms ease;
}

.member-home-brand-progress button.active {
    width: 54px;
    flex-basis: 54px;
    background: #d9d9d9;
}

.member-home-brand-details {
    display: none;
    position: fixed;
    z-index: 35;
    left: 50%;
    bottom: 0;
    width: min(392px, 100vw);
    min-height: 169px;
    margin: 0;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
    background: rgba(220, 220, 220, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: min-height 260ms ease;
}

.member-home-brand-detail {
    min-height: 169px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 13px 20px 86px 21px;
    transition: min-height 260ms ease;
}

.member-app.member-active-tab-home .member-topbar,
.member-app.member-active-tab-home .member-home-hero,
.member-app.member-active-tab-home [data-member-panel="home"] > .member-home-section > .member-home-heading,
.member-app.member-active-tab-home [data-member-panel="home"] > .member-home-section > .member-home-carousel,
.member-app.member-active-tab-home [data-member-panel="home"] > .member-home-section > .member-home-brand-heading,
.member-app.member-active-tab-home .member-home-brand-track,
.member-app.member-active-tab-home .member-home-brand-progress {
    transition: transform 260ms ease;
}

.member-app.member-active-tab-home.is-home-brand-expanded .member-topbar,
.member-app.member-active-tab-home.is-home-brand-expanded .member-home-hero,
.member-app.member-active-tab-home.is-home-brand-expanded [data-member-panel="home"] > .member-home-section > .member-home-heading,
.member-app.member-active-tab-home.is-home-brand-expanded [data-member-panel="home"] > .member-home-section > .member-home-carousel,
.member-app.member-active-tab-home.is-home-brand-expanded [data-member-panel="home"] > .member-home-section > .member-home-brand-heading,
.member-app.member-active-tab-home.is-home-brand-expanded .member-home-brand-track,
.member-app.member-active-tab-home.is-home-brand-expanded .member-home-brand-progress {
    transform: translateY(-56px);
}

.member-home-brand-details.is-expanded,
.member-home-brand-details.is-expanded .member-home-brand-detail {
    min-height: 225px;
}

.member-home-brand-detail[hidden] { display: none; }
.member-home-brand-detail > div { width: 100%; height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.member-home-brand-detail strong { min-width: 0; color: #fff; font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif; font-size: 20px; font-weight: 500; line-height: 25px; letter-spacing: 1px; text-transform: uppercase; }
.member-home-brand-detail > div > button { width: 24px; height: 24px; min-height: 0; flex: 0 0 24px; display: block; padding: 0; border: 0; background: transparent; box-shadow: none; }
.member-home-brand-detail > div > button img { width: 24px; height: 24px; display: block; }
.member-home-brand-detail p { width: 100%; margin: 0; color: #fff; font-size: 14px; font-weight: 400; line-height: 31px; letter-spacing: 1px; }

.member-home-brand-detail-view {
    position: fixed;
    z-index: 1100;
    inset: 0 auto 0 50%;
    width: min(430px, 100vw);
    height: 100dvh;
    min-height: 100dvh;
    display: none;
    overflow-y: auto;
    scrollbar-width: none;
    transform: translateX(-50%);
    background: #000000;
    color: #ffffff;
    padding: 0;
}

body.member-brand-detail-open {
    overflow: hidden;
}

.member-home-brand-detail-view::-webkit-scrollbar { display: none; }

.member-home-brand-detail-view.active { display: block; }

.member-home-brand-detail-back {
    position: absolute;
    z-index: 2;
    top: 17px;
    left: 20px;
    width: 40px;
    height: 40px;
    min-height: 0;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.member-home-brand-detail-back img { width: 40px; height: 40px; display: block; }

.member-home-brand-detail-view > h2 {
    width: calc(100% - 48px);
    margin: 0 24px 11px;
    color: #ffffff;
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.member-home-brand-detail-banner {
    width: 100%;
    height: 370px;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: #262626;
}

.member-home-brand-detail-banner img { width: 100%; height: 100%; display: block; object-fit: cover; }

.member-home-brand-detail-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: calc(100vh - 336px);
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: -34px;
    border-radius: 20px 20px 0 0;
    background: #000000;
    padding: 30px 25px 28px;
}

.member-home-brand-detail-title { width: 100%; display: flex; flex-direction: column; gap: 5px; padding-bottom: 13px; border-bottom: 1px solid #323232; }
.member-home-brand-detail-title small { color: #fff; font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif; font-size: 13px; font-weight: 500; line-height: normal; letter-spacing: 0; }
.member-home-brand-detail-title h2 { margin: 0; color: #fff; font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif; font-size: 24px; font-weight: 600; line-height: 29px; letter-spacing: 1px; }

.member-home-brand-content-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.member-home-brand-content-block + .member-home-brand-content-block {
    margin-top: 0;
}

.member-home-brand-content-block h3 {
    margin: 0;
    color: #e0e0e0;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0;
}

.member-home-brand-content-body {
    margin: 0;
    color: #c0c0c0;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 1px;
}

.member-home-brand-content-body p {
    margin: 0 0 12px;
}

.member-home-brand-content-body p:last-child {
    margin-bottom: 0;
}

.member-home-brand-content-body ul,
.member-home-brand-content-body ol {
    margin: 0;
    padding-left: 22px;
}

.member-home-brand-content-body a {
    color: #ffffff;
    text-underline-offset: 3px;
}

.member-home-brand-list-view { position: fixed; z-index: 95; inset: 0 auto 0 50%; box-sizing: border-box; width: min(430px, 100vw); min-height: 100dvh; display: none; overflow-y: auto; scrollbar-width: none; transform: translateX(-50%); background: #000; color: #fff; padding: 17px 20px 110px; }
.member-home-brand-list-view::-webkit-scrollbar { display: none; }
.member-home-brand-list-view.active { display: block; }
body.member-brand-list-open { overflow: hidden; }
.member-home-brand-list-back { width: 40px; height: 40px; min-height: 0; display: block; margin: 0 0 30px 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.member-home-brand-list-back img { width: 40px; height: 40px; display: block; }
.member-home-brand-list-heading { width: 100%; display: flex; flex-direction: column; gap: 5px; margin-bottom: 20px; }
.member-home-brand-list-heading strong { color: #fff; font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif; font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: 1px; }
.member-home-brand-list-heading span { color: #fff; font-size: 14px; font-weight: 500; line-height: 19px; letter-spacing: 1px; }
.member-home-brand-list { width: 100%; display: flex; flex-direction: column; gap: 30px; }
.member-home-brand-list-item { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.member-home-brand-list-image { width: 100%; height: 205px; min-height: 0; display: block; overflow: hidden; padding: 0; border: 1px solid #202020; border-radius: 5px; background: #111; box-shadow: none; cursor: pointer; }
.member-home-brand-list-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.member-home-brand-list-copy { width: 100%; display: flex; flex-direction: column; gap: 5px; padding: 0 10px; }
.member-home-brand-list-copy > div { width: 100%; min-height: 23px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-home-brand-list-copy strong { min-width: 0; color: #fff; font-family: "Noto Sans TC", sans-serif; font-size: 16px; font-weight: 500; line-height: normal; letter-spacing: 0; }
.member-home-brand-list-copy button { width: 16px; height: 16px; min-height: 0; flex: 0 0 16px; display: block; padding: 0; border: 0; background: transparent; box-shadow: none; }
.member-home-brand-list-copy button img { width: 16px; height: 16px; display: block; }
.member-home-brand-list-copy p { width: 100%; margin: 0; overflow: hidden; color: #a3a3a3; font-family: "Noto Sans TC", sans-serif; font-size: 13px; font-weight: 400; line-height: normal; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }

.member-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    place-items: center;
    place-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.78);
    color: #ffffff;
    text-align: center;
}

.member-loading-overlay.active {
    display: grid;
}

.register-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    background: #000000;
}

.register-loading-overlay.active {
    display: grid;
}

.register-loading-overlay img {
    width: 78px;
    height: 78px;
    display: block;
}

body.register-page-loading {
    overflow: hidden;
}

body.register-join-landing {
    background: #000000;
}

.register-join-landing .page-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: block;
    background: #000000;
    padding: 0;
}

.register-join-landing .register-panel {
    width: min(392px, 100%);
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #000000;
    color: #ffffff;
    padding: 84px 22px max(29px, env(safe-area-inset-bottom, 0px));
    box-shadow: none;
}

.join-member-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.join-member-intro > img {
    width: 77px;
    height: 77px;
    display: block;
}

.join-member-intro h1 {
    margin: -7px 0 38px;
    color: #ffffff;
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 31px;
    letter-spacing: 1px;
}

.join-member-intro > div {
    width: 100%;
    display: grid;
    gap: 4px;
}

.join-member-intro p {
    margin: 0;
    color: #c9c9c9;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0;
}

.join-member-intro p:last-child {
    margin-top: 1px;
}

.join-member-actions {
    width: 100%;
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.register-join-landing .join-member-actions .line-button {
    width: 100%;
    height: 48px;
    min-height: 48px;
    border-radius: 999px;
    background: #0dc755;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 2px;
}

.join-member-login {
    display: grid;
    justify-items: center;
    gap: 2px;
    color: #777777;
    font-size: 12px;
    line-height: 20px;
}

.join-member-login a {
    color: #777777;
    text-decoration: underline;
    text-underline-offset: 3px;
    letter-spacing: 1px;
}

.register-join-landing .register-panel.line-entry-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: max(96px, 14vh);
    padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
}

.line-entry-panel .join-member-intro h1 {
    max-width: 320px;
    margin-inline: auto;
    text-align: center;
}

.line-entry-actions {
    display: grid;
    gap: 12px;
}

.line-entry-secondary {
    box-sizing: border-box;
    height: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    color: #b6b6b6;
    font-family: "Montserrat", "Noto Sans TC", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 0.2em;
    text-decoration: none;
}

.member-loading-spinner {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: member-loading-spin 0.85s linear infinite;
}

.member-loading-overlay strong {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@keyframes member-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.member-danger-note {
    display: grid;
    gap: 8px;
    border-left: 3px solid #b66a4a;
    background: rgba(182, 106, 74, 0.1);
    padding: 12px 14px;
}

.member-danger-note strong {
    color: #fff7ea;
    font-size: 15px;
    font-weight: 950;
}

.member-danger-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.7;
}

.member-delete-confirm {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
}

.member-delete-confirm input {
    width: 16px !important;
    min-height: 16px !important;
    margin-top: 3px;
    accent-color: var(--member-theme-color, #1d4f60);
}

.member-benefit-list {
    display: grid;
    gap: 12px;
}

.member-benefit-card {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: #121212;
    color: #ffffff;
    padding: 18px;
}

.member-benefit-card span,
.member-benefit-card small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 850;
}

.member-benefit-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.25;
}

.member-benefit-card p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.75;
}

.member-home-brand-logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 950;
    overflow: hidden;
}

.member-home-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.member-home-brand-card strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.35;
}

.member-home-empty {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.52);
    text-align: center;
    padding: 22px 12px;
}

.member-quick-actions {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 50;
    width: min(360px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(29, 29, 29, 0.4);
    backdrop-filter: blur(4px) saturate(1.18);
    -webkit-backdrop-filter: blur(4px) saturate(1.18);
    padding: 5px;
    transform: translateX(-50%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 1px 0 0 rgba(255, 255, 255, 0.06),
        0 16px 36px rgba(0, 0, 0, 0.34);
}

.member-quick-actions button {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.52);
    padding: 0 2px;
    box-shadow: none;
}

.member-quick-actions button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-quick-actions .nav-icon-outline,
.member-quick-actions .nav-icon-outline path {
    fill: currentColor;
    stroke: none;
}

.member-quick-actions .nav-icon-solid {
    display: none;
    fill: currentColor;
    stroke: none;
}

.member-quick-actions button.active .nav-icon-outline {
    display: none;
}

.member-quick-actions button.active .nav-icon-solid {
    display: block;
}

.member-quick-actions .nav-icon-solid .nav-icon-cutout {
    fill: none;
    stroke: #202020;
    stroke-width: 1.5;
}

.member-quick-actions .nav-icon-solid .nav-icon-cutout-fill {
    fill: #202020;
}

.member-quick-actions button.active {
    background: transparent;
    color: #ffffff;
}

.member-quick-actions button:focus,
.member-quick-actions button:focus-visible {
    outline: 0;
    box-shadow: none;
}

.member-tab-panels {
    display: grid;
    gap: 16px;
    padding-bottom: 12px;
}

.member-tab-panel {
    display: none;
    gap: 16px;
}

.member-tab-panel.active {
    display: grid;
}

.member-panel,
.member-kpi-grid article {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
    padding: 0;
}

.member-kpi-grid {
    grid-template-columns: 1fr;
}

.member-kpi-grid article {
    min-height: auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 0;
}

.member-kpi-grid span,
.member-kpi-grid small,
.member-section-title p,
.member-tier-owned-group p,
.voucher-ticket small,
.campaign-strip small,
.member-feed small {
    color: rgba(255, 255, 255, 0.52);
}

.member-kpi-grid strong,
.member-section-title h2,
.member-tier-current,
.member-tier-chip strong,
.voucher-list-meta strong,
.campaign-list-meta strong,
.campaign-empty strong {
    color: #ffffff;
}

.voucher-filter-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.point-redemption-list-view .voucher-filter-bar {
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 0;
    margin-bottom: 17px;
}

.member-app.member-active-tab-points .member-tab-panels {
    margin-top: 12px;
}

.point-redemption-list-view.active {
    align-content: start;
    grid-auto-rows: max-content;
    gap: 0;
}

.point-redemption-type-filter {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 34px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0 0 17px;
    padding: 2px;
    border-radius: 25px;
    background: #353535;
}

.point-redemption-type-filter button {
    box-sizing: border-box;
    width: 168px;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    flex: 1 1 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 20px;
    background: #353535;
    color: #757575;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 1px;
    text-align: center;
    padding: 0 15px;
}

.point-redemption-type-filter button.active {
    background: #bfc1c7;
    color: #353535;
}

.point-tier-redemption-list {
    display: grid;
    gap: 18px;
}

.point-tier-redemption-card {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 57px;
    align-items: stretch;
    justify-items: stretch;
    align-content: stretch;
    justify-content: stretch;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: var(--member-card-image, none), var(--member-card-bg, #83858c);
    background-position: center;
    background-size: cover;
    color: var(--member-card-color, #fff);
    padding: 0;
    text-align: left;
}

.point-tier-redemption-card.muted { opacity: .68; }
.point-tier-redemption-visual { box-sizing: border-box; width: 100%; min-width: 0; aspect-ratio: 350 / 130; align-self: stretch; justify-self: stretch; display: flex; align-items: flex-start; justify-content: flex-start; gap: 12px; padding: 20px; }
.point-tier-redemption-visual strong { font-size: 28px; font-weight: 700; line-height: 28px; }
.point-tier-redemption-visual small { margin-top: 7px; font-size: 14px; font-weight: 400; line-height: 14px; }
.point-tier-redemption-meta { box-sizing: border-box; width: 100%; min-width: 0; max-width: none; height: 57px; align-self: stretch; justify-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 16px; overflow: hidden; border-radius: 0 0 10px 10px; background: #353535; color: #fff; padding: 10px 15px; }
.point-tier-redemption-meta > span { flex: 1 1 auto; width: auto; min-width: 0; height: 37px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 7px; line-height: 1; }
.point-tier-redemption-meta strong { max-width: 100%; overflow: hidden; font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: 1px; white-space: nowrap; text-overflow: ellipsis; }
.point-tier-redemption-meta small { max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 400; line-height: 14px; letter-spacing: 1px; white-space: nowrap; text-overflow: ellipsis; }
.point-tier-redemption-meta b { flex: 0 0 auto; display: flex; align-items: center; gap: 3px; color: #fff; font-size: 13px; font-weight: 600; line-height: 18px; }
.point-tier-redemption-meta b img { width: 18px; height: 18px; display: block; object-fit: contain; }
.point-redemption-list-view [data-point-type-panel][hidden] { display: none; }

.point-redemption-list-view [data-point-type-panel="experience"] {
    display: grid;
    gap: 18px;
}

.point-redemption-list-view [data-point-type-panel="experience"] .voucher-list-card {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-rows: auto 57px;
    gap: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #353535;
    padding: 0;
    color: #ffffff;
    text-align: left;
    box-shadow: none;
}

.point-redemption-list-view [data-point-type-panel="experience"] .voucher-list-banner {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 350 / 130;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: #1a1a1a;
}

.point-redemption-list-view [data-point-type-panel="experience"] .voucher-list-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.point-redemption-list-view [data-point-type-panel="experience"] .voucher-list-meta {
    box-sizing: border-box;
    position: static;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
    background: #353535;
    padding: 10px 15px;
}

.point-experience-copy {
    min-width: 0;
    height: 37px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 7px;
    line-height: 1;
}

.point-redemption-list-view .point-experience-copy strong {
    max-width: 100%;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 1px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.point-redemption-list-view .point-experience-copy small {
    max-width: 100%;
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.point-experience-cost {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 3px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.point-experience-cost img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

.point-redemption-heading {
    min-width: 0;
    display: grid;
    gap: 5px;
    color: #ffffff;
    letter-spacing: 1px;
}

.point-redemption-heading strong {
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 1px;
}

.point-redemption-heading span {
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 1px;
}

.point-redemption-list-view .voucher-filter-bar .voucher-filter-trigger {
    width: 20px;
    height: 20px;
    min-height: 20px;
}

.point-redemption-list-view .voucher-filter-trigger svg,
.point-redemption-list-view .voucher-filter-trigger img {
    width: 20px;
    height: 20px;
    display: block;
}

.voucher-filter-bar button {
    width: auto;
    height: 30px;
    min-height: 30px;
    border-radius: 8px;
    background: #f1f1f1;
    color: #8b8b8b;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    padding: 0 11px;
}

/* Figma handoff: compact filter icon and bottom filter drawer. */
.voucher-filter-bar .voucher-filter-trigger {
    width: 28px;
    height: 28px;
    min-height: 28px;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #777777;
    padding: 0;
}

.voucher-filter-trigger svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.voucher-filter-bar .voucher-filter-trigger:focus {
    outline: 0;
    box-shadow: none;
}

.voucher-filter-bar .voucher-filter-trigger:focus-visible {
    outline: 0;
    box-shadow: none;
}

.voucher-filter-sheet:has(.voucher-filter-drawer) {
    align-items: flex-end;
}

.voucher-filter-sheet:has(.voucher-filter-drawer) .voucher-filter-backdrop {
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: none;
}

.voucher-filter-panel.voucher-filter-drawer {
    width: min(100%, 430px);
    max-height: min(78vh, 540px);
    gap: 16px;
    margin: 0;
    border-radius: 16px 16px 0 0;
    background: #efefef;
    color: #686868;
    padding: 8px 18px 18px;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
}

.voucher-filter-handle {
    width: 40px;
    height: 3px;
    justify-self: center;
    border-radius: 999px;
    background: #c5c5c5;
}

.voucher-filter-section {
    display: grid;
    gap: 9px;
}

.voucher-filter-section + .voucher-filter-section {
    border-top: 1px solid #d3d3d3;
    padding-top: 13px;
}

.voucher-filter-panel.voucher-filter-drawer h3 {
    margin: 0;
    color: #666666;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}

.voucher-filter-panel.voucher-filter-drawer .voucher-filter-options {
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 9px;
    overflow: visible;
}

.voucher-filter-panel.voucher-filter-drawer .voucher-filter-options button {
    width: auto;
    min-height: 23px;
    justify-content: center;
    border-radius: 999px;
    background: #dfdfdf;
    color: #878787;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    padding: 0 11px;
}

.voucher-filter-panel.voucher-filter-drawer .voucher-filter-options button.active {
    background: #c9c9c9;
    color: #5f5f5f;
}

.voucher-filter-panel.voucher-filter-drawer .voucher-filter-sort-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
}

.voucher-filter-panel.voucher-filter-drawer .voucher-filter-sort-options button {
    width: 100%;
}

.voucher-filter-confirm {
    width: 100%;
    min-height: 29px;
    border: 0;
    border-radius: 999px;
    background: #dddddd;
    color: #777777;
    font-size: 12px;
    font-weight: 500;
    padding: 0 16px;
    box-shadow: none;
}

.voucher-list,
.campaign-strip {
    gap: 18px;
}

.voucher-list-card,
.campaign-list-card {
    color: #ffffff;
}

.voucher-list-banner,
.campaign-list-banner {
    border-radius: 8px;
    box-shadow: none;
}

.voucher-list-meta strong,
.campaign-list-meta strong {
    font-size: 18px;
}

.voucher-list-meta small,
.campaign-list-meta small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

/* Keep member screens on the same 350px responsive design baseline as points. */
.member-app:is(.member-active-tab-home, .member-active-tab-points, .member-active-tab-vouchers, .member-active-tab-campaigns, .member-active-tab-profile) .member-tab-panels {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    margin-right: auto;
    margin-left: auto;
}

.member-app.member-active-tab-vouchers .member-tab-panels {
    margin-top: 12px;
}

.member-app:is(.member-active-tab-points, .member-active-tab-vouchers, .member-active-tab-campaigns, .member-active-tab-profile) > .member-card-wallet--global {
    width: min(350px, calc(100% - 4px));
    min-width: 0;
    max-width: 350px;
    margin-right: auto;
    margin-left: auto;
}

.voucher-list-view.active {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 0;
}

.member-app.member-active-tab-vouchers:not(.voucher-detail-mode) .voucher-list-view.active {
    width: 100%;
    min-width: 0;
    max-width: none;
}

/* Detail pages own their 20px padding and must not inherit the 350px list frame. */
.member-app:is(.voucher-detail-mode, .campaign-detail-mode, .point-detail-mode, .tier-detail-mode) .member-tab-panels {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
}

.voucher-list-view .voucher-filter-bar {
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 0;
    margin-bottom: 17px;
}

.voucher-list-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    color: #ffffff;
    letter-spacing: 1px;
}

.voucher-list-heading strong {
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.voucher-list-heading span {
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 1px;
}

.voucher-list-view .voucher-filter-bar .voucher-filter-trigger {
    width: 20px;
    height: 20px;
    min-height: 20px;
}

.voucher-list-view .voucher-filter-trigger img {
    display: block;
    width: 20px;
    height: 20px;
}

.voucher-list-view .voucher-list {
    display: grid;
    gap: 12px;
}

.voucher-list-view .voucher-list-card {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-rows: auto 57px 23px;
    gap: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: #ffffff;
    text-align: left;
    opacity: 1;
}

.voucher-list-view .voucher-list-banner {
    width: 100%;
    height: auto;
    min-height: 0;
    align-self: start;
    justify-self: stretch;
    aspect-ratio: 350 / 130;
    border-radius: 10px 10px 0 0;
    background: #1a1a1a;
    box-shadow: none;
}

.voucher-list-view .voucher-list-meta {
    box-sizing: border-box;
    position: static;
    z-index: 1;
    width: 100%;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 0 0 10px 10px;
    background: #353535;
    padding: 10px 9px 10px 15px;
}

.voucher-list-copy {
    min-width: 0;
    height: 37px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
}

.voucher-list-view .voucher-list-meta .voucher-list-copy strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voucher-list-copy > span {
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voucher-list-enter {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    align-self: flex-end;
}

.voucher-list-date {
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a3a3a3;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.voucher-list-view .voucher-list-card.muted {
    opacity: 1;
}

.voucher-list-view .voucher-list-card.muted .voucher-list-banner img {
    filter: brightness(0.25);
}

.voucher-list-view .voucher-list-card.muted .voucher-list-meta {
    background: #202020;
}

.voucher-list-view .voucher-list-card.muted .voucher-list-copy strong,
.voucher-list-view .voucher-list-card.muted .voucher-list-copy > span {
    color: #3b3b3b;
}

.voucher-list-view .voucher-list-card.muted .voucher-list-date {
    color: #494949;
}

.voucher-list-view .voucher-filter-empty[hidden] {
    display: none;
}

/* Filtered cards must stay hidden even when their component rules set display. */
.voucher-list-view .voucher-list-card[hidden],
.point-redemption-list-view [data-point-detail][hidden],
.campaign-list-view .campaign-list-card[hidden] {
    display: none !important;
}

/* Gift voucher detail — matches the point detail layout. */
.voucher-gift-detail-view {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    align-content: start;
    grid-template-rows: max-content max-content max-content 1fr max-content;
    gap: 0;
    overflow: visible;
    background: #000000;
    padding: 17px 20px 22px;
}

.voucher-gift-detail-view .voucher-gift-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    gap: 0;
    width: 100%;
    min-height: 40px;
    margin: 0 0 33px;
}

.voucher-gift-detail-view .voucher-gift-detail-head > button {
    flex: 0 0 auto;
    margin: 0;
}

.voucher-gift-detail-view .voucher-transfer-button {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex: none;
    order: 1;
    width: 67px;
    height: 34px;
    padding: 5px 10px;
    gap: 10px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    background: transparent;
    color: #c0c0c0;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    letter-spacing: .2em;
    text-indent: .2em;
    cursor: pointer;
}

.voucher-gift-detail-view .voucher-transfer-button:focus-visible {
    outline: 1px solid #ffffff;
    outline-offset: 2px;
}

.voucher-transfer-modal {
    z-index: 1400;
    padding: 20px;
}

.voucher-transfer-modal .voucher-modal-backdrop {
    background: rgba(0, 0, 0, .6);
}

.voucher-transfer-modal .voucher-modal-panel {
    box-sizing: border-box;
    width: min(350px, 100%);
    height: 257px;
    min-height: 257px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    gap: 20px;
    border: 0;
    border-radius: 15px;
    background: #d6d6d6;
    box-shadow: none;
}

.voucher-transfer-gift-slot {
    position: relative;
    width: 33px;
    height: 33px;
    display: block;
    flex: 0 0 33px;
}

.voucher-transfer-gift-icon {
    position: absolute;
    left: -5px;
    top: -7px;
    width: 44px;
    height: 44px;
    display: block;
}

.voucher-transfer-form {
    width: 300px;
    max-width: 100%;
    height: 154px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 27px;
}

.voucher-transfer-fields {
    width: 100%;
    height: 83px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.voucher-transfer-input-group {
    width: 100%;
    height: 63px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.voucher-transfer-input-group > label {
    width: 100%;
    height: 10px;
    color: #757575;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 1px;
}

.voucher-transfer-phone-row {
    width: 100%;
    height: 44px;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 7px;
}

.voucher-transfer-phone-row > span,
.voucher-transfer-phone-row > select,
.voucher-transfer-phone-row > input {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    margin: 0;
    border: 0;
    border-radius: 10px;
    background: #c0c0c0;
    color: #494949;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 1px;
}

.voucher-transfer-phone-row > span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.voucher-transfer-phone-row > select {
    width: 70px;
    padding: 10px 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    text-align: center;
    cursor: pointer;
}

.voucher-transfer-phone-row > input {
    width: 100%;
    padding: 10px 15px;
    outline: 0;
    font-size: 16px;
}

.voucher-transfer-phone-row > input::placeholder {
    color: #757575;
    opacity: 1;
}

.voucher-transfer-modal .voucher-transfer-error {
    width: 100%;
    height: 10px;
    margin: 0;
    color: #906262;
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    letter-spacing: 1px;
}

.voucher-transfer-actions {
    box-sizing: border-box;
    width: 300px;
    max-width: 100%;
    height: 44px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    align-self: center;
    gap: 10px;
}

.voucher-transfer-actions button {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    border: 0;
    border-radius: 25px;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 5px;
    text-indent: 5px;
}

.voucher-transfer-actions button:first-child {
    border: 1px solid #6a6a6a;
    background: #d6d6d6;
    color: #6a6a6a;
}

.voucher-transfer-actions button:last-child {
    background: #353535;
    color: #dadada;
}

.voucher-transfer-confirm-modal {
    z-index: 1410;
    padding: 20px;
}

.voucher-transfer-confirm-modal .voucher-modal-backdrop {
    background: rgba(0, 0, 0, .6);
}

.voucher-transfer-confirm-modal .voucher-modal-panel {
    box-sizing: border-box;
    width: min(350px, 100%);
    height: 319px;
    min-height: 319px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    gap: 10px;
    border: 0;
    border-radius: 15px;
    background: #d6d6d6;
    box-shadow: none;
}

.voucher-transfer-confirm-icon-slot {
    position: relative;
    width: 33px;
    height: 33px;
    display: block;
    flex: 0 0 33px;
}

.voucher-transfer-confirm-icon-slot img {
    position: absolute;
    left: -5px;
    top: -7px;
    width: 42px;
    height: 48px;
    display: block;
}

.voucher-transfer-confirm-content {
    width: 300px;
    max-width: 100%;
    height: 226px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 27px;
}

.voucher-transfer-confirm-summary {
    width: 100%;
    height: 155px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.voucher-transfer-confirm-summary > p {
    width: 100%;
    height: 72px;
    margin: 0;
    color: #6a6a6a;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    letter-spacing: 1px;
}

.voucher-transfer-confirm-account {
    width: 100%;
    height: 63px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.voucher-transfer-confirm-account > span {
    width: 100%;
    height: 10px;
    color: #757575;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 1px;
}

.voucher-transfer-confirm-account > strong {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 10px;
    background: #c0c0c0;
    color: #494949;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 1px;
}

.voucher-gift-detail-view .voucher-detail-banner {
    width: 350px;
    max-width: 100%;
    height: 200px;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 10px;
    background: #1a1a1a;
    box-shadow: none;
}

.voucher-gift-detail-view .voucher-detail-body {
    display: grid;
    gap: 0;
    padding: 15px 0 54px;
}

.voucher-gift-detail-view .voucher-detail-body h3 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 1px;
    text-align: center;
}

.voucher-gift-detail-view .voucher-detail-period {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 8px 0 0;
    color: #a3a3a3;
    font-size: 12px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 1px;
    text-align: center;
}

.voucher-gift-detail-view .voucher-detail-period img {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    display: block;
}

.voucher-gift-detail-view .voucher-detail-body > div {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.voucher-gift-detail-view .voucher-detail-body > div:first-of-type {
    margin-top: 38px;
}

.voucher-gift-detail-view .voucher-detail-body h4 {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    letter-spacing: 1px;
}

.voucher-gift-detail-view .voucher-detail-body > div p {
    margin: 0;
    color: #dadada;
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 1px;
}

.voucher-gift-detail-view > .voucher-use-button {
    align-self: end;
    width: 350px;
    max-width: 100%;
    min-height: 48px;
    margin-top: auto;
    border: 1px solid #b6b6b6;
    border-radius: 999px;
    background: #1a1a1a;
    box-shadow: none;
    color: #b6b6b6;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 16px;
    text-indent: 16px;
}

.voucher-empty,
.campaign-empty {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #101010;
    color: rgba(255, 255, 255, 0.58);
}

.voucher-detail-view,
.campaign-detail-view,
.member-tier-detail-view {
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    background: #000000;
    padding: 0 18px 22px;
}

.voucher-detail-header {
    min-height: 68px;
    margin: 0 -18px;
    background: #000000;
    backdrop-filter: none;
}

.voucher-detail-header button {
    font-size: 34px;
}

.voucher-detail-banner {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: none;
}

.voucher-detail-body {
    gap: 12px;
}

.voucher-detail-body h3 {
    text-align: center;
    font-size: 22px;
}

.voucher-detail-period {
    text-align: center;
}

.voucher-detail-body h4 {
    color: rgba(255, 255, 255, 0.72);
}

.voucher-use-button {
    min-height: 52px;
    border-radius: 999px;
}

.member-menu-backdrop {
    background: rgba(0, 0, 0, 0.68);
}

.member-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 94;
    display: none;
    align-items: start;
    justify-content: center;
    padding: 64px 18px 18px;
}

.member-notice-modal.active {
    display: flex;
}

.member-notice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.member-notice-panel {
    position: relative;
    width: min(344px, 100%);
    display: grid;
    gap: 14px;
    border-radius: 8px;
    background: #f1f1f1;
    color: #111111;
    padding: 16px;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.58);
}

.member-notice-panel header strong {
    display: block;
    color: #111111;
    font-size: 16px;
    font-weight: 950;
}

.member-notice-list {
    display: grid;
}

.member-notice-list article {
    display: grid;
    gap: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    padding: 8px 0 12px;
}

.member-notice-list article:last-child {
    border-bottom: 0;
}

.member-notice-list strong {
    color: #111111;
    font-size: 14px;
    font-weight: 900;
}

.member-notice-list small {
    color: rgba(0, 0, 0, 0.58);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.member-notice-panel > button {
    justify-self: end;
    width: auto;
    min-height: auto;
    border: 0;
    background: transparent;
    color: #333333;
    font-size: 14px;
    font-weight: 900;
    padding: 0;
}

.member-menu-panel {
    border: 0;
    border-radius: 18px;
    background: #0d0d0d;
    color: #ffffff;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.58);
    padding: 24px;
}

.member-menu-head strong,
.member-menu-item {
    color: #ffffff;
}

.member-menu-head button {
    color: rgba(255, 255, 255, 0.72);
}

.member-menu-item {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.member-menu-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 18px;
}

.member-menu-social a,
.member-menu-social button {
    width: 34px;
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

.member-profile-menu-list {
    display: grid;
    gap: 0;
    margin-top: 0;
    background: #171717;
    border-radius: 10px;
    overflow: hidden;
}

.member-profile-menu-list a,
.member-profile-menu-list button {
    width: 100%;
    height: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #2b2b2b;
    background: #171717;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    padding: 0 15px;
    box-shadow: none;
}

.member-profile-menu-list > :last-child,
.member-profile-menu-list > :last-child button {
    border-bottom: 0;
}

.member-profile-menu-list form {
    margin: 0;
}

.member-profile-menu-list [data-member-menu-label="profile"],
.member-profile-menu-list [data-member-menu-label="benefits"],
.member-profile-menu-list [data-member-menu-label="point-benefits"],
.member-profile-menu-list [data-member-menu-label="transactions"],
.member-profile-menu-list [data-member-menu-label="faq"],
.member-profile-menu-list [data-member-menu-label="contact"],
.member-profile-menu-list [data-member-menu-label="logout"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.member-profile-menu-list [data-member-menu-label="profile"]::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    background: url('/assets/icons/member-menu-edit.svg') center / 17px 17px no-repeat;
}

.member-profile-menu-list [data-member-menu-label="benefits"]::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    background: url('/assets/icons/member-menu-benefits.svg') center / 17px 17px no-repeat;
}

.member-profile-menu-list [data-member-menu-label="point-benefits"]::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    background: url('/assets/icons/member-menu-point-benefits.svg') center / 17px 17px no-repeat;
}

.member-profile-menu-list [data-member-menu-label="transactions"]::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    background: url('/assets/icons/member-menu-transactions.svg') center / 17px 17px no-repeat;
}

.member-profile-menu-list [data-member-menu-label="faq"]::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    background: url('/assets/icons/member-menu-faq.svg') center / 17px 17px no-repeat;
}

.member-profile-menu-list [data-member-menu-label="contact"]::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    background: url('/assets/icons/member-menu-contact.svg') center / 17px 17px no-repeat;
}

.member-profile-menu-list [data-member-menu-label="logout"]::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    background: url('/assets/icons/member-menu-logout.svg') center / 17px 17px no-repeat;
}

.member-profile-menu-list a::after,
.member-profile-menu-list button::after {
    content: "";
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-left: auto;
    background: url('/assets/icons/member-menu-arrow.svg') center / 22px 22px no-repeat;
}

body.member-contact-modal-open { overflow: hidden; }

/* Membership Points Policy */
.member-point-benefits-page {
    box-sizing: border-box;
    width: min(100%, 390px);
    min-height: 100dvh;
    margin: 0 auto;
    padding: max(17px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
    background: #000;
    color: #fff;
}

.member-point-benefits-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.member-point-benefits-head > div {
    margin-top: 30px;
}

.member-point-benefits-head strong {
    display: block;
    margin: 0;
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 1px;
}

.member-point-benefits-head h1 {
    margin: 0;
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 1px;
}

.member-point-benefits-content {
    margin-top: 55px;
    color: #c0c0c0;
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.member-point-benefits-content > :first-child { margin-top: 0; }
.member-point-benefits-content > :last-child { margin-bottom: 0; }

.member-point-benefits-content h1,
.member-point-benefits-content h2,
.member-point-benefits-content h3,
.member-point-benefits-content h4,
.member-point-benefits-content h5,
.member-point-benefits-content h6 {
    margin: 20px 0 8px;
    color: #fff;
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 1px;
}

.member-point-benefits-content p { margin: 0 0 14px; }
.member-point-benefits-content ul,
.member-point-benefits-content ol { margin: 0; padding-left: 22px; }
.member-point-benefits-content li { margin: 0; padding-left: 1px; }

.admin-point-policy-editor {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 14px;
    background: rgba(255,255,255,.66);
    box-shadow: 0 10px 28px rgba(55,58,50,.06);
}

.admin-point-policy-editor .admin-policy-rich-editor {
    box-sizing: border-box;
    min-height: 460px;
    max-height: 64vh;
    overflow-y: auto;
    padding: 18px;
    border-radius: 10px;
    background: #fffefb;
}

@media (max-width: 700px) {
    .admin-point-policy-editor { padding: 16px; }
}
.member-contact-modal { position: fixed; inset: 0; z-index: 1400; width: min(392px, 100%); height: 100dvh; margin: 0 auto; visibility: hidden; pointer-events: none; }
.member-contact-modal.active { visibility: visible; pointer-events: auto; }
.member-contact-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; background: rgba(0, 0, 0, .9); opacity: 0; padding: 0; transition: opacity 240ms ease; }
.member-contact-modal.active .member-contact-backdrop { opacity: 1; }
.member-contact-panel { box-sizing: border-box; position: absolute; right: 0; bottom: 0; left: 0; width: 100%; height: 575px; max-height: calc(100dvh - 20px); display: flex; flex-direction: column; align-items: flex-start; gap: 89px; overflow-y: auto; border-radius: 20px 20px 0 0; background: #1e1e1e; padding: 20px 20px 0; transform: translateY(100%); transition: transform 280ms ease; }
.member-contact-modal.active .member-contact-panel { transform: translateY(0); }
.member-contact-header { flex: none; width: 352px; max-width: 100%; height: 109px; display: flex; flex-direction: column; align-items: flex-start; gap: 21px; }
.member-contact-close { width: 40px; height: 40px; min-height: 40px; display: block; border: 0; background: transparent; padding: 0; }
.member-contact-close img { width: 40px; height: 40px; display: block; }
.member-contact-header > div { width: 100%; height: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.member-contact-header strong { width: 100%; height: 24px; color: #fff; font: 600 20px/24px Montserrat, sans-serif; letter-spacing: 1px; }
.member-contact-header span { width: 100%; height: 19px; color: #fff; font: 500 14px/19px "Noto Sans TC", sans-serif; letter-spacing: 1px; }
.member-contact-links { flex: none; width: 352px; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.member-contact-links h2 { width: 100%; height: 20px; margin: 0; color: #fff; font: 600 16px/20px Montserrat, sans-serif; letter-spacing: 1px; }
.member-contact-links > div { width: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.member-contact-links a { box-sizing: border-box; width: 100%; height: 99px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #fff; color: #fff; text-decoration: none; padding: 30px 0; }
.member-contact-links a:last-child { border-bottom: 0; }
.member-contact-links a[aria-disabled="true"] { cursor: default; opacity: .45; }
.member-contact-icon { flex: 0 0 30px; width: 30px; height: 30px; display: block; }
.member-contact-copy { min-width: 0; flex: 1 1 auto; height: 35px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.member-contact-copy strong { width: 100%; color: #fff; font: 500 16px/20px Montserrat, sans-serif; letter-spacing: 1px; }
.member-contact-copy small { width: 100%; color: #a3a3a3; font: 500 12px/15px Montserrat, "Noto Sans TC", sans-serif; letter-spacing: 1px; }
.member-contact-outward { flex: 0 0 24px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: #fff; font: 400 24px/24px Arial, sans-serif; }
@media (max-height: 610px) { .member-contact-panel { gap: 34px; } }

.member-profile-heading {
    display: grid;
    gap: 5px;
    margin-bottom: 1px;
}

.member-app.member-active-tab-profile .member-tab-panels {
    margin-top: 12px;
}

.member-profile-heading strong {
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 1px;
}

.member-profile-heading span {
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 1px;
}

.member-account-summary {
    overflow: hidden;
    border-radius: 16px;
    background: #171717;
    color: #ffffff;
}

.member-account-summary-name {
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
    padding: 15px;
}

.member-account-summary-name img {
    width: 17px;
    height: 17px;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.member-account-summary-name strong {
    font-size: 20px;
    font-weight: 500;
}

.member-account-summary-body {
    display: grid;
    gap: 11px;
    padding: 15px;
}

.member-account-point-transfer {
    box-sizing: border-box;
    width: 320px;
    max-width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    padding: 10px 10px 10px 15px;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.09);
    color: #dadada;
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 14px;
    line-height: 17px;
    font-weight: 400;
    letter-spacing: 1px;
    text-decoration: none;
}

.member-point-transfer-page { position: relative; min-height: 100dvh; background: #000; color: #fff; }
.member-point-transfer-back { position: absolute; top: 17px; left: 20px; z-index: 2; width: 40px; height: 40px; }
.member-point-transfer-back svg { display: block; width: 40px; height: 40px; }
.member-point-transfer-form { position: absolute; top: 67px; left: 50%; width: 350px; max-width: calc(100% - 40px); height: calc(100dvh - 117px); min-height: 693px; transform: translateX(-50%); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 174px; }
.member-point-transfer-upper { width: 350px; max-width: 100%; min-height: 256px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.member-point-transfer-heading { width: 60px; height: 89px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.member-point-transfer-heading img { width: 60px; height: 60px; display: block; object-fit: contain; }
.member-point-transfer-heading span { width: max-content; height: 24px; display: flex; align-items: center; justify-content: center; font: 400 14px/24px "Noto Sans TC", sans-serif; letter-spacing: 1px; color: #fff; }
.member-point-transfer-entry { width: 350px; max-width: 100%; min-height: 137px; display: flex; flex-direction: column; align-items: flex-start; gap: 21px; }
.member-point-transfer-entry output { width: 100%; height: 46px; display: flex; align-items: center; justify-content: center; outline: 0; font: 700 38px/46px Montserrat, sans-serif; color: rgba(255,255,255,.5); cursor: pointer; }
.member-point-transfer-entry output.has-value { color: #fff; }
.member-point-transfer-phone { width: 100%; height: 71px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.member-point-transfer-phone > span:first-child { width: 100%; height: 17px; color: #dadada; font: 400 14px/17px "Noto Sans TC", sans-serif; letter-spacing: 1px; }
.member-point-transfer-phone-row { position: relative; width: 100%; height: 44px; display: flex; align-items: center; gap: 7px; }
.member-point-transfer-phone-row b,
.member-point-transfer-phone-row select { box-sizing: border-box; flex: 0 0 70px; width: 70px; height: 44px; min-height: 44px; max-height: 44px; margin: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; appearance: none; -webkit-appearance: none; -moz-appearance: none; background: rgba(255,255,255,.09); background-image: none; color: #fff; font: 400 14px/17px "Noto Sans TC", sans-serif; letter-spacing: 1px; text-align: center; }
.member-point-transfer-phone-row input { box-sizing: border-box; flex: 1 1 auto; width: 273px; min-width: 0; height: 44px; min-height: 44px; max-height: 44px; margin: 0; padding: 10px 15px; border: 0; border-radius: 10px; outline: 0; background: rgba(255,255,255,.09); color: #fff; font: 400 16px/19px "Noto Sans TC", sans-serif; letter-spacing: 1px; cursor: pointer; }
.member-point-transfer-phone-row input::placeholder { color: #757575; opacity: 1; }
.member-point-transfer-phone-caret { position: absolute; z-index: 1; top: 12px; left: calc(92px + var(--phone-caret-x, 0px)); width: 1px; height: 20px; display: none; background: #fff; pointer-events: none; }
.member-point-transfer-phone-row.is-keypad-target .member-point-transfer-phone-caret { display: block; animation: member-point-transfer-caret-blink 1s steps(1, end) infinite; }
@keyframes member-point-transfer-caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.member-point-transfer-error { box-sizing: border-box; width: 350px; max-width: 100%; min-height: 31px; margin: 0; color: #906262; font-family: "Noto Sans TC", sans-serif; font-size: 14px; font-weight: 400; line-height: 17px; letter-spacing: 1px; }
.member-point-transfer-error[hidden] { display: none; }
.member-point-transfer-confirm { position: fixed; inset: 0; z-index: 20; width: min(392px, 100%); height: 100dvh; margin: 0 auto; background: rgba(0, 0, 0, .6); }
.member-point-transfer-confirm[hidden] { display: none; }
.member-point-transfer-confirm::before { content: ""; position: absolute; width: 392px; max-width: 100%; height: 411px; left: 50%; bottom: 0; transform: translateX(-50%); background: #d6d6d6; border-radius: 20px 20px 0 0; }
.member-point-transfer-confirm-close { position: absolute; z-index: 1; left: 21px; bottom: 354px; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #1c1b1f; font-family: Arial, sans-serif; font-size: 30px; font-weight: 400; line-height: 28px; }
.member-point-transfer-confirm-content { position: absolute; z-index: 1; width: 351px; max-width: calc(100% - 41px); height: 306px; left: 50%; bottom: 53px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: flex-start; padding: 0; gap: 15px; }
.member-point-transfer-confirm-summary { box-sizing: border-box; width: 351px; max-width: 100%; height: 243px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 15px 0; gap: 20px; }
.member-point-transfer-confirm-title { width: 351px; max-width: 100%; height: 62px; display: flex; flex-direction: column; align-items: flex-start; padding: 0; gap: 13px; }
.member-point-transfer-confirm-title span { width: 100%; height: 11px; color: #757575; font-family: "Noto Sans TC", sans-serif; font-size: 16px; font-weight: 400; line-height: 11px; text-align: center; letter-spacing: 1px; }
.member-point-transfer-confirm-title strong { width: 100%; height: 38px; color: #000; font-family: Montserrat, sans-serif; font-size: 32px; font-weight: 600; line-height: 38px; text-align: center; }
.member-point-transfer-confirm-title strong b { font: inherit; }
.member-point-transfer-confirm-members { width: 350px; max-width: 100%; height: 75px; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0; gap: 42px; background: #ccc; border-radius: 10px; }
.member-point-transfer-confirm-members > div { width: 101px; height: 43px; display: flex; flex-direction: column; align-items: center; padding: 0; gap: 21px; }
.member-point-transfer-confirm-members strong,
.member-point-transfer-confirm-members span { width: 101px; height: 11px; font-family: "Noto Sans TC", sans-serif; font-size: 16px; font-weight: 500; line-height: 11px; text-align: center; letter-spacing: 1px; white-space: nowrap; }
.member-point-transfer-confirm-members strong { color: #000; }
.member-point-transfer-confirm-members span { color: #757575; }
.member-point-transfer-confirm-members svg { flex: 0 0 31px; width: 31px; height: 31px; }
.member-point-transfer-confirm-summary > p { width: 351px; max-width: 100%; height: 36px; margin: 0; color: #757575; font-family: "Noto Sans TC", sans-serif; font-size: 14px; font-weight: 500; line-height: 19px; letter-spacing: 1px; }
.member-point-transfer-confirm-submit { box-sizing: border-box; width: 351px; max-width: 100%; height: 44px; min-height: 44px; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 10px; gap: 10px; border: 0; border-radius: 25px; background: #1a1a1a; color: #b6b6b6; font-family: "Noto Sans TC", sans-serif; font-size: 16px; font-weight: 500; line-height: 19px; letter-spacing: .2em; }
.member-point-transfer-success { position: fixed; inset: 0; z-index: 1800; width: min(392px, 100%); min-height: 100dvh; margin: 0 auto; background: #000; color: #fff; }
.member-point-transfer-success[hidden] { display: none; }
.member-point-transfer-success-hero { position: absolute; width: 350px; height: 136px; left: 50%; top: 113px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 0; gap: 7px; }
.member-point-transfer-success-hero img { flex: none; width: 60px; height: 60px; }
.member-point-transfer-success-hero > div { width: 350px; height: 59px; display: flex; flex-direction: column; align-items: flex-start; padding: 0; gap: 6px; }
.member-point-transfer-success-hero strong { width: 350px; height: 32px; font: 600 26px/32px Montserrat, sans-serif; text-align: center; letter-spacing: 1px; white-space: nowrap; }
.member-point-transfer-success-hero strong b { font: inherit; }
.member-point-transfer-success-hero span { width: 350px; height: 21px; font: 500 16px/22px "Noto Sans TC", sans-serif; text-align: center; letter-spacing: 1px; }
.member-point-transfer-success-footer { position: absolute; width: 351px; height: 262px; left: 50%; top: auto; bottom: max(50px, calc(env(safe-area-inset-bottom, 0px) + 20px)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: flex-start; padding: 0; gap: 40px; }
.member-point-transfer-success-card { box-sizing: border-box; width: 351px; height: 174px; padding: 15px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 15px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.07); }
.member-point-transfer-success-card > div { box-sizing: border-box; flex: none; width: 350px; height: 19px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.member-point-transfer-success-card > div:nth-of-type(2) { height: 21px; }
.member-point-transfer-success-card hr { flex: none; width: 350px; height: 0; margin: 0; border: 0; border-top: 1px solid #323232; border-radius: 30px; }
.member-point-transfer-success-card > section { width: 350px; height: 44px; display: flex; flex-direction: column; align-items: flex-start; padding: 0; gap: 2px; }
.member-point-transfer-success-card > section > div { box-sizing: border-box; width: 350px; height: 21px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.member-point-transfer-success-card span { flex: none; color: #fff; font: 500 14px/19px "Noto Sans TC", sans-serif; letter-spacing: 1px; }
.member-point-transfer-success-card strong { color: #fff; font: 400 14px/17px "Noto Sans TC", sans-serif; text-align: right; letter-spacing: 1px; white-space: nowrap; }
.member-point-transfer-success-card .member-point-transfer-success-inline { display: inline-flex; flex-direction: row; align-items: center; justify-content: flex-end; white-space: nowrap; }
.member-point-transfer-success-card strong b { font: inherit; }
.member-point-transfer-success-card > section > a { box-sizing: border-box; width: 350px; height: 21px; padding: 0 15px; color: #b6b6b6; font: 400 14px/17px "Noto Sans TC", sans-serif; text-align: right; letter-spacing: 1px; text-decoration: underline; }
.member-point-transfer-success-confirm { box-sizing: border-box; flex: none; width: 351px; height: 48px; display: flex; align-items: center; justify-content: center; padding: 10px; border: 1px solid #b6b6b6; border-radius: 25px; background: #1a1a1a; color: #b6b6b6; text-decoration: none; font: 500 16px/19px "Noto Sans TC", sans-serif; letter-spacing: .2em; }
.member-point-transfer-controls { width: 350px; max-width: 100%; height: 293px; display: flex; flex-direction: column; align-items: flex-start; gap: 21px; }
.member-point-transfer-keypad { width: 350px; max-width: 100%; height: 224px; display: grid; grid-template-columns: repeat(3, 91px); grid-auto-rows: 50px; justify-content: space-between; align-items: center; row-gap: 8px; column-gap: 40px; }
.member-point-transfer-keypad button { width: 91px; height: 46px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: #fff; font: 400 28px/34px Inter, sans-serif; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.member-point-transfer-next { box-sizing: border-box; width: 350px; max-width: 100%; height: 48px; display: flex; justify-content: center; align-items: center; padding: 10px; gap: 10px; border: 1px solid #b6b6b6; border-radius: 25px; background: #1a1a1a; color: #b6b6b6; font: 500 16px/19px "Noto Sans TC", sans-serif; letter-spacing: .2em; }
.member-point-transfer-next:disabled { opacity: .55; }
@media (max-height: 820px) {
    .member-point-transfer-form { min-height: 0; height: calc(100dvh - 82px); top: 62px; gap: 28px; }
}

.member-account-point-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.member-account-point-grid article,
.member-account-tier {
    display: grid;
    gap: 8px;
}

.member-account-point-grid span,
.member-account-tier > span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    font-weight: 500;
}

.member-account-point-grid strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.member-account-point-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 18px;
    object-fit: contain;
}

.member-account-tier strong {
    box-sizing: border-box;
    width: 320px;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background: #2d2d2d;
    font-size: 14px;
    font-weight: 500;
    padding: 0 16px;
}

.member-account-tier small {
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
}

.member-card-wallet {
    display: grid;
    gap: 0;
}

.member-wallet-stack {
    display: grid;
    gap: 0;
}

.member-wallet-card {
    height: 200px;
    min-height: 200px;
    display: flex;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.28)),
        var(--member-card-image, none),
        var(--member-card-bg, #111111);
    background-size: cover;
    background-position: center;
    color: var(--member-card-color, #ffffff);
    padding: 16px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.member-wallet-card + .member-wallet-card {
    margin-top: -160px;
}

.member-wallet-brand-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.member-wallet-brand-line strong {
    color: currentColor;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.member-wallet-brand-line span {
    color: color-mix(in srgb, currentColor 78%, transparent);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.member-tier-owned-group {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.member-tier-owned-group h3 {
    color: rgba(255, 255, 255, 0.58);
}

.member-tier-chip,
.member-tier-redemption-card {
    border-color: rgba(255, 255, 255, 0.12);
    background: transparent;
}

.member-tier-chip small,
.member-tier-redemption-card p {
    color: rgba(255, 255, 255, 0.52);
}

.member-tier-redemption-card strong {
    color: #ffffff;
}

@media (max-width: 430px) {
    .member-app {
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .member-quick-actions {
        bottom: 12px;
        width: min(360px, calc(100% - 32px));
    }
}

@media (max-width: 369px) {
    body:has(.member-app.member-active-tab-home) {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .member-app.member-active-tab-home {
        overflow: visible;
    }
}

.member-app {
    width: min(392px, 100%);
}

.member-app.tier-detail-mode {
    max-width: 392px;
}

/* Figma: member tier redemption detail */
.member-app.tier-detail-mode {
    width: min(392px, 100%);
    background: #000;
}

.member-tier-detail-view {
    box-sizing: border-box;
    width: 100%;
    min-height: 100dvh;
    align-content: start;
    gap: 0;
    background: #000;
    color: #fff;
    padding: 17px 20px 38px;
}

.member-tier-detail-view.active {
    display: flex;
    flex-direction: column;
}

.member-app.tier-detail-mode [data-member-panel="profile"] > :not(.member-tier-detail-view.active) {
    display: none;
}

.member-app.tier-detail-mode [data-member-panel="profile"] {
    gap: 0;
}

.member-tier-redeem-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.member-tier-redeem-head > button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    display: block;
    border: 0;
    background: transparent;
    padding: 0;
}

.member-tier-redeem-head > button svg {
    width: 40px;
    height: 40px;
    display: block;
}

.member-tier-redeem-head > span,
.member-tier-redeem-title p {
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-tier-redeem-head img,
.member-tier-redeem-title img {
    display: block;
    object-fit: contain;
}

.member-tier-redeem-head strong {
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 1px;
}

.member-tier-redeem-card {
    box-sizing: border-box;
    width: 350px;
    max-width: 100%;
    height: 200px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--member-card-image, none), var(--member-card-bg, #85868a);
    background-position: center;
    background-size: cover;
    color: var(--member-card-color, #242424);
    padding: 14px 13px;
}

.member-tier-redeem-card strong {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.member-tier-redeem-card small {
    margin-top: 18px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

.member-tier-redeem-title {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 15px 0 38px;
}

.member-tier-redeem-title h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 23px;
    letter-spacing: 1px;
    text-align: center;
}

.member-tier-redeem-title p {
    margin: 0;
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 1px;
}

.member-tier-redeem-title strong {
    font-weight: 700;
}

.member-tier-redeem-title span {
    font-weight: 500;
}

.member-tier-redeem-content {
    display: grid;
    gap: 34px;
    padding-bottom: 34px;
}

.member-tier-redeem-content > div {
    display: grid;
    gap: 12px;
}

.member-tier-redeem-content h4 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    letter-spacing: 1px;
}

.member-tier-redeem-content p,
.member-tier-redeem-content li {
    margin: 0;
    color: #dadada;
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 1px;
}

.member-tier-redeem-content ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-tier-redeem-content li::before {
    content: "✓";
    margin-right: 8px;
}

.member-tier-detail-view > .voucher-use-button {
    box-sizing: border-box;
    position: sticky;
    bottom: 0;
    z-index: 2;
    width: 350px;
    max-width: 100%;
    min-height: 48px;
    margin-top: auto;
    border: 1px solid #b6b6b6;
    border-radius: 999px;
    background: #1a1a1a;
    box-shadow: none;
    color: #b6b6b6;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 16px;
    text-indent: 16px;
}

.member-tier-redeem-modal {
    z-index: 1300;
    padding: 20px;
}

.member-tier-redeem-modal .voucher-modal-backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.member-tier-redeem-modal .voucher-modal-panel {
    box-sizing: border-box;
    width: min(350px, 100%);
    min-height: 253px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    overflow: hidden;
    border: 0;
    border-radius: 15px;
    background: #d6d6d6;
    color: #6a6a6a;
    padding: 22px 20px 24px;
    box-shadow: none;
}

.member-tier-redeem-warning {
    width: 42px;
    height: 48px;
    display: block;
    flex: 0 0 48px;
    object-fit: contain;
}

.member-tier-redeem-modal .voucher-modal-panel > p {
    width: 100%;
    margin: -2px 0 0;
    color: #6a6a6a;
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 1px;
    text-align: center;
}

.member-tier-confirm-form {
    width: 100%;
    margin-top: auto;
}

.member-tier-redeem-modal .voucher-confirm-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 135px);
    justify-content: center;
    gap: 29px;
    margin: 0;
}

.member-tier-redeem-modal .voucher-confirm-actions button,
.member-tier-insufficient-cancel {
    box-sizing: border-box;
    width: 135px;
    height: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 5px;
    text-indent: 5px;
    padding: 0 12px;
    box-shadow: none;
}

.member-tier-redeem-modal .voucher-confirm-actions button:first-child {
    border: 0;
    background: #353535;
    color: #fff;
}

.point-experience-detail-view {
    padding: 17px 20px 22px;
}

.member-tier-detail-view > .point-redemption-client-disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.point-experience-detail-view .member-tier-redeem-head {
    margin-bottom: 28px;
}

.point-experience-detail-image {
    width: 350px;
    max-width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    background: #1a1a1a;
}

.point-experience-detail-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.point-experience-detail-view .member-tier-redeem-title {
    padding: 15px 0 38px;
}

.point-experience-detail-view .member-tier-redeem-content {
    gap: 34px;
    padding-bottom: 80px;
}

.member-point-code-modal .voucher-modal-panel {
    min-height: 0;
    padding-bottom: 22px;
}

.member-point-code-modal .voucher-redeem-form {
    width: 100%;
    margin-top: 18px;
}

.member-point-code-modal .voucher-redeem-form > input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    border: 1px solid #6a6a6a;
    border-radius: 999px;
    background: transparent;
    color: #353535;
    font-size: 16px;
    letter-spacing: 2px;
    text-align: center;
    padding: 0 18px;
}

.member-point-code-modal .voucher-redeem-actions {
    display: grid;
    grid-template-columns: repeat(2, 135px);
    justify-content: center;
    gap: 29px;
    margin-top: 18px;
}

.member-point-code-modal .voucher-redeem-actions button {
    width: 135px;
    height: 44px;
    min-height: 44px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 5px;
    text-indent: 5px;
}

.member-point-code-modal .voucher-redeem-actions button:first-child {
    border: 0;
    background: #353535;
    color: #fff;
}

.member-point-code-modal .voucher-redeem-actions button:last-child {
    border: 1px solid #6a6a6a;
    background: #d6d6d6;
    color: #6a6a6a;
}

.member-tier-redeem-modal .voucher-confirm-actions button:last-child {
    border: 1px solid #6a6a6a;
    background: #d6d6d6;
    color: #6a6a6a;
}

.member-tier-insufficient-modal .voucher-modal-panel > p {
    margin-top: 10px;
}

.member-tier-insufficient-cancel {
    width: 299px;
    max-width: 100%;
    margin-top: auto;
    border: 0;
    background: #353535;
    color: #fff;
}
/* Figma: 我的會員／修改會員資料 */
.member-shell:has(.member-profile-page) {
    min-height: 100dvh;
    background: #000;
}

.member-profile-page {
    box-sizing: border-box;
    width: min(100%, 390px);
    min-height: 100dvh;
    margin: 0 auto;
    gap: 20px;
    background: #000;
    color: #f5f5f5;
    padding: max(17px, env(safe-area-inset-top)) 20px 28px;
}

.member-profile-page-head {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 40px auto auto;
    row-gap: 12px;
    align-items: start;
}

.member-profile-figma-back {
    width: 40px;
    height: 40px;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    display: block;
    color: #fff;
    text-decoration: none;
}

.member-profile-onboarding-exit {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
    margin: 0;
}

button.member-profile-figma-back {
    min-height: 0;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    cursor: pointer;
}

.member-profile-figma-back svg {
    width: 40px;
    height: 40px;
    display: block;
}

.member-profile-page-head strong {
    grid-column: 1;
    grid-row: 2;
    margin-top: 30px;
    color: #fff;
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 1px;
}

.member-profile-page-head h1 {
    grid-column: 1;
    grid-row: 3;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
}

.member-profile-page-head:has(> strong) h1 {
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 1px;
}

.member-complete-profile-page .member-profile-page-head {
    grid-template-rows: 2px auto auto;
    padding-top: 48px;
}

.member-complete-profile-progress {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 2px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.member-complete-profile-progress span {
    height: 2px;
    flex: 1 1 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
}

.member-complete-profile-progress span.is-active {
    background: #fff;
}

.member-complete-profile-page .member-profile-page-head strong {
    grid-row: 2;
    margin-top: 62px;
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 41px;
    letter-spacing: 1px;
}

.member-complete-profile-page .member-profile-page-head:has(> strong) h1 {
    grid-row: 3;
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 27px;
    letter-spacing: 1px;
}

.member-complete-profile-page .member-profile-card {
    width: 100%;
    min-height: 565px;
    gap: 17px;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.member-complete-profile-page .member-profile-card input[type="email"],
.member-complete-profile-page .member-profile-card input[type="date"],
.member-complete-profile-page .member-profile-card input:not([type]),
.member-complete-profile-page .member-profile-card select {
    min-height: 44px;
}

.member-complete-profile-consent {
    width: 100%;
    margin-top: auto;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 13px !important;
}

.member-complete-profile-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    margin: 0;
    border: 1px solid #a3a3a3;
    border-radius: 0;
    background: transparent;
}

.member-complete-profile-consent input[type="checkbox"]:checked {
    border-color: #a3a3a3;
    background-color: #a3a3a3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4.2 9.2 3.1 3.1 6.5-6.6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.member-complete-profile-page .member-profile-card .member-complete-profile-consent > span {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #a3a3a3;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    letter-spacing: 1px;
}

.member-complete-profile-consent a {
    color: #6baac2;
    text-decoration: underline;
}

.member-complete-profile-consent.has-error input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    border: 1px solid #906262;
    border-radius: 0;
    background: transparent;
}

.member-complete-profile-page .member-profile-card .member-complete-profile-consent.has-error > span,
.member-complete-profile-consent.has-error a {
    color: #906262;
}

.member-profile-page .member-profile-actions.member-complete-profile-actions {
    width: 100%;
    margin-top: 13px;
    padding-top: 0;
}

/* Sign up - mobile / Email registration 04 */
.member-registration-complete-page {
    position: relative;
    box-sizing: border-box;
    width: min(100%, 390px);
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
    background: #000;
    color: #fff;
}

.member-registration-complete-progress {
    position: absolute;
    top: 45px;
    left: 50%;
    width: 352px;
    height: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateX(-50%);
}

.member-registration-complete-progress span {
    height: 2px;
    flex: 1 1 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
}

.member-registration-complete-progress span.is-active {
    background: #fff;
}

.member-registration-complete-heading {
    position: absolute;
    top: 142px;
    left: 50%;
    width: 350px;
    height: 66px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    transform: translateX(-50%);
}

.member-registration-complete-heading h1,
.member-registration-complete-heading h2 {
    width: 350px;
    height: 27px;
    margin: 0;
    color: #fff;
    letter-spacing: 1px;
}

.member-registration-complete-heading h1 {
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 41px;
}

.member-registration-complete-heading h2 {
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 27px;
}

.member-registration-complete-copy {
    position: absolute;
    top: 248px;
    left: 50%;
    width: 350px;
    height: 56px;
    margin: 0;
    color: #d9d9d9;
    font-family: "Inter", "Noto Sans TC", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0.01em;
    transform: translateX(-50%);
}

.member-registration-complete-button {
    position: absolute;
    top: auto;
    bottom: calc(48px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    box-sizing: border-box;
    width: 350px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    gap: 10px;
    border: 1px solid #b6b6b6;
    border-radius: 25px;
    background: #1a1a1a;
    color: #b6b6b6;
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 0.2em;
    text-decoration: none;
    transform: translateX(-50%);
}

.member-profile-page .member-profile-actions.member-complete-profile-actions button {
    width: 100%;
    height: 48px;
    min-height: 48px;
    border: 1px solid #b6b6b6;
    border-radius: 25px;
    background: #1a1a1a;
    color: #b6b6b6;
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 0.2em;
}

.member-profile-page .member-alert {
    margin: 0;
}

.member-profile-page .member-profile-card {
    min-height: 438px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 0;
    border-radius: 12px;
    background: #171717;
    padding: 16px;
}

.member-profile-page .member-profile-card label {
    gap: 6px;
}

.member-profile-page .member-profile-card label span {
    color: #e6e6e6;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.member-profile-page .member-profile-card input[type="email"],
.member-profile-page .member-profile-card input[type="date"],
.member-profile-page .member-profile-card input:not([type]),
.member-profile-page .member-profile-card select {
    min-height: 37px;
    border: 0;
    border-radius: 10px;
    background-color: #292929;
    background-image: none;
    color: #e7e7e7;
    font-size: 14px;
    font-weight: 400;
    padding: 0 14px;
}

/* Prevent iOS Safari from zooming the edit-profile view when a field is focused. */
.member-profile-page:not(.member-complete-profile-page) .member-profile-card input:not([type="checkbox"]):not([type="radio"]),
.member-profile-page:not(.member-complete-profile-page) .member-profile-card textarea,
.member-profile-page:not(.member-complete-profile-page) .member-profile-card select {
    font-size: 16px;
}

.member-profile-page .member-profile-card input[type="date"] {
    color-scheme: dark;
    text-align: left;
    text-align-last: left;
}

.member-profile-page .member-profile-card input[type="date"]::-webkit-date-and-time-value {
    min-width: 0;
    text-align: left;
}

.member-profile-page .member-profile-phone-grid {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 8px;
}

.member-profile-page .member-profile-phone-grid > label:last-child {
    align-content: end;
}

.member-profile-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.member-profile-page .member-profile-actions {
    width: auto;
    margin-top: auto;
    gap: 16px;
    padding-top: 26px;
}

.member-profile-page .member-profile-actions a,
.member-profile-page .member-profile-actions button {
    box-sizing: border-box;
    width: 100px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
}

.member-profile-page .member-profile-actions a {
    color: #fff;
    background: transparent;
}

.member-profile-page .member-profile-actions button.member-profile-cancel {
    color: #fff;
    background: transparent;
}

.member-profile-page .member-profile-actions button {
    color: #171717;
    background: #fff;
    cursor: pointer;
}

@media (max-width: 640px) {
    .member-profile-page .member-profile-phone-grid {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .member-profile-page .member-profile-card {
        padding: 16px;
    }

    .member-complete-profile-page .member-profile-card {
        padding: 0;
    }
}
/* Complete-profile page must override the shared Edit card styles above. */
.member-profile-page.member-complete-profile-page .member-profile-card {
    width: 100%;
    min-height: calc(max(844px, 100dvh) - 279px - env(safe-area-inset-bottom, 0px));
    gap: 17px;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.member-profile-page.member-complete-profile-page .member-profile-card input[type="email"],
.member-profile-page.member-complete-profile-page .member-profile-card input[type="date"],
.member-profile-page.member-complete-profile-page .member-profile-card input:not([type]),
.member-profile-page.member-complete-profile-page .member-profile-card select {
    min-height: 44px;
}

.member-profile-page.member-complete-profile-page .member-profile-card .member-complete-profile-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
}

/* Figma: Sign up - LINE registration 02 */
.member-profile-page.member-complete-profile-page {
    position: relative;
    width: min(100%, 390px);
    height: auto;
    min-height: 844px;
    display: block;
    padding: 0 20px;
    overflow: visible;
    background: #000;
}

.member-complete-profile-page .member-profile-page-head {
    position: static;
    display: block;
    min-height: 0;
    padding: 0;
}

.member-complete-profile-page .member-complete-profile-progress {
    position: absolute;
    width: 350px;
    height: 2px;
    left: 20px;
    top: 55px;
    gap: 7px;
}

.member-complete-profile-page .member-profile-page-head strong {
    position: absolute;
    width: 350px;
    height: 29px;
    left: 20px;
    top: 142px;
    margin: 0;
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 41px;
    letter-spacing: 1px;
}

.member-complete-profile-page .member-profile-page-head:has(> strong) h1 {
    position: absolute;
    width: 350px;
    height: 27px;
    left: 20px;
    top: 183px;
    margin: 0;
    font-family: "Montserrat", "Noto Sans TC", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 27px;
    letter-spacing: 1px;
}

.member-profile-page.member-complete-profile-page .member-profile-card {
    position: relative;
    width: 350px;
    height: auto;
    min-height: calc(max(844px, 100dvh) - 279px - env(safe-area-inset-bottom, 0px));
    left: auto;
    top: auto;
    margin-top: 231px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    overflow: visible;
}

.member-complete-profile-fields {
    width: 350px;
    height: auto;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 80px;
}

.member-complete-profile-fields > label,
.member-complete-profile-fields > .member-profile-phone-grid {
    width: 350px;
    height: 63px;
    flex: 0 0 63px;
}

.member-complete-profile-fields > label.has-error {
    height: 97px;
    flex-basis: 97px;
}

.member-complete-profile-fields > .member-profile-phone-grid:has(.has-error) {
    height: 97px;
    flex-basis: 97px;
}

.member-complete-profile-fields > .member-profile-phone-grid:has(.has-error) > label {
    height: 97px;
}

.member-complete-profile-fields > .member-complete-profile-demographics:has(.has-error) {
    height: 97px;
    flex-basis: 97px;
}

.member-complete-profile-fields > .member-complete-profile-demographics:has(.has-error) > label {
    height: 97px;
}

.member-complete-profile-page .member-profile-field-error {
    width: 100%;
    min-height: 24px;
    margin: 1px 0 0;
    color: #906262;
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 1px;
    white-space: normal;
}

.member-complete-profile-page .member-profile-card .member-complete-profile-consent:has(.member-profile-field-error) {
    position: relative;
    height: 49px;
    flex-basis: 49px;
}

.member-complete-profile-page .member-complete-profile-consent .member-profile-field-error {
    position: absolute;
    left: 0;
    top: 24px;
}

.member-complete-profile-fields > .member-complete-profile-extra-question {
    width: 350px;
    min-height: 63px;
    height: auto;
    flex: 0 0 auto;
}

.member-complete-profile-radio-options {
    width: 350px !important;
    height: auto !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.member-complete-profile-radio-options > label {
    width: auto !important;
    height: 36px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.09);
}

.member-complete-profile-radio-options input[type="radio"] {
    width: 14px;
    height: 14px;
    min-height: 14px;
    margin: 0;
}

.member-complete-profile-radio-options > label > span {
    width: auto !important;
    height: auto !important;
    color: #dadada !important;
}

.member-complete-profile-page .member-profile-card label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.member-complete-profile-page .member-profile-card label > span:not(.member-profile-visually-hidden) {
    width: 100%;
    height: 10px;
    color: #dadada;
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 1px;
}

.member-profile-page.member-complete-profile-page .member-profile-card input[type="email"],
.member-profile-page.member-complete-profile-page .member-profile-card input[type="date"],
.member-profile-page.member-complete-profile-page .member-profile-card input:not([type]),
.member-profile-page.member-complete-profile-page .member-profile-card select {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    padding: 10px 15px;
    font-family: "Noto Sans TC", "Montserrat", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 1px;
}

.member-complete-profile-page .member-profile-card input::placeholder {
    color: #707070;
    opacity: 1;
}

.member-complete-profile-page .member-profile-phone-grid {
    position: relative;
    display: grid;
    grid-template-columns: 70px 273px;
    gap: 7px;
}

.member-complete-profile-page .member-profile-phone-grid > label {
    width: 100%;
    height: 63px;
}

.member-complete-profile-page .member-profile-phone-grid select {
    padding: 10px;
    text-align: center;
}

.member-complete-profile-page .member-profile-phone-grid > label:last-child {
    justify-content: flex-end;
}

.member-complete-profile-fields > .member-profile-phone-grid:has(.has-error) > label {
    height: 63px;
}

.member-complete-profile-page .member-profile-phone-grid .member-profile-field-error {
    position: absolute;
    left: 0;
    top: 73px;
    width: 350px;
    text-align: left;
}

.member-complete-profile-demographics {
    width: 350px;
    height: 63px;
    flex: 0 0 63px;
    display: grid;
    grid-template-columns: 165px 165px;
    gap: 20px;
}

.member-complete-profile-demographics > label {
    width: 165px;
    height: 63px;
}

.member-complete-profile-select {
    position: relative;
    width: 165px;
    height: 44px;
}

.member-profile-page.member-complete-profile-page .member-complete-profile-select > select.member-profile-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.member-complete-profile-select-trigger {
    box-sizing: border-box;
    width: 165px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 10px 15px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 1px;
    text-align: left;
    cursor: pointer;
}

.member-complete-profile-select-trigger svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    transition: transform 160ms ease;
}

.member-complete-profile-select.is-open .member-complete-profile-select-trigger svg {
    transform: rotate(180deg);
}

.member-complete-profile-select-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    box-sizing: border-box;
    width: 165px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #1d1d1d;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.member-complete-profile-select-menu[hidden] {
    display: none;
}

.member-complete-profile-select-menu button {
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 8px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #dadada;
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 1px;
    text-align: left;
    cursor: pointer;
}

.member-complete-profile-select-menu button:hover,
.member-complete-profile-select-menu button:focus-visible,
.member-complete-profile-select-menu button.is-selected {
    background: #353535;
    color: #fff;
    outline: none;
}

.member-complete-profile-page .member-profile-card .member-complete-profile-consent {
    width: 350px;
    height: 18px;
    min-height: 18px;
    margin: auto 0 0;
    flex: 0 0 18px;
    align-items: center !important;
    cursor: pointer;
}

.member-profile-page.member-complete-profile-page .member-profile-card input:not([type="checkbox"]):not([type="radio"]),
.member-profile-page.member-complete-profile-page .member-profile-card textarea,
.member-profile-page.member-complete-profile-page .member-profile-card select {
    font-size: 16px;
}

.member-complete-profile-page .member-profile-card .member-complete-profile-consent > span {
    width: 226px;
    height: 18px;
    min-height: 18px;
    display: flex;
    align-items: center;
    flex-direction: row;
    white-space: nowrap;
    position: static;
    transform: translateY(-1px);
}

.member-complete-profile-consent input[type="checkbox"] {
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.member-complete-profile-consent.has-error:has(input[type="checkbox"]:checked) input[type="checkbox"] {
    border-color: #a3a3a3;
    background-color: #a3a3a3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4.2 9.2 3.1 3.1 6.5-6.6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.member-complete-profile-page .member-profile-card .member-complete-profile-consent.has-error:has(input[type="checkbox"]:checked) > span {
    color: #a3a3a3;
}

.member-complete-profile-consent.has-error:has(input[type="checkbox"]:checked) a {
    color: #6baac2;
}

body.member-policy-open {
    overflow: hidden;
}

.member-policy-modal[hidden] {
    display: none;
}

.member-policy-modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
    width: min(100%, 390px);
    height: 100dvh;
    margin: 0 auto;
}

.member-policy-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, .72);
    opacity: 0;
    transition: opacity 240ms ease;
}

.member-policy-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    width: min(100%, 392px);
    height: min(705px, calc(100dvh - 16px));
    min-height: 0;
    max-height: 705px;
    padding: 49px 20px calc(11px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px 20px 0 0;
    background: #202020;
    transform: translate3d(0, 100%, 0);
    transition: transform 280ms cubic-bezier(.22, 1, .36, 1);
}

.member-policy-modal.is-open .member-policy-backdrop {
    opacity: 1;
}

.member-policy-modal.is-open .member-policy-sheet {
    transform: translate3d(0, 0, 0);
}

.member-policy-handle {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 15px;
    left: 50%;
    display: block;
    box-sizing: border-box;
    width: 47.54px !important;
    min-width: 47.54px !important;
    max-width: 47.54px !important;
    height: 3px !important;
    min-height: 3px !important;
    max-height: 3px !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0 !important;
    border-radius: 999px;
    background: #a8a8a8 !important;
    box-shadow: none !important;
    font-size: 0;
    line-height: 0;
    transform: translateX(-50%);
}

.member-policy-panel {
    box-sizing: border-box;
    width: min(350px, 100%);
    height: min(570px, calc(100dvh - 94px - env(safe-area-inset-bottom, 0px)));
    overflow: hidden;
    border-radius: 10px;
    background: #dedede;
    color: #757575;
}

.member-policy-panel h2 {
    box-sizing: border-box;
    height: 28px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5px;
    border-bottom: 1px solid #b6b6b6;
    color: #565656;
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 1px;
}

.member-policy-content {
    box-sizing: border-box;
    height: calc(100% - 28px);
    overflow-y: auto;
    padding: 37px 26px 24px;
    color: #a3a3a3;
    font-family: "Noto Sans TC", Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 13px;
    letter-spacing: 0;
    overscroll-behavior: contain;
}

.member-policy-content > :first-child { margin-top: 0; }
.member-policy-content > :last-child { margin-bottom: 0; }
.member-policy-content ul,
.member-policy-content ol { padding-left: 20px; }

.admin-policy-editor {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(75, 82, 68, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .44);
}

.admin-policy-rich-editor {
    min-height: 220px;
}

.admin-policy-page-form {
    display: grid;
    gap: 20px;
}

.admin-policy-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border: 1px solid rgba(75, 82, 68, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .56);
    box-shadow: 0 8px 24px rgba(55, 58, 50, .05);
}

.admin-policy-page-heading h2,
.admin-policy-editor-heading h3 {
    margin: 0;
    color: #2d322b;
}

.admin-policy-page-heading p,
.admin-policy-editor-heading p {
    margin: 6px 0 0;
    color: #777c72;
    font-size: 13px;
    line-height: 1.6;
}

.admin-policy-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-policy-editor-heading {
    min-height: 72px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.admin-policy-editor-heading h3 {
    font-size: 20px;
}

.admin-policy-editor-heading > span {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e8e6df;
    color: #73776e;
    font-size: 11px;
}

.admin-policy-toolbar {
    min-height: 42px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(75, 82, 68, .14);
    border-radius: 9px;
    background: #f3f1eb;
}

.admin-policy-toolbar button[data-policy-command] {
    flex: 0 0 auto;
    width: auto;
    min-width: 56px;
    min-height: 32px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid rgba(75, 82, 68, .16);
    border-radius: 7px;
    background: #fffefb;
    color: #454a42;
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
}

.admin-policy-toolbar button[data-policy-command="bold"],
.admin-policy-toolbar button[data-policy-command="italic"],
.admin-policy-toolbar button[data-policy-command="underline"] {
    width: 34px;
    min-width: 34px;
    padding-right: 0;
    padding-left: 0;
}

.admin-policy-toolbar button[data-policy-command]:hover,
.admin-policy-toolbar button[data-policy-command]:focus-visible {
    border-color: #4b5244;
    background: #e9e7df;
    outline: none;
}

.admin-policy-page-form .admin-policy-editor {
    align-content: start;
    padding: 22px;
    background: rgba(255, 255, 255, .66);
    box-shadow: 0 10px 28px rgba(55, 58, 50, .06);
}

.admin-policy-page-form .admin-policy-rich-editor {
    box-sizing: border-box;
    min-height: 420px;
    max-height: 62vh;
    overflow-y: auto;
    padding: 18px;
    border-radius: 10px;
    background: #fffefb;
}

@media (max-width: 1100px) {
    .admin-policy-editor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .admin-policy-page-heading { align-items: stretch; flex-direction: column; }
    .admin-policy-page-heading .admin-submit { width: 100%; }
    .admin-policy-editor-heading { min-height: 0; flex-direction: column; gap: 10px; }
    .admin-policy-page-form .admin-policy-editor { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .member-policy-backdrop,
    .member-policy-sheet { transition: none; }
}

.member-profile-page .member-profile-actions.member-complete-profile-actions {
    width: 350px;
    height: 48px;
    flex: 0 0 48px;
    margin: 30px 0 0;
}

/* Tier benefit editor */
.admin-tier-benefits-editor { border: 1px solid rgba(75, 82, 68, 0.18); border-radius: 8px; padding: 16px; }
.admin-tier-benefits-editor legend { color: #27313b; font-size: 16px; font-weight: 800; }
.admin-tier-benefit-row { display: grid; grid-template-columns: 180px minmax(240px, 1fr) 80px 100px auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(75, 82, 68, 0.12); }
.admin-tier-display-option { grid-template-columns: auto minmax(160px, 1fr) 90px; }
.admin-tier-display-option input[type="number"] { width: 90px; min-height: 34px; }
.admin-tier-display-settings-form { max-width: 620px; display: flex; align-items: flex-end; gap: 16px; margin-top: 20px; }
.admin-tier-display-settings-form > label { min-width: 0; flex: 1; display: grid; gap: 8px; }
.admin-tier-display-settings-form > label > span:first-child { color: #42483e; font-size: 13px; font-weight: 800; }
.admin-tier-display-settings-form > .admin-submit { flex: 0 0 auto; min-width: 112px; }
.admin-tier-display-limit-control { min-height: 44px; display: flex; align-items: center; overflow: hidden; border: 1px solid rgba(75, 82, 68, .22); border-radius: 8px; background: #fff; }
.admin-tier-display-limit-control input { width: 100%; min-height: 42px; border: 0; background: transparent; padding: 0 14px; }
.admin-tier-display-limit-control input:focus { outline: none; }
.admin-tier-display-limit-control small { flex: 0 0 auto; border-left: 1px solid rgba(75, 82, 68, .14); color: #777c72; padding: 0 14px; }
.admin-tier-display-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-top: 20px; }
.admin-tier-display-card { min-width: 0; display: flex; flex-direction: column; gap: 18px; border: 1px solid rgba(75, 82, 68, .16); border-radius: 12px; background: #fff; padding: 20px; box-shadow: 0 8px 24px rgba(55, 58, 50, .06); }
.admin-tier-display-card.is-inactive { background: #f2f0ea; opacity: .72; }
.admin-tier-display-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-tier-display-card-head h3 { margin: 6px 0 2px; color: #292e27; font-size: 20px; line-height: 1.25; }
.admin-tier-display-card-head code { color: #777c72; font-family: 'Montserrat', sans-serif; font-size: 12px; }
.admin-tier-display-order { color: #8a8e85; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.admin-tier-display-state { flex: 0 0 auto; border-radius: 999px; background: #e4e1d8; color: #777c72; font-size: 12px; font-weight: 800; padding: 5px 10px; }
.admin-tier-display-state.is-active { background: #e1eadc; color: #496141; }
.admin-tier-display-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid rgba(75, 82, 68, .12); border-radius: 9px; background: #f8f7f3; }
.admin-tier-display-metrics > div { display: grid; gap: 4px; padding: 13px 14px; }
.admin-tier-display-metrics > div + div { border-left: 1px solid rgba(75, 82, 68, .12); }
.admin-tier-display-metrics small { color: #7d8278; font-size: 11px; }
.admin-tier-display-metrics strong { color: #30352d; font-size: 24px; line-height: 1; }
.admin-tier-display-metrics strong span { margin-left: 4px; color: #757a71; font-size: 12px; font-weight: 600; }
.admin-tier-display-visibility { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-tier-display-visibility span { border-radius: 999px; background: #ece9e2; color: #888c83; font-size: 12px; font-weight: 700; padding: 6px 10px; }
.admin-tier-display-visibility span.is-visible { background: #e8eee3; color: #506248; }
.admin-tier-display-card-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 2px; }
.admin-tier-display-card-actions > a,
.admin-tier-display-card-actions > form { flex: 1; }
.admin-tier-display-card-actions a,
.admin-tier-display-card-actions button { width: 100%; min-height: 38px; }
.admin-tier-display-empty { grid-column: 1 / -1; margin: 0; border: 1px dashed rgba(75, 82, 68, .24); border-radius: 10px; color: #777c72; padding: 28px; text-align: center; }
@media (max-width: 640px) {
    .admin-tier-display-settings-form { align-items: stretch; flex-direction: column; }
    .admin-tier-display-settings-form > .admin-submit { width: 100%; }
    .admin-tier-display-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .admin-tier-benefit-row { grid-template-columns: 1fr; } }
/* Figma: Membership Benefits */
.member-shell:has(.member-transaction-page) { min-height: 100dvh; background: #000; }
.member-transaction-page { box-sizing: border-box; width: min(100%, 390px); min-height: 844px; margin: 0 auto; background: #000; color: #fff; padding: 17px 19px 40px 20px; }
.member-transaction-back { width: 40px; height: 40px; display: block; color: #fff; }
.member-transaction-back svg { display: block; width: 40px; height: 40px; }
.member-transaction-content { display: grid; gap: 20px; margin-top: 27px; }
.member-transaction-heading { position: relative; height: 48px; display: flex; align-items: flex-start; justify-content: space-between; }
.member-transaction-heading > div { display: grid; gap: 5px; }
.member-transaction-heading strong { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: 1px; }
.member-transaction-heading span { font-family: 'Noto Sans TC', sans-serif; font-size: 14px; font-weight: 500; line-height: 19px; letter-spacing: 1px; }
.member-transaction-heading img { width: 20px; height: 20px; margin-top: 2px; }
.member-transaction-filter-trigger { position: absolute; top: -3px; right: 0; width: 20px; height: 20px; min-height: 20px; display: grid; place-items: center; margin: 0; border: 0; background: transparent; padding: 0; }
.member-transaction-filter-trigger img { display: block; margin: 0; }
.member-transaction-filter-sheet { z-index: 120; }
.member-transaction-toolbar { width: 350px; height: 34px; display: flex; flex: none; flex-direction: row; align-items: center; gap: 7px; padding: 0; }
.member-transaction-types { box-sizing: border-box; width: 273px; height: 34px; flex: none; display: flex; flex-direction: row; align-items: center; gap: 10px; border-radius: 25px; background: #353535; padding: 2px; }
.member-transaction-types a { box-sizing: border-box; width: 83px; height: 30px; min-width: 0; flex: 1 1 83px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; border-radius: 20px; color: #757575; font-family: 'Noto Sans TC', sans-serif; font-size: 12px; font-style: normal; font-weight: 400; line-height: 14px; text-align: center; text-decoration: none; white-space: nowrap; padding: 0 15px; }
.member-transaction-types a.active { background: #bfc1c7; color: #353535; }
.member-transaction-date { box-sizing: border-box; width: 70px; height: 34px; min-height: 34px; max-height: 34px; flex: none; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 20px; background: #353535; color: #bfc1c7; font-family: 'Noto Sans TC', sans-serif; font-size: 12px; font-style: normal; font-weight: 400; line-height: 14px; text-align: center; padding: 0; }
.member-transaction-date svg { display: block; width: 12px; height: 15px; flex: none; }
.member-transaction-date-sheet { align-items: flex-end; z-index: 125; }
.member-transaction-date-sheet .voucher-filter-backdrop { background: rgba(0, 0, 0, .32); backdrop-filter: none; -webkit-backdrop-filter: none; }
.member-transaction-calendar { position: relative; z-index: 1; box-sizing: border-box; width: min(100%, 390px); height: 542px; max-height: 94dvh; display: grid; grid-template-rows: 22px 18px minmax(0, 188px) 51px 38px 44px; align-content: space-between; gap: 0; margin: 0; border-radius: 20px 20px 0 0; background: #d6d6d6; color: #353535; padding: 25px 30px 20px; overflow-y: auto; }
.member-calendar-head { width: 330px; max-width: 100%; height: 22px; display: grid; grid-template-columns: 20px 1fr 20px; align-items: center; gap: 24px; }
.member-calendar-head strong { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 500; line-height: 22px; text-align: center; }
.member-calendar-head button { width: 20px; height: 20px; min-height: 20px; border: 0; background: transparent; color: #353535; font: 400 32px/18px Arial, sans-serif; padding: 0; }
.member-calendar-week, .member-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.member-calendar-week { width: 330px; max-width: 100%; height: 18px; align-items: center; column-gap: 0; font: 500 14px/17px 'Montserrat', sans-serif; }
.member-calendar-grid { width: 330px; max-width: 100%; align-content: center; column-gap: 0; row-gap: 12px; }
.member-calendar-grid button { position: relative; z-index: 0; box-sizing: border-box; width: 100%; height: 28px; min-height: 28px; border: 0; border-radius: 0; background: transparent; color: #353535; font: 500 14px/17px 'Montserrat', sans-serif; padding: 0; isolation: isolate; }
.member-calendar-grid button::before { content: ''; position: absolute; z-index: -2; inset: 0; background: transparent; }
.member-calendar-grid button.outside { color: #c1c3ca; }
.member-calendar-grid button.in-range::before { background: #bababa; }
.member-calendar-grid button.in-range:nth-child(7n + 1)::before { border-radius: 15px 0 0 15px; }
.member-calendar-grid button.in-range:nth-child(7n)::before { border-radius: 0 10px 10px 0; }
.member-calendar-grid button.selected { color: #fff; }
.member-calendar-grid button.selected::after { content: ''; position: absolute; z-index: -1; top: 0; left: 50%; width: 28px; height: 28px; border-radius: 20px; background: #353535; transform: translateX(-50%); }
.member-calendar-grid button.range-start::before { left: 50%; background: #bababa; border-radius: 15px 0 0 15px; }
.member-calendar-grid button.range-end::before { right: 50%; background: #bababa; border-radius: 0 10px 10px 0; }
.member-calendar-grid button.range-start.range-end::before,
.member-calendar-grid button.range-start:last-child::before,
.member-calendar-grid button.range-end:first-child::before { display: none; }
.member-calendar-grid button.range-start:nth-child(7n)::before,
.member-calendar-grid button.range-end:nth-child(7n + 1)::before { display: none; }
.member-calendar-range { width: 330px; max-width: 100%; height: 51px; display: grid; grid-template-columns: 138px 1fr 138px; align-items: center; border-top: 1px solid #b6b6b6; border-bottom: 1px solid #b6b6b6; padding: 0; }
.member-calendar-range span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.member-calendar-range svg { width: 24px; height: 24px; fill: none; stroke: #494949; stroke-width: 1.6; }
.member-calendar-range b { color: #494949; font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 500; line-height: 20px; }
.member-calendar-range em { color: #555; font-style: normal; text-align: center; }
.member-calendar-presets { width: 330px; max-width: 100%; height: 38px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.member-calendar-presets button { box-sizing: border-box; width: 100%; height: 38px; min-height: 38px; border: 0; border-radius: 20px; background: #cbcbcb; color: #757575; font: 500 14px/17px 'Noto Sans TC', sans-serif; padding: 10px; }
.member-calendar-confirm { box-sizing: border-box; width: 330px; max-width: 100%; height: 44px; min-height: 44px; margin: 0; border: 0; border-radius: 25px; background: #cbcbcb; color: #757575; font: 500 14px/17px 'Noto Sans TC', sans-serif; letter-spacing: 10px; padding: 10px 0 10px 10px; }
.member-transaction-result { height: 315px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.07); }
.member-transaction-result.has-records { height: auto; min-height: 0; overflow: hidden; }
.member-transaction-result > header { height: 36px; box-sizing: border-box; border-bottom: 1px solid #323232; color: #a3a3a3; font-family: 'Noto Sans TC', sans-serif; font-size: 11px; font-weight: 400; line-height: 13px; text-align: center; padding-top: 10px; }
.member-consumption-list { width: 100%; display: flex; flex-direction: column; }
.member-consumption-item { box-sizing: border-box; width: 100%; height: 98px; min-height: 98px; max-height: 98px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; border: 0; border-bottom: 1px solid #323232; border-radius: 0; background: transparent; color: #fff; text-align: left; text-decoration: none; padding: 20px 10px 20px 15px; }
.member-consumption-item:last-child { border-bottom: 0; }
.member-consumption-copy { min-width: 0; height: 58px; display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.member-consumption-copy strong { width: 100%; overflow: hidden; color: #fff; font-family: 'Noto Sans TC', sans-serif; font-size: 16px; font-weight: 500; line-height: 18px; letter-spacing: 1px; text-overflow: ellipsis; white-space: nowrap; }
.member-consumption-copy small { width: 100%; overflow: hidden; color: #757575; font-family: 'Noto Sans TC', sans-serif; font-size: 13px; font-weight: 400; line-height: 16px; letter-spacing: 1px; text-overflow: ellipsis; white-space: nowrap; }
.member-consumption-amount { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.member-consumption-amount strong { color: #fff; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 600; line-height: 22px; letter-spacing: 1px; white-space: nowrap; }
.member-consumption-amount svg { width: 22px; height: 22px; flex: none; }
.member-point-amount { gap: 5px; }
.member-point-amount > img { width: 22px; height: 22px; flex: none; object-fit: contain; }
.member-voucher-transaction-arrow { margin-left: auto; }
.member-voucher-detail-hero strong { font-size: 26px; line-height: 32px; }
.member-transaction-detail { width: 350px; max-width: 100%; min-height: 500px; display: flex; flex-direction: column; align-items: flex-start; gap: 33px; margin-top: 18px; }
.member-transaction-detail-hero { width: 100%; height: 136px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.member-transaction-detail-hero svg { width: 70px; height: 70px; flex: none; }
.member-point-detail-hero > img { width: 70px; height: 70px; flex: none; object-fit: contain; }
.member-point-detail-hero > div { width: 350px; max-width: 100%; height: 59px; display: flex; flex-direction: column; align-items: flex-start; padding: 0; gap: 6px; }
.member-point-detail-hero > div > strong { width: 100%; height: 32px; }
.member-point-detail-hero > div > span { width: 100%; height: 21px; line-height: 22px; }
.member-transaction-detail-hero strong { width: 100%; color: #fff; font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 600; line-height: 32px; letter-spacing: 1px; text-align: center; }
.member-transaction-detail-hero span { width: 100%; color: #fff; font-family: 'Noto Sans TC', sans-serif; font-size: 16px; font-weight: 500; line-height: 20px; letter-spacing: 1px; text-align: center; }
.member-transaction-detail-cards { width: 100%; display: flex; flex-direction: column; gap: 15px; }
.member-transaction-detail-row { box-sizing: border-box; width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 10px; background: rgba(255,255,255,.07); padding: 15px; }
.member-transaction-detail-row span, .member-transaction-detail-meta span { color: #fff; font-family: 'Noto Sans TC', sans-serif; font-size: 14px; font-weight: 500; line-height: 19px; letter-spacing: 1px; white-space: nowrap; }
.member-transaction-detail-row strong { overflow: hidden; color: #fff; font-family: 'Noto Sans TC', sans-serif; font-size: 16px; font-weight: 500; line-height: 22px; letter-spacing: 1px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.member-transaction-detail-meta { box-sizing: border-box; width: 100%; min-height: 147px; display: flex; flex-direction: column; border-radius: 10px; background: rgba(255,255,255,.07); padding: 0; }
.member-transaction-detail-meta > div { box-sizing: border-box; min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #323232; padding: 15px; }
.member-transaction-detail-meta > div[hidden] { display: none !important; }
.member-transaction-detail-meta > div:last-child { border-bottom: 0; }
.member-transaction-detail-meta b { min-width: 0; overflow: hidden; color: #b6b6b6; font-family: 'Noto Sans TC', sans-serif; font-size: 13px; font-weight: 400; line-height: 19px; letter-spacing: 1px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.member-point-source-meta { min-height: 98px; }
.member-point-period-meta { min-height: 147px; }
.member-voucher-transfer-detail .member-transaction-detail-meta { min-height: 0; }
.member-point-transfer-detail { width: 350px; height: 499px; min-height: 499px; gap: 33px; }
.member-point-transfer-detail .member-transaction-detail-cards { width: 350px; height: 330px; gap: 15px; }
.member-point-transfer-detail .member-transaction-detail-row { flex: none; width: 350px; height: 52px; min-height: 52px; padding: 15px; }
.member-point-transfer-detail .member-point-transfer-recipient-meta,
.member-point-transfer-detail .member-point-transfer-record-meta { flex: none; width: 350px; min-height: 0; padding: 15px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.member-point-transfer-detail .member-point-transfer-recipient-meta { height: 102px; }
.member-point-transfer-detail .member-point-transfer-record-meta { height: 151px; }
.member-point-transfer-detail .member-transaction-detail-meta > div { flex: none; box-sizing: border-box; width: 350px; min-height: 0; padding: 0 15px; border: 0; }
.member-point-transfer-detail .member-point-transfer-recipient-meta > div:first-child { height: 20px; }
.member-point-transfer-detail .member-point-transfer-recipient-meta > div:last-child { height: 22px; }
.member-point-transfer-detail .member-point-transfer-record-meta > div:first-child { height: 19px; }
.member-point-transfer-detail .member-point-transfer-record-meta > div:nth-of-type(2),
.member-point-transfer-detail .member-point-transfer-record-meta > div:nth-of-type(3) { height: 21px; }
.member-point-transfer-detail .member-transaction-detail-meta > hr { flex: none; width: 350px; height: 0; margin: 0; border: 0; border-top: 1px solid #323232; border-radius: 30px; }
.member-point-transfer-detail .member-point-transfer-recipient-meta b { color: #fff; font: 500 16px/20px Montserrat, sans-serif; }
.member-point-transfer-detail .member-point-transfer-recipient-meta > div:last-child b { font-family: "Noto Sans TC", sans-serif; line-height: 22px; }
.member-point-transfer-detail .member-point-transfer-record-meta b { color: #b6b6b6; font: 400 14px/17px "Noto Sans TC", sans-serif; }
.member-point-transfer-detail .member-point-transfer-record-meta > div:first-child b { font-size: 13px; line-height: 24px; }
.member-point-note { box-sizing: border-box; width: 100%; min-height: 92px; display: flex; flex-direction: column; border-radius: 10px; background: rgba(255,255,255,.07); }
.member-point-note strong { min-height: 47px; display: flex; align-items: center; border-bottom: 1px solid #323232; color: #fff; font-family: 'Noto Sans TC', sans-serif; font-size: 14px; font-weight: 500; line-height: 19px; letter-spacing: 1px; padding: 0 15px; }
.member-point-note p { margin: 0; color: #b6b6b6; font-family: 'Noto Sans TC', sans-serif; font-size: 13px; font-weight: 400; line-height: 20px; letter-spacing: 1px; padding: 10px 15px; }
.member-transaction-empty { min-height: 192px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding-top: 29px; }
.member-transaction-empty img { width: 101px; height: 101px; opacity: .25; }
.member-transaction-empty p { margin: 0; color: #494949; font-family: 'Noto Sans TC', sans-serif; font-size: 14px; font-weight: 500; line-height: 17px; letter-spacing: 1px; text-align: center; }
@media (max-width: 389px) { .member-transaction-page { padding-left: 16px; padding-right: 16px; } }

.member-benefits-head { margin-bottom: 0; }
.member-benefit-filters { width: 100%; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 0 0 10px; }
.member-benefit-filters::-webkit-scrollbar { display: none; }
.member-benefit-filters button { flex: 0 0 auto; width: auto; min-height: 29px; border: 0; border-radius: 999px; background: #252525; color: #777; font-family: 'Noto Sans TC', sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: normal; padding: 0 16px; white-space: nowrap; }
.member-benefit-filters button.active { background: #d5d5d5; color: #4a4a4a; }
.member-profile-page .member-benefit-list { display: grid; align-self: start; align-content: start; grid-auto-rows: max-content; gap: 0; }
.member-profile-page .member-benefit-card { display: grid; align-content: start; grid-auto-rows: max-content; gap: 24px; border: 0; border-bottom: 1px solid #333; border-radius: 0; background: transparent; color: #fff; padding: 20px 0 24px; }
.member-benefit-card[hidden] { display: none; }
.member-benefit-tier-head { display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 16px; align-items: center; }
.member-benefit-tier-visual { box-sizing: border-box; width: 98px; aspect-ratio: 1.55; display: flex; align-items: flex-start; overflow: hidden; border-radius: 9px; color: #fff; padding: 7px; }
.member-benefit-tier-visual.has-image { aspect-ratio: auto; padding: 0; }
.member-benefit-tier-visual img { width: 100%; height: auto; display: block; }
.member-profile-page .member-benefit-tier-head h2 { margin: 0 0 3px; color: #fff; font-size: 18px; font-weight: 500; line-height: 1.2; }
.member-profile-page .member-benefit-tier-head small { color: #8e8e8e; font-family: 'Noto Sans TC', sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 1px; line-height: normal; }
.member-benefit-group { display: grid; align-content: start; grid-auto-rows: max-content; gap: 10px; }
.member-benefit-group h3 { margin: 0; color: #fff; font-size: 16px; font-weight: 500; }
.member-benefit-group ul { display: grid; gap: 7px; margin: 0; padding-left: 18px; }
.member-benefit-group li { color: #e5e5e5; font-size: 13px; line-height: 1.45; }
/* Figma: expanded member wallet */
.member-wallet-card[role="button"] { cursor: pointer; }
.member-wallet-modal { position: fixed; inset: 0; z-index: 1200; display: none; overflow-y: auto; background: #000; color: #fff; }
.member-wallet-modal.active { display: block; }
.member-wallet-modal-open { overflow: hidden; }
.member-wallet-modal-panel { box-sizing: border-box; width: min(100%, 430px); min-height: 100dvh; margin: 0 auto; background: #000; padding: 24px 20px 44px; }
.member-wallet-modal-close { width: 40px; height: 40px; display: block; border: 0; background: transparent; padding: 0; }
.member-wallet-modal-close svg { width: 40px; height: 40px; display: block; }
.member-wallet-modal-cards { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 24px -20px 0; padding: 0 20px; }
.member-wallet-modal-cards.is-single { justify-content: center; overflow-x: hidden; }
.member-wallet-modal-cards::-webkit-scrollbar { display: none; }
.member-wallet-modal-card { box-sizing: border-box; flex: 0 0 calc(100% - 18px); min-height: 195px; display: flex; align-items: baseline; gap: 7px; scroll-snap-align: center; border: 0; border-radius: 9px; background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.28)), var(--member-card-bg, #252525); background-position: center; background-size: cover; color: var(--member-card-color, #fff); text-align: left; padding: 14px 16px; opacity: .75; }
.member-wallet-modal-card.has-image { min-height: 0; aspect-ratio: 1047 / 603; background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.28)), var(--member-card-image), var(--member-card-bg, #252525); background-position: center; background-size: cover, contain, cover; background-repeat: no-repeat; }
.member-wallet-modal-card[hidden],
.member-wallet-modal-dots span[hidden] { display: none; }
.member-wallet-modal-card.active { opacity: 1; }
.member-wallet-modal-card strong { font-size: 38px; font-weight: 700; line-height: 1; }
.member-wallet-modal-card span { font-size: 12px; }
.member-wallet-modal-dots { box-sizing: border-box; display: flex; gap: 10px; min-height: 0; align-items: center; padding: 7px 8px 14px; }
.member-wallet-modal-dots span { width: 13px; height: 13px; display: block; background: var(--wallet-indicator-color, #777); -webkit-mask: url('/assets/icons/wallet-tier-indicator.svg') center / 9px 9px no-repeat; mask: url('/assets/icons/wallet-tier-indicator.svg') center / 9px 9px no-repeat; opacity: .38; }
.member-wallet-modal-dots span.active { background: var(--wallet-indicator-color, #777); -webkit-mask-size: 13px 13px; mask-size: 13px 13px; opacity: 1; }
.member-wallet-modal-content { display: grid; gap: 14px; }
.member-wallet-modal-content[hidden] { display: none; }
.member-wallet-owned, .member-wallet-benefits { display: grid; gap: 10px; border-radius: 10px; background: #171717; padding: 14px 16px; }
.member-wallet-owned span { color: #e5e5e5; font-size: 14px; }
.member-wallet-owned strong { min-height: 38px; display: flex; align-items: center; border-radius: 9px; background: #292929; color: #ddd; font-size: 14px; font-weight: 400; padding: 0 14px; }
.member-wallet-owned small { color: #777; font-size: 12px; }
.member-wallet-benefits h3 { display: flex; align-items: center; gap: 6px; margin: 0; border-bottom: 1px solid #555; color: #fff; font-size: 16px; font-weight: 500; padding: 0 0 14px; }
.member-wallet-benefits-icon { width: 17px; height: 17px; flex: 0 0 17px; display: block; background: var(--member-card-bg, var(--member-theme-color, #fff)); -webkit-mask: url('/assets/member-benefits-icon.svg') center / contain no-repeat; mask: url('/assets/member-benefits-icon.svg') center / contain no-repeat; }
.member-wallet-modal-dots span,
.member-wallet-benefits-icon {
    filter:
        drop-shadow(1px 0 0 var(--member-icon-border-color, transparent))
        drop-shadow(-1px 0 0 var(--member-icon-border-color, transparent))
        drop-shadow(0 1px 0 var(--member-icon-border-color, transparent))
        drop-shadow(0 -1px 0 var(--member-icon-border-color, transparent))
        drop-shadow(1px 1px 0 var(--member-icon-border-color, transparent))
        drop-shadow(-1px 1px 0 var(--member-icon-border-color, transparent))
        drop-shadow(1px -1px 0 var(--member-icon-border-color, transparent))
        drop-shadow(-1px -1px 0 var(--member-icon-border-color, transparent));
}
.member-wallet-benefits ul { display: grid; gap: 7px; margin: 0; padding: 8px 0 0 18px; }
.member-wallet-benefits li { color: #eee; font-size: 13px; line-height: 1.45; }

/* Figma: 首頁通知與會員條碼彈窗 */
.member-notice-modal,
.member-qr-modal {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    padding: 0;
}
.member-notice-modal.active { display: flex; align-items: flex-start; justify-content: center; }
.member-qr-modal.active { display: grid; place-items: center; }
.member-notice-backdrop,
.member-qr-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .9); backdrop-filter: none; }
.member-shell:has(.member-notice-modal.active) .member-notice-button { position: relative; z-index: 1301; }
.member-notice-panel { box-sizing: border-box; position: relative; z-index: 1; width: min(350px, calc(100% - 40px)); height: 434px; display: block; overflow: hidden auto; margin-top: 80px; border: 0; border-radius: 15px; background: #d6d6d6; color: #000; padding: 19px 17px; box-shadow: none; }
.member-notice-list { width: 100%; display: grid; gap: 0; }
.member-notice-list article { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border: 0; border-bottom: 1px solid #a3a3a3; padding: 0 0 12px; margin-bottom: 12px; }
.member-notice-list article:last-child { margin-bottom: 0; }
.member-notice-list strong,
.member-notice-list small { width: 100%; color: #000; font-size: 12px; font-weight: 400; line-height: 1; text-align: left; }
.member-qr-panel { box-sizing: border-box; position: relative; z-index: 1; width: min(350px, calc(100% - 40px)); height: 253px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 15px; background: #d6d6d6; color: #000; padding: 0; box-shadow: none; }
.member-barcode-display { box-sizing: border-box; width: 340px; max-width: calc(100% - 10px); height: 142px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; color: #000; padding: 21px 11px 0; }
.member-barcode-display .member-real-barcode { width: 100%; height: 100px; display: block; flex: 0 0 100px; color: #000; opacity: 1; }
.member-barcode-display strong { color: #000; font-size: 12px; font-weight: 400; line-height: 21px; letter-spacing: 0; text-align: center; }

/* LINE legacy member binding: two-step mobile flow */
body.line-bind-flow { margin: 0; background: #000; color: #fff; }
.line-bind-shell { min-height: var(--line-bind-visual-height, 100dvh); background: #000; }
.line-bind-page { box-sizing: border-box; width: min(100%, 390px); height: var(--line-bind-visual-height, 100dvh); min-height: var(--line-bind-visual-height, 100dvh); display: flex; flex-direction: column; gap: 18px; margin: 0 auto; padding: 42px 20px max(28px, env(safe-area-inset-bottom)); background: #000; }
.line-bind-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: 100%; }
.line-bind-progress span { height: 2px; border-radius: 999px; background: #292929; }
.line-bind-progress span.active { background: #fff; }
.line-bind-page .member-alert { margin: 0; border: 1px solid rgba(255, 108, 108, .4); border-radius: 8px; background: rgba(126, 34, 34, .22); color: #ffb4b4; font-size: 13px; line-height: 1.5; padding: 10px 12px; }
.line-bind-form { flex: 1; display: flex; flex-direction: column; min-height: 0; padding-top: 40px; }
.line-bind-heading { display: grid; gap: 3px; }
.line-bind-heading h1, .line-bind-heading p { margin: 0; color: #fff; }
.line-bind-heading h1 { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: 1px; }
.line-bind-heading p { font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: 1px; }
.line-bind-phone-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; margin-top: 42px; }
.line-bind-phone-row label { min-width: 0; }
.line-bind-phone-row select, .line-bind-phone-row input { box-sizing: border-box; width: 100%; height: 40px; border: 0; border-radius: 7px; outline: 0; background: #171717; color: #b6b6b6; font: 500 14px/1 "Montserrat", "Noto Sans TC", sans-serif; padding: 0 12px; }
.line-bind-phone-row select { appearance: none; text-align: center; text-align-last: center; padding: 0 8px; }
.line-bind-phone-row select option { text-align: center; }
.line-bind-phone-row input:focus, .line-bind-code input:focus { box-shadow: none; }
@supports (-webkit-touch-callout: none) {
    .line-bind-phone-row select,
    .line-bind-phone-row input {
        font-size: 16px;
    }
}
.line-bind-next { box-sizing: border-box; width: 100%; min-height: 48px; margin-top: auto; border: 1px solid #b6b6b6; border-radius: 999px; background: #171717; color: #b6b6b6; font: 500 16px/1 "Montserrat", "Noto Sans TC", sans-serif; letter-spacing: .2em; cursor: pointer; }
.line-bind-otp-step { padding-top: 52px; }
.line-bind-otp-heading { justify-items: start; }
.line-bind-otp-heading img { width: 77px; height: 77px; margin-bottom: 16px; object-fit: contain; }
.line-bind-otp-heading p { color: #8e8e8e; font-size: 11px; font-weight: 400; letter-spacing: .2px; }
.line-bind-otp-heading .line-bind-debug-code { width: fit-content; margin-top: 8px; border-radius: 6px; background: #171717; color: #b6b6b6; font-size: 12px; letter-spacing: 1px; padding: 6px 9px; }
.line-bind-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 42px; }
.line-bind-code input { box-sizing: border-box; min-width: 0; height: 56px; border: 0; border-radius: 7px; outline: 0; background: #171717; color: #fff; font-size: 24px; text-align: center; }
.line-bind-resend { align-self: center; min-height: auto; margin-top: 12px; border: 0; background: transparent; color: #8e8e8e; font-size: 11px; padding: 0 0 2px; cursor: pointer; }
.line-bind-resend:disabled { color: #555; cursor: default; }
.line-bind-otp-step .line-bind-next { margin-top: auto; }
@media (max-width: 360px) { .line-bind-page { padding-inline: 16px; } .line-bind-code { gap: 6px; } .line-bind-code input { height: 52px; } }
.member-voucher-transfer-success {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: none;
    width: min(390px, 100%);
    min-height: 100dvh;
    margin: 0 auto;
    padding: 134px 20px 37px;
    background: #000;
    color: #fff;
    flex-direction: column;
    justify-content: space-between;
}
.member-voucher-transfer-success.active { display: flex; }
.member-voucher-transfer-success-hero { display: flex; flex-direction: column; align-items: center; gap: 17px; }
.member-voucher-transfer-success-hero h2 { margin: 0; font-family: "Noto Sans TC", sans-serif; font-size: 26px; font-weight: 600; letter-spacing: 1px; }
.member-voucher-transfer-success-footer { display: flex; flex-direction: column; gap: 45px; }
.member-voucher-transfer-success-card { overflow: hidden; border-radius: 10px; background: #121212; }
.member-voucher-transfer-success-card > div { min-height: 54px; padding: 12px 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #323232; }
.member-voucher-transfer-success-card > div:last-child { border-bottom: 0; }
.member-voucher-transfer-success-card span { flex: none; font-size: 14px; font-weight: 500; }
.member-voucher-transfer-success-card strong { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 14px; font-weight: 400; }
.member-voucher-transfer-success-card b { max-width: 245px; font-weight: 400; }
.member-voucher-transfer-success-card a { color: #b6b6b6; text-decoration: underline; }
.member-voucher-transfer-success-footer > button { width: 100%; height: 54px; border: 1px solid #b6b6b6; border-radius: 999px; background: #1a1a1a; color: #bfc1c7; font: 500 16px/1 "Noto Sans TC", sans-serif; letter-spacing: .2em; }

/* Unified admin create/edit form layout. Visual rules only. */
.admin-main .admin-panel:has(> .admin-section-heading + .admin-form) {
    overflow: hidden;
}

/* Short mobile viewports need to scroll the home content above the fixed navbar. */
@media (max-height: 760px) {
    .member-app.member-active-tab-home {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-width: none;
    }

    .member-app.member-active-tab-home::-webkit-scrollbar {
        display: none;
    }
}

.admin-main .admin-section-heading {
    align-items: center;
    gap: 24px;
}

.admin-main .admin-section-heading > div {
    min-width: 0;
}

.admin-main .admin-section-heading h2 {
    margin: 0 0 6px;
    line-height: 1.35;
}

.admin-main .admin-section-heading p {
    max-width: 760px;
}

.admin-import-errors {
    margin: 0;
    padding-left: 22px;
    color: var(--admin-ink);
    line-height: 1.8;
}

.admin-main .admin-form.compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px 24px;
    max-width: 1180px;
}

.admin-main .admin-form.compact-grid > label:not(.admin-check-row),
.admin-main .admin-form.compact-grid > .admin-field,
.admin-main .admin-form.compact-grid > fieldset {
    min-width: 0;
    align-content: start;
}

.admin-main .admin-form.compact-grid > label:not(.admin-check-row) {
    display: grid;
    grid-template-rows: minmax(20px, auto) auto;
    gap: 8px;
}

.admin-main .admin-form.compact-grid > label:not(.admin-check-row) > span:first-child,
.admin-main .admin-form.compact-grid > .admin-field > span:first-child {
    display: flex;
    align-items: flex-end;
    min-height: 20px;
    line-height: 1.4;
}

.admin-main .admin-form.compact-grid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.admin-main .admin-form.compact-grid select {
    width: 100%;
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
}

.admin-main .admin-form.compact-grid textarea {
    width: 100%;
    min-height: 112px;
    box-sizing: border-box;
}

.admin-main .admin-form:not(.compact-grid) {
    align-items: start;
    gap: 20px;
}

.admin-main .admin-form:not(.compact-grid) > label:not(.admin-check-row) {
    width: 100%;
    min-width: 0;
    grid-template-rows: minmax(20px, auto) auto;
    align-content: start;
}

.admin-main .admin-form:not(.compact-grid) > label:not(.admin-check-row) > span:first-child {
    display: flex;
    align-items: flex-end;
    min-height: 20px;
    line-height: 1.4;
}

.admin-main .admin-form:not(.compact-grid) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.admin-main .admin-form:not(.compact-grid) select {
    width: 100%;
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
}

.admin-main .admin-form:not(.compact-grid) textarea {
    width: 100%;
    min-height: 112px;
    box-sizing: border-box;
}

.admin-main .admin-form.compact-grid small,
.admin-main .admin-form.compact-grid .admin-note {
    line-height: 1.55;
}

.admin-main .admin-form.compact-grid .admin-check-row {
    min-height: 44px;
    align-self: end;
    border: 1px solid rgba(75, 82, 68, 0.14);
    border-radius: var(--ui-radius-sm, 8px);
    background: rgba(255, 253, 247, 0.62);
    padding: 10px 12px;
    box-sizing: border-box;
}

.admin-main .admin-form.compact-grid .admin-form-wide {
    width: 100%;
    max-width: none;
}

.admin-main .admin-form.compact-grid fieldset.admin-form-wide,
.admin-main .admin-form.compact-grid section.admin-form-wide,
.admin-main .admin-form.compact-grid div.admin-form-wide:not(.admin-form-actions) {
    margin-top: 2px;
}

.admin-main .admin-form-actions {
    min-height: 64px;
    margin-top: 4px;
    border-top: 1px solid rgba(75, 82, 68, 0.14);
    padding-top: 18px;
}

.admin-main .admin-form-actions .admin-submit,
.admin-main .admin-form-actions .admin-secondary-button,
.admin-main .admin-form-actions .admin-danger-button {
    width: auto;
    min-width: 112px;
}

@media (max-width: 900px) {
    .admin-main .admin-form.compact-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .admin-main .admin-form.compact-grid .admin-form-wide {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    .admin-main .admin-section-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .admin-main .admin-section-heading > .admin-submit,
    .admin-main .admin-section-heading > .admin-secondary-button {
        width: 100%;
    }

    .admin-main .admin-form-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-main .admin-form-actions > * {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Shared detail navigation: 40px tap target with a centered 32px icon. */
.member-tier-redeem-head > button:has(svg),
.campaign-detail-back-button,
.member-home-brand-list-back,
.member-home-brand-detail-back,
.member-point-transfer-back,
.member-profile-figma-back,
.member-transaction-back,
.member-wallet-modal-close,
.member-contact-close {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: grid;
    place-items: center;
}

.campaign-detail-back-button img,
.member-home-brand-list-back img,
.member-home-brand-detail-back img,
.member-contact-close img {
    width: 32px;
    height: 32px;
    display: block;
}

.member-tier-redeem-head > button:has(svg) svg,
.member-point-transfer-back svg,
.member-profile-figma-back svg,
.member-transaction-back svg,
.member-wallet-modal-close svg {
    width: 40px;
    height: 40px;
    display: block;
}

.member-point-transfer-back,
.member-home-brand-detail-back {
    top: max(17px, env(safe-area-inset-top));
}

.member-home-brand-list-view,
.campaign-detail-view.campaign-figma-detail,
.member-tier-detail-view,
.point-experience-detail-view,
.member-transaction-page {
    padding-top: max(17px, env(safe-area-inset-top));
}

/* Member frontend always paints the browser viewport and device safe areas black. */
html:has(.member-shell),
html:has(body.register-page-loading),
html:has(body.register-join-landing),
html:has(body.line-bind-flow),
body:has(.member-shell),
body.register-page-loading,
body.register-join-landing,
body.line-bind-flow {
    min-height: 100%;
    color-scheme: dark;
    background: #000000 !important;
}

.member-shell,
body.register-page-loading .page-shell,
body.register-join-landing .page-shell,
body.line-bind-flow .page-shell {
    min-height: 100dvh;
    background-color: #000000 !important;
}

body.register-page-loading .page-shell::before,
body.register-join-landing .page-shell::before,
body.line-bind-flow .page-shell::before {
    content: none;
}

.member-quick-actions {
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 8px));
}
/* Figma list filter drawer: fixed chip sizes and reset/confirm actions. */
.voucher-filter-panel.voucher-filter-drawer {
    width: min(392px, 100%);
    min-height: 0;
    max-height: min(90dvh, 640px);
    justify-content: flex-start;
    gap: 24px;
    padding: 30px 20px;
    border-radius: 20px 20px 0 0;
    background: #d6d6d6;
    color: #565656;
    box-shadow: none;
}

.voucher-filter-panel.voucher-filter-drawer .voucher-filter-handle {
    display: none;
}

.voucher-filter-panel.voucher-filter-drawer .voucher-filter-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.voucher-filter-panel.voucher-filter-drawer .voucher-filter-section + .voucher-filter-section {
    padding-top: 0;
    border-top: 0;
}

.voucher-filter-panel.voucher-filter-drawer h3 {
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0 5px 11px;
    border-bottom: 1px solid #b6b6b6;
    color: #565656;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 1px;
}

.voucher-filter-panel.voucher-filter-drawer .voucher-filter-options,
.voucher-filter-panel.voucher-filter-drawer .voucher-filter-sort-options {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 110px));
    align-items: center;
    gap: 12px 10px;
    overflow: visible;
}

.voucher-filter-panel.voucher-filter-drawer .voucher-filter-sort-options {
    grid-template-columns: repeat(2, minmax(0, 170px));
}

.voucher-filter-panel.voucher-filter-drawer .voucher-filter-options button,
.voucher-filter-panel.voucher-filter-drawer .voucher-filter-sort-options button {
    width: 100%;
    height: 25px;
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 25px;
    background: #cbcbcb;
    color: #757575;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    white-space: nowrap;
    box-shadow: none;
}

.voucher-filter-panel.voucher-filter-drawer .voucher-filter-options button.active,
.voucher-filter-panel.voucher-filter-drawer .voucher-filter-sort-options button.active {
    background: #353535;
    color: #dadada;
}

.voucher-filter-actions {
    width: 100%;
    height: 44px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 170px));
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.voucher-filter-actions .voucher-filter-reset,
.voucher-filter-actions .voucher-filter-confirm {
    width: 100%;
    height: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 10px 0 20px;
    border: 0;
    border-radius: 25px;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    letter-spacing: 10px;
    box-shadow: none;
}

.voucher-filter-actions .voucher-filter-reset {
    background: #cbcbcb;
    color: #757575;
}

.voucher-filter-actions .voucher-filter-confirm {
    background: #353535;
    color: #dadada;
}

@media (max-width: 370px) {
    .voucher-filter-panel.voucher-filter-drawer .voucher-filter-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .voucher-filter-panel.voucher-filter-drawer .voucher-filter-sort-options,
    .voucher-filter-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.admin-member-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) minmax(150px, 220px) auto;
    align-items: end;
    gap: 14px;
    margin: 18px 0 10px;
    padding: 16px;
    border: 1px solid rgba(66, 71, 61, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.42);
}

.admin-member-filters label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.admin-member-filters label > span {
    color: #565b52;
    font-size: 13px;
    font-weight: 700;
}

.admin-member-filters input,
.admin-member-filters select {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(66, 71, 61, 0.22);
    border-radius: 10px;
    background: #fffdf8;
    color: #2f342d;
    font: inherit;
}

.admin-member-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-member-filter-actions .admin-secondary-button,
.admin-member-filter-actions .admin-submit {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.admin-member-filter-summary {
    margin: 0 0 12px;
    color: #71766d;
    font-size: 13px;
}

.member-admin-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.member-admin-metrics article {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(66, 71, 61, 0.14);
    border-radius: 12px;
    background: #f8f7f3;
}

.member-admin-metrics span,
.member-admin-metrics small {
    display: block;
    color: #74776f;
    font-size: 12px;
}

.member-admin-metrics strong {
    display: inline-block;
    margin: 8px 5px 2px 0;
    color: #292d28;
    font-size: 26px;
    line-height: 1;
}

.member-admin-metrics small {
    display: inline;
}

.member-admin-cell-note {
    display: block;
    margin-top: 4px;
    color: #7a7d75;
    font-size: 12px;
    font-weight: 400;
}

.member-admin-status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #e5e4df;
    color: #5d6159;
    font-size: 12px;
    white-space: nowrap;
}

.member-admin-status[data-status="可使用"] { background: #dfe9d9; color: #40583b; }
.member-admin-status[data-status="已使用"] { background: #dfe5ea; color: #46545f; }
.member-admin-status[data-status="已過期"],
.member-admin-status[data-status="已轉贈"] { background: #ece5e2; color: #735d55; }

.member-admin-points {
    font-weight: 700;
    white-space: nowrap;
}

.member-admin-points.positive { color: #3e6644; }
.member-admin-points.negative { color: #8a514d; }

.member-admin-history {
    display: grid;
    gap: 12px;
}

.member-admin-history .admin-section-heading {
    margin-bottom: 4px;
}

.member-admin-history details {
    overflow: hidden;
    border: 1px solid rgba(66, 71, 61, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.38);
}

.member-admin-history summary {
    padding: 14px 16px;
    color: #363a34;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.member-admin-history details[open] summary {
    border-bottom: 1px solid rgba(66, 71, 61, 0.12);
}

.member-admin-history .admin-table-wrap {
    margin: 0;
    border: 0;
    border-radius: 0;
}

@media (max-width: 1200px) {
    .member-admin-metrics {
        grid-template-columns: repeat(3, minmax(130px, 1fr));
    }
}

@media (max-width: 760px) {
    .member-admin-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-admin-metrics article {
        padding: 13px;
    }

    .member-admin-metrics strong {
        font-size: 22px;
    }
}

.admin-report-shell {
    display: grid;
    gap: 20px;
}

.admin-report-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(66, 71, 61, 0.16);
}

.admin-report-tabs a {
    padding: 9px 16px;
    border: 1px solid rgba(66, 71, 61, 0.16);
    border-radius: 999px;
    color: var(--admin-text, #33362f);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.42);
}

.admin-report-tabs a.is-active {
    color: #fff;
    background: #42473d;
    border-color: #42473d;
}

.admin-report-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    align-items: end;
}

.admin-report-search {
    grid-column: span 2;
}

.admin-report-filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.admin-report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.admin-report-summary article {
    display: grid;
    gap: 8px;
    min-height: 94px;
    padding: 16px;
    border: 1px solid rgba(66, 71, 61, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.48);
}

.admin-report-summary span { color: #777a71; font-size: 13px; }
.admin-report-summary strong { color: #30342c; font-size: 24px; }

.admin-report-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.admin-report-toolbar p { margin: 0; color: #777a71; }
.admin-report-table { margin: 0; }
.admin-report-table code { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-empty-cell { padding: 44px 20px !important; text-align: center; color: #777a71; }

@media (max-width: 960px) {
    .admin-report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .admin-report-filters { grid-template-columns: 1fr; }
    .admin-report-search { grid-column: auto; }
    .admin-report-filter-actions > * { flex: 1; }
    .admin-report-toolbar { align-items: stretch; flex-direction: column; }
}

@media (max-width: 760px) {
    .admin-member-filters {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-member-filter-actions > * {
        flex: 1;
    }
}
