/* ============================================
   霸王餐 - 公共样式表
   Bawangcan - Shared Styles
   ============================================ */

/* CSS Variables */
:root {
  --primary: #FF5722;
  --primary-light: #FF7043;
  --primary-dark: #E64A19;
  --primary-bg: #FFF3F0;
  --secondary: #FF9800;
  --accent-green: #4CAF50;
  --accent-red: #F44336;
  --accent-blue: #2196F3;

  --text-primary: #212121;
  --text-secondary: #757575;
  --text-light: #9E9E9E;
  --text-white: #FFFFFF;

  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-card: #FFFFFF;
  --bg-dark: #333333;

  --border-color: #EEEEEE;
  --border-light: #FAFAFA;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

input, button, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* ========== Layout ========== */
.page-container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
}

.main-content {
  flex: 1;
  padding-bottom: 70px;
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  color: white;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}

.header-location {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-search {
  flex: 1;
  height: 34px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  transition: box-shadow 0.2s;
}

.header-search:focus-within {
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-search .search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-light);
  flex-shrink: 0;
}

.header-search input {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 34px;
}

.header-search input::placeholder {
  color: var(--text-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s;
}

.header-icon-btn:hover { background: rgba(255,255,255,0.15); }

.header-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Detail Header (white) */
.header-white {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.header-white .header-logo,
.header-white .header-location {
  color: var(--text-primary);
}

.header-white .header-location {
  color: var(--text-secondary);
}

.header-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.header-back svg {
  width: 22px;
  height: 22px;
}

/* ========== Banner ========== */
.banner-section {
  background: linear-gradient(135deg, #FF5722 0%, #FF7043 50%, #FF9800 100%);
  padding: 20px 16px 24px;
  position: relative;
  overflow: hidden;
}

.banner-section::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.banner-section::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 40px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.banner-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.banner-title {
  text-align: center;
  color: white;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.banner-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ========== User Status Bar ========== */
.user-status-bar {
  background: var(--bg-primary);
  margin: 0 12px 10px;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.status-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.status-info {
  flex: 1;
  min-width: 0;
}

.status-name {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.status-desc .highlight {
  color: var(--primary);
  font-weight: 700;
}

/* Free Ticket Badge */
.free-ticket-badge {
  background: linear-gradient(135deg, #FF5722, #FF7043);
  color: white;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 72px;
}

.free-ticket-label {
  font-size: 11px;
  opacity: 0.9;
}

.free-ticket-status {
  font-size: 13px;
  font-weight: 700;
}

/* Countdown Section */
.countdown-section {
  background: var(--primary-bg);
  margin: 0 12px 10px;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  text-align: center;
}

.countdown-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.countdown-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.countdown-unit {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  min-width: 36px;
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.countdown-sep {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

.countdown-expire {
  font-size: 12px;
  color: var(--accent-red);
  margin-left: 6px;
}

/* ========== Category Tabs ========== */
.category-tabs {
  background: var(--bg-primary);
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: sticky;
  top: 54px;
  z-index: 90;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}

.cat-tab.active {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: var(--primary-light);
  font-weight: 600;
}

.cat-tab:hover:not(.active) {
  background: #EEEEEE;
}

.cat-icon {
  font-size: 15px;
}

/* ========== Filter Bar ========== */
.filter-bar {
  background: var(--bg-primary);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 98px;
  z-index: 80;
}

.filter-item {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
}

.filter-item.active {
  color: var(--primary);
  background: var(--primary-bg);
  font-weight: 600;
}

.filter-sort {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-right: auto;
}

.filter-sort svg {
  width: 13px;
  height: 13px;
}

.filter-toggle {
  width: 36px;
  height: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.filter-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.filter-toggle.active {
  background: var(--primary);
}

.filter-toggle.active::after {
  transform: translateX(12px);
}

/* ========== Trust Banner ========== */
.trust-banner {
  margin: 10px 12px;
  background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.trust-banner:hover { transform: translateY(-1px); }

.trust-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  font-size: 12px;
}

.trust-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.trust-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.trust-tag {
  font-size: 11px;
  color: var(--text-secondary);
}

.trust-arrow {
  color: var(--text-light);
  font-size: 16px;
  flex-shrink: 0;
}

/* ========== Restaurant Card ========== */
.shop-list {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.shop-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.shop-card-header {
  padding: 14px 14px 0;
  display: flex;
  gap: 12px;
}

.shop-img-wrap {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, #FFE0B2, #FFCCBC);
}

.shop-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.55);
  color: white;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.shop-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.shop-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-brand {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.shop-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-source {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.shop-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
}

.shop-activities-count {
  font-size: 12px;
  color: var(--text-secondary);
}

.shop-card-body {
  padding: 10px 14px 0;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px dashed var(--border-color);
}

.activity-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-light);
  flex-shrink: 0;
}

.activity-time svg {
  width: 14px;
  height: 14px;
}

.activity-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.tag-rebate {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-red {
  background: #FFEBEE;
  color: var(--accent-red);
  border: 1px solid #FFCDD2;
}

.tag-orange {
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFE0B2;
}

.tag-green {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

.tag-gray {
  background: #F5F5F5;
  color: var(--text-secondary);
  border: 1px solid #EEEEEE;
}

.activity-quota {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.quota-bar {
  width: 48px;
  height: 6px;
  background: #EEEEEE;
  border-radius: 3px;
  overflow: hidden;
}

.quota-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.quota-text {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.activity-arrow {
  color: var(--border-color);
  flex-shrink: 0;
}

.shop-card-footer {
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-apply {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(255,87,34,0.3);
}

.btn-apply:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(255,87,34,0.4);
}

.btn-apply:active {
  transform: scale(0.98);
}

/* ========== Detail Page ========== */

.detail-hero {
  background: var(--bg-primary);
  padding: 0 16px 16px;
}

.detail-shop-header {
  padding-top: 14px;
}

.detail-shop-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.detail-tag {
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* Hot Dishes Section */
.hot-dishes-section {
  background: var(--bg-primary);
  margin-top: 10px;
  padding: 14px 16px;
}

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

.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}

.section-more {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Rebate Info Section */
.rebate-section {
  background: var(--bg-primary);
  margin-top: 10px;
  padding: 16px;
}

.rebate-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.rebate-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.rebate-title span {
  color: var(--primary);
}

.rebate-stats {
  font-size: 13px;
  color: var(--text-light);
}

/* Activity Requirements */
.requirements-section {
  background: var(--bg-primary);
  margin-top: 10px;
  padding: 16px;
}

.req-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.req-item:last-child { border-bottom: none; }

.req-label {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  width: 80px;
}

.req-value {
  font-size: 14px;
  color: var(--text-primary);
  flex: 1;
  line-height: 1.5;
}

.req-value .highlight-num {
  color: var(--primary);
  font-weight: 800;
  font-size: 17px;
}

.req-value .highlight-text {
  color: var(--primary);
  font-weight: 600;
}

.req-value .sub-text {
  font-size: 12px;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}

.req-edit {
  font-size: 13px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.req-desc-box {
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.req-desc-box em {
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

.action-bar-links {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.action-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.action-link svg {
  width: 16px;
  height: 16px;
}

/* ========== Bottom Nav ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 0 env(safe-area-inset-bottom, 8px);
  border-top: 1px solid var(--border-color);
  z-index: 200;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 16px;
  color: var(--text-light);
  transition: color 0.2s;
  position: relative;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item svg {
  width: 23px;
  height: 23px;
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
}

.nav-item.has-dot::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
}

.bottom-action-btn {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-xl);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255,87,34,0.35);
  z-index: 199;
  transition: all 0.2s;
}

.bottom-action-btn:hover {
  transform: translateX(-50%) scale(1.02);
  box-shadow: 0 8px 26px rgba(255,87,34,0.45);
}

.bottom-action-btn:active {
  transform: translateX(-50%) scale(0.99);
}

/* ========== My Page ========== */
.my-header {
  background: linear-gradient(135deg, #FF5722 0%, #FF9800 100%);
  padding: 20px 16px 28px;
  position: relative;
  overflow: hidden;
}

.my-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}

.my-header::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.my-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.my-brand {
  color: white;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
}

.my-header-actions {
  display: flex;
  gap: 12px;
}

.my-header-btn {
  color: white;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.my-header-btn:hover { opacity: 1; }

.my-header-btn svg {
  width: 22px;
  height: 22px;
}

.my-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.my-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

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

.my-user-info {
  flex: 1;
}

.my-user-id {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.my-credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: white;
  font-weight: 500;
}

/* Earnings Card */
.earnings-card {
  background: var(--bg-primary);
  margin: -16px 12px 0;
  border-radius: var(--radius-xl);
  padding: 18px 16px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.earnings-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.earnings-left h3 {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 4px;
}

.earnings-amount {
  font-size: 30px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.earnings-amount small {
  font-size: 15px;
  font-weight: 700;
}

.earnings-detail-btn {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 2px;
}

.earnings-stats {
  display: flex;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-right: 1px solid var(--border-color);
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.earnings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.bean-balance {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bean-icon {
  font-size: 22px;
}

.bean-info { }

.bean-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.bean-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.earnings-btns {
  display: flex;
  gap: 8px;
}

.btn-outline {
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-primary-sm {
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--primary);
  color: white;
  transition: all 0.2s;
}

.btn-primary-sm:hover {
  background: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(255,87,34,0.3);
}

/* VIP Card */
.vip-card-wrapper {
  display: flex;
  gap: 10px;
  margin: 12px 12px 0;
}

.vip-card {
  flex: 1;
  background: linear-gradient(135deg, #4A3428, #2D1F16);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  color: white;
  position: relative;
  overflow: hidden;
}

.vip-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,215,0,0.1);
  border-radius: 50%;
}

.vip-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.vip-tier {
  background: linear-gradient(135deg, #FFD700, #FFA000);
  color: #4A3428;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
  display: inline-block;
}

.vip-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.activate-btn {
  width: 100%;
  margin-top: 10px;
  padding: 7px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s;
  position: relative;
  z-index: 1;
}

.activate-btn:hover { background: rgba(255,255,255,0.25); }

/* Red Packet Banner */
.red-packet-banner {
  margin: 12px 12px 0;
  background: linear-gradient(135deg, #FF5252, #FF1744);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
}

.red-packet-banner::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.packet-info h4 {
  font-size: 17px;
  font-weight: 800;
}

.packet-info p {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

.packet-amount {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.packet-amount small {
  font-size: 14px;
}

.packet-btn {
  background: white;
  color: var(--accent-red);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 10px;
}

/* Notice Bar */
.notice-bar {
  margin: 12px 12px 0;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.notice-tag {
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.notice-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-btn {
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Order Tabs */
.order-tabs {
  margin: 12px 12px 0;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 14px 16px 10px;
}

.order-tabs-grid {
  display: flex;
  justify-content: space-around;
}

.order-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}

.order-tab-item svg {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
}

.order-tab-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.order-tab-badge {
  position: absolute;
  top: -2px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--accent-red);
  color: white;
  border-radius: 8px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-weight: 600;
}

/* Menu Grid */
.menu-grid {
  margin: 12px 12px 0;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 0;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}

.menu-item:hover { transform: scale(1.05); }

.menu-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.menu-icon-wrap.orange { background: #FFF3E0; }
.menu-icon-wrap.pink { background: #FCE4EC; }
.menu-icon-wrap.amber { background: #FFF8E1; }
.menu-icon-wrap.red { background: #FFEBEE; }
.menu-icon-wrap.blue { background: #E3F2FD; }

.menu-item-label {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 500;
}

.menu-item-dot {
  font-size: 10px;
  color: var(--accent-red);
  background: var(--accent-red);
  color: white;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
  transform: scale(0.85);
}

/* Business Entry Cards */
.business-cards {
  margin: 12px 12px 0;
  display: flex;
  gap: 10px;
}

.biz-card {
  flex: 1;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.biz-card:hover { transform: translateY(-2px); }

.biz-icon {
  font-size: 32px;
}

.biz-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.biz-info p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.go-tag {
  color: var(--primary);
  font-weight: 700;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-in {
  animation: fadeInUp 0.4s ease-out both;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }

/* Utility */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.font-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }

/* SVG Icons helper */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
}

/* ========== Trust Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-overlay .modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.trust-modal {
  background: var(--bg-primary);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85dvh;
  overflow-y: auto;
  padding: 24px 18px 28px;
  position: relative;
  z-index: 1;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

.modal-overlay.show .trust-modal {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9E9E9E;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.modal-close-btn:hover { background: #EEEEEE; color: #666; }

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding-right: 36px;
}

.modal-emoji {
  font-size: 26px;
}

.modal-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-title em {
  color: var(--primary);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(255,87,34,0.3);
  text-underline-offset: 3px;
}

.modal-deco-icon {
  width: 70px;
  height: 70px;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.85;
}

.modal-reason-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.reason-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.reason-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.reason-icon-box.green { background: #E8F5E9; }
.reason-icon-box.blue { background: #E3F2FD; }

.reason-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.reason-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.modal-guarantee-box {
  background: linear-gradient(135deg, #F1F8E9, #E8F5E9);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 20px;
}

.guarantee-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.guarantee-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.5;
}

.modal-confirm-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255,87,34,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.modal-confirm-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 22px rgba(255,87,34,0.4);
}
