/* ============================================
   南能小子·生态公社 — 主样式表
   390×844 移动端设计，等比缩放居中
   ============================================ */

/* === CSS Variables === */
:root {
  --bg: #FFF8F0;
  --bg-cream: #FFFDF5;
  --white: #FFFFFF;
  --green: #2D8A4E;
  --green-light: #E8F5E9;
  --green-dark: #1B5E20;
  --orange: #FF6B35;
  --orange-light: #FFF3E0;
  --text: #1A1A1A;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-light: #AAAAAA;
  --border: #F0EDE5;
  --border-light: #F5F2EB;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --nav-height: 70px;
  --status-height: 44px;
  --page-width: 390px;
  --page-height: 844px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-stack);
  background: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* === App Container === */
#app-container {
  position: relative;
  width: var(--page-width);
  height: var(--page-height);
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transform-origin: top left;
  background: var(--bg);
}

/* === Page Area === */
.page-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - var(--nav-height));
  overflow: hidden;
}

/* === Status Bar === */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  height: var(--status-height);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.status-bar .time {
  font-size: 15px;
}

.status-bar .icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-bar .icons img {
  height: 14px;
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  -webkit-overflow-scrolling: touch;
}

.page.active {
  opacity: 1;
  pointer-events: auto;
}

.page::-webkit-scrollbar {
  width: 0;
  display: none;
}

/* === Header === */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 12px;
  flex-shrink: 0;
}

.page-header .title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.page-header .back-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  cursor: pointer;
  font-size: 20px;
  border: none;
  color: var(--text);
}

.page-header .action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  cursor: pointer;
  font-size: 16px;
  border: none;
  position: relative;
}

.page-header .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  border: 1.5px solid white;
}

/* === Bottom Navigation === */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 8px 0 12px;
  z-index: 10;
}

.bottom-nav.nav-6items {
  justify-content: space-between;
  padding: 8px 4px 10px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px 10px;
  transition: all 0.2s;
  min-width: 50px;
}

.nav-6items .nav-item {
  padding: 4px 6px;
  min-width: 44px;
}

.nav-item .nav-icon {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s;
}

.nav-item .nav-label {
  font-size: 10px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-item.active .nav-label {
  color: var(--green);
  font-weight: 600;
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
}

/* === Cards === */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 8px 16px;
  box-shadow: var(--shadow-sm);
}

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

.card-header .card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.card-header .card-badge {
  font-size: 11px;
  color: var(--orange);
  background: var(--orange-light);
  padding: 3px 10px;
  border-radius: 20px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--green);
  color: white;
}

.btn-primary:hover { background: var(--green-dark); }

.btn-orange {
  background: var(--orange);
  color: white;
}

.btn-orange:hover { background: #E55A2B; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green);
}

.btn-outline:hover { background: var(--green-light); }

.btn-block {
  display: flex;
  width: calc(100% - 32px);
  margin: 16px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 20px;
}

/* ==========================================
   Page 1: 首页
   ========================================== */

/* Welcome Section */
.welcome-section {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.welcome-text .greeting {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.welcome-text .subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.robot-avatar-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  padding: 8px 14px;
  border-radius: 25px;
}

.robot-avatar-card img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

.robot-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
}

.robot-tag {
  font-size: 10px;
  color: var(--green);
  background: rgba(255,255,255,0.7);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Action Cards */
.action-cards {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 8px;
}

.action-card {
  flex: 1;
  border-radius: var(--radius-md);
  padding: 16px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.action-card.booking {
  background: linear-gradient(135deg, #FF6B35, #FF8F62);
}

.action-card.shop {
  background: linear-gradient(135deg, #2D8A4E, #4CAF50);
}

.action-card .ac-icon {
  font-size: 28px;
}

.action-card .ac-title {
  font-size: 16px;
  font-weight: 700;
}

.action-card .ac-desc {
  font-size: 11px;
  opacity: 0.85;
}

/* Points Balance */
.points-card {
  background: linear-gradient(135deg, #1B5E20, #2D8A4E);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 8px 16px;
  color: white;
}

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

.points-card .points-label {
  font-size: 13px;
  opacity: 0.85;
}

.points-card .points-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
}

.points-card .points-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.75;
  margin-top: 4px;
}

/* Records List */
.records-section {
  padding: 0 16px;
}

.records-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 0;
}

.record-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.record-icon-box.recycle { background: #E8F5E9; }
.record-icon-box.transport { background: #E3F2FD; }
.record-icon-box.oldstuff { background: #FFF3E0; }
.record-icon-box.energy { background: #F3E5F5; }

.record-info { flex: 1; }

.record-info .record-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.record-info .record-detail {
  font-size: 12px;
  color: var(--text-secondary);
}

.record-info .record-time {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.record-points {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

/* ==========================================
   Page 2: 预约
   ========================================== */

.booking-content {
  padding: 0 16px;
}

/* Address Section */
.address-section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.address-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.address-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Type Selector */
.type-selector {
  margin-bottom: 12px;
}

.type-selector .section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.type-item {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.type-item:hover { border-color: var(--green); }

.type-item.active {
  border-color: var(--green);
  background: var(--green-light);
}

.type-item .type-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.type-item .type-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Time Slots */
.time-slots {
  margin-bottom: 12px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.slot-row {
  display: flex;
  gap: 8px;
}

.slot-item {
  flex: 1;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 25px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.slot-item:hover { border-color: var(--green); }

.slot-item.active {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green);
  font-weight: 600;
}

/* Date Picker */
.date-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.date-item {
  flex: 1;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 25px;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.date-item:hover { border-color: var(--green); }

.date-item.active {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green);
  font-weight: 600;
}

/* Estimate */
.estimate-section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

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

.estimate-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
}

/* ==========================================
   Page 3: 碳汇
   ========================================== */

/* Gauge Dashboard */
.gauge-dashboard {
  background: white;
  border-radius: var(--radius-lg);
  margin: 8px 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.gauge-title {
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 16px;
}

.gauge-container {
  position: relative;
  width: 180px;
  height: 100px;
  margin: 0 auto 12px;
  overflow: hidden;
}

.gauge-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) 0deg,
    var(--green) 171deg,
    #E8E8E8 171deg,
    #E8E8E8 360deg
  );
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

.gauge-inner {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.gauge-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.gauge-unit {
  font-size: 12px;
  color: var(--text-muted);
}

.gauge-pct {
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
  margin-top: 4px;
}

.gauge-goal {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 10px;
  margin-bottom: 4px;
}

.gauge-goal span {
  color: var(--green);
  font-weight: 600;
}

.gauge-decor {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,138,78,0.1), transparent 70%);
}

/* Carbon Stats Cards */
.carbon-stats-row {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 8px;
}

.carbon-stat-card {
  flex: 1;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.carbon-stat-card .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.carbon-stat-card .stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.carbon-stat-card .stat-value.green { color: var(--green); }

.carbon-stat-card .stat-change {
  font-size: 11px;
  color: var(--green);
  margin-top: 2px;
}

/* Rules Card */
.rules-card {
  background: white;
  border-radius: var(--radius-md);
  margin: 8px 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

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

.rules-card .rules-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.rule-item .rule-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--bg);
}

.rule-item .rule-info { flex: 1; }

.rule-item .rule-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.rule-item .rule-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.rule-item .rule-reward {
  text-align: right;
}

.rule-item .rule-points {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

.rule-item .rule-carbon {
  font-size: 10px;
  color: var(--text-light);
}

/* Ranking Entry Cards */
.ranking-entry-cards {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 8px;
}

/* Other Carbon Actions Entry */
.other-actions-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #E8F5E9, #FFF8E1);
  border-radius: var(--radius-md);
  margin: 12px 16px;
  padding: 18px 16px;
  box-shadow: 0 3px 16px rgba(45,138,78,0.2);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 5px solid var(--green);
  position: relative;
  animation: oa-pulse 2s ease-in-out 1;
}

@keyframes oa-pulse {
  0% { box-shadow: 0 3px 16px rgba(45,138,78,0.1); }
  50% { box-shadow: 0 3px 20px rgba(45,138,78,0.35); }
  100% { box-shadow: 0 3px 16px rgba(45,138,78,0.2); }
}

.other-actions-card:active { transform: scale(0.98); }
.other-actions-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(45,138,78,0.3);
}

.other-actions-card .oa-icon {
  font-size: 42px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #C8E6C9, #A5D6A7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(45,138,78,0.15);
}

.other-actions-card .oa-info { flex: 1; }

.other-actions-card .oa-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.other-actions-card .oa-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.other-actions-card .oa-arrow {
  font-size: 24px;
  color: var(--green);
  font-weight: 700;
}

.ranking-entry {
  flex: 1;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s;
}

.ranking-entry:hover { transform: translateY(-2px); }

.ranking-entry .entry-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.ranking-entry .entry-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.ranking-entry .entry-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================
   Page 4: 商城
   ========================================== */

.shop-banner {
  background: linear-gradient(135deg, #E8F5E9, #FFF8E1);
  margin: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-banner .banner-info .banner-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.shop-banner .banner-info .banner-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
}

.shop-banner .banner-info .banner-value span {
  font-size: 14px;
  font-weight: 500;
}

.shop-banner .banner-icon {
  font-size: 40px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.category-tab {
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--white);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.category-tab.active {
  background: var(--green);
  color: white;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s;
}

.product-card:hover { transform: translateY(-3px); }

.product-card .product-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: var(--bg-cream);
  padding: 16px;
}

.product-card .product-emoji {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, var(--bg-cream), var(--green-light));
}

.product-card .product-info {
  padding: 12px;
}

.product-card .product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.product-card .product-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-card .product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card .product-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--orange);
}

.product-card .product-price span {
  font-size: 11px;
  font-weight: 500;
}

/* ==========================================
   Page 5: 我的
   ========================================== */

.profile-header {
  background: white;
  margin: 16px;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-light);
  margin-bottom: 12px;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.profile-level {
  font-size: 12px;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 14px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 4px;
}

.profile-id {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Stats Row */
.profile-stats {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 8px;
}

.profile-stat {
  flex: 1;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.profile-stat .stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 2px;
}

.profile-stat .stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* Menu List */
.menu-list {
  margin: 8px 16px;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--border-light);
}

.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--bg-cream); }

.menu-item .menu-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-item .menu-icon {
  font-size: 20px;
}

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

.menu-item .menu-arrow {
  color: var(--text-light);
  font-size: 14px;
}

/* ==========================================
   Page 6: 排行榜
   ========================================== */

/* Period Tabs */
.period-tabs {
  display: flex;
  margin: 0 16px 8px;
  background: var(--border-light);
  border-radius: 12px;
  padding: 3px;
}

.period-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.period-tab.active {
  background: white;
  color: var(--green);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Dimension Tabs */
.dim-tabs {
  display: flex;
  gap: 6px;
  padding: 0 16px 8px;
}

.dim-tab {
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.dim-tab.active {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green);
}

/* Reward Card */
.reward-info-card {
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
  border-radius: var(--radius-md);
  margin: 8px 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reward-info-card .reward-badge {
  font-size: 28px;
}

.reward-info-card .reward-text {
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
}

.reward-info-card .reward-text strong {
  color: var(--orange);
}

/* Podium */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 16px 16px 0;
  height: 200px;
}

.podium-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding-top: 12px;
  position: relative;
}

.podium-spot.rank-1 {
  background: linear-gradient(to top, #FFD700, #FFF8E1);
  height: 160px;
  order: 2;
}

.podium-spot.rank-2 {
  background: linear-gradient(to top, #C0C0C0, #F5F5F5);
  height: 130px;
  order: 1;
}

.podium-spot.rank-3 {
  background: linear-gradient(to top, #CD7F32, #FFF3E0);
  height: 100px;
  order: 3;
}

.podium-spot .podium-badge {
  font-size: 24px;
  margin-bottom: 4px;
}

.podium-spot .podium-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.podium-spot .podium-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.podium-spot .podium-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
}

.podium-spot .podium-rank {
  position: absolute;
  bottom: 8px;
  font-size: 32px;
  font-weight: 800;
  color: rgba(0,0,0,0.06);
}

/* Ranking List */
.ranking-list {
  margin: 16px;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}

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

.ranking-item .rank-num {
  width: 28px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}

.ranking-item .rank-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.ranking-item .rank-info { flex: 1; }

.ranking-item .rank-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.ranking-item .rank-carbon {
  font-size: 11px;
  color: var(--text-muted);
}

.ranking-item .rank-score {
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
}

/* My Rank Bar */
.my-rank-bar {
  margin: 0 16px 16px;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green);
}

.my-rank-bar .my-rank-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.my-rank-bar .my-rank-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
}

.my-rank-bar .my-rank-name {
  font-size: 14px;
  font-weight: 600;
}

.my-rank-bar .my-rank-score {
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
}

/* ==========================================
   Admin Panel
   ========================================== */

.admin-page {
  background: #F5F7FA;
  padding: 0 !important;
}

.admin-header {
  background: var(--green);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 5;
}

.admin-header .admin-title {
  font-size: 18px;
  font-weight: 700;
}

.admin-header .admin-back {
  font-size: 14px;
  opacity: 0.8;
  cursor: pointer;
  border: none;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 6px 14px;
  border-radius: 15px;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: white;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 52px;
  z-index: 4;
}

.admin-tab {
  padding: 7px 16px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background: var(--bg);
  color: var(--text-secondary);
  white-space: nowrap;
}

.admin-tab.active {
  background: var(--green);
  color: white;
}

.admin-content {
  padding: 16px;
}

.admin-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

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

.admin-card .ac-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.admin-form-group {
  margin-bottom: 12px;
}

.admin-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-stack);
  transition: border-color 0.2s;
  background: var(--bg-cream);
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.admin-form-row {
  display: flex;
  gap: 10px;
}

.admin-form-row .admin-form-group {
  flex: 1;
  margin-bottom: 0;
}

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

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

.admin-item-row .ai-info { flex: 1; }

.admin-item-row .ai-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.admin-item-row .ai-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-btn-danger {
  background: #E53935;
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.admin-btn-danger:hover { background: #C62828; }

.admin-btn-sm {
  background: var(--green);
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.admin-btn-sm:hover { background: var(--green-dark); }

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

/* === Admin Entry Button === */
.admin-entry {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: transform 0.2s;
}

.admin-entry:hover { transform: scale(1.1); }

/* ==========================================
   Page 7: ESG服务
   ========================================== */

/* ESG Banner */
.esg-banner {
  background: linear-gradient(135deg, #1B5E20, #2D8A4E, #43A047);
  margin: 12px 16px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.esg-banner .esg-banner-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.esg-banner .esg-banner-desc {
  font-size: 12px;
  opacity: 0.85;
}

.esg-banner .esg-banner-icon {
  font-size: 48px;
}

/* ESG Score Card */
.esg-score-card {
  background: white;
  border-radius: var(--radius-md);
  margin: 8px 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.esg-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.esg-badge {
  background: linear-gradient(135deg, #FFB300, #FFC107);
  color: #333;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 12px;
}

.esg-scores-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.esg-score-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.esg-score-label {
  width: 52px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  flex-shrink: 0;
}

.esg-score-bar-wrap {
  flex: 1;
  height: 10px;
  background: var(--border-light);
  border-radius: 5px;
  overflow: hidden;
}

.esg-score-bar {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--green), #66BB6A);
  transition: width 0.8s ease;
}

.esg-score-val {
  width: 28px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

/* ESG Section Title */
.esg-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding: 14px 16px 10px;
}

/* ESG Services Grid */
.esg-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}

.esg-service-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

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

.esg-service-card .service-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.esg-service-card .service-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.esg-service-card .service-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ESG News List */
.esg-news-list {
  margin: 0 16px;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.esg-news-item {
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--border-light);
}

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

.esg-news-item:hover { background: var(--bg-cream); }

.esg-news-item .news-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.news-tag.policy { background: #E8F5E9; color: var(--green-dark); }
.news-tag.industry { background: #E3F2FD; color: #1565C0; }
.news-tag.trend { background: #FFF3E0; color: #E65100; }
.news-badge.new { background: #FFEBEE; color: #C62828; }

.esg-news-item .news-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}

.esg-news-item .news-date {
  font-size: 11px;
  color: var(--text-light);
}

/* ESG CTA Card */
.esg-cta-card {
  background: linear-gradient(135deg, #E8F5E9, #FFF8E1);
  margin: 12px 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.esg-cta-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.esg-cta-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ==========================================
   Modals (Orders, Bookings, Carbon Action)
   ========================================== */

.app-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 50;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  height: 44px;
  background: white;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: rgba(0,0,0,0.05);
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 12px 16px;
}

/* Order/Booking Item */
.order-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-item .order-emoji {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--bg-cream);
  flex-shrink: 0;
}

.order-item .order-info {
  flex: 1;
}

.order-item .order-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.order-item .order-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.order-item .order-cost {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}

.order-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 2px;
}

.order-status.completed { background: #E8F5E9; color: var(--green); }
.order-status.shipping { background: #FFF3E0; color: var(--orange); }
.order-status.pending { background: #E3F2FD; color: #1565C0; }

/* === Other Carbon Modal Tabs === */
.oa-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px 8px;
}

.oa-tab {
  flex: 1;
  padding: 8px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.oa-tab.active {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green);
}

/* Linked App Item in modal */
.linked-app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.linked-app-item .la-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--bg-cream);
  flex-shrink: 0;
}

.linked-app-item .la-info { flex: 1; }

.linked-app-item .la-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.linked-app-item .la-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.la-btn {
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.la-btn.linked {
  background: var(--green-light);
  color: var(--green);
}

.la-btn.unlinked {
  background: var(--green);
  color: white;
}

/* Certificate Form */
.cert-form-group {
  margin-bottom: 14px;
}

.cert-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.cert-form-group select,
.cert-form-group input,
.cert-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font-stack);
  background: white;
  transition: border-color 0.2s;
}

.cert-form-group select:focus,
.cert-form-group input:focus,
.cert-form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.cert-photo-upload {
  width: 100%;
  height: 100px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: var(--bg-cream);
  transition: border-color 0.2s;
}

.cert-photo-upload:hover { border-color: var(--green); }

.cert-photo-upload .upload-icon { font-size: 28px; }
.cert-photo-upload .upload-text { font-size: 12px; color: var(--text-muted); }

.cert-notice {
  background: #FFF3E0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Carbon Record Item */
.carbon-record-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.carbon-record-item .cr-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cr-icon.approved { background: #E8F5E9; }
.cr-icon.pending { background: #FFF3E0; }
.cr-icon.rejected { background: #FFEBEE; }

.carbon-record-item .cr-info { flex: 1; }

.carbon-record-item .cr-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.carbon-record-item .cr-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.carbon-record-item .cr-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.cr-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
}

.cr-status.approved { background: #E8F5E9; color: var(--green); }
.cr-status.pending { background: #FFF3E0; color: var(--orange); }
.cr-status.rejected { background: #FFEBEE; color: #C62828; }

.carbon-record-item .cr-reward {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

/* Settings Items */
.settings-group {
  background: white;
  border-radius: var(--radius-md);
  margin: 8px 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--border-light);
}

.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: var(--bg-cream); }

.settings-item .si-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-item .si-icon { font-size: 18px; }
.settings-item .si-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.settings-item .si-value {
  font-size: 12px;
  color: var(--text-muted);
}

.settings-item .si-arrow {
  font-size: 14px;
  color: var(--text-light);
}

/* Toggle Switch */
.toggle-switch {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

.toggle-switch.on { background: var(--green); }

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
}

.toggle-switch.on::after { transform: translateX(18px); }

/* About Page */
.about-logo {
  text-align: center;
  padding: 30px 20px;
}

.about-logo .logo-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.about-logo .logo-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.about-logo .logo-version {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-desc {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  padding: 0 24px 20px;
}

/* Help Items */
.help-faq-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 0 16px 8px;
  box-shadow: var(--shadow-sm);
}

.help-faq-item .faq-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.help-faq-item .faq-a {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Booking Status */
.booking-status.completed { background: #E8F5E9; color: var(--green); }
.booking-status.pending { background: #FFF3E0; color: var(--orange); }
.booking-status.cancelled { background: #FFEBEE; color: #C62828; }

/* Carbon Rule Action Button */
.rule-action-btn {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.rule-action-btn.book {
  background: var(--orange-light);
  color: var(--orange);
}

.rule-action-btn.record {
  background: var(--green-light);
  color: var(--green);
}

.rule-action-btn:hover { opacity: 0.8; }

/* Carbon Action Form */
.ca-form-group {
  margin-bottom: 14px;
}

.ca-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.ca-form-group input,
.ca-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font-stack);
  background: var(--bg-cream);
}

.ca-form-group input:focus,
.ca-form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.ca-estimate {
  background: var(--green-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 14px 0;
  display: flex;
  justify-content: space-around;
}

.ca-estimate-item {
  text-align: center;
}

.ca-estimate-item .est-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
}

.ca-estimate-item .est-label {
  font-size: 11px;
  color: var(--text-muted);
}

.ca-notice {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
  background: var(--orange-light);
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Linked Apps Section */
.linked-apps-card {
  background: white;
  border-radius: var(--radius-md);
  margin: 8px 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

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

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

.linked-app-item .la-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--bg);
}

.linked-app-item .la-info { flex: 1; }

.linked-app-item .la-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.linked-app-item .la-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.linked-app-item .la-btn {
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.la-btn.linked {
  background: var(--green-light);
  color: var(--green);
}

.la-btn.unlinked {
  background: var(--orange);
  color: white;
}

/* Admin Carbon Review */
.ca-review-item {
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--orange);
}

.ca-review-item.approved { border-left-color: var(--green); }
.ca-review-item.rejected { border-left-color: #C62828; }

.ca-review-item .car-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ca-review-item .car-icon {
  font-size: 20px;
}

.ca-review-item .car-title {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}

.ca-review-item .car-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
}

.car-status.pending { background: #FFF3E0; color: var(--orange); }
.car-status.approved { background: #E8F5E9; color: var(--green); }
.car-status.rejected { background: #FFEBEE; color: #C62828; }

.ca-review-item .car-detail {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.ca-review-item .car-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.car-meta .car-reward {
  color: var(--green);
  font-weight: 600;
}

.car-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.car-actions button {
  flex: 1;
  padding: 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.car-actions .btn-approve {
  background: var(--green);
  color: white;
}

.car-actions .btn-reject {
  background: #FFEBEE;
  color: #C62828;
}
