/* =========================
   Base
   ========================= */
.account-page{
  background:#f5f6fa;
  color:#0f172a;
  padding:24px 0 40px;
  margin-bottom:20px;
}

.account-shell{
  width:min(1440px, 100vw - 200px);
  margin-inline:auto;
}

.account-layout{
  margin-top: 30px;
  display:grid;
  grid-template-columns:280px minmax(0, 1fr);
  gap:24px;
  align-items:flex-start;
}

/* helpers */
.fm-mobile-only{ display:none; }
.fm-desktop-only{ display:block; }

/* =========================
   Sidebar (PC)
   ========================= */
.account-sidebar{
  background:#ffffff;
  border-radius:24px;
  box-shadow:0 18px 40px rgba(15,23,42,.06);
  padding:14px 0 172px;
}

.account-nav{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.account-nav-section{ padding:4px 0; }
.account-nav-section + .account-nav-section{
  margin-top:6px;
  border-top:1px solid #e5e7eb;
  padding-top:10px;
}

.account-nav .nav-item{
  display:flex;
  align-items:center;
  gap:13px;
  padding:10px 20px;
  margin:7px 9px;
  border-radius:14px;
  font-size:14px;
  color:#4b5563;
  text-decoration:none;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  cursor:pointer;
}

.account-nav .nav-item .nav-icon{
  font-size:20px;
  color:#9ca3af;
}


.account-nav .nav-item:hover{
  background:rgba(245,197,66,.10);
  color:#111827;
  box-shadow:0 10px 20px rgba(245,197,66,.16);
  transform:translateY(-1px);
}
.account-nav .nav-item:hover .nav-icon{
  color:#8a6412;
}

.account-nav .nav-item:hover .nav-icon{ color:#2c65ad; }

.account-nav .nav-item.is-active{
  background:#f5c542;
  color:#111827;
  box-shadow:0 14px 28px rgba(245,197,66,.26);
}
.account-nav .nav-item.is-active .nav-icon{
  color:#111827;
}

.account-nav .nav-item.is-active .nav-icon{ color:#f9fafb; }

/* =========================
   Main (PC)
   ========================= */
.account-main{ align-self:flex-start; }

.account-main-title{
  font-size:20px;
  font-weight:800;
  color:#020617;
  margin:4px 2px 16px;
}

.account-grid{
  display:grid;
  grid-template-columns:minmax(0, 2.2fr) minmax(0, 1.8fr);
  grid-template-rows:auto auto;
  gap:16px;
}

.account-card{
  position:relative;
  background:#ffffff;
  border-radius:24px;
  padding:18px 20px 20px;
  box-shadow:0 18px 40px rgba(15,23,42,.06);
  display:flex;
  flex-direction:column;
}

.card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}

.card-header-left{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.card-title{
  margin:0;
  font-size:15px;
  font-weight:700;
  color:#020617;
}

.card-subtitle{
  font-size:12px;
  color:#94a3b8;
}

/* Buttons */
.btn-ghost,
.btn-ghost-light{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  height:32px;
  border-radius:999px;
  border:1px solid rgba(44,101,173,.18);
  background:rgba(44,101,173,.06);
  color:#2c65ad;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  transition: background 140ms ease, box-shadow 140ms ease, transform 120ms ease, border-color 140ms ease;
  white-space:nowrap;
}

.btn-ghost::after{
  content:"›";
  font-size:14px;
  transform:translateY(.5px);
}

.btn-ghost-light::after{ content:""; }

.btn-ghost:hover,
.btn-ghost-light:hover{
  background:rgba(44,101,173,.12);
  border-color:rgba(44,101,173,.32);
  box-shadow:0 10px 24px rgba(44,101,173,.35);
  transform:translateY(-1px);
}

.btn-ghost:active,
.btn-ghost-light:active{
  transform:translateY(0);
  box-shadow:0 6px 14px rgba(44,101,173,.28);
}

.btn-secondary,
.btn-primary{
  border-radius:999px;
  height:34px;
  padding:0 16px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  border:1px solid transparent;
}

.btn-secondary{
  border-color:#e5e7eb;
  background:#f3f4f6;
  color:#374151;
}
.btn-secondary:hover{ background:#e5e7eb; }

.btn-primary{
  border-color:#f97316;
  background:#f97316;
  color:#fff;
}
.btn-primary:hover{ filter:brightness(1.05); }

/* Profile card */
.card-profile{ padding:16px 20px 16px; }
.card-header-profile{ margin-bottom:10px; }

.card-profile-main{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
}

.profile-main-left{
  display:flex;
  align-items:center;
  gap:14px;
}

.avatar-shell{
  position:relative;
  width:56px;
  height:56px;
  flex-shrink:0;
  cursor:pointer;
}

.avatar-circle.avatar-circle-lg{
  width:56px;
  height:56px;
  border-radius:999px;
  background:#020617;
  color:#f9fafb;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:20px;
  overflow:hidden;
}

.avatar-circle.avatar-circle-lg img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.avatar-edit-badge{
  position:absolute;
  right:-4px;
  bottom:-4px;
  width:22px;
  height:22px;
  border-radius:999px;
  border:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f97316;
  color:#fff;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15,23,42,.35);
}

/* 你现在用 svg 的通用图标（不影响 PC 布局，只管大小） */
.fm-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:2em;
  height:2em;
}
.fm-ico svg{ width:100%; height:100%; display:block; }
.avatar-edit-badge .fm-ico{ width:14px; height:14px; }

.profile-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.profile-id{ font-size:13px; font-weight:700; color:#020617; }
.profile-name{ font-size:14px; color:#020617; }
.profile-email{ font-size:12px; color:#64748b; }

.profile-meta{
  display:grid;
  grid-auto-rows:minmax(20px, auto);
  row-gap:4px;
  column-gap:24px;
  font-size:12px;
  color:#6b7280;
  min-width:220px;
}
.profile-meta-row{ display:flex; gap:8px; }
.profile-meta-row dt{ min-width:70px; color:#9ca3af; }
.profile-meta-row dd{ margin:0; color:#111827; }

/* Edit form */
.profile-edit-form{
  margin-top:14px;
  padding-top:10px;
  border-top:1px solid #e5e7eb;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.pe-row{ display:flex; flex-direction:column; gap:4px; }
.pe-row label{ font-size:12px; color:#6b7280; }

.pe-row input[type="text"]{
  border-radius:12px;
  border:1px solid #e5e7eb;
  padding:6px 10px;
  font-size:13px;
  background:#fff;
  height:34px;
}
.pe-row input[type="text"]:focus{
  outline:none;
  border-color:#3b82f6;
  box-shadow:0 0 0 1px rgba(59,130,246,.16);
}

.pe-avatar-row{ display:flex; align-items:center; gap:8px; }
.pe-avatar-input{ display:none; }
.pe-help{ margin:2px 0 0; font-size:11px; color:#9ca3af; }

.pe-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:4px;
}

/* Toast */
.account-toast{
  position:absolute;
  right:18px;
  bottom:14px;
  max-width:260px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1.3;
  color:#0f172a;
  background:rgba(240,253,250,.96);
  border:1px solid rgba(16,185,129,.4);
  box-shadow:0 8px 18px rgba(15,23,42,.15);
  opacity:0;
  pointer-events:none;
  transform:translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.account-toast.is-error{
  background:#fef2f2;
  border-color:rgba(248,113,113,.7);
}
.account-toast.is-visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

/* Orders (PC) */
.card-orders .orders-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:8px;
}

.card-orders .orders-item{
  background:#f8fafc;
  border-radius:18px;
  padding:14px 12px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 24px rgba(15,23,42,.05);
  text-decoration:none;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.card-orders .orders-item:hover{
  background:#fff;
  box-shadow:0 16px 32px rgba(15,23,42,.08);
  transform:translateY(-2px);
}
.orders-label{ font-size:12px; color:#6b7280; margin-bottom:4px; }
.orders-count{ font-size:22px; font-weight:800; color:#020617; }

/* Simple cards (PC) */
.card-simple-main{
  display:flex;
  align-items:center;
  gap:12px;
  margin:40px 0;
  text-decoration:none;
  color:inherit;
}

.card-simple-icon{
  width:40px;
  height:40px;
  border-radius:999px;
  background:#fef3c7;
  display:flex;
  align-items:center;
  justify-content:center;
}
.card-simple-icon .fm-ico{ width:20px; height:20px; color:#f97316; }

.card-simple-text{ display:flex; flex-direction:column; gap:2px; }
.card-simple-count{ font-size:20px; font-weight:800; color:#020617; }
.card-simple-label{ font-size:12px; color:#6b7280; }

/* =========================
   <=1024: sidebar 横向滚动（Pad）
   ========================= */
@media (max-width: 1024px){
  .account-layout{ grid-template-columns:minmax(0, 1fr); }

  .account-sidebar{
    padding:10px;
    border-radius:18px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
    position:sticky;
    top:10px;
    z-index:10;
    background:#fff;
  }

  .account-nav{
    flex-direction:row;
    align-items:center;
    gap:10px;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    padding:4px;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
  }
  .account-nav::-webkit-scrollbar{ display:none; }

  .account-nav-section{
    display:flex;
    flex-direction:row;
    gap:10px;
    padding:0;
    flex:0 0 auto;
  }

  .account-nav-section + .account-nav-section{
    margin-top:0;
    border-top:none;
    padding-top:0;
    border-left:1px solid #e5e7eb;
    padding-left:10px;
  }

  .account-nav .nav-item{
    margin:0;
    padding:10px 12px;
    border-radius:999px;
    white-space:nowrap;
    font-size:13px;
    line-height:1;
    scroll-snap-align:start;
    background:#f8fafc;
    border:1px solid rgba(148,163,184,.35);
    box-shadow:none;
    transform:none;
  }

  .account-nav .nav-item .nav-icon{ font-size:18px; }
}

/* 修复你原来的 640px 写法错误 */
@media (max-width: 640px){
  .account-shell{
    width:min(1200px, calc(100% - 32px));
    margin-inline:auto;
  }
}


/* =========================
   Mobile <=768: match your reference (smaller, lighter, fewer borders)
   ========================= */
@media (max-width: 768px) {
    /* hide desktop sidebar */
    .account-sidebar {
        display: none !important;
    }

    .fm-mobile-only {
        display: block;
    }

    .fm-desktop-only {
        display: none !important;
    }

    .account-layout {
        grid-template-columns:1fr !important;
        gap: 0 !important;
    }

    .account-shell {
        width: calc(100% - 24px) !important;
        margin-inline: auto;
    }

    /* overall sizing down */
    .account-page {
        background: #f6f7fb !important;
        padding: 10px 0 calc(18px + var(--fm-mbbar-h, 56px) + env(safe-area-inset-bottom)) !important;
        margin-bottom: 0 !important;
        font-size: 13px; /* 整体字小一档 */
        line-height: 1.4;
        color: #0f172a;
    }

    .account-main-title {
        display: none !important;
    }

    /* icon helpers */
    .m-ico-stroke {
        stroke: currentColor;
    }

    .m-ico-accent {
        fill: #FBBF24;
    }

    /* 参考图黄色点缀 */
    /* ===== Top head (lighter) ===== */
    .m-my-head {
        border-radius: 16px;
        background: linear-gradient(135deg,
        #eaf4ff 0%,
        #f5f9ff 38%,
        #ffffff 72%,
        #ffffff 100%
        );
        box-shadow: none;
        padding: 14px 14px 12px;
        position: relative;
        overflow: hidden;
    }

    /* 右上角淡淡蓝色光晕纹理（很克制） */
    .m-my-head::before {
        content: "";
        position: absolute;
        inset: -36px -50px auto auto;
        width: 280px;
        height: 280px;
        background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, .14), transparent 64%);
        transform: rotate(12deg);
        pointer-events: none;
    }

    /* 再加一层更淡的光晕，让层次更像参考图那种“轻” */
    .m-my-head::after {
        content: "";
        position: absolute;
        left: -60px;
        top: -80px;
        width: 220px;
        height: 220px;
        background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, .08), transparent 66%);
        pointer-events: none;
    }


    .m-my-hero {
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .m-avatar-circle {
        width: 54px;
        height: 54px;
        border-radius: 999px;
        background: #111827;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600; /* 不要 800/900 */
        overflow: hidden;
        box-shadow: none;
    }

    .m-avatar-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .m-my-meta {
        min-width: 0;
        flex: 1 1 auto;
    }

    .m-my-id {
        font-size: 20px; /* 比你现在小 */
        font-weight: 700; /* 不要 900 */
        color: #111827;
        letter-spacing: .2px;
        line-height: 1.1;
    }

    .m-my-vip {
        display: none !important;
    }

    /* ===== Orders 4 tabs: one outer border + inner dividers ===== */
    .m-my-card {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        margin-top: 12px;
        overflow: visible;
    }

    .m-order-tabs {
        display: grid;
        grid-template-columns:repeat(4, minmax(0, 1fr));
        background: #fff;
        border: 1px solid rgba(15, 23, 42, .10); /* 很淡 */
        border-radius: 14px;
        overflow: hidden;
        margin: 0; /* 参考图：紧跟上面 */
    }

    .m-tab {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 6px 12px;
        text-decoration: none;
        color: #111827;
        -webkit-tap-highlight-color: transparent;
    }

    /* divider with inset */
    .m-tab:not(:first-child)::before {
        content: "";
        position: absolute;
        left: 0;
        top: 14px;
        bottom: 14px;
        width: 1px;
        background: rgba(15, 23, 42, .10);
    }

    .m-tab-ico {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #111827;
    }

    .m-tab-ico svg {
        width: 28px;
        height: 28px;
        display: block;
    }

    .m-tab-txt {
        font-size: 12px; /* 更小 */
        font-weight: 600; /* 不要粗黑 */
        letter-spacing: .2px;
        color: #111827;
        line-height: 1;
    }

    /* ===== Menu list: simple, no heavy card ===== */
    .m-menu {
        margin-top: 14px;
        background: #fff;
        border-radius: 16px;
        box-shadow: none;
        overflow: hidden;
    }

    .m-menu-item {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 14px;
        background: #fff;
        border: 0;
        border-bottom: 1px solid rgba(15, 23, 42, .06); /* 很淡的分割线 */
        text-decoration: none;
        color: #111827;
        cursor: pointer;
        text-align: left;
    }

    .m-menu-item:last-of-type {
        border-bottom: 0;
    }

    .m-menu-ico {
        width: 24px;
        height: 24px;
        border-radius: 0;
        background: transparent;
        border: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        color: #111827;
    }

    .m-menu-ico svg {
        width: 22px;
        height: 22px;
        display: block;
    }

    .m-menu-name {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 15px;
        font-weight: 600; /* 轻一点 */
        color: #111827;
        line-height: 1.1;
    }

    .m-menu-sub {
        flex: 0 0 auto;
        font-size: 12px;
        color: #6b7280;
        font-weight: 500;
        white-space: nowrap;
        margin-right: 6px;
    }

    .m-menu-tail {
        flex: 0 0 auto;
        color: #9ca3af;
        font-weight: 600;
        font-size: 18px;
        margin-left: auto;
        transform: translateY(-.5px);
    }

    /* logout: soft pill like reference */
    .m-logout-btn {
        width: calc(100% - 28px);
        margin: 14px 14px 16px;
        height: 44px;
        border-radius: 999px;
        background: #f3f4f6;
        border: 0;
        color: #111827;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
    }

    /* 让 <a class="m-logout-btn"> 行为/视觉与 button 一致 */
    .m-logout-btn{
        display:flex;
        align-items:center;
        justify-content:center;
        text-decoration:none;
        -webkit-tap-highlight-color: transparent;
    }
    .m-logout-btn:active{ opacity:.85; }



    /* 超小屏：再轻微压一下 */
    @media (max-width: 420px) {
        .m-my-id {
            font-size: 18px;
        }

        .m-recent-title {
            font-size: 15px;
        }

        .m-menu-name {
            font-size: 14px;
        }
    }



    /* ===== Mobile Recent (3 cols x 2 rows) - sales only, smaller fonts ===== */
    @media (max-width: 768px) {
        .m-my-recent {
            padding-bottom: 60px;
            margin-top: 16px;
        }

        /* 比你现在“参考图那段 20px”小 4px */
        .m-recent-title {
            font-size: 16px;
            font-weight: 700;
            color: #0b1220;
            margin: 6px 2px 12px;
        }

        .m-recent-grid {
            display: grid;
            grid-template-columns:repeat(3, minmax(0, 1fr));
            gap: 18px 16px;
        }

        .m-recent-empty {
            grid-column: 1 / -1;
            font-size: 12px;
            color: #9ca3af;
            padding: 6px 2px;
        }

        .m-recent-card {
            display: block;
            text-decoration: none;
            color: #0b1220;
            min-width: 0;
        }

        .m-recent-thumb {
            position: relative;
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 14px;
            overflow: hidden;
            background: #eef2f7;
            border: 1px solid rgba(226, 232, 240, .95);
            box-shadow: 0 10px 20px rgba(15, 23, 42, .08);
        }

        .m-recent-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* 名称：18 -> 14（小 4px） */
        .m-recent-name {
            margin-top: 10px;
            font-size: 14px;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* 销量：18 -> 14（小 4px） */
        .m-recent-sold {
            margin-top: 8px;
            font-size: 14px;
            font-weight: 500;
            color: #6b7280;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .m-recent-sold span {
            margin-left: 6px;
            font-weight: 500;
            color: #6b7280;
        }
    }
    /* =========================
       FINAL OVERRIDE: Mobile Recent font smaller
       放在 account.css 最底部，强制覆盖
       ========================= */
    @media (max-width: 768px) {
        .m-recent-title {
            font-size: 16px !important; /* 你之前 20 => 直接小 4+ */
            font-weight: 700 !important;
            margin: 6px 2px 10px !important;
        }

        .m-recent-grid {
            gap: 12px 10px !important; /* 原来 18/16 太松 */
        }

        .m-recent-thumb {
            border-radius: 12px !important;
            border: 0 !important;
            box-shadow: none !important; /* 更干净，接近你要的 */
        }

        .m-recent-name {
            font-size: 14px !important; /* 原来 18 => 小很多 */
            margin-top: 8px !important;
        }

        .m-recent-sold {
            font-size: 11px !important; /* 原来 18 => 小很多 */
            font-weight: 500 !important;
            margin-top: 4px !important;
            color: #6b7280 !important;
        }

        .m-recent-sold span {
            margin-left: 4px !important;
            font-weight: 500 !important;
            color: #6b7280 !important;
        }

        /* ✅ 明确禁止折扣角标出现（你怕残留） */
        .m-recent-badge {
            display: none !important;
        }
    }


    /* =========================================================
       Flashmunk ACCOUNT THEME PATCH — Deep Blue Nightglow
       Append at END of account.css
       规则：
       - 主交互/按钮/选中：#1e3a8a / #2563eb / #60a5fa
       - 橙色 #ff5a1f 仅用于价格/优惠语义
    ========================================================= */
    :root {
        --fm-primary: #2563eb;
        --fm-primary-deep: #1e3a8a;
        --fm-primary-glow: #60a5fa;
        --fm-primary-soft: rgba(37, 99, 235, .08);

        --fm-price: #ff5a1f; /* 只给金额/优惠 */
    }

    /* 页面底色更贴蓝系（更干净） */
    .account-page {
        background: #f3f8ff;
    }

    /* =========================
       Sidebar (PC) — replace #2c65ad
    ========================= */
    .account-nav .nav-item:hover {
        background: rgba(37, 99, 235, .06);
        box-shadow: 0 10px 20px rgba(37, 99, 235, .14);
    }

    .account-nav .nav-item:hover .nav-icon {
        color: var(--fm-primary);
    }

    .account-nav .nav-item.is-active {
        background: linear-gradient(135deg, var(--fm-primary-deep) 0%, var(--fm-primary) 70%, #3b82f6 100%);
        box-shadow: 0 14px 28px rgba(37, 99, 235, .26);
    }

    .account-nav .nav-item.is-active .nav-icon {
        color: #fff;
    }

    /* =========================
       Buttons — ghost + primary
       (把原来橙色 btn-primary 改为蓝；橙只留价格)
    ========================= */
    .btn-ghost,
    .btn-ghost-light {
        border-color: rgba(37, 99, 235, .18);
        background: rgba(37, 99, 235, .06);
        color: var(--fm-primary-deep);
    }

    .btn-ghost:hover,
    .btn-ghost-light:hover {
        background: rgba(37, 99, 235, .12);
        border-color: rgba(37, 99, 235, .30);
        box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
    }

    /* account 这里的 .btn-primary：统一蓝系 CTA */
    .btn-primary {
        border-color: rgba(96, 165, 250, .28);
        background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, var(--fm-primary-deep) 0%, var(--fm-primary) 58%, #3b82f6 100%);
        color: #fff;
        box-shadow: 0 14px 28px rgba(37, 99, 235, .16), inset 0 1px 0 rgba(255, 255, 255, .14);
    }

    .btn-primary:hover {
        filter: brightness(1.02);
    }

    /* 表单 focus：统一夜光蓝 */
    .pe-row input[type="text"]:focus {
        border-color: var(--fm-primary);
        box-shadow: 0 0 0 3px rgba(96, 165, 250, .22);
    }

    /* =========================
       Avatar edit badge — 原来是橙色，改成主交互蓝
    ========================= */
    .avatar-edit-badge {
        background: var(--fm-primary);
        color: #fff;
        box-shadow: 0 10px 22px rgba(37, 99, 235, .22);
    }

    /* =========================
       Simple cards icon — 原来黄底+橙图标，改成蓝系
    ========================= */
    .card-simple-icon {
        background: rgba(37, 99, 235, .12);
    }

    .card-simple-icon .fm-ico {
        color: var(--fm-primary);
    }

    /* =========================
       Mobile icon accent — 原来黄点缀，改成夜光蓝
    ========================= */
    @media (max-width: 768px) {
        .m-ico-accent {
            fill: var(--fm-primary-glow);
        }
    }

    /* （可选）如果你后面有“金额/优惠”的元素，希望用橙色，
       给它们加 .fm-price 即可 */
    .fm-price {
        color: var(--fm-price) !important;
    }

    /* Mobile: recent title + more */
    .m-my-recent .m-recent-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .m-my-recent .m-recent-more {
        font-size: 13px;
        color: var(--fm-blue, #3b82f6);
        text-decoration: none;
        padding: 4px 6px;
        border-radius: 10px;
    }

    .m-my-recent .m-recent-more:active {
        opacity: .7;
    }

    /* 保底：你菜单图标如果是 svg，统一尺寸（不影响 _m_svg） */
    .m-menu .m-menu-ico svg {
        width: 22px;
        height: 22px;
        display: block;
    }
}
/* =========================================================
   UCX Desktop Stack — Right panel like reference screenshot
   Append at END of account.css (outside mobile @media)
========================================================= */

.ucx-main{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.ucx-card{
  background:#fff;
  border-radius:24px;
  box-shadow:0 18px 40px rgba(15,23,42,.06);
  padding:18px 20px;
}

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

.ucx-head-left{
  
    padding: 1px 8px 20px 3px;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.ucx-head-ico{
  font-size:18px;
  color:#0b1220;
  opacity:.85;
}

.ucx-head-title{
  font-size:15px;
  font-weight:700;
  color:#0b1220;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ucx-signout{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(239,68,68,.08);
  border:1px solid rgba(239,68,68,.18);
  color:#ef4444;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
}
.ucx-signout .material-icons{ font-size:16px; }

.ucx-link-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.20);
  color:var(--fm-primary-deep, #1e3a8a);
  text-decoration:none;
  font-weight:800;
  font-size:13px;
}

/* -------------------------
   Account Settings
------------------------- */
.ucx-settings-body{ margin-top:12px; }

.ucx-avatar{
  position:relative;
  width:94px;
  height:94px;
  border-radius:999px;
  background:#111827;
  margin:10px auto 12px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 38px rgba(15,23,42,.14);
  cursor:pointer;
}
.ucx-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ucx-avatar-txt{
  color:#fff;
  font-weight:800;
  font-size:34px;
  letter-spacing:.5px;
}
.ucx-avatar-edit{
  position:absolute;
  right:4px;
  bottom:4px;
  width:28px;
  height:28px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 22px rgba(15,23,42,.18);
}
.ucx-avatar-edit .material-icons{
  font-size:16px;
  color:#0b1220;
  opacity:.75;
}

.ucx-kv{
  margin:0;
  padding-top:12px;
  border-top:1px solid rgba(15,23,42,.06);
}

.ucx-row{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:14px;
  align-items:center;
  padding:10px 0;
}
.ucx-row + .ucx-row{
  border-top:1px solid rgba(15,23,42,.04);
}

.ucx-row dt{
  font-size:13px;
  color:#6b7280;
}
.ucx-row dd{
  margin:0;
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
  font-size:13px;
  font-weight:700;
  color:#0b1220;
}

.ucx-mini-btn{
  width:26px;
  height:26px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.ucx-mini-btn .material-icons{
  font-size:16px;
  opacity:.6;
}

/* -------------------------
   Orders tabs (pill)
------------------------- */
.ucx-tabs{
  margin-top:14px;
  display:flex;
  gap:10px;
  padding:6px;
  background:#f3f4f6;
  border-radius:999px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.ucx-tabs::-webkit-scrollbar{ display:none; }

.ucx-tab{
  flex:0 0 auto;
  padding:10px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  color:#6b7280;
  text-decoration:none;
  white-space:nowrap;
}
.ucx-tab b{ font-weight:900; color:inherit; }
.ucx-tab.is-active{
  background:#0b1220;
  color:#fff;
  box-shadow:0 14px 26px rgba(15,23,42,.16);
}

.ucx-slot{
  margin-top:14px;
  border-radius:16px;
  border:1px dashed rgba(15,23,42,.14);
  padding:16px;
  background:#fff;
}
.ucx-slot--tight{ margin-top:12px; border-style:solid; border-color:rgba(15,23,42,.06); }
.ucx-slot-note{ color:#6b7280; font-size:13px; }

/* -------------------------
   Coupons (image-like cards)
------------------------- */
.ucx-head-row{ align-items:flex-start; }

.ucx-redeem{
  display:flex;
  align-items:center;
  gap:8px;
}
.ucx-redeem-input{
  height:34px;
  width:280px;
  max-width:34vw;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  padding:0 12px;
  font-size:13px;
  outline:none;
  background:#fff;
}
.ucx-redeem-input:focus{
  border-color:rgba(37,99,235,.40);
  box-shadow:0 0 0 3px rgba(96,165,250,.18);
}
.ucx-redeem-btn{
  height:34px;
  padding:0 14px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  font-weight:900;
  font-size:13px;
  background:rgba(37,99,235,.10);
  color:var(--fm-primary-deep, #1e3a8a);
}

.ucx-coupon-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

.ucx-coupon-card{
  position:relative;
  border-radius:18px;
  padding:16px 16px 12px;
  background:linear-gradient(135deg, #ffe8d6 0%, #fff2e7 55%, #ffe8d6 100%);
  overflow:hidden;
  border:1px solid rgba(15,23,42,.04);
}

.ucx-coupon-card::after{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  bottom:42px;
  height:1px;
  background:rgba(15,23,42,.10);
  opacity:.7;
  border-radius:99px;
  /* 虚线感 */
  box-shadow:0 0 0 0 rgba(0,0,0,0);
  background-image:linear-gradient(to right, rgba(15,23,42,.14) 33%, rgba(255,255,255,0) 0);
  background-size:10px 1px;
  background-repeat:repeat-x;
}

.ucx-coupon-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.ucx-coupon-off{
  font-size:22px;
  font-weight:1000;
  letter-spacing:.2px;
  color:#0b1220;
}

.ucx-coupon-cta{
  line-height: 34px;
  height:34px;
  padding:0 14px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  font-weight:900;
  font-size:13px;
  background:rgba(255,255,255,.92);
  color:#0b1220;
}

.ucx-coupon-mid{ margin-top:10px; }
.ucx-coupon-desc{ font-size:12px; color:#6b7280; }
.ucx-coupon-save{ font-size:14px; font-weight:900; color:#0b1220; margin-top:2px; }

.ucx-coupon-foot{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  color:#6b7280;
}
.ucx-coupon-exp{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ucx-coupon-note{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; opacity:.9; }

/* -------------------------
   Favorites (image cards)
------------------------- */
.ucx-fav-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.ucx-fav-card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 16px 32px rgba(15,23,42,.08);
}

.ucx-fav-thumb{
  position:relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 30% 20%, rgba(37,99,235,.18), transparent 55%),
    linear-gradient(135deg, rgba(15,23,42,.08), rgba(15,23,42,.02));
}

.ucx-fav-badge{
  position:absolute;
  top:10px;
  right:10px;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  background:#fbbf24;
  color:#0b1220;
  font-weight:1000;
  font-size:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.ucx-fav-meta{
  padding:12px 12px 14px;
}

.ucx-fav-name{
  font-weight:900;
  font-size:13px;
  color:#0b1220;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ucx-fav-sub{
  margin-top:6px;
  font-size:12px;
  color:#6b7280;
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}
.ucx-fav-star{ color:#fbbf24; }
.ucx-fav-dot{ opacity:.7; }

/* -------------------------
   Responsive (Pad)
------------------------- */
@media (max-width: 1024px){
  .ucx-coupon-grid{ grid-template-columns:1fr; }
  .ucx-fav-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .ucx-redeem-input{ width:240px; }
}
/* =========================================================
   UCX Orders Table (PC/Pad)
========================================================= */
.ucx-ot{ margin-top:14px; }

.ucx-ot-loading,
.ucx-ot-empty{
  padding:16px;
  color:#6b7280;
  font-size:13px;
}

.ucx-ot-table{
  border:1px solid rgba(15,23,42,.06);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}

.ucx-ot-head,
.ucx-ot-row{
  display:grid;
  grid-template-columns: 2.2fr 1.2fr 1.2fr .8fr .8fr;
  align-items:center;
}

.ucx-ot-head{
  background:#f3f4f6;
  color:#6b7280;
  font-size:12px;
  font-weight:800;
  padding:12px 14px;
}

.ucx-ot-body .ucx-ot-row{
  padding:14px 14px;
  border-top:1px solid rgba(15,23,42,.06);
}

.ucx-ot-item{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.ucx-ot-thumb{
  width:44px;
  height:44px;
  border-radius:12px;
  background:#eef2f7;
  overflow:hidden;
  flex:0 0 auto;
}
.ucx-ot-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.ucx-ot-itxt{ min-width:0; }
.ucx-ot-title{
  font-weight:900;
  color:#0b1220;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ucx-ot-time{
  margin-top:4px;
  font-size:12px;
  color:#94a3b8;
}

.ucx-ot-order{ min-width:0; }
.ucx-ot-sn{
  color:#2563eb;
  font-weight:800;
  font-size:12px;
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:inline-block;
  max-width:100%;
}

.ucx-ot-amt{ min-width:0; }
.ucx-ot-money{
  font-weight:1000;
  color:#0b1220;
  font-size:14px;
}
.ucx-ot-payhint{
  margin-top:4px;
  font-size:12px;
  color:#94a3b8;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ucx-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:28px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:1000;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  color:#0b1220;
}
.ucx-badge.is-need{
  color:#f59e0b;
  background:rgba(245,158,11,.10);
  border-color:rgba(245,158,11,.28);
}
.ucx-badge.is-processing{
  color:#2563eb;
  background:rgba(37,99,235,.10);
  border-color:rgba(37,99,235,.25);
}
.ucx-badge.is-completed{
  color:#10b981;
  background:rgba(16,185,129,.10);
  border-color:rgba(16,185,129,.25);
}
.ucx-badge.is-refund{
  color:#ef4444;
  background:rgba(239,68,68,.10);
  border-color:rgba(239,68,68,.25);
}

.ucx-ot-action{ display:flex; justify-content:flex-end; }
.ucx-ot-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:32px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  color:#0b1220;
  font-weight:900;
  font-size:12px;
  text-decoration:none;
}
.ucx-ot-btn:hover{
  border-color:rgba(37,99,235,.25);
  box-shadow:0 10px 22px rgba(37,99,235,.12);
}

/* footer */
.ucx-ot-footer{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#6b7280;
  font-size:12px;
}
.ucx-ot-foot-left b{ color:#0b1220; font-weight:900; }
.ucx-ot-foot-right{
  display:flex;
  align-items:center;
  gap:8px;
}
.ucx-ot-pg{
  width:34px;
  height:30px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  cursor:pointer;
  font-weight:900;
  color:#0b1220;
}
.ucx-ot-pg:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.ucx-ot-pgtext{ white-space:nowrap; }



/* =========================================================
   ACCOUNT BG BEHIND HEADER — attach to BODY (scoped)
   Append at END of account.css
   说明：
   - 背景挂到 body，所以 header 透明也能透出图
   - 用 :has(.account-page) 限定只在该页面生效
========================================================= */

/* 0) 禁掉你之前可能加在 .account-page 上的 ::before/::after（如果你之前贴过） */
body:has(.account-page) .account-page::before,
body:has(.account-page) .account-page::after{
  content: none !important;
}

/* 1) 让 layout / page_main 不再盖白底 */
body:has(.account-page),
body:has(.account-page) #page_main,
body:has(.account-page) .account-page{
  background: transparent !important;
}

/* 2) 背景图层：全屏固定，永远在最底下 */
body:has(.account-page)::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background-image: url("https://cdn.flashmunk.com/static_bg/home/search-bg.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;

  /* 让图“明显一点”，你要更明显就把数值调大 */
  filter: saturate(1.10) contrast(1.06);
  transform: translateZ(0);
}

/* 3) 轻遮罩：保证文字可读，但不要白到看不到背景
   - 想更透：把 .32 调小（比如 .18）
   - 想更雾：把 .32 调大（比如 .45） */
body:has(.account-page)::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: rgba(245, 248, 255, .32);
}

/* 4) 可选：卡片做一点“玻璃感”，让背景更有存在感
   如果你不想卡片透，就删掉这一段 */
body:has(.account-page) .account-sidebar,
body:has(.account-page) .account-card,
body:has(.account-page) .m-my-head,
body:has(.account-page) .m-order-tabs,
body:has(.account-page) .m-menu{
  background: rgba(255,255,255,.86) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 5) 移动端：遮罩稍微更透一点，让背景更明显 */
@media (max-width: 768px){
  body:has(.account-page)::after{
    background: rgba(245, 248, 255, .22);
  }
}
@media (min-width: 901px){
  .ucx-favs .ucx-fav-thumb{
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
  }
}

@media (min-width: 901px){
  .ucx-favs .ucx-fav-thumb{
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
  }
}
@media (min-width: 901px){
  .ucx-favs .ucx-fav-card{ overflow:hidden; }
  .ucx-favs .ucx-fav-thumb{ border-radius: inherit; }
}
/* ===== UC Sidebar anchor + sticky (Desktop) ===== */
@media (min-width: 901px){
  /* 让左侧栏“固定”在视口（推荐 sticky：跟布局对齐，不会跑到屏幕最左边） */
  .account-layout{ align-items:flex-start; }

  .account-sidebar{
    position: sticky;
    top: 96px; /* 这里按你站点 header 高度调整：如果头更高就加大 */
    align-self: flex-start;
  }

  /* 避免锚点跳转后被 header 遮住 */
  #card_profile,
  #ucx_orders,
  #ucx_coupons,
  #ucx_favs{
    scroll-margin-top: 110px;
  }
}
/* ===== UCX Recent viewed (Desktop 5-col) ===== */
@media (min-width: 901px){
  .ucx-recent-grid{
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .ucx-recent-card{
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .ucx-recent-thumb{
    border-radius: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    aspect-ratio: 16 / 10; /* ✅ 长方形 */
    overflow: hidden;
  }

  .ucx-recent-name{
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .92;
  }
}
/* ===== UCX Recent viewed (Desktop 5-col, vertical rectangle) ===== */
@media (min-width: 901px){
  .ucx-recent-grid{
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .ucx-recent-card{
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .ucx-recent-thumb{
    position: relative;
    border-radius: 18px;
    overflow: hidden;

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    /* ✅ 竖向长方形（你要竖的） */
    aspect-ratio: 3 / 4;
  }

  .ucx-recent-badge{
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
  }

  .ucx-recent-meta{ margin-top: 8px; }
  .ucx-recent-name{
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .92;
  }

  .ucx-recent-sub{
    margin-top: 4px;
    font-size: 12px;
    opacity: .72;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .ucx-recent-star{ opacity: .95; }
  .ucx-recent-dot{ opacity: .55; }
}












@media (max-width: 768px){

  /* 只给 body 白底兜底；前景容器必须透明，不然会把背景图盖掉 */
  body:has(.account-page){
    position: relative;
    background: #fff !important;
  }

  body:has(.account-page) #page_main,
  body:has(.account-page) .account-page{
    background: transparent !important;
    position: relative;
    z-index: 1;
  }

  /* 背景图层：上半图，下半渐变到白 */
  body:has(.account-page)::before{
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image:
      linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0) 32%,
        rgba(255,255,255,.14) 46%,
        rgba(255,255,255,.42) 58%,
        rgba(255,255,255,.74) 72%,
        rgba(255,255,255,.92) 84%,
        #fff 100%
      ),
      url("https://cdn.flashmunk.com/static_bg/home/bg_center.png");

    background-repeat: no-repeat, no-repeat;
    background-position: center top, center top;
    background-size: 100% 100%, 100% auto;

    filter: none !important;
    transform: translateZ(0);
  }

  /* 干掉旧白雾层 */
  body:has(.account-page)::after{
    content: none !important;
    display: none !important;
  }

  /* 顶部资料块自身透明 */
  body:has(.account-page) .account-page .m-my-head{
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body:has(.account-page) .account-page .m-my-head::before,
  body:has(.account-page) .account-page .m-my-head::after{
    content: none !important;
    display: none !important;
  }
}

@media (max-width: 768px){
  body:has(.account-page) .account-page{
    padding-bottom: 10px !important;
  }
}





/* =========================================================
   Account page accent override
   - remove blue accents
   - unify to gold: #f5c542
   Append at END of account.css
========================================================= */

body.page-account-home{
  --fm-accent-gold: #f5c542;
  --fm-accent-gold-deep: #e0b12f;
  --fm-accent-gold-ink: #8a6412;
  --fm-accent-gold-soft: rgba(245, 197, 66, .12);
  --fm-accent-gold-soft-2: rgba(245, 197, 66, .18);
  --fm-accent-gold-line: rgba(245, 197, 66, .30);
  --fm-accent-gold-shadow: rgba(245, 197, 66, .22);
}

/* ===== Desktop / shared ===== */
body.page-account-home .account-nav .nav-item:hover{
  background: var(--fm-accent-gold-soft) !important;
  box-shadow: 0 10px 20px rgba(245,197,66,.16) !important;
}
body.page-account-home .account-nav .nav-item:hover .nav-icon{
  color: var(--fm-accent-gold-ink) !important;
}

body.page-account-home .account-nav .nav-item.is-active{
  background: linear-gradient(135deg, #f8dc7a 0%, var(--fm-accent-gold) 68%, #efc12d 100%) !important;
  color: #111827 !important;
  box-shadow: 0 14px 28px rgba(245,197,66,.26) !important;
}
body.page-account-home .account-nav .nav-item.is-active .nav-icon{
  color: #111827 !important;
}

body.page-account-home .btn-ghost,
body.page-account-home .btn-ghost-light{
  border-color: rgba(245,197,66,.22) !important;
  background: rgba(245,197,66,.10) !important;
  color: var(--fm-accent-gold-ink) !important;
}
body.page-account-home .btn-ghost:hover,
body.page-account-home .btn-ghost-light:hover{
  background: rgba(245,197,66,.16) !important;
  border-color: rgba(245,197,66,.34) !important;
  box-shadow: 0 10px 24px rgba(245,197,66,.18) !important;
}

body.page-account-home .btn-primary{
  border-color: rgba(245,197,66,.52) !important;
  background: var(--fm-accent-gold) !important;
  color: #111827 !important;
  box-shadow: 0 12px 24px rgba(245,197,66,.18) !important;
}
body.page-account-home .btn-primary:hover{
  filter: brightness(1.01) !important;
}

body.page-account-home .pe-row input[type="text"]:focus{
  border-color: rgba(245,197,66,.58) !important;
  box-shadow: 0 0 0 3px rgba(245,197,66,.18) !important;
}

/* ===== UCX desktop area ===== */
body.page-account-home .ucx-link-btn{
  background: rgba(245,197,66,.12) !important;
  border-color: rgba(245,197,66,.24) !important;
  color: var(--fm-accent-gold-ink) !important;
}

body.page-account-home .ucx-redeem-input:focus{
  border-color: rgba(245,197,66,.48) !important;
  box-shadow: 0 0 0 3px rgba(245,197,66,.16) !important;
}
body.page-account-home .ucx-redeem-btn{
  background: rgba(245,197,66,.14) !important;
  color: var(--fm-accent-gold-ink) !important;
}

body.page-account-home .ucx-ot-sn{
  color: var(--fm-accent-gold-ink) !important;
}
body.page-account-home .ucx-ot-btn:hover{
  border-color: rgba(245,197,66,.34) !important;
  box-shadow: 0 10px 22px rgba(245,197,66,.14) !important;
}

body.page-account-home .ucx-badge.is-processing{
  color: var(--fm-accent-gold-ink) !important;
  background: rgba(245,197,66,.12) !important;
  border-color: rgba(245,197,66,.28) !important;
}

/* ===== Mobile ===== */
@media (max-width: 768px){

  /* 顶部轻微金色，不再蓝色 */
  body.page-account-home .m-my-head{
    background: linear-gradient(
      135deg,
      #fff8df 0%,
      #fffaf0 42%,
      #ffffff 76%,
      #ffffff 100%
    ) !important;
  }

  body.page-account-home .m-my-head::before{
    background: radial-gradient(
      circle at 30% 30%,
      rgba(245,197,66,.16),
      transparent 64%
    ) !important;
  }

  body.page-account-home .m-my-head::after{
    background: radial-gradient(
      circle at 50% 50%,
      rgba(245,197,66,.10),
      transparent 66%
    ) !important;
  }

  /* 黄色点缀 */
  body.page-account-home .m-ico-accent{
    fill: var(--fm-accent-gold) !important;
  }

  /* 你说的 m-my-card 里的残留蓝感，统一去掉 */
  body.page-account-home .m-my-card,
  body.page-account-home .m-order-tabs,
  body.page-account-home .m-menu{
    box-shadow: none !important;
  }

  /* 最近浏览右上角“查看更多”不要蓝 */
  body.page-account-home .m-my-recent .m-recent-more{
    color: var(--fm-accent-gold-ink) !important;
    background: rgba(245,197,66,.10) !important;
  }

  /* 如果后面还有 svg 用 currentColor 跟着走，这里也统一一下 */
  body.page-account-home .m-menu-item:active,
  body.page-account-home .m-tab:active{
    background: rgba(245,197,66,.08) !important;
  }
}


/* =========================================================
   UCX Recent badge - FINAL FIX
   只修 PC 的最近浏览右上角 badge
========================================================= */
@media (min-width: 901px){

  #ucx_recent .ucx-recent-card{
    display: block;
    text-decoration: none;
    color: inherit;
  }

  #ucx_recent .ucx-recent-thumb{
    position: relative !important;
    overflow: hidden !important;
    border-radius: 18px !important;
  }

  #ucx_recent .ucx-recent-badge{
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 3 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;

    background: #f5c542 !important;
    color: #111827 !important;

    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 28px !important;
    letter-spacing: .01em !important;
    white-space: nowrap !important;

    box-shadow: 0 10px 20px rgba(245,197,66,.28) !important;
  }
}
/* =========================================================
   Account sidebar FINAL GOLD OVERRIDE
   旧版 account.css 方案A：彻底覆盖蓝色 hover / active
   ========================================================= */
.account-page .account-nav .nav-item:hover{
  background: rgba(245,197,66,.10) !important;
  color: #111827 !important;
  box-shadow: 0 10px 20px rgba(245,197,66,.16) !important;
  transform: translateY(-1px);
}

.account-page .account-nav .nav-item:hover .nav-icon{
  color: #8a6412 !important;
}

.account-page .account-nav .nav-item.is-active{
  background: #f5c542 !important;
  color: #111827 !important;
  box-shadow: 0 14px 28px rgba(245,197,66,.26) !important;
}

.account-page .account-nav .nav-item.is-active .nav-icon{
  color: #111827 !important;
}



/* =========================================================
   Account yellow buttons - LIGHTER FINAL OVERRIDE
   统一把 account 页面里的黄色按钮/角标/激活态改浅一点
   一定放在 account.css 最底部
   ========================================================= */
.account-page{
  --fm-gold-lite: #f8d76a;
  --fm-gold-lite-hover: #f6d45b;
  --fm-gold-lite-soft: rgba(248,215,106,.16);
  --fm-gold-lite-soft-2: rgba(248,215,106,.22);
  --fm-gold-lite-line: rgba(248,215,106,.34);
  --fm-gold-lite-shadow: rgba(248,215,106,.22);
  --fm-gold-lite-text: #6e5310;
  --fm-gold-lite-text-strong: #4f3b08;
}

/* ===== 左侧导航激活 / hover ===== */
.account-page .account-nav .nav-item:hover{
  background: var(--fm-gold-lite-soft) !important;
  color: #111827 !important;
  box-shadow: 0 10px 20px rgba(248,215,106,.14) !important;
}

.account-page .account-nav .nav-item:hover .nav-icon{
  color: var(--fm-gold-lite-text) !important;
}

.account-page .account-nav .nav-item.is-active{
  background: var(--fm-gold-lite) !important;
  color: #111827 !important;
  box-shadow: 0 12px 24px rgba(248,215,106,.20) !important;
}

.account-page .account-nav .nav-item.is-active .nav-icon{
  color: #111827 !important;
}

/* ===== 通用主按钮（如果你这个页面还有黄色 primary） ===== */
.account-page .btn-primary{
  background: var(--fm-gold-lite) !important;
  border-color: var(--fm-gold-lite-line) !important;
  color: var(--fm-gold-lite-text-strong) !important;
  box-shadow: 0 10px 20px rgba(248,215,106,.16) !important;
}

.account-page .btn-primary:hover{
  background: var(--fm-gold-lite-hover) !important;
  border-color: rgba(248,215,106,.42) !important;
  color: var(--fm-gold-lite-text-strong) !important;
  filter: none !important;
}

/* ===== UCX 顶部浅黄按钮 ===== */
.account-page .ucx-link-btn,
.account-page .ucx-redeem-btn{
  background: var(--fm-gold-lite-soft) !important;
  border: 1px solid var(--fm-gold-lite-line) !important;
  color: var(--fm-gold-lite-text) !important;
  box-shadow: none !important;
}

.account-page .ucx-link-btn:hover,
.account-page .ucx-redeem-btn:hover{
  background: var(--fm-gold-lite-soft-2) !important;
  color: var(--fm-gold-lite-text-strong) !important;
}

/* ===== coupon 卡里的 To Use 按钮 ===== */
.account-page .ucx-coupon-cta{
  background: var(--fm-gold-lite) !important;
  color: var(--fm-gold-lite-text-strong) !important;
  box-shadow: 0 8px 18px rgba(248,215,106,.14) !important;
}

.account-page .ucx-coupon-cta:hover{
  background: var(--fm-gold-lite-hover) !important;
}

/* ===== 收藏 / 最近浏览 右上角 badge ===== */
.account-page .ucx-fav-badge,
.account-page #ucx_recent .ucx-recent-badge{
  background: var(--fm-gold-lite) !important;
  color: var(--fm-gold-lite-text-strong) !important;
  box-shadow: 0 8px 18px rgba(248,215,106,.16) !important;
}

/* ===== 订单状态里偏黄那个 processing badge 也一起调浅 ===== */
.account-page .ucx-badge.is-processing{
  background: var(--fm-gold-lite-soft) !important;
  border-color: var(--fm-gold-lite-line) !important;
  color: var(--fm-gold-lite-text) !important;
}

/* ===== 如果 orders/account 里还有黄色 pill 按钮，也顺手兜底 ===== */
.account-page .btn-gold,
.account-page .is-gold,
.account-page [class*="gold-btn"]{
  background: var(--fm-gold-lite) !important;
  border-color: var(--fm-gold-lite-line) !important;
  color: var(--fm-gold-lite-text-strong) !important;
}

/* ===== Mobile 里“查看更多”等浅黄色文字块也统一一点 ===== */
@media (max-width: 768px){
  .account-page .m-my-recent .m-recent-more{
    color: var(--fm-gold-lite-text) !important;
    background: var(--fm-gold-lite-soft) !important;
  }
}

/* =========================================================
   Account sidebar active/hover - exact selector override
   放在 account.css 最底部
   ========================================================= */
body.page-account-home .account-nav .nav-item:hover{
  background: rgba(248,215,106,.16) !important;
  color: #111827 !important;
  box-shadow: 0 10px 20px rgba(248,215,106,.14) !important;
}

body.page-account-home .account-nav .nav-item:hover .nav-icon{
  color: #6e5310 !important;
}

body.page-account-home .account-nav .nav-item.is-active{
  background: #f8d76a !important;
  color: #111827 !important;
  box-shadow: 0 12px 24px rgba(248,215,106,.20) !important;
}

body.page-account-home .account-nav .nav-item.is-active .nav-icon{
  color: #111827 !important;
}

