/* ═══════════════════════════════════════════════════════════════
   Shaka Manta 深海俱樂部 — Frontend (My Account) v1.2.2
   前台 page bg 為 astra-child 的皮革棕 #6A5340
═══════════════════════════════════════════════════════════════ */

/* ── 父容器 + spacing tokens ── */
.sm-myaccount-tier {
    --sm-card-pad: clamp(18px, 2.5vw, 28px);
    --sm-card-gap: clamp(14px, 2vw, 22px);
    --sm-inner-pad: clamp(14px, 1.8vw, 20px);
    --sm-radius-card: 16px;
    --sm-radius-inner: 12px;
    display: flex;
    flex-direction: column;
    gap: var(--sm-card-gap);
    padding-bottom: clamp(32px, 5vw, 56px);
}


/* ═══════════════════════════════════════════════════════════
   統一 card base：current / spend / roadmap 三張同層級
═══════════════════════════════════════════════════════════ */
.sm-myaccount-current,
.sm-myaccount-spend,
.sm-myaccount-roadmap {
    background: rgba(61, 43, 31, 0.92);
    border: 1.5px dashed rgba(188, 145, 109, 0.45);
    border-radius: var(--sm-radius-card);
    padding: var(--sm-card-pad);
    color: #f5dca2;
    box-shadow: 0 4px 20px rgba(30, 18, 10, 0.45);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    margin: 0;
}
.sm-myaccount-current:hover,
.sm-myaccount-spend:hover,
.sm-myaccount-roadmap:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(30, 18, 10, 0.55);
    border-color: rgba(188, 145, 109, 0.70);
}

/* ═══════════════════════════════════════════════════════════
   四卡海洋漸進：上淺下深（表層水面 → 深海核心）
   基色參考 --navy #2b385d / --teal #5aa1af
   皮革棕 bg 與冷色海洋卡形成冷暖 complementary 對比
═══════════════════════════════════════════════════════════ */

/* Card 1：目前等級（表層水面） */
.sm-myaccount-current {
    background: rgba(60, 95, 125, 0.92);
    border-color: rgba(90, 161, 175, 0.55);
    box-shadow: 0 4px 20px rgba(12, 18, 36, 0.40);
}
.sm-myaccount-current:hover {
    box-shadow: 0 8px 28px rgba(12, 18, 36, 0.52);
    border-color: rgba(90, 161, 175, 0.80);
}

/* Card 2：累積消費（淺海） */
.sm-myaccount-spend {
    background: rgba(50, 78, 108, 0.93);
    border-color: rgba(90, 161, 175, 0.50);
    box-shadow: 0 4px 20px rgba(12, 18, 36, 0.48);
    padding-bottom: calc(var(--sm-card-pad) + 10px);
}
.sm-myaccount-spend:hover {
    box-shadow: 0 8px 28px rgba(12, 18, 36, 0.58);
    border-color: rgba(90, 161, 175, 0.75);
}

/* Card 3：等級一覽（中深海） */
.sm-myaccount-roadmap {
    background: rgba(40, 62, 92, 0.94);
    border-color: rgba(90, 161, 175, 0.40);
    box-shadow: 0 4px 20px rgba(12, 18, 36, 0.55);
    padding-bottom: calc(var(--sm-card-pad) + 10px);
}
.sm-myaccount-roadmap:hover {
    box-shadow: 0 8px 28px rgba(12, 18, 36, 0.65);
    border-color: rgba(90, 161, 175, 0.65);
}

/* 累積消費卡內的進度 inner surface → 對應 Card 2 深度 */
.sm-myaccount-spend .sm-myaccount-progress-section {
    background:
        radial-gradient(ellipse 90% 70% at 50% 25%, rgba(90, 161, 175, 0.16) 0%, transparent 65%),
        radial-gradient(circle at 12% 75%, rgba(245, 220, 162, 0.08) 1.5px, transparent 3px),
        radial-gradient(circle at 78% 30%, rgba(245, 220, 162, 0.09) 2px, transparent 3.5px),
        radial-gradient(circle at 58% 80%, rgba(245, 220, 162, 0.06) 1.5px, transparent 3px),
        radial-gradient(circle at 32% 15%, rgba(245, 220, 162, 0.06) 1px, transparent 2px),
        rgba(22, 32, 58, 0.68);
    border-color: rgba(90, 161, 175, 0.22);
}

/* Card 3 tier-list 包一層 navy inner surface，跟 Card 2 進度 box 等寬同視覺。
   v1.5.23：拉寬 tier-items 排版空間，左右不再 inset。 */
.sm-myaccount-tiers {
    background:
        radial-gradient(ellipse 90% 70% at 50% 25%, rgba(90, 161, 175, 0.10) 0%, transparent 65%),
        rgba(20, 32, 58, 0.55);
    border: 1px dashed rgba(90, 161, 175, 0.30);
    border-radius: var(--sm-radius-inner);
    padding: clamp(12px, 1.5vw, 16px);
    box-shadow:
        inset 0 1px 0 rgba(245, 220, 162, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

/* ── Header ── */
.sm-myaccount-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0 16px;
    border-bottom: 1px solid rgba(245, 220, 162, 0.22);
    margin-bottom: 0; /* gap 由父 flex 接手 */
}
.sm-myaccount-logo {
    font-family: 'Pacifico', 'Huninn', cursive;
    font-size: 32px;
    color: #ecb950;
    line-height: 1;
}
.sm-myaccount-header h2 {
    margin: 0;
    color: #f5dca2;
    font-size: 20px;
    font-weight: 700;
    flex: 1;
}

/* ── 當前等級區塊 ── */
.sm-myaccount-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(14px, 2vw, 20px);
    flex-wrap: wrap;
}

/* ── 目前等級：左側 emoji bubble + 右側 badge pill ── */
.sm-myaccount-current-visual {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.3vw, 14px);
    flex-wrap: wrap;
}
.sm-myaccount-current-dot {
    width: clamp(36px, 3.6vw, 44px);
    height: clamp(36px, 3.6vw, 44px);
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.25),
        inset 0 0 0 2px rgba(255, 255, 255, 0.18),
        inset 0 -3px 6px rgba(0, 0, 0, 0.22);
    position: relative;
}
.sm-myaccount-current-dot-emoji {
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.sm-myaccount-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    /* bg / color / box-shadow 由 PHP inline style 注入（等級色 + 深字 + 發光）*/
    transition: transform .3s ease, box-shadow .3s ease;
}
.sm-myaccount-badge:hover {
    transform: translateY(-1px);
}
/* ── 統一 label（三張卡都用，與 h3 同風格）── */
.sm-myaccount-label {
    font-size: clamp(15px, 0.95rem + 0.3vw, 18px);
    color: #ecb950;
    letter-spacing: 0.04em;
    font-weight: 700;
    font-family: 'Pacifico', 'Huninn', cursive;
    line-height: 1.2;
    text-transform: none;
}

/* ── 累積消費 card header（label + 金額 對齊）── */
.sm-myaccount-spend-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: clamp(14px, 2vw, 20px);
}
.sm-myaccount-spend-amount {
    font-size: clamp(22px, 1.4rem + 0.8vw, 32px);
    font-weight: 700;
    color: #f5dca2;
    letter-spacing: 0.12em;
    word-spacing: 0.08em;
    line-height: 1.1;
    font-family: 'Pacifico', 'Huninn', cursive;
}
/* 兼容：舊 .sm-myaccount-spend-row 已不再 render，但若快取還在則隱藏 */
.sm-myaccount-spend-row { display: contents; }

/* ═══════════════════════════════════════════════════════════
   進度 inner surface — 深海光景
   bg：胡桃木 base + radial 湖水藍微光（模擬深海光斑）+ 散落靜態泡泡
═══════════════════════════════════════════════════════════ */
.sm-myaccount-progress-section {
    background:
        radial-gradient(ellipse 90% 70% at 50% 25%, rgba(90, 161, 175, 0.08) 0%, transparent 65%),
        radial-gradient(circle at 12% 75%, rgba(245, 220, 162, 0.06) 1.5px, transparent 3px),
        radial-gradient(circle at 78% 30%, rgba(245, 220, 162, 0.07) 2px, transparent 3.5px),
        radial-gradient(circle at 58% 80%, rgba(245, 220, 162, 0.05) 1.5px, transparent 3px),
        radial-gradient(circle at 32% 15%, rgba(245, 220, 162, 0.05) 1px, transparent 2px),
        rgba(55, 39, 29, 0.62);
    border: 1px solid rgba(245, 220, 162, 0.14);
    border-radius: var(--sm-radius-inner);
    padding: var(--sm-inner-pad);
    color: #f5dca2;
    box-shadow:
        inset 0 1px 0 rgba(245, 220, 162, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.sm-myaccount-max {
    display: block;
    text-align: center;
    padding: 10px 0;
    color: #ecb950;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.05em;
}

.sm-myaccount-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    color: rgba(245, 220, 162, 0.85);
}
.sm-myaccount-next-box {
    display: block;
    position: relative;
    padding: 12px 16px 12px;
    border-radius: 10px;
    font-size: clamp(14px, 0.95rem + 0.3vw, 17px);
    font-weight: 600;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.22));
    border: 1px solid rgba(236, 185, 80, 0.20);
    color: rgba(245, 220, 162, 0.94);
    margin: 12px 0 16px;
    line-height: 1.6;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(245, 220, 162, 0.06),
        0 4px 14px rgba(0, 0, 0, 0.22);
}
.sm-myaccount-next-box strong {
    color: #ecb950;
    font-weight: 700;
    letter-spacing: 0.02em;
}
/* 浮在頂端的下一等級 emoji 泡泡（bg/border 由 PHP 注入等級色）*/
.sm-myaccount-next-emoji {
    position: absolute;
    top: -14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1.5px solid;
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.22),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.22),
        inset 0 -2px 4px rgba(0, 0, 0, 0.18);
}

.sm-myaccount-progress-bar {
    width: 100%;
    height: clamp(10px, 0.8vw, 13px);
    background:
        radial-gradient(circle at 3px 50%, rgba(245, 220, 162, 0.18) 1px, transparent 1.5px),
        linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.30));
    background-size: 12px 100%, 100% 100%;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.35),
        inset 0 -1px 0 rgba(245, 220, 162, 0.06);
}
.sm-myaccount-progress-fill {
    position: relative;
    height: 100%;
    border-radius: 99px;
    transition: width .8s cubic-bezier(.22, .61, .36, 1);
    min-width: 6px;
    box-shadow:
        0 0 12px rgba(0, 0, 0, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18);
    overflow: hidden;
    /* 漸層 background 來自 PHP inline style（等級色） */
}
/* 水面反光（頂部亮線）*/
.sm-myaccount-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 6px;
    right: 6px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    border-radius: 99px;
    pointer-events: none;
}
/* 掃光 shimmer：3s 緩慢呼吸式 sweep */
.sm-myaccount-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 65%);
    transform: translateX(-100%);
    animation: sm-shimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sm-shimmer {
    0% { transform: translateX(-100%); }
    60% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}
.sm-myaccount-pct {
    text-align: right;
    font-size: clamp(16px, 1rem + 0.4vw, 22px);
    color: #ecb950;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-top: 6px;
    font-family: 'Pacifico', 'Huninn', cursive;
    line-height: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}
.sm-myaccount-pct::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ecb950;
    box-shadow: 0 0 8px rgba(236, 185, 80, 0.6);
    animation: sm-pct-breath 2.4s ease-in-out infinite;
}
@keyframes sm-pct-breath {
    0%, 100% { opacity: 0.35; transform: scale(0.75); }
    50% { opacity: 1; transform: scale(1); }
}

/* ── 等級里程碑 roadmap ── */
.sm-myaccount-roadmap h3,
.sm-myaccount-roadmap h4 {
    margin: 0 0 clamp(12px, 1.5vw, 18px) !important;
    padding-top: clamp(8px, 1.2vw, 14px);
    color: #ecb950 !important;
    font-size: clamp(15px, 0.95rem + 0.3vw, 18px) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    font-family: 'Pacifico', 'Huninn', cursive !important;
    line-height: 1.2;
    text-transform: none;
}
.sm-myaccount-tiers {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 12px);
}
.sm-myaccount-tier-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap; /* v1.5.23：極窄手機允許「← 你在這裡」掉到第二行 */
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(245, 220, 162, 0.14);
    /* bg / border-color 由 PHP inline style 注入（每個等級的代表色 10% 透明度）*/
    transition: transform .25s ease, box-shadow .25s ease;
}
.sm-myaccount-tier-you {
    margin-left: 0;
    color: #ecb950;
    font-size: clamp(13px, 0.9rem, 15px);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(236, 185, 80, 0.45);
}
@media (max-width: 420px) {
    .sm-myaccount-tier-threshold { font-size: 11px; }
}
.sm-myaccount-tier-item:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}
.sm-myaccount-tier-item--current {
    box-shadow: 0 0 22px rgba(236, 185, 80, 0.28), inset 0 0 0 1px rgba(236, 185, 80, 0.45);
}

/* ── Tier dot：升級成 28px 含 emoji ── */
.sm-myaccount-tier-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* bg 與 opacity 由 PHP inline style 決定 */
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.22),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.18),
        inset 0 -2px 4px rgba(0, 0, 0, 0.20);
}
.sm-myaccount-tier-dot-emoji {
    font-size: 15px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
/* 當前等級 dot：放大 + 更強光暈 */
.sm-myaccount-tier-item--current .sm-myaccount-tier-dot {
    width: 32px;
    height: 32px;
    box-shadow:
        0 0 0 2px rgba(236, 185, 80, 0.40),
        0 2px 10px rgba(0, 0, 0, 0.25),
        inset 0 0 0 2px rgba(255, 255, 255, 0.22),
        inset 0 -3px 6px rgba(0, 0, 0, 0.20);
}
.sm-myaccount-tier-item--current .sm-myaccount-tier-dot-emoji {
    font-size: 17px;
}
.sm-myaccount-tier-name {
    font-weight: 700;
    color: #f5dca2;
    font-size: 14px;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap; /* v1.5.23：不被 flex shrink 觸發換行（iOS Safari 真機 case）*/
}
.sm-myaccount-tier-threshold {
    color: rgba(245, 220, 162, 0.65);
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: 'SF Mono', 'Menlo', 'Consolas', 'Courier New', 'Huninn', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}
.sm-myaccount-tier-you {
    background: #ecb950;
    color: #2b385d;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(236, 185, 80, 0.35);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .sm-myaccount-header { flex-wrap: wrap; gap: 10px; }
    .sm-myaccount-logo { font-size: 26px; }
    .sm-myaccount-header h2 { font-size: 17px; }
    .sm-myaccount-current { gap: 10px; }
    .sm-myaccount-spend-amount { font-size: 26px; }
    .sm-myaccount-next { flex-wrap: wrap; gap: 8px; }
}


/* ── Respect reduced motion：動畫全部停，靜態依然有質感 ── */
@media (prefers-reduced-motion: reduce) {
    .sm-myaccount-progress-fill::after { animation: none; display: none; }
    .sm-myaccount-pct::after { animation: none; opacity: 0.85; transform: scale(1); }
    .sm-myaccount-current,
    .sm-myaccount-spend,
    .sm-myaccount-roadmap,
    .sm-myaccount-badge,
    .sm-myaccount-tier-item { transition: none; }
}


/* ═══════════════════════════════════════════════════════════
   Card 4: 專屬優惠碼（v1.4.0 → 深海寶藏層 navy）
═══════════════════════════════════════════════════════════ */
.sm-myaccount-coupons {
    background: rgba(30, 46, 78, 0.95);
    border: 1.5px dashed rgba(90, 161, 175, 0.35);
    border-radius: var(--sm-radius-card);
    padding: var(--sm-card-pad);
    color: #f5dca2;
    box-shadow: 0 4px 20px rgba(12, 18, 36, 0.62);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sm-myaccount-coupons:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(12, 18, 36, 0.72);
    border-color: rgba(90, 161, 175, 0.60);
}
.sm-myaccount-coupons h4 {
    font-family: 'Pacifico', 'Huninn', cursive;
    font-size: clamp(18px, 2vw, 22px);
    color: #ecb950;
    margin: 0 0 14px;
    padding-top: clamp(8px, 1.2vw, 14px);
    letter-spacing: 0.3px;
}
.sm-coupon-empty {
    color: rgba(245, 220, 162, 0.72);
    margin: 8px 0 0;
    font-size: 14px;
}

.sm-coupon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.sm-coupon-item {
    background: rgba(90, 161, 175, 0.12);
    border: 1px solid rgba(90, 161, 175, 0.28);
    border-radius: var(--sm-radius-inner);
    padding: var(--sm-inner-pad);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.sm-coupon-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(12, 18, 36, 0.45);
}

.sm-coupon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.sm-coupon-discount {
    font-size: 18px;
    font-weight: 700;
    color: #ecb950;
    letter-spacing: 0.2px;
}
.sm-coupon-tier-tag {
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    align-self: flex-start; /* v1.5.20：移到 .sm-coupon-item 直接子代後，避免撐滿欄寬 */
}
.sm-coupon-desc {
    margin: 0 !important; /* 鎖死，防 theme（Astra）.entry-content p/div 加 margin */
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(245, 220, 162, 0.82);
}
/* coupon 卡內所有可能被 theme 蓋的元素，全鎖 margin */
.sm-myaccount-coupons h4 {
    margin: 0 0 14px !important;
}
.sm-myaccount-coupons .sm-coupon-meta,
.sm-myaccount-coupons .sm-coupon-row,
.sm-myaccount-coupons code,
.sm-myaccount-coupons .sm-coupon-tier-tag {
    margin: 0;
}
.sm-coupon-code {
    font-family: 'SF Mono', 'Menlo', 'Consolas', 'Courier New', 'Huninn', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #f5dca2;
    background: rgba(15, 22, 42, 0.60);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px dashed rgba(90, 161, 175, 0.40);
}
.sm-coupon-copy {
    background: rgba(236, 185, 80, 0.15);
    border: 1px solid rgba(236, 185, 80, 0.55);
    color: #ecb950;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    font-family: inherit;
}
.sm-coupon-copy:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(236, 185, 80, 0.3);
    background: rgba(236, 185, 80, 0.28);
}
.sm-coupon-copy--done {
    background: rgba(90, 161, 175, 0.3);
    border-color: rgba(90, 161, 175, 0.7);
    color: #5aa1af;
}
.sm-coupon-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: rgba(245, 220, 162, 0.6);
}
/* v1.5.21：code 在虛線下方，符合實體優惠券感 */
.sm-coupon-item .sm-coupon-row--bottom {
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px dashed rgba(90, 161, 175, 0.30);
}

/* ── 下一級解鎖 preview ── */
.sm-coupon-next {
    margin-top: 18px;
    padding: 14px var(--sm-inner-pad);
    background: rgba(43, 56, 93, 0.18);
    border: 1px dashed rgba(90, 161, 175, 0.45);
    border-radius: var(--sm-radius-inner);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sm-coupon-next-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #d0b983;
}
.sm-coupon-next-header strong {
    color: #5aa1af;
}
.sm-coupon-next-icon {
    font-size: 16px;
    opacity: 0.85;
}
.sm-coupon-next--max {
    flex-direction: row;
    align-items: center;
    font-size: 14px;
    color: #ecb950;
    border-color: rgba(236, 185, 80, 0.45);
    background: rgba(236, 185, 80, 0.1);
}

.sm-coupon-list--locked .sm-coupon-item {
    opacity: 0.72;
}
.sm-coupon-item--locked .sm-coupon-discount {
    color: rgba(236, 185, 80, 0.75);
}
.sm-coupon-code--locked {
    color: rgba(245, 220, 162, 0.5);
    letter-spacing: 6px;
    font-size: 12px;
    background: rgba(30, 18, 10, 0.4);
    border-style: solid;
}

@media (max-width: 600px) {
    .sm-coupon-list { grid-template-columns: 1fr; }
    .sm-coupon-discount { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .sm-coupon-item,
    .sm-coupon-copy,
    .sm-myaccount-coupons { transition: none; }
}


/* ─────────────────────────────────────────────────────────────────
 * R1.1 patch (2026-04-29) — 卡片標題統一 500 半糖
 *
 * Blake 要求「6 分糖」(font-weight: 600)，但 justfont 專案目前
 * 只啟用 300/400/500/700/800，沒有 600。500 半糖是最接近的下一階。
 * 之後若想要 600 需到 justfont 後台啟用該 weight 並重 deploy script。
 * ────────────────────────────────────────────────────────────── */
.sm-myaccount-tier .sm-myaccount-header h2,
.sm-myaccount-tier .sm-myaccount-label,
.sm-myaccount-tier .sm-myaccount-coupons h4,
.sm-myaccount-tier .sm-myaccount-roadmap h3,
.sm-myaccount-tier .sm-myaccount-roadmap h4 {
	font-weight: 500 !important;
}


/* ─────────────────────────────────────────────────────────────────
 * R3 patch (2026-04-29) — 等級一覽改緊湊版（窄手機友善）
 *
 * Blake 偏好 design system 那版排版：dot 24、padding 8/12、font 13/11
 * 換掉 frontend 原本 28-32px dot + 12/16 padding + 14/12 font
 * ────────────────────────────────────────────────────────────── */

.sm-myaccount-tiers {
	gap: 6px !important;
}
.sm-myaccount-tier-item {
	gap: 10px !important;
	padding: 8px 12px !important;
	border-radius: 10px !important;
}
.sm-myaccount-tier-dot {
	width: 24px !important;
	height: 24px !important;
}
.sm-myaccount-tier-dot-emoji {
	font-size: 13px !important;
}
.sm-myaccount-tier-item--current .sm-myaccount-tier-dot {
	width: 28px !important;
	height: 28px !important;
}
.sm-myaccount-tier-item--current .sm-myaccount-tier-dot-emoji {
	font-size: 14px !important;
}
.sm-myaccount-tier-name {
	font-size: 13px !important;
	font-weight: 500 !important;
}
.sm-myaccount-tier-threshold {
	font-size: 11px !important;
}
.sm-myaccount-tier-you {
	font-size: 10.5px !important;
	padding: 3px 9px !important;
	letter-spacing: 0.04em !important;
}


/* ─────────────────────────────────────────────────────────────────
 * R3.2 patch (2026-04-30) — 5 張卡標題統一字級 + 字重
 *
 * 涵蓋：
 *   Card 1 目前等級 (.sm-myaccount-current .sm-myaccount-label)
 *   Card 2 累積消費 (.sm-myaccount-spend .sm-myaccount-label)
 *   Card 3 等級一覽 (.sm-myaccount-roadmap h4)
 *   Card 4 專屬優惠碼 (.sm-myaccount-coupons h4)
 *   Card 5 深海悄悄話 (.sm-myaccount-coupons.sm-myaccount-whispers h4 — 同上 selector 自動涵蓋)
 *
 * 桌機 16px / 手機 14px / weight 600（六分糖）
 * 注意：jf-jinxuanlatte 專案目前啟用 300/400/500/700/800，
 *      若要看到真正 600 weight 須到 justfont 後台啟用該 weight
 * ────────────────────────────────────────────────────────── */

.sm-myaccount-tier .sm-myaccount-current .sm-myaccount-label,
.sm-myaccount-tier .sm-myaccount-spend .sm-myaccount-label,
.sm-myaccount-tier .sm-myaccount-roadmap h3,
.sm-myaccount-tier .sm-myaccount-roadmap h4,
.sm-myaccount-tier .sm-myaccount-coupons h4 {
	font-size: 16px !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em !important;
	line-height: 1.4 !important;
	color: #ecb950 !important;
	font-family: 'jf-jinxuanlatte', 'Noto Sans TC', 'PingFang TC', sans-serif !important;
	margin: 0 0 10px !important;
}

@media (max-width: 767px) {
	.sm-myaccount-tier .sm-myaccount-current .sm-myaccount-label,
	.sm-myaccount-tier .sm-myaccount-spend .sm-myaccount-label,
	.sm-myaccount-tier .sm-myaccount-roadmap h3,
	.sm-myaccount-tier .sm-myaccount-roadmap h4,
	.sm-myaccount-tier .sm-myaccount-coupons h4 {
		font-size: 14px !important;
	}
}
