/* ========================================
   MEMBER CENTER - COSMIC THEME (Big5)
   ======================================== */

/* ========================================
   儲值代幣頁面
   ======================================== */
.topup-balance {
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.topup-balance-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topup-balance-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--copper) 0%, var(--orange) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--glow-copper);
}
.topup-balance-text {
  display: flex;
  flex-direction: column;
}
.topup-balance-label {
  font-size: 14px;
  color: var(--muted);
}
.topup-balance-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--copper-light);
}

.topup-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--copper);
}

/* 儲值方案網格 */
.topup-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.topup-plan {
  position: relative;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.topup-plan:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.topup-plan.selected {
  border-color: var(--orange);
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(255, 140, 66, 0.1) 100%);
  box-shadow: var(--glow-orange);
}
.topup-plan.popular::before {
  content: "熱門";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--copper) 0%, var(--orange) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 10px;
}
.topup-plan-price {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.topup-plan-price span {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
}
.topup-plan-coins {
  font-size: 20px;
  font-weight: 600;
  color: var(--copper-light);
  margin-bottom: 8px;
}
.topup-plan-bonus {
  font-size: 13px;
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
}

/* 付款方式 */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.payment-method {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.payment-method:hover {
  border-color: var(--copper);
}
.payment-method.selected {
  border-color: var(--orange);
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(255, 140, 66, 0.1) 100%);
}
.payment-method-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.payment-method-name {
  font-size: 13px;
  color: var(--ink);
}

/* 儲值摘要 */
.topup-summary {
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.topup-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: none;
}
.topup-summary-row:last-child {
  border-bottom: none;
}
.topup-summary-row.total {
  font-size: 18px;
  font-weight: 600;
  color: var(--copper-light);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-light);
}
.topup-summary-label {
  color: var(--muted);
}
.topup-summary-value {
  color: var(--ink);
}
.topup-summary-value.bonus {
  color: var(--accent-green);
}

/* 儲值按鈕 */
.btn-topup {
  width: 100%;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--copper) 0%, var(--orange) 100%);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--glow-copper);
}
.btn-topup:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-orange), 0 8px 20px rgba(0,0,0,0.3);
}
.btn-topup:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 注意事項 */
.topup-notice {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 140, 66, 0.05);
  border: 1px dashed var(--copper);
  border-radius: var(--radius);
}
.topup-notice-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--copper-light);
  margin-bottom: 8px;
}
.topup-notice-list {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  padding-left: 20px;
}

/* 響應式 */
@media (max-width: 768px) {
  .topup-plans {
    grid-template-columns: repeat(2, 1fr);
  }
  .payment-methods {
    grid-template-columns: repeat(2, 1fr);
  }
  .topup-balance {
    flex-direction: column;
    text-align: center;
  }
  .topup-balance-info {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .topup-plans {
    grid-template-columns: 1fr;
  }
}

:root {
  /* 背景色 */
  --bg: #07070c;
  --bg-secondary: #0a0a12;
  --panel: #0f0f18;
  --panel-hover: #14141f;
  
  /* 主色 - 銅橙色 */
  --copper: #cd7f32;
  --copper-light: #e8a54b;
  --copper-dark: #a65e1a;
  --orange: #ff8c42;
  --orange-glow: rgba(255, 140, 66, 0.4);
  
  /* 文字色 */
  --ink: #f0f0f5;
  --muted: #6a6a7a;
  
  /* 邊框線 */
  --line: #1a1a28;
  --line-light: #252535;
  
  /* 狀態色 */
  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  
  /* 發光效果 */
  --glow-copper: 0 0 20px rgba(205, 127, 50, 0.4);
  --glow-orange: 0 0 25px rgba(255, 140, 66, 0.3);
  
  /* 陰影 */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.6), var(--glow-copper);
  
  /* 圓角 */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  
  /* 字體 */
  --font: "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  --font-fancy: 'Georgia', serif;
  
  /* 四角星 clip-path (Big5 相容) */
  --star4: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
  
  /* 月牙 clip-path */
  --crescent: ellipse(50% 50% at 35% 50%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* 星空背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(2px 2px at 10% 20%, #fff 100%, transparent),
    radial-gradient(2px 2px at 30% 65%, #fff 100%, transparent),
    radial-gradient(2px 2px at 50% 10%, #fff 100%, transparent),
    radial-gradient(2px 2px at 70% 80%, #fff 100%, transparent),
    radial-gradient(2px 2px at 90% 30%, #fff 100%, transparent),
    radial-gradient(2px 2px at 15% 90%, #fff 100%, transparent),
    radial-gradient(2px 2px at 85% 55%, #fff 100%, transparent),
    radial-gradient(2px 2px at 45% 45%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 20% 50%, rgba(255,255,255,0.9) 100%, transparent),
    radial-gradient(1.5px 1.5px at 40% 30%, rgba(255,255,255,0.9) 100%, transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(255,255,255,0.9) 100%, transparent),
    radial-gradient(1px 1px at 12% 42%, rgba(255,255,255,0.6) 100%, transparent),
    radial-gradient(1px 1px at 28% 78%, rgba(255,255,255,0.6) 100%, transparent),
    radial-gradient(1px 1px at 52% 58%, rgba(255,255,255,0.5) 100%, transparent);
  pointer-events: none;
  z-index: -2;
  animation: twinkle-bg 8s ease-in-out infinite alternate;
}

/* 星雲漸層 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 85%, rgba(205, 127, 50, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 15%, rgba(255, 140, 66, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

@keyframes twinkle-bg {
  0% { opacity: 1; }
  100% { opacity: 0.7; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }

/* ========================================
   HEADER
   ======================================== */
.site-header {
  background: linear-gradient(180deg, rgba(15, 15, 24, 0.95) 0%, rgba(10, 10, 18, 0.98) 100%);
  border-bottom: 2px solid var(--copper);
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
/* 四角星裝飾 */
.site-header::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--copper-light);
  clip-path: var(--star4);
  filter: drop-shadow(0 0 6px var(--copper-light));
}
/* 左右小星星 */
.site-header::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 30%;
  width: 12px;
  height: 12px;
  background: var(--copper);
  clip-path: var(--star4);
  filter: drop-shadow(0 0 4px var(--copper));
  box-shadow: calc(40vw) 0 0 0 var(--copper);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.site-logo img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  border: 2px solid var(--copper);
  box-shadow: var(--glow-copper);
}
.site-logo span {
  font-family: var(--font-fancy);
  background: linear-gradient(135deg, var(--copper-light) 0%, var(--orange) 50%, var(--copper) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.header-grow { flex: 1; }

/* Icon Nav */
.icon-nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; line-height: 1.2; }
.icon-link { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  font-size: 12px; 
  font-weight: 600; 
  color: var(--muted); 
  min-width: 48px; 
  padding: 6px 10px; 
  border-radius: var(--radius); 
  transition: all 0.3s;
  border: 1px solid transparent;
}
.icon-link:hover { 
  color: var(--copper-light); 
  background: rgba(205, 127, 50, 0.1);
  border-color: var(--copper);
}
.icon-box { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.icon-box svg { width: 22px; height: 22px; fill: currentColor; }

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb { 
  padding: 15px 20px; 
  font-size: 13px; 
  color: var(--muted); 
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-secondary) 100%); 
  border-bottom: 1px solid var(--line); 
}
.breadcrumb a { color: var(--copper); transition: all 0.3s; }
.breadcrumb a:hover { color: var(--copper-light); text-decoration: underline; }

/* ========================================
   CONTAINER
   ======================================== */
.container { display: flex; max-width: 1200px; margin: 24px auto; gap: 24px; padding: 0 16px; }

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar { width: 240px; flex-shrink: 0; }

.btn-primary { 
  display: block; 
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%); 
  color: #fff; 
  text-align: center; 
  padding: 14px 20px; 
  border-radius: 28px; 
  font-size: 15px; 
  font-weight: 600; 
  margin-bottom: 20px; 
  box-shadow: 0 4px 16px rgba(205, 127, 50, 0.4); 
  transition: all 0.3s; 
  border: none;
  position: relative;
  overflow: hidden;
}
/* 內虛線框 */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(255,255,255,0.4);
  border-radius: 25px;
  pointer-events: none;
}
.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(205, 127, 50, 0.5), var(--glow-copper); 
}

/* ========================================
   STATS BAR (獨立點數區塊)
   ======================================== */
.stats-bar {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 16px;
}
.stats-inner {
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}
.stats-points {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.stats-point {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: all 0.3s;
}
.stats-point:hover { border-color: var(--copper); }
.stats-point-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.stats-point-icon.coin { background: linear-gradient(135deg, var(--copper-light) 0%, var(--copper) 100%); box-shadow: var(--glow-copper); }
.stats-point-icon.bonus { background: linear-gradient(135deg, var(--orange) 0%, var(--copper-dark) 100%); box-shadow: var(--glow-orange); }
.stats-point-icon.gold { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }
.stats-point-icon.silver { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); }
.stats-point-icon.bronze { background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%); }
.stats-point-info { display: flex; flex-direction: column; }
.stats-point-value { font-size: 20px; font-weight: 700; color: var(--copper-light); line-height: 1.2; }
.stats-point-label { font-size: 12px; color: var(--muted); }
.stats-coupon {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(166, 94, 26, 0.08) 100%);
  border: 1px dashed var(--copper);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 14px;
  color: var(--copper-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stats-coupon span { font-size: 18px; font-weight: 700; color: var(--orange); }

/* ========================================
   MOBILE ICON NAV (手機版網格選單)
   ======================================== */
.mobile-icon-nav {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.mobile-icon-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 1 / 1;
  padding: 10px 6px;
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-secondary) 100%);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
  text-decoration: none;
  line-height: 1.3;
}
.mobile-icon-item:hover {
  border-color: var(--copper);
  color: var(--copper-light);
  background: rgba(205, 127, 50, 0.1);
}

/* 隱藏會員選單按鈕 */
.mobile-nav-toggle { display: none !important; }

.nav-section { 
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-secondary) 100%); 
  border: 1px solid var(--line); 
  border-radius: var(--radius-lg); 
  overflow: hidden; 
  margin-bottom: 16px; 
}
.nav-title { 
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%); 
  color: #fff; 
  padding: 14px 18px; 
  font-size: 14px; 
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}
.nav-title:hover {
  background: linear-gradient(135deg, var(--copper-light) 0%, var(--copper) 100%);
}
/* 四角星 */
.nav-title::before {
  content: "";
  width: 14px;
  height: 14px;
  background: #fff;
  clip-path: var(--star4);
}
/* 收合箭頭 */
.nav-title::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255,255,255,0.8);
  border-bottom: 2px solid rgba(255,255,255,0.8);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.nav-section.open .nav-title::after {
  transform: rotate(-135deg);
}
/* 收合內容 */
.nav-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.nav-section.open .nav-collapse {
  max-height: 300px;
}

.nav-item { 
  display: block; 
  padding: 14px 18px; 
  font-size: 14px; 
  color: var(--muted); 
  border-bottom: 1px dashed var(--line); 
  transition: all 0.3s; 
  position: relative; 
}
.nav-item:last-child { border-bottom: none; }
.nav-item::before { 
  content: ""; 
  position: absolute; 
  left: 0; 
  top: 0; 
  bottom: 0; 
  width: 3px; 
  background: linear-gradient(180deg, var(--copper) 0%, var(--orange) 100%); 
  opacity: 0; 
  transition: opacity 0.3s; 
}
.nav-item:hover { 
  background: rgba(205, 127, 50, 0.08); 
  color: var(--copper-light); 
  padding-left: 22px; 
}
.nav-item:hover::before { opacity: 1; }
.nav-item.active { 
  color: var(--copper-light); 
  font-weight: 600; 
  background: rgba(205, 127, 50, 0.08); 
}
.nav-item.active::before { opacity: 1; }

.nav-main { 
  display: block; 
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-secondary) 100%); 
  border: 1px dashed var(--line); 
  border-radius: var(--radius); 
  padding: 14px 18px; 
  font-size: 14px; 
  color: var(--ink); 
  margin-bottom: 10px; 
  transition: all 0.3s; 
}
.nav-main:hover { 
  background: rgba(205, 127, 50, 0.1); 
  color: var(--copper-light); 
  border-color: var(--copper); 
  transform: translateX(4px); 
}
.nav-main.active { 
  background: rgba(205, 127, 50, 0.1); 
  color: var(--copper-light); 
  border-color: var(--copper); 
  font-weight: 600; 
}

.mobile-nav-toggle { 
  display: none; 
  width: 100%; 
  padding: 14px 18px; 
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-secondary) 100%); 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  color: var(--ink); 
  font-size: 14px; 
  font-weight: 600; 
  cursor: pointer; 
  margin-bottom: 12px; 
  font-family: var(--font); 
  transition: all 0.3s; 
}
.mobile-nav-toggle::after { content: " "; font-size: 10px; color: var(--copper); }
.mobile-nav-toggle:hover { border-color: var(--copper); }

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content { 
  flex: 1; 
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-secondary) 100%); 
  border: 1px solid var(--line); 
  border-radius: var(--radius-lg); 
  padding: 28px; 
  min-width: 0; 
  box-shadow: var(--shadow-card);
  position: relative;
}
/* 四角內框 */
.main-content::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--copper);
  border-radius: calc(var(--radius-lg) - 4px);
  opacity: 0.3;
  pointer-events: none;
}

.section-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  flex-wrap: wrap; 
  gap: 16px; 
  margin-bottom: 20px; 
}
.section-title { 
  font-size: 22px; 
  font-family: var(--font-fancy);
  color: var(--ink); 
  margin-bottom: 24px; 
  padding-bottom: 14px; 
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700; 
  position: relative; 
  letter-spacing: 1px;
}
/* 四角星 */
.section-title::before {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--copper-light);
  clip-path: var(--star4);
  filter: drop-shadow(0 0 4px var(--copper-light));
}
.section-title::after { 
  content: ""; 
  position: absolute; 
  left: 0; 
  bottom: 0; 
  width: 100%;
  height: 2px; 
  background: linear-gradient(90deg, var(--copper) 0%, transparent 60%); 
}

/* ========================================
   POINTS ROW
   ======================================== */
.points-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.point-item { 
  flex: 1; 
  min-width: 100px; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%); 
  border: 1px dashed var(--line); 
  border-radius: var(--radius); 
  padding: 14px 16px; 
  transition: all 0.3s; 
}
.point-item:hover { 
  border-color: var(--copper); 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-card-hover); 
}
.point-icon { 
  width: 42px; 
  height: 42px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 14px; 
  font-weight: 700; 
  color: #fff; 
  flex-shrink: 0; 
}
.point-icon.coin { background: linear-gradient(135deg, var(--copper-light) 0%, var(--copper) 100%); box-shadow: var(--glow-copper); }
.point-icon.bonus { background: linear-gradient(135deg, var(--orange) 0%, var(--copper-dark) 100%); box-shadow: var(--glow-orange); }
.point-icon.gold { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); box-shadow: 0 4px 12px rgba(251,191,36,.4); }
.point-icon.silver { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); box-shadow: 0 4px 12px rgba(156,163,175,.4); }
.point-icon.bronze { background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%); box-shadow: 0 4px 12px rgba(205,127,50,.4); }
.point-info { display: flex; flex-direction: column; }
.point-value { font-size: 22px; font-weight: 700; color: var(--copper-light); line-height: 1.2; }
.point-label { font-size: 12px; color: var(--muted); }

/* ========================================
   COUPON INFO
   ======================================== */
.coupon-info { 
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(166, 94, 26, 0.08) 100%); 
  border: 1px dashed var(--copper); 
  border-radius: var(--radius); 
  padding: 14px 20px; 
  font-size: 14px; 
  color: var(--copper-light); 
  margin-bottom: 24px; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}
.coupon-info span { font-size: 20px; font-weight: 700; color: var(--orange); }

/* ========================================
   REFERRAL BOX
   ======================================== */
.referral-box { 
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%); 
  border: 1px dashed var(--line); 
  border-left: 4px solid var(--copper); 
  border-radius: 0 var(--radius) var(--radius) 0; 
  padding: 18px 20px; 
  margin-bottom: 28px; 
}
.referral-code { 
  font-size: 18px; 
  font-weight: 700; 
  color: var(--copper-light); 
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* 四角星 */
.referral-code::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--copper-light);
  clip-path: var(--star4);
}
.referral-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-row { display: flex; gap: 16px; margin-bottom: 18px; }
.form-group { flex: 1; }
.form-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.form-label.required::before { content: "* "; color: var(--orange); }
.form-control { 
  width: 100%; 
  padding: 14px 18px; 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  font-size: 14px; 
  color: var(--ink); 
  background: var(--bg); 
  font-family: var(--font); 
  transition: all 0.3s; 
}
.form-control:focus { 
  outline: none; 
  border-color: var(--copper); 
  box-shadow: 0 0 0 3px rgba(205, 127, 50, 0.15), var(--glow-copper); 
}
.form-control::placeholder { color: var(--muted); opacity: 0.6; }
.form-control[readonly] { background: var(--panel); color: var(--muted); cursor: not-allowed; }
.form-select { 
  appearance: none; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23cd7f32' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); 
  background-repeat: no-repeat; 
  background-position: right 14px center; 
  padding-right: 40px; 
  cursor: pointer; 
}
.form-select option { background: var(--panel); color: var(--ink); }

.btn-submit { 
  display: block; 
  width: 100%; 
  max-width: 300px; 
  margin: 28px auto 0; 
  padding: 16px 32px; 
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%); 
  color: #fff; 
  border: none; 
  border-radius: 28px; 
  font-size: 16px; 
  font-weight: 700; 
  cursor: pointer; 
  font-family: var(--font); 
  transition: all 0.3s; 
  box-shadow: 0 4px 16px rgba(205, 127, 50, 0.4);
  position: relative;
}
.btn-submit::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(255,255,255,0.4);
  border-radius: 25px;
  pointer-events: none;
}
.btn-submit:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(205, 127, 50, 0.5), var(--glow-copper); 
}

/* ========================================
   FILTER BAR
   ======================================== */
.filter-bar { 
  display: flex; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 16px; 
  margin-bottom: 16px; 
  padding: 16px 20px; 
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%); 
  border: 1px dashed var(--line); 
  border-radius: var(--radius); 
}
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-label { font-size: 14px; color: var(--muted); white-space: nowrap; }
.date-range { display: flex; align-items: center; gap: 10px; }
.date-range span { color: var(--muted); }
.date-range .form-control { width: 160px; }
.btn-search { 
  padding: 12px 28px; 
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%); 
  color: #fff; 
  border: none; 
  border-radius: 24px; 
  font-size: 14px; 
  font-weight: 600; 
  cursor: pointer; 
  font-family: var(--font); 
  transition: all 0.3s; 
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3); 
  margin-left: auto; 
}
.btn-search:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 18px rgba(205, 127, 50, 0.4), var(--glow-copper); 
}
.filter-hint { font-size: 12px; color: var(--muted); margin-bottom: 20px; padding-left: 4px; }

/* ========================================
   DATA TABLE
   ======================================== */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead { background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%); }
.data-table th { 
  padding: 14px 16px; 
  text-align: left; 
  font-weight: 600; 
  color: var(--copper-light); 
  border-bottom: 2px solid var(--copper); 
  white-space: nowrap; 
}
.data-table td { padding: 14px 16px; border-bottom: 1px dashed var(--line); color: var(--ink); }
.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: rgba(205, 127, 50, 0.05); }
.change-positive { color: var(--accent-green) !important; font-weight: 600; }
.change-negative { color: var(--accent-red) !important; font-weight: 600; }

/* ========================================
   STATUS BADGES
   ======================================== */
.status-badge { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-pending { background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(166, 94, 26, 0.1) 100%); color: var(--copper-light); border: 1px solid rgba(205, 127, 50, 0.3); }
.status-shipping { background: linear-gradient(135deg, rgba(59,130,246,.2) 0%, rgba(37,99,235,.1) 100%); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }
.status-completed { background: linear-gradient(135deg, rgba(34,197,94,.2) 0%, rgba(22,163,74,.1) 100%); color: var(--accent-green); border: 1px solid rgba(34,197,94,.3); }
.status-cancelled { background: linear-gradient(135deg, rgba(107,114,128,.2) 0%, rgba(75,85,99,.1) 100%); color: var(--muted); border: 1px solid rgba(107,114,128,.3); }
.status-available { background: linear-gradient(135deg, rgba(34,197,94,.2) 0%, rgba(22,163,74,.1) 100%); color: var(--accent-green); border: 1px solid rgba(34,197,94,.3); }
.status-used { background: linear-gradient(135deg, rgba(107,114,128,.2) 0%, rgba(75,85,99,.1) 100%); color: var(--muted); border: 1px solid rgba(107,114,128,.3); }
.status-expired { background: linear-gradient(135deg, rgba(239,68,68,.2) 0%, rgba(220,38,38,.1) 100%); color: var(--accent-red); border: 1px solid rgba(239,68,68,.3); }

.btn-detail { 
  padding: 8px 20px; 
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%); 
  color: #fff; 
  border: none; 
  border-radius: 20px; 
  font-size: 12px; 
  font-weight: 600; 
  cursor: pointer; 
  font-family: var(--font); 
  transition: all 0.3s; 
}
.btn-detail:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4); }

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.5; fill: var(--copper); }
.empty-state div { font-size: 15px; }

/* ========================================
   TAB BAR
   ======================================== */
.tab-bar { 
  display: flex; 
  gap: 8px; 
  margin-bottom: 24px; 
  padding: 6px; 
  background: var(--bg-secondary); 
  border-radius: var(--radius); 
  border: 1px solid var(--line); 
}
.tab-btn { 
  flex: 1; 
  padding: 12px 20px; 
  background: transparent; 
  border: none; 
  border-radius: 8px; 
  font-size: 14px; 
  font-weight: 600; 
  color: var(--muted); 
  cursor: pointer; 
  font-family: var(--font); 
  transition: all 0.3s; 
}
.tab-btn:hover { color: var(--ink); background: var(--panel); }
.tab-btn.active { 
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%); 
  color: #fff; 
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3); 
}

/* ========================================
   COUPON LIST
   ======================================== */
.coupon-count { 
  font-size: 14px; 
  color: var(--copper-light); 
  font-weight: 600; 
  background: rgba(205, 127, 50, 0.1); 
  padding: 8px 16px; 
  border-radius: 20px; 
  border: 1px dashed var(--copper); 
}
.coupon-list { display: flex; flex-direction: column; gap: 16px; }
.coupon-card { 
  display: flex; 
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%); 
  border: 1px dashed var(--line); 
  border-radius: var(--radius-lg); 
  overflow: hidden; 
  transition: all 0.3s; 
}
.coupon-card:hover { border-color: var(--copper); transform: translateX(4px); }
.coupon-card.available { border-left: 4px solid var(--accent-green); }
.coupon-card.used { border-left: 4px solid var(--muted); opacity: 0.7; }
.coupon-card.expired { border-left: 4px solid var(--accent-red); opacity: 0.7; }
.coupon-left { 
  width: 100px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  padding: 20px; 
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-secondary) 100%); 
  border-right: 2px dashed var(--line); 
}
.coupon-icon { font-size: 32px; margin-bottom: 8px; }
.coupon-type { font-size: 12px; font-weight: 600; color: var(--copper-light); }
.coupon-right { flex: 1; padding: 18px 20px; position: relative; }
.coupon-name { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.coupon-desc { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.coupon-expire { font-size: 12px; color: var(--muted); }
.coupon-status { position: absolute; top: 18px; right: 20px; padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 600; }

/* ========================================
   MODAL
   ======================================== */
.modal-overlay { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,.9); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 9999; 
  opacity: 0; 
  visibility: hidden; 
  transition: all 0.3s; 
  padding: 16px;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content { 
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-secondary) 100%); 
  border: 2px solid var(--copper); 
  border-radius: var(--radius-lg); 
  padding: 0; 
  width: 100%; 
  max-width: 600px; 
  max-height: 90vh; 
  overflow-y: auto; 
  transform: scale(0.9); 
  transition: transform 0.3s; 
  box-shadow: 0 25px 80px rgba(0,0,0,.6), var(--glow-copper); 
}
.modal-overlay.show .modal-content { transform: scale(1); }
.modal-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 20px 24px; 
  border-bottom: 1px dashed var(--copper); 
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%); 
}
.modal-title { 
  font-size: 20px; 
  font-weight: 700; 
  font-family: var(--font-fancy);
  color: var(--copper-light); 
  margin: 0; 
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-title::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--copper-light);
  clip-path: var(--star4);
}
.modal-close { 
  width: 36px; 
  height: 36px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: var(--line); 
  border: none; 
  border-radius: 50%; 
  color: var(--ink); 
  font-size: 20px; 
  cursor: pointer; 
  transition: all 0.3s; 
}
.modal-close:hover { background: var(--copper); color: #fff; }
#modalBody { padding: 24px; }

/* ========================================
   ORDER DETAIL
   ======================================== */
.order-info-row { display: flex; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.order-info-row:last-of-type { border-bottom: none; margin-bottom: 20px; }
.order-info-label { width: 100px; flex-shrink: 0; font-size: 14px; color: var(--muted); }
.order-info-value { flex: 1; font-size: 14px; color: var(--ink); }
.order-items-title { 
  font-size: 16px; 
  font-weight: 700; 
  color: var(--copper-light); 
  margin-bottom: 16px; 
  padding-bottom: 10px; 
  border-bottom: 2px solid var(--copper); 
}
.order-item { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
  padding: 14px; 
  background: var(--bg-secondary); 
  border: 1px dashed var(--line); 
  border-radius: var(--radius); 
  margin-bottom: 10px; 
}
.order-item-img { 
  width: 60px; 
  height: 60px; 
  background: linear-gradient(135deg, var(--line) 0%, var(--line-light) 100%); 
  border-radius: 8px; 
  flex-shrink: 0;
  border: 1px solid var(--copper);
}
.order-item-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.order-item-prize { font-size: 13px; color: var(--copper-light); font-weight: 600; }

/* ========================================
   ADDRESS LIST
   ======================================== */
.address-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.address-card { 
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%); 
  border: 1px dashed var(--line); 
  border-radius: var(--radius); 
  padding: 18px 22px; 
  transition: all 0.3s; 
  position: relative; 
  overflow: hidden; 
}
.address-card::before { 
  content: ""; 
  position: absolute; 
  left: 0; 
  top: 0; 
  bottom: 0; 
  width: 3px; 
  background: linear-gradient(180deg, var(--line-light) 0%, var(--line) 100%); 
  transition: all 0.3s; 
}
.address-card:hover { border-color: var(--copper); transform: translateX(4px); }
.address-card:hover::before { background: linear-gradient(180deg, var(--copper) 0%, var(--orange) 100%); }
.address-card.default { border-color: var(--copper); }
.address-card.default::before { background: linear-gradient(180deg, var(--copper) 0%, var(--copper-dark) 100%); }
.address-header { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.address-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.address-phone { color: var(--muted); font-size: 14px; }
.address-default { 
  color: var(--copper-light); 
  font-size: 13px; 
  font-weight: 600; 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  margin-left: auto; 
  background: rgba(205, 127, 50, 0.1); 
  padding: 4px 12px; 
  border-radius: 20px; 
  border: 1px dashed var(--copper); 
}
/* 四角星 */
.address-default::before { 
  content: ""; 
  width: 14px;
  height: 14px;
  background: var(--copper-light);
  clip-path: var(--star4);
}
.address-detail { color: var(--muted); font-size: 14px; line-height: 1.7; word-break: break-all; }
.address-actions { display: flex; gap: 12px; margin-top: 14px; justify-content: flex-end; flex-wrap: wrap; }

/* ========================================
   BUTTONS
   ======================================== */
.btn-small { padding: 10px 24px; border-radius: 24px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; transition: all 0.3s; font-family: var(--font); }
.btn-delete { background: linear-gradient(135deg, var(--line-light) 0%, var(--line) 100%); color: var(--ink); }
.btn-delete:hover { background: linear-gradient(135deg, #4b5563 0%, #374151 100%); transform: translateY(-1px); }
.btn-edit { background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%); color: #fff; box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3); }
.btn-edit:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(205, 127, 50, 0.4), var(--glow-copper); }
.btn-add { 
  display: block; 
  width: 100%; 
  padding: 16px 24px; 
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%); 
  color: var(--muted); 
  border: 2px dashed var(--line-light); 
  border-radius: var(--radius); 
  font-size: 15px; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s; 
  font-family: var(--font); 
}
.btn-add:hover { 
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%); 
  border-color: var(--copper); 
  border-style: solid; 
  color: #fff; 
  box-shadow: var(--glow-copper); 
}

/* ========================================
   MODAL ACTIONS
   ======================================== */
.modal-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.btn-cancel { padding: 14px 40px; background: linear-gradient(135deg, var(--line-light) 0%, var(--line) 100%); color: var(--ink); border: none; border-radius: 28px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: all 0.3s; }
.btn-cancel:hover { background: linear-gradient(135deg, #4b5563 0%, #374151 100%); transform: translateY(-1px); }
.btn-confirm { 
  padding: 14px 40px; 
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%); 
  color: #fff; 
  border: none; 
  border-radius: 28px; 
  font-size: 15px; 
  font-weight: 600; 
  cursor: pointer; 
  font-family: var(--font); 
  transition: all 0.3s; 
  box-shadow: 0 4px 16px rgba(205, 127, 50, 0.4);
  position: relative;
}
.btn-confirm::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(255,255,255,0.4);
  border-radius: 25px;
  pointer-events: none;
}
.btn-confirm:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(205, 127, 50, 0.5), var(--glow-copper); }

/* ========================================
   FOOTER
   ======================================== */
.site-footer { 
  margin-top: 60px; 
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #060709 100%); 
  position: relative;
  border-top: 2px solid var(--copper);
}
/* 頂部四角星裝飾 */
.site-footer::before { 
  content: ""; 
  position: absolute; 
  top: -14px; 
  left: 50%; 
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: var(--copper-light);
  clip-path: var(--star4);
  filter: drop-shadow(0 0 6px var(--copper-light));
}
.site-footer::after {
  content: "";
  position: absolute;
  top: -10px;
  left: calc(50% - 40px);
  width: 14px;
  height: 14px;
  background: var(--copper);
  clip-path: var(--star4);
  box-shadow: 66px 0 0 0 var(--copper);
  filter: drop-shadow(0 0 3px var(--copper));
}

.footer-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 48px 20px; 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 48px; 
}
.footer-title { 
  font-size: 16px; 
  font-weight: 700; 
  font-family: var(--font-fancy);
  color: var(--copper-light); 
  margin-bottom: 18px; 
  padding-bottom: 12px; 
  position: relative;
  letter-spacing: 1px;
}
.footer-title::after { 
  content: ""; 
  position: absolute; 
  left: 0; 
  bottom: 0; 
  width: 40px; 
  height: 2px; 
  background: linear-gradient(90deg, var(--copper) 0%, transparent 100%); 
}
.footer-text { color: var(--muted); font-size: 13px; line-height: 1.8; }
.footer-text a { color: var(--copper); transition: color 0.3s; }
.footer-text a:hover { color: var(--copper-light); }

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--copper); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .points-row { gap: 10px; }
  .point-item { min-width: 80px; padding: 12px; }
}
@media (max-width: 900px) {
  .container { flex-direction: column; }
  .sidebar { width: 100%; }
  
  /* 手機版 sidebar-nav 變成一排 */
  .sidebar-nav { 
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }
  .nav-section {
    display: contents;
  }
  .nav-title {
    display: none;
  }
  .nav-item, .nav-main {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 4px;
    margin: 0;
    border-radius: var(--radius);
    border: 1px dashed var(--line);
    font-size: 12px;
    line-height: 1.3;
  }
  .nav-item::before { display: none; }
  .nav-item:hover { padding-left: 4px; }
  
  /* 手機版隱藏 mobile-icon-nav */
  .mobile-icon-nav { display: none !important; }
  /* 手機版隱藏 main-content 的 points-row */
  .points-row { display: none; }
  /* stats-bar 手機版調整 */
  .stats-points { flex-wrap: wrap; }
  .stats-point { flex: 1 1 45%; min-width: 140px; }
}
@media (max-width: 768px) {
  .header-inner { padding: 10px 12px; }
  .icon-nav { gap: 12px; }
  .icon-link { font-size: 10px; min-width: 40px; padding: 4px 6px; }
  .icon-box { width: 24px; height: 24px; }
  .icon-box svg { width: 18px; height: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding: 36px 16px; }
  .form-row { flex-direction: column; gap: 14px; }
  .main-content { padding: 20px; }
  .points-row { flex-wrap: wrap; }
  .point-item { flex: 1 1 45%; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .btn-search { margin-left: 0; width: 100%; }
  .date-range { flex-wrap: wrap; }
  .date-range .form-control { width: 100%; flex: 1; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .coupon-card { flex-direction: column; }
  .coupon-left { width: 100%; flex-direction: row; gap: 12px; padding: 14px; border-right: none; border-bottom: 2px dashed var(--line); }
  .coupon-status { position: static; margin-top: 10px; }
}
@media (max-width: 480px) {
  .breadcrumb { padding: 12px 16px; font-size: 12px; }
  .section-title { font-size: 18px; }
  .address-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .address-default { margin-left: 0; }
  .address-actions { justify-content: stretch; }
  .btn-small { flex: 1; text-align: center; }
  .modal-actions { flex-direction: column; }
  .btn-cancel, .btn-confirm { width: 100%; }
  .point-item { flex: 1 1 100%; }
  .tab-bar { flex-direction: column; }
  .section-header { flex-direction: column; align-items: flex-start; }
}