/* 西马休闲农场H5预约核销应用 - 全局样式 */

/* CSS变量定义 - 统一设计系统 */
:root {
  /* 主题色 - 绿色农场风格 */
  --primary-color: #2d5a27;
  --primary-light: #4a8c42;
  --primary-dark: #1a3a16;
  
  /* 辅助色 */
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  
  /* 中性色 */
  --bg-color: #f5f7f4;
  --card-bg: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  
  /* 间距系统 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* 圆角 */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* 字体 */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* 通用容器 */
.container {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* 卡片组件 */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-md);
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

.btn-block {
  width: 100%;
}

/* 表单样式 */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  font-size: 0.875rem;
}

.form-label .required {
  color: var(--danger-color);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease;
  min-height: 44px;
  background: var(--card-bg);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-input.error {
  border-color: var(--danger-color);
}

.form-error {
  color: var(--danger-color);
  font-size: 0.75rem;
  margin-top: var(--spacing-xs);
}

.form-select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  cursor: pointer;
  min-height: 44px;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* 单选按钮组 */
.radio-group {
  display: flex;
  gap: var(--spacing-lg);
}

.radio-item {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-item input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: var(--spacing-sm);
  accent-color: var(--primary-color);
}

/* 复选框 */
.checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: var(--spacing-sm);
  accent-color: var(--primary-color);
}

/* 文本域 */
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* 状态标签 */
.status-tag {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-verified {
  background: #d1fae5;
  color: #065f46;
}

.status-expired {
  background: #fee2e2;
  color: #991b1b;
}

.status-yes {
  background: #dbeafe;
  color: #1e40af;
}

.status-no {
  background: #f3f4f6;
  color: #6b7280;
}

/* 列表项 */
.list-item {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.list-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.list-item-title {
  font-weight: 600;
  color: var(--text-primary);
}

.list-item-content {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.list-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-color);
}

/* 头部导航 */
.header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: var(--spacing-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-title {
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
}

.header-back {
  position: absolute;
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-sm);
}

/* 底部导航 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  display: flex;
  justify-content: space-around;
  padding: var(--spacing-sm) 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-secondary);
  padding: var(--spacing-xs) var(--spacing-md);
  transition: color 0.3s ease;
}

.tab-item.active {
  color: var(--primary-color);
}

.tab-item-icon {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.tab-item-text {
  font-size: 0.75rem;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
}

.empty-state-text {
  font-size: 1rem;
}

/* 加载状态 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-xl);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  max-width: 400px;
  width: 100%;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-body {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* 统计卡片 */
.stat-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* 网格布局 */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 工具类 */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-danger {
  color: var(--danger-color);
}

.text-success {
  color: var(--success-color);
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* 页面容器 - 为底部导航留出空间 */
.page-container {
  padding-bottom: calc(60px + var(--spacing-md));
}

/* 隐藏元素 */
.hidden {
  display: none !important;
}

/* 登录页样式 */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.login-header {
  padding: var(--spacing-xl);
  text-align: center;
  color: white;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: 2.5rem;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.login-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
}

.login-form {
  flex: 1;
  background: var(--card-bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--spacing-xl);
}

/* 预约码展示 */
.qrcode-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  margin: var(--spacing-md) 0;
}

.qrcode-image {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--spacing-md);
}

.reserve-code {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 4px;
  margin-top: var(--spacing-sm);
}

/* 响应式适配 */
@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .login-header {
    padding: var(--spacing-lg);
  }
  
  .login-logo {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}

/* 详情页 */
.detail-section {
  margin-bottom: var(--spacing-lg);
}

.detail-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-secondary);
}

.detail-value {
  font-weight: 500;
  color: var(--text-primary);
}

.copy-row {
  cursor: pointer;
  gap: 14px;
}

.copy-row:active {
  background: #f4f8f1;
}

.copy-row .detail-value {
  text-align: right;
  line-height: 1.55;
}

.copy-hint {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef6e9;
  color: var(--primary-color);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* 筛选器 */
.filter-bar {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding: var(--spacing-sm) 0;
  margin-bottom: var(--spacing-md);
  -webkit-overflow-scrolling: touch;
}

.filter-chip {
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-chip.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* 扫码按钮 */
.scan-btn {
  width: 100%;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.scan-btn:active {
  transform: scale(0.98);
}

/* 手动输入 */
.manual-input {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.manual-input .form-input {
  flex: 1;
}

/* 2026 mobile polish */
:root {
  --primary-color: #20613a;
  --primary-light: #5fa66b;
  --primary-dark: #113d27;
  --accent-color: #d9952f;
  --bg-color: #f4f7f1;
  --card-bg: rgba(255, 255, 255, 0.96);
  --text-primary: #14231b;
  --text-secondary: #657166;
  --text-muted: #97a094;
  --border-color: #e4eadf;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 4px 16px rgba(24, 54, 35, 0.06);
  --shadow-md: 0 10px 30px rgba(24, 54, 35, 0.09);
  --shadow-lg: 0 18px 45px rgba(24, 54, 35, 0.16);
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(217, 149, 47, 0.12), transparent 28rem),
    linear-gradient(180deg, #f7faf3 0%, #eef5eb 100%);
  letter-spacing: 0;
}

.container {
  max-width: 480px;
  padding-left: 16px;
  padding-right: 16px;
}

.card {
  border: 1px solid rgba(228, 234, 223, 0.88);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.header {
  background: rgba(247, 250, 243, 0.86);
  color: var(--text-primary);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(228, 234, 223, 0.9);
  padding: 14px 16px;
}

.header-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.header-back {
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(32, 97, 58, 0.08);
  font-size: 0;
}

.header-back::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  display: block;
  margin: auto;
}

.page-container {
  padding-top: 12px;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  min-height: 48px;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, #20613a, #73a85d);
}

.btn-primary:hover,
.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(32, 97, 58, 0.22);
}

.btn-secondary {
  border: 1px solid rgba(32, 97, 58, 0.22);
  background: #f8fbf6;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  color: #2c3d31;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  border: 1px solid #dfe7da;
  background: #fbfdf9;
  border-radius: 14px;
  min-height: 50px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #79ad68;
  box-shadow: 0 0 0 4px rgba(95, 166, 107, 0.14);
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radio-item,
.checkbox-item {
  min-height: 48px;
  padding: 12px;
  border: 1px solid #dfe7da;
  border-radius: 14px;
  background: #fbfdf9;
}

.radio-item:has(input:checked),
.checkbox-item:has(input:checked) {
  border-color: #6ca75f;
  background: #f0f7ec;
  color: var(--primary-dark);
  font-weight: 700;
}

.tab-bar {
  left: 50%;
  right: auto;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(448px, calc(100% - 24px));
  border-radius: 24px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border: 1px solid rgba(223, 231, 218, 0.9);
  box-shadow: 0 16px 40px rgba(21, 42, 28, 0.16);
  backdrop-filter: blur(18px);
}

.tab-item {
  flex: 1;
  border-radius: 18px;
  padding: 8px 4px;
}

.tab-item.active {
  background: #edf6e8;
}

.tab-item-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-bottom: 3px;
  position: relative;
  font-size: 0;
}

.tab-item-icon::before,
.tab-item-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.icon-home::before {
  width: 17px;
  height: 14px;
  left: 4px;
  top: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px;
}

.icon-home::after {
  width: 14px;
  height: 14px;
  left: 5px;
  top: 3px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}

.icon-calendar::before {
  width: 18px;
  height: 17px;
  left: 3px;
  top: 5px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.icon-calendar::after {
  width: 12px;
  height: 2px;
  left: 6px;
  top: 11px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.icon-list::before {
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.icon-list::after {
  width: 10px;
  height: 2px;
  left: 8px;
  top: 8px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.icon-tree::before {
  width: 14px;
  height: 14px;
  left: 5px;
  top: 3px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 45% 45%;
}

.icon-tree::after {
  width: 3px;
  height: 11px;
  left: 11px;
  top: 13px;
  background: currentColor;
  border-radius: 3px;
  box-shadow: -5px 5px 0 -1px currentColor, 5px 5px 0 -1px currentColor;
}

.icon-user::before {
  width: 8px;
  height: 8px;
  left: 8px;
  top: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-user::after {
  width: 18px;
  height: 10px;
  left: 3px;
  top: 14px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 4px 4px;
}

.icon-wallet::before {
  width: 18px;
  height: 14px;
  left: 2px;
  top: 6px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.icon-wallet::after {
  width: 6px;
  height: 6px;
  right: 3px;
  top: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: currentColor;
}

.icon-fruit::before {
  width: 12px;
  height: 15px;
  left: 3px;
  top: 7px;
  border: 2px solid currentColor;
  border-radius: 8px 8px 4px 4px;
}

.icon-fruit::after {
  width: 9px;
  height: 12px;
  left: 13px;
  top: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: -7px -6px 0 -4px currentColor;
}

.icon-check::before {
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-check::after {
  width: 9px;
  height: 5px;
  left: 8px;
  top: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.icon-chart::before {
  width: 4px;
  height: 14px;
  left: 5px;
  top: 7px;
  background: currentColor;
  border-radius: 4px;
  box-shadow: 7px -4px 0 currentColor, 14px -8px 0 currentColor;
}

.icon-logout::before {
  width: 14px;
  height: 16px;
  left: 3px;
  top: 4px;
  border: 2px solid currentColor;
  border-right: 0;
  border-radius: 4px;
}

.icon-logout::after {
  width: 10px;
  height: 10px;
  right: 3px;
  top: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.tab-item-text {
  font-size: 0.72rem;
  font-weight: 700;
}

.status-tag {
  text-transform: none;
  letter-spacing: 0;
}

.modal {
  background: rgba(12, 24, 17, 0.38);
  backdrop-filter: blur(8px);
}

.modal-content {
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(21, 56, 34, 0.22);
}

.modal-header {
  margin-bottom: 18px;
}

.modal-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #2f7b4f, #b49a3f);
  font-size: 1.6rem;
  font-weight: 900;
}

.modal-title {
  color: var(--primary-dark);
  font-weight: 900;
}

@media (max-width: 520px) {
  .modal {
    align-items: flex-end;
    padding: 14px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .modal-content {
    max-width: none;
    border-radius: 28px;
    animation: mobileSheetIn 0.24s ease;
  }
}

@keyframes mobileSheetIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.empty-state {
  background: rgba(255,255,255,0.7);
  border-radius: 20px;
  border: 1px dashed #d9e5d3;
}

.empty-state-icon {
  font-size: 2.8rem;
}

.login-page {
  background:
    linear-gradient(180deg, rgba(32, 97, 58, 0.92), rgba(74, 130, 64, 0.82)),
    url("../assets/farm-hero.png") center/cover no-repeat;
}

.login-header {
  padding: 42px 24px 28px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.22);
}

.login-logo {
  background: rgba(255,255,255,0.22);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.32);
  backdrop-filter: blur(12px);
}

.login-form {
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -12px 36px rgba(24, 54, 35, 0.16);
}

.hero-carousel {
  position: relative;
  height: 310px;
  margin: 4px 0 18px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #244b32;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.9s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 30, 18, 0.18), rgba(11, 30, 18, 0.68));
}

.hero-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  color: white;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 1.85rem;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 0.92rem;
  opacity: 0.94;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.hero-actions .btn {
  flex: 1;
  min-height: 42px;
}

.carousel-dots {
  position: absolute;
  right: 18px;
  top: 18px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.48);
}

.carousel-dot.active {
  width: 20px;
  background: #fff;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 18px 2px 10px;
}

.section-title h2 {
  font-size: 1.08rem;
  color: var(--text-primary);
}

.section-title span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(228,234,223,0.95);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.project-thumb {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #20613a, #d9952f);
}

.project-card h3 {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.project-arrow {
  color: var(--primary-color);
  font-weight: 800;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.info-item {
  padding: 14px 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border-color);
  text-align: center;
}

.info-item strong {
  display: block;
  color: var(--primary-color);
  font-size: 1rem;
}

.info-item span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.form-panel {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.form-panel-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--primary-dark);
}

.sticky-submit {
  position: sticky;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 40;
  padding: 8px 0 4px;
  background: linear-gradient(180deg, rgba(244,247,241,0), rgba(244,247,241,0.95) 34%);
}

.reservation-card {
  position: relative;
  overflow: hidden;
}

.reservation-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #20613a, #d9952f);
}

.reservation-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.reservation-main {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.reservation-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f6ed;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.55rem; }
  .hero-carousel { height: 280px; border-radius: 22px; }
  .radio-group { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr; }
}

/* 果树认养 */
.adoption-hero {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  padding: 22px;
  border-radius: 28px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 30, 18, 0.18), rgba(11, 30, 18, 0.76)),
    url("../assets/farm-hero.png") center/cover no-repeat;
  box-shadow: var(--shadow-lg);
}

.adoption-hero h2 {
  font-size: 1.8rem;
  line-height: 1.18;
  font-weight: 800;
}

.adoption-hero p {
  font-size: 0.9rem;
  opacity: 0.94;
  line-height: 1.65;
}

.adoption-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.scan-card .manual-input {
  margin-bottom: 8px;
}

.farm-map-card {
  margin-bottom: 10px;
}

.cartoon-map {
  position: relative;
  height: 270px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid #dce8d6;
  background:
    linear-gradient(135deg, rgba(84, 143, 77, 0.18), rgba(217, 149, 47, 0.12)),
    url("../assets/farm-hero.png") center/cover no-repeat;
  box-shadow: var(--shadow-sm);
}

.cartoon-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(233, 252, 223, 0.75), transparent 70px),
    radial-gradient(circle at 32% 70%, rgba(255, 228, 196, 0.7), transparent 82px),
    linear-gradient(180deg, rgba(21, 62, 34, 0.08), rgba(21, 62, 34, 0.22));
}

.map-region {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.region-cherry { right: 13%; top: 18%; }
.region-apple { left: 18%; bottom: 18%; }
.region-pear { left: 50%; top: 46%; }
.region-hall { right: 18%; bottom: 20%; }

.tree-map-point {
  position: absolute;
  z-index: 4;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgba(255,255,255,0.86);
  border-radius: 50%;
  background: #1f7a3c;
  color: #fff;
  box-shadow: 0 8px 22px rgba(23, 67, 35, 0.28);
}

.tree-map-point span {
  font-weight: 900;
  font-size: 0.86rem;
}

.tree-map-point.adopted {
  background: #8b9687;
}

.tree-map-point.maintenance {
  background: #d9952f;
}

.real-farm-map {
  position: relative;
  height: 300px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid #dce8d6;
  background:
    linear-gradient(180deg, rgba(8, 36, 18, 0.06), rgba(8, 36, 18, 0.18)),
    url("../assets/farm-map-zones.jpg") center/cover no-repeat;
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
  perspective: 900px;
}

.real-farm-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 45% 40%, rgba(255,255,255,0.12), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent 55%);
  pointer-events: none;
}

.zone-puzzle {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 50px;
  min-height: 26px;
  padding: 5px 10px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-shadow: 0 1px 5px rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow:
    0 10px 22px rgba(10, 38, 18, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -8px 16px rgba(0,0,0,0.16);
  transform: rotateX(10deg) translateZ(8px);
  backdrop-filter: blur(1px);
}

.zone-puzzle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), transparent 45%, rgba(0,0,0,0.12));
  pointer-events: none;
}

.zone-corn {
  left: 21%;
  top: 27%;
  width: 28%;
  height: 17%;
  background: rgba(54, 90, 174, 0.72);
  clip-path: polygon(0 8%, 100% 0, 86% 100%, 8% 86%);
}

.zone-veg {
  left: 27%;
  top: 49%;
  width: 27%;
  height: 13%;
  background: rgba(53, 163, 81, 0.76);
  clip-path: polygon(5% 0, 90% 5%, 100% 83%, 0 100%);
}

.zone-apple {
  left: 31%;
  top: 65%;
  width: 20%;
  height: 16%;
  background: rgba(193, 78, 47, 0.76);
  clip-path: polygon(10% 8%, 88% 0, 100% 80%, 18% 100%, 0 58%);
}

.zone-pear {
  left: 54%;
  top: 47%;
  width: 25%;
  height: 18%;
  background: rgba(222, 214, 80, 0.78);
  clip-path: polygon(0 18%, 82% 0, 100% 82%, 18% 100%);
}

.zone-cherry-a {
  left: 51%;
  top: 29%;
  width: 18%;
  height: 23%;
  background: rgba(181, 58, 143, 0.72);
  clip-path: polygon(20% 0, 100% 18%, 78% 100%, 0 82%);
}

.zone-cherry-b {
  left: 72%;
  top: 36%;
  width: 21%;
  height: 29%;
  background: rgba(179, 61, 150, 0.72);
  clip-path: polygon(20% 0, 100% 20%, 72% 100%, 0 78%);
}

.zone-hall {
  left: 52%;
  top: 66%;
  width: 14%;
  height: 10%;
  background: rgba(121, 86, 65, 0.78);
  clip-path: polygon(0 20%, 90% 0, 100% 82%, 12% 100%);
  font-size: 0.62rem;
}

.real-farm-map .tree-map-point {
  z-index: 5;
  transform: translateZ(28px);
  animation: mapPointPulse 2.2s ease-in-out infinite;
}

@keyframes mapPointPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(23, 67, 35, 0.28), 0 0 0 0 rgba(255,255,255,0.5); }
  50% { box-shadow: 0 12px 28px rgba(23, 67, 35, 0.34), 0 0 0 8px rgba(255,255,255,0.16); }
}

.map-tip-card {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 8;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 18px 36px rgba(10, 38, 18, 0.25);
  backdrop-filter: blur(16px);
}

.map-tip-card.show {
  display: flex;
}

.map-tip-card strong {
  color: var(--primary-dark);
}

.map-tip-card p {
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.map-tip-actions {
  display: flex;
  gap: 8px;
}

.map-tip-actions button {
  min-width: 54px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-color);
  font-weight: 800;
}

.map-tip-actions button:first-child {
  color: var(--primary-color);
  background: #edf6e8;
}

.tree-nav-btn {
  margin-bottom: 10px;
  min-height: 42px;
  color: var(--primary-dark);
}

.tree-list {
  display: grid;
  gap: 14px;
}

.tree-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.tree-card-image {
  position: relative;
  height: 170px;
  background-size: cover;
  background-position: center;
}

.tree-card-image.compact {
  height: 130px;
  border-radius: 18px;
  margin-bottom: 14px;
}

.tree-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.tree-card-image .tree-status {
  position: absolute;
  left: 12px;
  top: 12px;
}

.tree-status-ok {
  background: #e5f8df;
  color: #117334;
}

.tree-status-warn {
  background: #fff4db;
  color: #a76500;
}

.tree-status-off {
  background: #eef1ec;
  color: #64705f;
}

.tree-card-body {
  padding: 15px;
}

.tree-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  position: relative;
  padding-right: 78px;
}

.tree-identity-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tree-info-line {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #244b32;
  font-size: 0.9rem;
  font-weight: 900;
}

.tree-info-line strong {
  min-width: 0;
  overflow: hidden;
  color: #123723;
  font-size: 1.08rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-info-label {
  color: #6f8875;
  font-size: 0.78rem;
  white-space: nowrap;
}

.tree-info-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 12px;
  background: #eef8ea;
  color: #2f7b4f;
}

.tree-info-icon::before,
.tree-info-icon::after {
  content: "";
  position: absolute;
}

.tree-info-icon-name::before {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  top: 7px;
}

.tree-info-icon-name::after {
  width: 12px;
  height: 7px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  bottom: 6px;
}

.tree-info-icon-species::before {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  left: 6px;
  top: 11px;
}

.tree-info-icon-species::after {
  width: 8px;
  height: 7px;
  border-radius: 8px 8px 8px 0;
  background: currentColor;
  right: 7px;
  top: 6px;
  transform: rotate(-35deg);
}

.tree-identity {
  min-width: 0;
}

.tree-identity span,
.tree-species-pill span {
  display: block;
  margin-bottom: 3px;
  color: #78917d;
  font-size: 0.68rem;
  font-weight: 900;
}

.tree-identity h3 {
  color: #173d28;
  font-size: 1.08rem;
  line-height: 1.25;
  word-break: break-word;
}

.tree-species-pill {
  min-width: 58px;
  padding: 7px 9px;
  border: 1px solid rgba(47, 123, 79, 0.14);
  border-radius: 14px;
  background: #f4faf1;
  text-align: center;
}

.tree-species-pill strong {
  display: block;
  color: #1f6b3c;
  font-size: 0.92rem;
  line-height: 1.15;
}

.tree-card-head .tree-price {
  position: absolute;
  right: 0;
  top: 15px;
  color: #0f6a38;
  font-size: 0.92rem;
  white-space: nowrap;
}

.tree-location-line {
  margin-top: 8px;
  color: #6f8272;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.tree-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tree-title-row h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.tree-title-row p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-top: 2px;
}

.tree-title-row strong {
  color: var(--primary-color);
  white-space: nowrap;
}

.tree-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.tree-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf6e8;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.tree-detail-hero {
  height: 310px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  border-radius: 28px;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.tree-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,30,18,0.08), rgba(11,30,18,0.72));
}

.tree-detail-hero > div {
  position: relative;
  z-index: 2;
}

.tree-detail-hero h2 {
  font-size: 1.9rem;
  line-height: 1.15;
}

.tree-detail-page {
  padding-bottom: calc(124px + env(safe-area-inset-bottom));
}

.tree-location-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #f6faf2;
  border: 1px solid #e0eadb;
}

.tree-person-card {
  display: grid;
  gap: 12px;
  border-color: #dbe9d7;
  background:
    linear-gradient(135deg, rgba(242, 249, 238, 0.98), rgba(255, 250, 233, 0.96));
}

.tree-person-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.tree-person-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #2f7b4f, #b49a3f);
  font-size: 1.25rem;
  font-weight: 900;
}

.tree-person-head strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.08rem;
}

.tree-person-head p {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.tree-motto-box {
  padding: 13px 14px;
  border-radius: 18px;
  color: #245c38;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(47, 123, 79, 0.14);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.6;
}

.tree-lesson-text {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.65;
}

.tree-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.tree-fact-grid div {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 16px;
  background: #f4faf1;
  border: 1px solid #dfeadc;
}

.tree-fact-grid span {
  color: #78917d;
  font-size: 0.7rem;
  font-weight: 900;
}

.tree-fact-grid strong {
  min-width: 0;
  overflow: hidden;
  color: #173d28;
  font-size: 0.88rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-location-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.tree-tool-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #dbe8d5;
  border-radius: 14px;
  color: #245c38;
  background: #f5fbf1;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.tree-tool-btn-primary {
  border-color: rgba(47, 123, 79, 0.22);
  color: #fff;
  background: linear-gradient(135deg, #2f7b4f, #5e9a49);
  box-shadow: 0 10px 20px rgba(47, 123, 79, 0.18);
}

.tree-tool-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
}

.tree-tool-copy::before,
.tree-tool-copy::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.tree-tool-copy::before {
  width: 9px;
  height: 10px;
  left: 5px;
  top: 2px;
}

.tree-tool-copy::after {
  width: 9px;
  height: 10px;
  left: 1px;
  top: 6px;
  background: currentColor;
  opacity: 0.18;
}

.tree-tool-nav::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 1px;
  top: 0;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.tree-tool-nav::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 6px;
  top: 5px;
  border-radius: 50%;
  background: currentColor;
}

.tree-video-btn {
  width: 100%;
  min-height: 46px;
}

.mini-map {
  position: relative;
  height: 108px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(32, 97, 58, 0.2), rgba(217, 149, 47, 0.15)),
    url("../assets/farm-hero.png") center/cover no-repeat;
  overflow: hidden;
}

.mini-map span {
  position: absolute;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: 3px solid #fff;
  font-weight: 900;
}

.plan-grid {
  display: grid;
  gap: 10px;
}

.plan-card {
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 1px solid #dfe7da;
  border-radius: 18px;
  background: #fbfdf9;
  color: var(--text-primary);
}

.plan-card.active {
  border-color: #5fa66b;
  background: #eef8ea;
  box-shadow: 0 0 0 4px rgba(95, 166, 107, 0.12);
}

.plan-card strong {
  display: block;
  font-size: 0.98rem;
}

.plan-card span {
  display: block;
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 900;
  margin: 4px 0;
}

.plan-card p {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.5;
}

.care-log {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.care-log:last-child {
  border-bottom: 0;
}

.care-log span {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.care-log strong {
  display: block;
  color: var(--text-primary);
  margin: 2px 0;
}

.care-log p {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.adoption-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.adoption-summary > div {
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.adoption-summary span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.adoption-summary strong {
  display: block;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.adoption-order-card {
  overflow: hidden;
}

.tree-submit-row {
  margin: 10px 0 4px;
}

.tree-sticky-action {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 120;
  width: min(448px, calc(100% - 24px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(220, 232, 214, 0.92);
  border-radius: 24px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 18px 44px rgba(19, 54, 32, 0.18);
  backdrop-filter: blur(18px);
}

.tree-action-price {
  min-width: 82px;
  padding-left: 4px;
}

.tree-action-price span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
}

.tree-action-price strong {
  display: block;
  margin-top: 1px;
  color: #1f6f3d;
  font-size: 1.22rem;
  line-height: 1;
}

.tree-adopt-cta {
  min-height: 50px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2f7b4f, #69a84e);
  box-shadow: 0 12px 24px rgba(47, 123, 79, 0.24);
  font-size: 0.98rem;
  font-weight: 900;
}

.tree-action-buttons {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px;
  flex: 1;
}

.tree-adopt-cta.secondary {
  color: #245c38;
  background: #eef8ea;
  box-shadow: none;
}

.tree-adopt-cta:disabled {
  background: #fff3d8;
  box-shadow: none;
  color: #8a5b08;
  border: 1px solid #ead49a;
  opacity: 1;
}

.tree-card-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 9px;
}

.time-slot-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.time-slot {
  min-height: 42px;
  border: 1px solid #dfeadc;
  border-radius: 14px;
  color: #356245;
  background: #f8fcf5;
  font-weight: 900;
}

.time-slot.active {
  border-color: #2f7b4f;
  color: #fff;
  background: linear-gradient(135deg, #2f7b4f, #6aa84f);
  box-shadow: 0 10px 20px rgba(47, 123, 79, 0.18);
}

.admin-form-modal {
  max-height: min(86vh, 720px);
  overflow-y: auto;
}

.admin-tree-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.admin-tree-action {
  min-height: 42px;
  border: 1px solid #dbe8d5;
  border-radius: 14px;
  color: #245c38;
  background: #f6fbf2;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-tree-action.primary {
  border-color: rgba(47, 123, 79, 0.22);
  color: #fff;
  background: linear-gradient(135deg, #2f7b4f, #5e9a49);
  box-shadow: 0 10px 20px rgba(47, 123, 79, 0.16);
}

.admin-tree-action.wide {
  grid-column: 1 / -1;
  background: #fff;
}

.admin-adoption-nav .tab-item-text {
  font-size: 0.66rem;
}

.adoption-sales-page {
  padding-bottom: 104px;
}

.adoption-sales-hero {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  margin: 14px 0 14px;
  padding: 24px 20px 20px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10, 31, 17, 0.08), rgba(10, 31, 17, 0.76)),
    url("../assets/farm-hero.png") center/cover no-repeat;
  box-shadow: 0 18px 40px rgba(33, 79, 47, 0.18);
}

.adoption-sales-hero h2 {
  max-width: 11em;
  font-size: 2rem;
  line-height: 1.14;
  letter-spacing: 0;
}

.adoption-sales-hero p {
  max-width: 32em;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  line-height: 1.7;
}

.adoption-primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.adoption-primary-actions .btn {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 900;
}

.adoption-my-link {
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.14);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.scan-simple-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e0eadb;
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-sm);
}

.scan-simple-card strong {
  color: var(--primary-dark);
  font-size: 1rem;
}

.scan-simple-card p {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.scan-simple-card .manual-input {
  grid-template-columns: 1fr 76px;
}

.scan-simple-card .form-input {
  height: 46px;
  border-radius: 999px;
}

.scan-simple-card .btn {
  min-height: 46px;
  border-radius: 999px;
}

.adoption-section-title {
  margin-top: 22px;
}

.adoption-sales-page {
  padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

.adoption-section-title h2,
.farm-map-card .section-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-title-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 12px;
  background: #eef8ea;
  color: #2f7b4f;
  box-shadow: inset 0 0 0 1px rgba(47, 123, 79, 0.1);
}

.section-title-icon::before,
.section-title-icon::after {
  content: "";
  position: absolute;
}

.section-icon-fruit::before {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  left: 7px;
  top: 10px;
}

.section-icon-fruit::after {
  width: 8px;
  height: 7px;
  border-radius: 8px 8px 8px 0;
  background: currentColor;
  left: 14px;
  top: 5px;
  transform: rotate(-35deg);
}

.section-icon-map::before {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.section-icon-map::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.section-icon-star::before {
  width: 16px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 80% 92%, 50% 70%, 20% 92%, 32% 56%, 2% 35%, 39% 35%);
}

.live-bulletin-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e0eadb;
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-sm);
}

.live-bulletin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-bulletin-head strong {
  color: var(--primary-dark);
  font-size: 0.98rem;
}

.live-bulletin-head span {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.live-ticker-mask {
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef8ea, #fff8e8);
}

.live-ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  animation: liveTickerMove 28s linear infinite;
}

.live-ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #245c38;
  background: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(31, 93, 59, 0.08);
}

.ticker-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #5a9b54;
  box-shadow: 0 0 0 4px rgba(90, 155, 84, 0.12);
}

@keyframes liveTickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 480px) {
  .adoption-sales-hero {
    min-height: 286px;
    margin: 10px 0 12px;
    padding: 18px 16px 16px;
    border-radius: 24px;
    gap: 9px;
  }

  .adoption-sales-hero h2 {
    max-width: 10em;
    font-size: 1.58rem;
    line-height: 1.16;
  }

  .adoption-sales-hero p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .adoption-primary-actions .btn {
    min-height: 44px;
    font-size: 0.92rem;
  }

  .adoption-section-title {
    margin-top: 18px;
  }

  .species-card {
    min-height: 146px;
    border-radius: 18px;
    padding: 10px;
  }

  .species-card strong {
    margin-top: 24px;
    font-size: 0.9rem;
  }

  .species-card em {
    font-size: 0.88rem;
  }
}

.code-modal-content {
  border-radius: 26px;
}

.code-modal-tip {
  margin: -4px 0 14px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.65;
}

.code-modal-content .manual-input {
  grid-template-columns: 1fr 76px;
}

.code-modal-content .form-input,
.code-modal-content .manual-input .btn {
  min-height: 46px;
  border-radius: 999px;
}

.species-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.species-card {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 22px;
  text-align: left;
  color: #fff;
  box-shadow: 0 14px 28px rgba(31, 93, 59, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.species-card:active {
  transform: scale(0.98);
  box-shadow: 0 10px 22px rgba(31, 93, 59, 0.16);
}

.species-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(11, 38, 19, 0.04), rgba(11, 38, 19, 0.72)),
    url("../assets/farm-hero.png") center/cover no-repeat;
}

.species-cherry::before {
  background:
    linear-gradient(180deg, rgba(11, 38, 19, 0.04), rgba(11, 38, 19, 0.72)),
    url("../assets/fruit-cherry.jpg") center/cover no-repeat;
}

.species-apple::before {
  background:
    linear-gradient(180deg, rgba(11, 38, 19, 0.04), rgba(11, 38, 19, 0.72)),
    url("../assets/fruit-apple.jpg") center/cover no-repeat;
}

.species-pear::before {
  background:
    linear-gradient(180deg, rgba(11, 38, 19, 0.04), rgba(11, 38, 19, 0.72)),
    url("../assets/fruit-pear.jpg") center/cover no-repeat;
}

.species-peach::before,
.species-apricot::before,
.species-grape::before,
.species-generic::before {
  background:
    linear-gradient(180deg, rgba(11, 38, 19, 0.04), rgba(11, 38, 19, 0.72)),
    url("../assets/farm-hero.png") center/cover no-repeat;
}

.species-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.68;
}

.species-cherry::after {
  background: linear-gradient(145deg, rgba(155, 32, 58, 0.45), rgba(66, 112, 48, 0.1));
}

.species-apple::after {
  background: linear-gradient(145deg, rgba(60, 132, 58, 0.5), rgba(176, 54, 40, 0.18));
}

.species-pear::after {
  background: linear-gradient(145deg, rgba(202, 165, 47, 0.52), rgba(57, 113, 59, 0.18));
}

.species-peach::after {
  background: linear-gradient(145deg, rgba(225, 101, 117, 0.54), rgba(75, 143, 72, 0.2));
}

.species-apricot::after {
  background: linear-gradient(145deg, rgba(221, 151, 54, 0.54), rgba(78, 128, 67, 0.2));
}

.species-grape::after {
  background: linear-gradient(145deg, rgba(105, 72, 158, 0.58), rgba(73, 132, 73, 0.2));
}

.species-generic::after {
  background: linear-gradient(145deg, rgba(88, 134, 74, 0.52), rgba(183, 151, 64, 0.18));
}

.species-card span,
.species-card strong,
.species-card p,
.species-card em,
.species-card small {
  position: relative;
  z-index: 2;
}

.species-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.fruit-mini-icon {
  position: relative;
  width: 15px;
  height: 15px;
  display: inline-block;
  flex: 0 0 15px;
}

.fruit-mini-icon::before,
.fruit-mini-icon::after {
  content: "";
  position: absolute;
}

.fruit-mini-cherry::before,
.fruit-mini-cherry::after {
  width: 8px;
  height: 8px;
  bottom: 0;
  border-radius: 50%;
  background: #ff5b70;
  box-shadow: inset -1px -1px 0 rgba(91, 18, 32, 0.22);
}

.fruit-mini-cherry::before {
  left: 1px;
}

.fruit-mini-cherry::after {
  right: 1px;
}

.fruit-mini-apple::before {
  inset: 3px 2px 1px;
  border-radius: 48% 48% 54% 54%;
  background: #ff695d;
  box-shadow: inset -2px -2px 0 rgba(116, 35, 28, 0.24);
}

.fruit-mini-apple::after,
.fruit-mini-pear::after {
  width: 7px;
  height: 5px;
  right: 1px;
  top: 0;
  border-radius: 8px 8px 8px 0;
  background: #9fda76;
  transform: rotate(-28deg);
}

.fruit-mini-pear::before {
  inset: 2px 3px 0;
  border-radius: 45% 45% 54% 54%;
  background: #f6d765;
  box-shadow: inset -2px -2px 0 rgba(114, 86, 20, 0.2);
}

.fruit-mini-peach::before,
.fruit-mini-apricot::before,
.fruit-mini-generic::before {
  inset: 2px;
  border-radius: 50% 48% 52% 48%;
  background: #ff8f8f;
  box-shadow: inset -2px -2px 0 rgba(121, 43, 48, 0.2);
}

.fruit-mini-apricot::before {
  background: #f2b84e;
}

.fruit-mini-generic::before {
  background: #8fcf6b;
}

.fruit-mini-grape::before {
  width: 7px;
  height: 7px;
  left: 1px;
  top: 4px;
  border-radius: 50%;
  background: #8d62c5;
  box-shadow: 6px -1px 0 #7e55b6, 4px 6px 0 #996bd0, 10px 5px 0 #6d4ca5;
}

.fruit-mini-peach::after,
.fruit-mini-apricot::after,
.fruit-mini-generic::after,
.fruit-mini-grape::after {
  width: 7px;
  height: 5px;
  right: 0;
  top: 0;
  border-radius: 8px 8px 8px 0;
  background: #9fda76;
  transform: rotate(-28deg);
}

.species-card strong {
  display: block;
  margin-top: 34px;
  font-size: 0.94rem;
  line-height: 1.35;
}

.species-card p {
  display: none;
}

.species-card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 900;
}

.species-card small {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,0.82);
  font-size: 0.7rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.trust-strip div {
  padding: 12px 8px;
  border: 1px solid #e1eadc;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid !important;
  place-items: center;
  margin: 0 auto 7px !important;
  border-radius: 12px;
  background: #eef8ea;
  color: #2f7b4f !important;
}

.trust-icon::before,
.trust-icon::after {
  content: "";
  position: absolute;
}

.trust-icon-safe::before {
  width: 13px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 7px 7px;
  transform: rotate(-18deg);
}

.trust-icon-safe::after {
  width: 8px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.trust-icon-yield::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.trust-icon-yield::after {
  width: 7px;
  height: 7px;
  right: 7px;
  top: 5px;
  border-radius: 8px 8px 8px 0;
  background: currentColor;
  transform: rotate(-35deg);
}

.trust-icon-delivery::before {
  width: 18px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.trust-icon-delivery::after {
  width: 20px;
  height: 5px;
  left: 5px;
  bottom: 5px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-radius: 999px;
}

.trust-strip strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.84rem;
}

.trust-strip span {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.68rem;
  line-height: 1.35;
}

.adoption-map-preview {
  margin-top: 18px;
}

.farm-diary-list,
.adopted-story-list {
  display: grid;
  gap: 10px;
}

.farm-diary-card {
  position: relative;
  padding: 14px 14px 14px 18px;
  border: 1px solid #e0eadb;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.farm-diary-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f7b4f, #d59f3d);
}

.farm-diary-card span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #2f6e42;
  background: #eef8ea;
  font-size: 0.7rem;
  font-weight: 800;
}

.farm-diary-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text-primary);
  font-size: 0.98rem;
}

.farm-diary-card p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}

.adopted-story-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e0eadb;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.story-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #2f7b4f, #b94848);
  font-weight: 900;
}

.adopted-story-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.adopted-story-card p {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.adopted-story-card > span {
  color: var(--primary-color);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.recommend-toolbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}

.recommend-toolbar::-webkit-scrollbar {
  display: none;
}

.recommend-toolbar .filter-chip {
  white-space: nowrap;
}

.tree-photo-cherry {
  background:
    linear-gradient(145deg, rgba(143, 32, 58, 0.18), rgba(34, 98, 52, 0.18)),
    url("../assets/fruit-cherry.jpg") center/cover no-repeat;
}

.tree-photo-apple {
  background:
    linear-gradient(145deg, rgba(38, 119, 55, 0.18), rgba(181, 55, 44, 0.14)),
    url("../assets/fruit-apple.jpg") center/cover no-repeat;
}

.tree-photo-pear {
  background:
    linear-gradient(145deg, rgba(205, 162, 42, 0.18), rgba(45, 112, 55, 0.16)),
    url("../assets/fruit-pear.jpg") center/cover no-repeat;
}

.tree-photo-peach,
.tree-photo-apricot,
.tree-photo-grape,
.tree-photo-generic {
  background:
    linear-gradient(145deg, rgba(217, 132, 82, 0.2), rgba(45, 112, 55, 0.18)),
    url("../assets/farm-hero.png") center/cover no-repeat;
}

.tree-photo-peach {
  background:
    linear-gradient(145deg, rgba(225, 101, 117, 0.22), rgba(45, 112, 55, 0.18)),
    url("../assets/farm-hero.png") center/cover no-repeat;
}

.tree-photo-grape {
  background:
    linear-gradient(145deg, rgba(105, 72, 158, 0.24), rgba(45, 112, 55, 0.18)),
    url("../assets/farm-hero.png") center/cover no-repeat;
}

.species-photo-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 45, 26, 0.52);
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.tree-selling-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 8px;
}

.tree-selling-points span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #2f6e42;
  background: #eef8ea;
  font-size: 0.72rem;
  font-weight: 800;
}

.tree-card-desc {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}

.adoption-more-btn {
  margin-top: 12px;
  border-radius: 999px;
}

.recommend-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.recommend-actions .adoption-more-btn {
  margin-top: 0;
}

.recommend-auto-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 10px 12px;
  border: 1px dashed rgba(213, 72, 88, 0.24);
  border-radius: 16px;
  color: #9c2f3f;
  background: linear-gradient(135deg, rgba(255, 245, 246, 0.96), rgba(240, 249, 235, 0.94));
  text-align: center;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(163, 55, 70, 0.08);
}

.recommend-auto-tip strong {
  font: inherit;
}

.recommend-tip-spinner {
  width: 14px;
  height: 14px;
  display: none;
  border: 2px solid rgba(213, 72, 88, 0.18);
  border-top-color: #d54858;
  border-radius: 50%;
  animation: recommendTipSpin 0.72s linear infinite;
}

.recommend-auto-tip.loading {
  border-style: solid;
  color: #7d2a35;
  background: linear-gradient(135deg, rgba(255, 237, 239, 0.98), rgba(246, 250, 238, 0.98));
}

.recommend-auto-tip.loading .recommend-tip-spinner {
  display: inline-block;
}

@keyframes recommendTipSpin {
  to { transform: rotate(360deg); }
}

.showcase-tree-card {
  border-style: dashed;
}

.tree-admin-motto {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #245c38;
  background: #f2f9ee;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.5;
}

.tree-talk-bubble {
  position: relative;
  margin: 0 0 12px;
  padding: 10px 12px 10px 34px;
  border-radius: 16px;
  color: #245c38;
  background: #f2f9ee;
  font-size: 0.82rem;
  line-height: 1.5;
}

.tree-talk-bubble::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 13px;
  width: 13px;
  height: 13px;
  border: 2px solid #2f7b4f;
  border-radius: 50% 50% 45% 45%;
}

.tree-talk-bubble::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 25px;
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: #2f7b4f;
}

.tree-load-fallback {
  margin-top: 28px;
}

.fallback-actions,
.payment-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.payment-action-grid {
  margin-top: 12px;
}

.adoption-lock-tip {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid rgba(225, 145, 48, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8e8, #f4fbef);
}

.adoption-lock-tip strong {
  display: block;
  color: #9a5b09;
  font-size: 0.9rem;
  font-weight: 900;
}

.adoption-lock-tip span {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.adoption-lock-tip.released {
  border-color: rgba(125, 139, 127, 0.18);
  background: #f5f7f4;
}

.adoption-lock-tip.released strong {
  color: #52605a;
}

.service-card {
  display: grid;
  gap: 10px;
}

.service-line {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dfeadc;
  border-radius: 18px;
  background: #f8fcf5;
  text-align: left;
}

.service-line strong,
.service-line small {
  display: block;
}

.service-line strong {
  color: var(--primary-dark);
  font-size: 0.92rem;
}

.service-line small {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.45;
}

.service-icon,
.payment-method-icon {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  background: #eef8ea;
  color: #2f7b4f;
}

.service-icon::before,
.service-icon::after,
.payment-method-icon::before,
.payment-method-icon::after {
  content: "";
  position: absolute;
}

.service-icon-phone::before {
  width: 15px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 7px;
  transform: rotate(-16deg);
}

.service-icon-phone::after {
  width: 5px;
  height: 2px;
  bottom: 10px;
  border-radius: 2px;
  background: currentColor;
}

.service-icon-location::before,
.payment-icon-offline::before {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.service-icon-location::after,
.payment-icon-offline::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.service-icon-copy::before {
  width: 16px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: translate(2px, 2px);
}

.service-icon-copy::after {
  width: 16px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 5px;
  background: #eef8ea;
  transform: translate(-2px, -2px);
}

.payment-page {
  padding-bottom: calc(136px + env(safe-area-inset-bottom));
}

.service-payment-page {
  padding-bottom: calc(158px + env(safe-area-inset-bottom));
}

.service-payment-page .sticky-submit {
  position: static;
  padding: 0;
  margin-top: 12px;
  background: transparent;
}

.service-pay-summary {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 15px;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 55, 35, 0.92), rgba(47, 123, 79, 0.84)),
    url("../assets/fruit-cherry.jpg") center/cover no-repeat;
  box-shadow: 0 18px 38px rgba(31, 73, 43, 0.16);
}

.payment-guide-card {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf6, #f5fbf1);
  border: 1px solid rgba(47, 125, 79, .1);
  box-shadow: 0 14px 30px rgba(47, 84, 54, .08);
}

.payment-guide-card > span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #2f7044;
  background: #eaf6e5;
  font-size: .72rem;
  font-weight: 950;
}

.payment-guide-card h2 {
  color: #183d25;
  font-size: 1.04rem;
  line-height: 1.25;
}

.payment-guide-card p {
  color: #5d6d61;
  font-size: .78rem;
  line-height: 1.5;
}

.payment-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.payment-step-list div {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 9px 5px;
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(47, 125, 79, .08);
  text-align: center;
}

.payment-step-list b {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2f7d4f, #74aa4c);
  font-size: .82rem;
  font-weight: 950;
}

.payment-step-list strong {
  color: #213d2a;
  font-size: .78rem;
  line-height: 1.2;
  font-weight: 950;
}

.payment-step-list small {
  color: #6b7568;
  font-size: .66rem;
  line-height: 1.25;
  font-weight: 700;
}

.service-pay-summary span,
.service-pay-summary small,
.service-pay-summary p {
  color: rgba(255,255,255,0.86);
}

.service-pay-summary span {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
}

.service-pay-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 1.86rem;
  line-height: 1.1;
  font-weight: 950;
}

.service-pay-summary small {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  font-size: 0.76rem;
  font-weight: 900;
}

.service-pay-summary p {
  font-size: 0.92rem;
  font-weight: 850;
}

.copy-code-pill {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,0.13);
  text-align: left;
}

.copy-code-pill span {
  color: rgba(255,255,255,0.76);
  font-size: 0.76rem;
}

.copy-code-pill b {
  overflow: hidden;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-hero-card {
  min-height: 196px;
  display: grid;
  align-content: end;
  gap: 8px;
  margin-top: 12px;
  padding: 22px;
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(18, 55, 35, 0.16), rgba(18, 55, 35, 0.82)),
    url("../assets/fruit-cherry.jpg") center/cover no-repeat;
  box-shadow: var(--shadow-lg);
}

.service-payment-hero {
  background:
    linear-gradient(180deg, rgba(18, 55, 35, 0.14), rgba(18, 55, 35, 0.84)),
    url("../assets/farm-hero.png") center/cover no-repeat;
}

.payment-hero-card span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.payment-hero-card h2 {
  font-size: 1.6rem;
  line-height: 1.18;
}

.payment-hero-card p {
  color: rgba(255,255,255,0.88);
  font-size: 0.86rem;
  line-height: 1.55;
}

.payment-hero-card strong {
  font-size: 1.45rem;
}

.payment-countdown {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7da;
  background: rgba(0, 0, 0, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
}

.payment-order-card {
  margin-top: 14px;
}

.payment-method-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.payment-method-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #dfeadc;
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.payment-method-card.active {
  border-color: rgba(47, 123, 79, 0.45);
  background: #f4faf1;
  box-shadow: 0 12px 28px rgba(31, 93, 59, 0.12);
}

.payment-method-card strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1rem;
}

.payment-method-card p {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
}

.payment-icon-online::before {
  width: 20px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.payment-icon-online::after {
  width: 8px;
  height: 2px;
  right: 8px;
  top: 18px;
  border-radius: 2px;
  background: currentColor;
}

.service-qr-card {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 16px;
  overflow: hidden;
}

.service-pay-main-card {
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
}

.service-pay-title {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
}

.service-pay-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #13b353, #5eb653);
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(17, 166, 74, 0.22);
}

.service-pay-title strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.08rem;
  font-weight: 950;
}

.service-pay-title p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.service-pay-title p b {
  color: #1f6d3d;
  font-weight: 950;
}

.service-qr-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.service-qr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 58px;
  padding: 0 10px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #11a64a, #64bf5a);
  font-size: 0.76rem;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(17, 166, 74, 0.22);
}

.service-qr-head strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.08rem;
  font-weight: 950;
}

.service-qr-head p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

.service-qr-panel {
  padding: 14px;
  border: 1px solid rgba(32, 97, 58, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(119, 182, 95, 0.18), transparent 32%),
    linear-gradient(180deg, #fbfff8, #f3faef);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.82);
}

.service-qr-panel.simple {
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f6fbf1, #eef8ea);
}

.service-qr-image {
  display: block;
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border: 10px solid #fff;
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 16px 34px rgba(31, 73, 43, 0.12);
}

.service-pay-steps {
  display: grid;
  gap: 8px;
}

.service-pay-steps div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: #f7fbf4;
}

.service-pay-steps b {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2f7b4f;
  font-size: 0.78rem;
  font-weight: 950;
}

.service-pay-steps span {
  color: #36513d;
  font-size: 0.82rem;
  font-weight: 800;
}

.service-assist-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.service-assist-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(47, 123, 79, 0.13);
  border-radius: 16px;
  color: #2f7b4f;
  background: rgba(255,255,255,0.94);
  font-size: 0.86rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(31, 73, 43, 0.07);
}

.service-assist-btn .service-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
}

@media (max-width: 360px) {
  .service-pay-summary strong {
    font-size: 1.82rem;
  }

  .service-pay-title {
    grid-template-columns: 46px 1fr;
  }

  .service-pay-icon {
    width: 46px;
    height: 46px;
  }

  .service-qr-image {
    width: min(100%, 248px);
  }
}

.video-request-btn[disabled] {
  opacity: 0.78;
  cursor: not-allowed;
}

.xiaoxi-notice-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dfeadc;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(244, 250, 241, 0.98), rgba(255, 248, 232, 0.96));
  box-shadow: var(--shadow-sm);
}

.xiaoxi-notice-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
}

.xiaoxi-mini-face {
  position: relative;
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 38%, #1f4b32 0 3px, transparent 4px),
    radial-gradient(circle at 68% 38%, #1f4b32 0 3px, transparent 4px),
    radial-gradient(circle at 50% 62%, #a6283e 0 5px, transparent 6px),
    linear-gradient(145deg, #ff6b78, #c82544);
  box-shadow: 0 10px 22px rgba(199, 39, 66, 0.18);
}

.xiaoxi-mini-face::after {
  content: "";
  position: absolute;
  right: 3px;
  top: -5px;
  width: 14px;
  height: 12px;
  border-radius: 12px 12px 12px 0;
  background: #7ec768;
  transform: rotate(-25deg);
}

.xiaoxi-notice-head strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1rem;
}

.xiaoxi-notice-head p {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.xiaoxi-notice-item {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #d9e8d2;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  text-align: left;
}

.xiaoxi-notice-item span {
  color: #1f6b3c;
  font-size: 0.9rem;
  font-weight: 900;
}

.xiaoxi-notice-item small {
  color: var(--text-secondary);
  font-size: 0.74rem;
  line-height: 1.45;
}

.video-request-admin-card {
  border-color: #dce9d7;
}

.video-request-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
}

.video-request-admin-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.video-request-admin-item strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.video-request-admin-item p,
.video-request-admin-item small {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.45;
}

.video-request-actions {
  display: grid;
  gap: 8px;
  align-content: center;
}

@media (max-width: 520px) {
  .video-request-admin-item {
    grid-template-columns: 1fr;
  }

  .video-request-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.adoption-float-orb {
  position: fixed;
  right: 10px;
  bottom: 98px;
  z-index: 90;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #2f7b4f, #5e9a49);
  box-shadow: 0 18px 34px rgba(31, 93, 59, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.adoption-float-orb.show {
  opacity: 0.96;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.adoption-float-orb strong {
  font-size: 0.6rem;
  line-height: 1;
}

.adoption-float-orb em {
  font-style: normal;
  font-size: 0.5rem;
  opacity: 0.86;
}

.orb-tree-icon {
  position: relative;
  width: 17px;
  height: 19px;
  display: block;
}

.orb-tree-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 45% 45%;
}

.orb-tree-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 11px;
  width: 3px;
  height: 9px;
  border-radius: 3px;
  background: currentColor;
  box-shadow: -5px 4px 0 -1px currentColor, 5px 4px 0 -1px currentColor;
}

.xiaoxi-pet {
  position: fixed;
  right: -30px;
  bottom: 128px;
  z-index: 96;
  width: 70px;
  min-height: 62px;
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #b92f45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.92);
  transition: right 0.24s ease, opacity 0.22s ease, transform 0.22s ease;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.xiaoxi-pet.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.xiaoxi-pet:hover,
.xiaoxi-pet:focus-visible,
.xiaoxi-pet.peek-open {
  right: 10px;
  transform: translateY(0) scale(1);
}

.xiaoxi-pet.first-run {
  animation: xiaoxiJump 1.4s ease-in-out 3;
}

.xiaoxi-pet.dragging {
  cursor: grabbing;
  transition: none;
}

.xiaoxi-pet.flip .xiaoxi-body {
  animation: xiaoxiFlip 0.74s cubic-bezier(.18,.9,.3,1.25);
}

.xiaoxi-body {
  position: relative;
  width: 54px;
  height: 54px;
  display: block;
  border: 3px solid rgba(255,255,255,0.9);
  border-radius: 50% 50% 44% 44%;
  background:
    radial-gradient(circle at 34% 34%, rgba(255,255,255,0.65), transparent 18px),
    linear-gradient(145deg, #ff6f7b, #be2443 72%, #7f1730);
  box-shadow: 0 18px 34px rgba(174, 45, 64, 0.28);
  transition: background 0.24s ease, box-shadow 0.24s ease;
}

.xiaoxi-pet.face-apple .xiaoxi-body {
  background:
    radial-gradient(circle at 34% 34%, rgba(255,255,255,0.66), transparent 18px),
    linear-gradient(145deg, #ff7a70, #d94745 54%, #4f9b4a);
  box-shadow: 0 18px 34px rgba(194, 69, 55, 0.26);
}

.xiaoxi-pet.face-pear .xiaoxi-body {
  background:
    radial-gradient(circle at 35% 33%, rgba(255,255,255,0.7), transparent 18px),
    linear-gradient(145deg, #fff08a, #c8d85a 58%, #78a94a);
  box-shadow: 0 18px 34px rgba(157, 150, 48, 0.22);
}

.xiaoxi-pet.face-peach .xiaoxi-body {
  background:
    radial-gradient(circle at 35% 33%, rgba(255,255,255,0.72), transparent 18px),
    linear-gradient(145deg, #ffb2a0, #ff7f8f 58%, #e55971);
  box-shadow: 0 18px 34px rgba(217, 87, 104, 0.25);
}

.xiaoxi-pet.face-apricot .xiaoxi-body {
  background:
    radial-gradient(circle at 35% 33%, rgba(255,255,255,0.72), transparent 18px),
    linear-gradient(145deg, #ffd27a, #f49a3d 62%, #d86c25);
  box-shadow: 0 18px 34px rgba(220, 117, 38, 0.23);
}

.xiaoxi-pet.face-grape .xiaoxi-body {
  background:
    radial-gradient(circle at 35% 33%, rgba(255,255,255,0.68), transparent 18px),
    linear-gradient(145deg, #b98cff, #7b52dc 58%, #4c2a93);
  box-shadow: 0 18px 34px rgba(94, 61, 169, 0.26);
}

.xiaoxi-face::before,
.xiaoxi-face::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 5px;
  height: 7px;
  border-radius: 50%;
  background: #103623;
}

.xiaoxi-face::before {
  left: 18px;
}

.xiaoxi-face::after {
  right: 18px;
}

.xiaoxi-face::before,
.xiaoxi-face::after {
  animation: xiaoxiBlink 2.45s infinite;
}

.xiaoxi-body::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 33px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid rgba(16, 54, 35, 0.9);
  border-radius: 0 0 999px 999px;
}

.xiaoxi-sprout::before,
.xiaoxi-sprout::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 15px;
  height: 11px;
  border-radius: 12px 12px 12px 0;
  background: #9fda76;
  transform-origin: bottom center;
}

.xiaoxi-sprout::before {
  left: 19px;
  transform: rotate(-32deg);
}

.xiaoxi-sprout::after {
  right: 16px;
  transform: rotate(24deg);
}

.xiaoxi-pet strong {
  margin-top: 1px;
  color: #9c2f3f;
  font-size: 0.68rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.xiaoxi-pet em {
  color: #8b6b70;
  font-style: normal;
  font-size: 0.52rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.xiaoxi-pet:hover strong,
.xiaoxi-pet:hover em,
.xiaoxi-pet:focus-visible strong,
.xiaoxi-pet:focus-visible em,
.xiaoxi-pet.peek-open strong,
.xiaoxi-pet.peek-open em {
  opacity: 1;
  transform: translateX(0);
}

.xiaoxi-bubble {
  position: absolute;
  right: 34px;
  bottom: 72px;
  width: 118px;
  padding: 7px 9px;
  border: 1px solid rgba(246, 205, 210, 0.95);
  border-radius: 16px 16px 4px 16px;
  color: #8d2b3a;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 28px rgba(174, 45, 64, 0.16);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.xiaoxi-pet:hover .xiaoxi-bubble,
.xiaoxi-pet:focus-visible .xiaoxi-bubble,
.xiaoxi-pet.peek-open .xiaoxi-bubble,
.xiaoxi-bubble.pop:not(.nap) {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.xiaoxi-bubble.pop {
  animation: xiaoxiBubblePop 0.52s ease;
}

.xiaoxi-bubble.nap {
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes xiaoxiJump {
  0%, 100% { transform: translateY(0) scale(1); }
  28% { transform: translateY(-18px) scale(1.04); }
  55% { transform: translateY(-8px) scale(0.98); }
  78% { transform: translateY(-15px) scale(1.03); }
}

@keyframes xiaoxiBubblePop {
  0% { transform: scale(0.92); opacity: 0.6; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes xiaoxiBlink {
  0%, 88%, 100% { transform: scaleY(1); }
  92%, 96% { transform: scaleY(0.12); }
}

@keyframes xiaoxiFlip {
  0% { transform: rotate(0) translateY(0) scale(1); }
  38% { transform: rotate(180deg) translateY(-8px) scale(1.06); }
  76% { transform: rotate(360deg) translateY(-2px) scale(0.98); }
  100% { transform: rotate(360deg) translateY(0) scale(1); }
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 360px) {
  .adoption-hero { min-height: 230px; }
  .adoption-hero h2 { font-size: 1.55rem; }
  .adoption-sales-hero { min-height: 276px; padding: 18px 15px 16px; }
  .adoption-sales-hero h2 { font-size: 1.52rem; }
  .adoption-primary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .species-showcase { grid-template-columns: 1fr; }
  .species-card { min-height: 138px; }
  .species-card strong { margin-top: 24px; }
  .trust-strip { grid-template-columns: 1fr; }
  .real-farm-map { height: 260px; }
  .zone-puzzle { font-size: 0.64rem; }
  .map-tip-card { align-items: flex-start; }
  .tree-location-card { grid-template-columns: 1fr; }
  .tree-location-actions { grid-template-columns: 1fr; }
}

.admin-login-page {
  background:
    linear-gradient(180deg, rgba(21, 47, 82, 0.88), rgba(33, 92, 124, 0.84)),
    url("../assets/farm-hero.png") center/cover no-repeat;
}

.admin-header {
  background: rgba(246, 249, 252, 0.9);
}

.admin-header .header-title,
.admin-header .header-back {
  color: #16283d;
}

.stat-card {
  background: linear-gradient(135deg, #1f5d3b, #28799a);
  box-shadow: 0 12px 28px rgba(31, 93, 59, 0.16);
}

.stat-value,
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.scan-btn {
  background: linear-gradient(135deg, #1f5d3b, #28799a);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(31, 93, 59, 0.18);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pagination .btn {
  min-width: 96px;
}

.admin-search-row {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-search-row .btn {
  min-height: 50px;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 10px;
}

.compact-picker {
  min-height: 48px;
  padding: 0 13px;
  border-radius: 15px;
  font-size: 0.9rem;
}

.admin-filter-grid .field-placeholder {
  color: #536252;
}

.verify-result-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
}

.verify-result-item:last-child {
  border-bottom: 0;
}

.verify-result-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.verify-result-main strong {
  color: var(--text-primary);
  font-size: 0.96rem;
}

.verify-result-main small {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 360px) {
  .admin-search-row {
    grid-template-columns: 1fr;
  }
}

.filter-bar {
  position: sticky;
  top: 56px;
  z-index: 30;
  display: flex;
  gap: 8px;
  margin: 0 -16px 14px;
  padding: 10px 16px 12px;
  overflow-x: auto;
  background: rgba(247, 250, 243, 0.92);
  border-bottom: 1px solid rgba(228, 234, 223, 0.82);
  box-shadow: 0 8px 22px rgba(25, 54, 35, 0.06);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  height: 34px;
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(213, 224, 207, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #536252;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(24, 54, 35, 0.04);
}

.filter-chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #20613a, #4f8b50);
  box-shadow: 0 8px 18px rgba(32, 97, 58, 0.22);
}

.field-picker {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #dfe7da;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdf9);
  color: var(--text-primary);
  font: inherit;
  font-weight: 700;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 4px 14px rgba(24,54,35,0.04);
}

.field-picker:active {
  transform: scale(0.995);
}

.field-picker.error {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.field-placeholder {
  color: #9aa59a;
  font-weight: 500;
}

.field-arrow,
.field-calendar {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #60705f;
}

.field-arrow::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  right: 6px;
  top: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.field-calendar::before {
  content: "";
  position: absolute;
  inset: 3px 2px 2px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.field-calendar::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 9px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px 10px;
  background: rgba(12, 24, 17, 0.42);
  backdrop-filter: blur(8px);
}

.sheet-mask.show {
  display: flex;
}

.bottom-sheet {
  width: min(460px, 100%);
  max-height: min(82vh, 680px);
  overflow: auto;
  padding: 10px 16px 18px;
  border-radius: 26px;
  background: #fbfdf8;
  box-shadow: 0 -16px 50px rgba(12, 28, 18, 0.22);
  animation: sheetIn 0.24s ease;
}

@keyframes sheetIn {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 2px auto 14px;
  border-radius: 999px;
  background: #d8e0d2;
}

.sheet-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.sheet-title-row h3 {
  font-size: 1.08rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sheet-title-row p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.sheet-close {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #edf3e9;
  color: #526251;
  font-size: 1.2rem;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid #e1e9dc;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-align: left;
  font: inherit;
  box-shadow: 0 4px 14px rgba(24, 54, 35, 0.04);
}

.option-card.active {
  border-color: #6ca75f;
  background: linear-gradient(180deg, #f5fbf1, #ffffff);
  box-shadow: 0 8px 22px rgba(32, 97, 58, 0.12);
}

.option-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #20613a, #d9952f);
  color: #fff;
  font-weight: 800;
}

.option-main strong,
.option-main small {
  display: block;
}

.option-main strong {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.option-main small {
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.5;
}

.option-tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0f6ec;
  color: #2e6a3f;
  font-size: 0.72rem;
  font-weight: 800;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  margin: 4px 0 10px;
}

.calendar-head strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.calendar-nav {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #edf3e9;
  color: var(--primary-dark);
  font-size: 1.3rem;
}

.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-week {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.76rem;
  text-align: center;
}

.calendar-grid {
  gap: 6px;
}

.calendar-day {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.calendar-day strong {
  font-size: 0.92rem;
}

.calendar-day small {
  height: 12px;
  color: var(--accent-color);
  font-size: 0.62rem;
  font-weight: 700;
}

.calendar-day:not(:disabled):active,
.calendar-day.active {
  background: linear-gradient(135deg, #20613a, #5fa66b);
  color: #fff;
  box-shadow: 0 8px 18px rgba(32, 97, 58, 0.2);
}

.calendar-day.active small {
  color: rgba(255,255,255,0.88);
}

.calendar-day:disabled {
  color: #c3cbbf;
}

/* Prototype-aligned home */
.home-service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: -18px 12px 18px;
  padding: 13px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 34px rgba(44, 78, 51, 0.12);
  position: relative;
  z-index: 2;
}

.home-service-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font: inherit;
}

.home-service-item strong {
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
}

.home-service-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: #e9f8e8;
  color: #087b2a;
  position: relative;
}

.home-service-icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.home-icon-tree::before,
.home-icon-fruit::before {
  border-radius: 50%;
}

.home-icon-special::before {
  width: 11px;
  height: 16px;
  left: 7px;
  top: 10px;
  border-radius: 7px 7px 4px 4px;
}

.home-icon-special::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 13px;
  right: 7px;
  top: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.home-icon-map::before {
  transform: rotate(45deg);
  border-radius: 50% 50% 50% 0;
}

.home-icon-bed::before {
  height: 11px;
  top: 14px;
  border-radius: 3px 3px 8px 8px;
}

.home-announcement {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(32, 97, 58, 0.08);
}

.home-announcement.weather-ready {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 249, 235, 0.94));
  border-color: rgba(38, 126, 61, 0.14);
  box-shadow: 0 10px 24px rgba(48, 78, 54, 0.08);
}

.home-announcement strong {
  padding: 4px 8px;
  border-radius: 999px;
  background: #087b2a;
  color: #fff;
  font-size: 0.72rem;
}

.home-announcement span {
  overflow: hidden;
  color: #52614f;
  font-size: 0.82rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-announcement.weather-ready span::before {
  content: "天气 ";
  color: #319553;
}

.home-announcement em {
  color: #6a7666;
  font-size: 1.2rem;
  font-style: normal;
}

.home-recommend-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 74%);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scroll-snap-type: x mandatory;
}

.home-recommend-card {
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(32, 97, 58, 0.08);
  box-shadow: 0 14px 30px rgba(48, 78, 54, 0.08);
}

.home-recommend-photo {
  height: 138px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.home-recommend-photo span {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7f8e6;
  color: #087b2a;
  font-size: 0.68rem;
  font-weight: 800;
}

.home-recommend-card h3,
.home-recommend-card p,
.home-recommend-card strong {
  margin-left: 12px;
  margin-right: 12px;
}

.home-recommend-card h3 {
  margin-top: 12px;
  margin-bottom: 5px;
  font-size: 1rem;
}

.home-recommend-card p {
  min-height: 36px;
  margin-top: 0;
  margin-bottom: 10px;
  color: #60705e;
  font-size: 0.78rem;
  line-height: 1.45;
}

.home-recommend-card strong {
  display: block;
  margin-bottom: 13px;
  color: #087b2a;
  font-size: 1rem;
}

/* Prototype-aligned adoption market */
.adoption-market-page,
.market-detail-page {
  background: #fbf9f4;
}

.market-hero {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  border-radius: 18px;
  background: #163d25;
  box-shadow: 0 18px 42px rgba(31, 73, 43, 0.14);
}

.market-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.market-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 45, 25, 0.12), rgba(8, 35, 20, 0.88));
}

.market-hero-content {
  position: relative;
  z-index: 1;
  min-height: 310px;
  padding: 26px 20px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.market-eyebrow {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 700;
}

.market-hero h2 {
  margin: 12px 0 8px;
  font-size: 1.78rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.market-hero p {
  margin: 0;
  max-width: 310px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.6;
}

.market-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.market-hero-actions .btn {
  min-height: 44px;
  border-radius: 13px;
}

.market-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: -20px 12px 22px;
  position: relative;
  z-index: 2;
}

.market-entry-grid button {
  border: 1px solid rgba(32, 97, 58, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(35, 72, 47, 0.1);
  padding: 12px 6px 10px;
  color: var(--text-primary);
  font: inherit;
  text-align: center;
}

.market-entry-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
}

.market-entry-grid em {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-style: normal;
  line-height: 1.25;
}

.market-entry-icon,
.guarantee-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: #e7f7e5;
  color: var(--primary-dark);
  position: relative;
}

.market-entry-icon::before,
.guarantee-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.entry-icon-species::before,
.entry-icon-tree::before {
  border-radius: 50%;
}

.entry-icon-map::before {
  transform: rotate(45deg);
  border-radius: 50% 50% 50% 0;
}

.entry-icon-order::before {
  border-radius: 3px;
  box-shadow: inset 0 5px 0 rgba(32, 97, 58, 0.18);
}

.market-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(32, 97, 58, 0.08);
}

.market-notice strong {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #0b7a28;
  color: #fff;
  font-size: 0.72rem;
}

.market-notice-mask {
  overflow: hidden;
  min-width: 0;
}

.market-notice-track {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  color: #586657;
  font-size: 0.82rem;
  animation: marketNotice 18s linear infinite;
}

@keyframes marketNotice {
  from { transform: translateX(0); }
  to { transform: translateX(-55%); }
}

.market-section-title h2 {
  position: relative;
  padding-left: 12px;
}

.market-section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  border-radius: 999px;
  background: #087b2a;
}

.fruit-type-grid {
  display: grid;
  gap: 12px;
}

.fruit-type-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(32, 97, 58, 0.1);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  box-shadow: 0 12px 28px rgba(48, 78, 54, 0.07);
}

.fruit-type-photo {
  display: block;
  width: 88px;
  height: 82px;
  border-radius: 13px;
  background-size: cover;
  background-position: center;
}

.fruit-type-info strong {
  display: block;
  font-size: 1rem;
}

.fruit-type-info em {
  display: block;
  margin-top: 4px;
  color: #60705e;
  font-size: 0.78rem;
  line-height: 1.45;
  font-style: normal;
}

.fruit-type-info small {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.fruit-type-info b {
  padding: 3px 7px;
  border-radius: 999px;
  background: #e9f6e8;
  color: #176b2a;
  font-size: 0.64rem;
  font-weight: 700;
}

.fruit-type-price {
  color: #087b2a;
  font-size: 0.82rem;
  font-weight: 800;
}

.market-guarantees {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 22px 0;
}

.market-guarantees div {
  min-height: 104px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(32, 97, 58, 0.08);
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(48, 78, 54, 0.06);
}

.market-guarantees strong,
.market-guarantees em {
  display: block;
}

.market-guarantees strong {
  margin-top: 8px;
  color: var(--text-primary);
  font-size: 0.84rem;
}

.market-guarantees em {
  margin-top: 4px;
  color: #6b7767;
  font-size: 0.68rem;
  line-height: 1.35;
  font-style: normal;
}

.guarantee-safe::before {
  border-radius: 50%;
}

.guarantee-yield::before {
  border-radius: 3px 3px 8px 8px;
}

.guarantee-delivery::before {
  width: 18px;
  height: 12px;
  border-radius: 3px;
}

.market-map-card {
  margin-bottom: 24px;
}

.clean-farm-map {
  min-height: 270px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.54), rgba(255,255,255,0)),
    url('../assets/farm-map-zones.jpg'),
    linear-gradient(135deg, #dff0d3, #f7edd1);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(32, 97, 58, 0.12);
}

.map-zone {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: #164f27;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(31, 73, 43, 0.1);
  border: 1px solid rgba(32, 97, 58, 0.12);
}

.map-zone-cherry { left: 9%; top: 18%; width: 30%; height: 26%; }
.map-zone-apple { right: 11%; top: 12%; width: 33%; height: 30%; }
.map-zone-pear { left: 13%; bottom: 16%; width: 34%; height: 28%; }
.map-zone-service { right: 10%; bottom: 16%; width: 28%; height: 24%; }

.market-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.market-filter-row .filter-chip {
  flex: 0 0 auto;
}

.market-tree-list {
  gap: 14px;
}

.market-tree-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(32, 97, 58, 0.09);
  box-shadow: 0 14px 32px rgba(48, 78, 54, 0.08);
}

.market-tree-card .tree-card-image {
  height: 186px;
  background-size: cover;
  background-position: center;
}

.tree-image-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.market-tree-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.market-tree-main h3 {
  margin: 0;
  font-size: 1.08rem;
}

.market-tree-main p {
  margin: 5px 0 0;
  color: #637261;
  font-size: 0.78rem;
}

.market-tree-main strong {
  flex: 0 0 auto;
  color: #087b2a;
  font-size: 1rem;
}

.market-card-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 13px;
}

.market-card-actions .btn {
  min-height: 42px;
  border-radius: 12px;
}

.market-load-tip {
  margin: 14px 0 4px;
  padding: 12px;
  border-radius: 14px;
  background: #edf6ea;
  color: #2d6a36;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.market-load-tip.loading::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 50%;
  border: 2px solid rgba(45, 106, 54, 0.25);
  border-top-color: #2d6a36;
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}

.market-empty p {
  margin: 8px auto 0;
  max-width: 280px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.market-detail-hero {
  min-height: 360px;
  border-radius: 0 0 24px 24px;
  margin: -16px -16px 16px;
  padding: 18px 18px 22px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.market-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 35, 20, 0.22), rgba(8, 35, 20, 0.86));
}

.detail-hero-top,
.detail-hero-bottom {
  position: relative;
  z-index: 1;
}

.detail-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-hero-top span,
.detail-hero-top strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.74rem;
}

.detail-hero-bottom h2 {
  margin: 0 0 8px;
  font-size: 1.85rem;
  line-height: 1.18;
}

.detail-hero-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 0.86rem;
}

.detail-hero-bottom b {
  display: inline-block;
  margin-top: 13px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  color: #087b2a;
  font-size: 1.05rem;
}

.market-fact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.market-fact-card div {
  border-radius: 15px;
  background: #fff;
  border: 1px solid rgba(32, 97, 58, 0.08);
  padding: 12px;
}

.market-fact-card span {
  display: block;
  color: #73806f;
  font-size: 0.72rem;
}

.market-fact-card strong {
  display: block;
  margin-top: 5px;
  color: var(--text-primary);
  font-size: 0.96rem;
}

.market-section-card {
  margin-bottom: 16px;
  border-radius: 18px;
}

.tree-photo-panel {
  min-height: 210px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.tree-photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(8, 35, 20, 0.74));
}

.tree-photo-panel > div {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #fff;
}

.tree-photo-panel strong,
.tree-photo-panel p {
  display: block;
}

.tree-photo-panel p {
  margin: 5px 0 10px;
  color: rgba(255,255,255,0.86);
  font-size: 0.8rem;
}

.tree-video-box video {
  display: block;
  width: 100%;
  min-height: 220px;
  border-radius: 16px;
  background: #102918;
}

.clean-mini-map {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0)),
    url('../assets/farm-map-zones.jpg'),
    #e8f3df;
  background-size: cover;
  background-position: center;
}

.market-plan-list,
.plan-selector {
  display: grid;
  gap: 10px;
}

.market-plan-item,
.plan-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(32, 97, 58, 0.12);
  border-radius: 15px;
  background: #fff;
  padding: 12px;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
}

.market-plan-item.active,
.plan-option.active {
  border-color: #087b2a;
  background: #eef8ec;
  box-shadow: inset 0 0 0 1px rgba(8, 123, 42, 0.18);
}

.market-plan-item span,
.plan-option span,
.market-plan-item em,
.plan-option em {
  display: block;
}

.market-plan-item em,
.plan-option em {
  margin-top: 4px;
  color: #677465;
  font-size: 0.76rem;
  line-height: 1.35;
  font-style: normal;
}

.market-plan-item b,
.plan-option > span {
  flex: 0 0 auto;
  color: #087b2a;
  font-size: 1rem;
}

.care-empty {
  padding: 14px;
  border-radius: 14px;
  background: #f3f7ef;
}

.care-empty p {
  margin: 6px 0 0;
  color: #667362;
  font-size: 0.82rem;
  line-height: 1.5;
}

.care-log-list {
  display: grid;
  gap: 10px;
}

.care-log-item {
  padding: 12px;
  border-radius: 14px;
  background: #f6f8f3;
}

.care-log-item span {
  color: #6b7868;
  font-size: 0.72rem;
}

.care-log-item strong {
  display: block;
  margin-top: 5px;
}

.care-log-item p {
  margin: 5px 0 0;
  color: #647161;
  font-size: 0.82rem;
  line-height: 1.5;
}

.detail-guarantees {
  margin-bottom: 92px;
}

.market-sticky-action {
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(32, 97, 58, 0.1);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.market-adopt-modal .plan-selector {
  margin-bottom: 14px;
}

.market-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 380px) {
  .market-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fruit-type-card {
    grid-template-columns: 76px 1fr;
  }

  .fruit-type-photo {
    width: 76px;
    height: 76px;
  }

  .fruit-type-price {
    grid-column: 2;
  }

  .market-guarantees {
    grid-template-columns: 1fr;
  }
}

/* Prototype v2: closer to supplied mobile mockups */
.prototype-header {
  height: 56px;
  display: grid;
  grid-template-columns: 40px 1fr 52px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: #fbf9f4;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 50;
}

.prototype-header .header-title {
  color: #087b2a;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
}

.prototype-grid-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  background:
    linear-gradient(#087b2a, #087b2a) left top / 7px 7px no-repeat,
    linear-gradient(#087b2a, #087b2a) right top / 7px 7px no-repeat,
    linear-gradient(#087b2a, #087b2a) left bottom / 7px 7px no-repeat,
    linear-gradient(#087b2a, #087b2a) right bottom / 7px 7px no-repeat;
}

.farm-brand-logo {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background:
    radial-gradient(circle at 68% 28%, #f6d65f 0 5px, transparent 6px),
    linear-gradient(135deg, #0f8a45, #59b66b);
  box-shadow: 0 8px 18px rgba(20, 119, 64, .2);
  position: relative;
  overflow: hidden;
}

.farm-brand-logo::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 50% 50% 50% 0;
  background: #fff;
  transform: rotate(-45deg);
}

.farm-brand-logo::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  left: 7px;
  bottom: 8px;
  transform: rotate(-18deg);
}

.prototype-header-action {
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #e9f7e7;
  color: #087b2a;
  font-size: 0.75rem;
  font-weight: 800;
}

.home-prototype-page,
.adoption-prototype-page {
  max-width: 430px;
  padding-left: 20px;
  padding-right: 20px;
  background: #fbf9f4;
}

.home-prototype-page .hero-carousel {
  height: 352px;
  margin: 0 -20px;
  border-radius: 0;
  box-shadow: none;
}

.home-prototype-page .hero-content {
  padding: 0 20px 92px;
}

.home-prototype-page .hero-title {
  font-size: 1.92rem;
  line-height: 1.15;
}

.home-prototype-page .home-service-grid {
  margin: -58px 0 20px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: 16px;
}

.home-prototype-page .section-title h2,
.prototype-section-title h2 {
  color: #101a12;
  font-size: 1.2rem;
  font-weight: 900;
}

.home-prototype-page .section-title span,
.prototype-section-title span {
  color: #6d786a;
  font-size: 0.78rem;
}

.adoption-prototype-page {
  padding-bottom: 92px;
}

.adoption-plan-hero {
  min-height: 180px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(15, 64, 30, 0.9), rgba(15, 64, 30, 0.32)),
    url('../assets/fruit-apple.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 22px 18px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 18px 38px rgba(31, 73, 43, 0.12);
}

.adoption-plan-hero span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.adoption-plan-hero h2 {
  max-width: 270px;
  margin: 0;
  font-size: 1.44rem;
  line-height: 1.24;
  letter-spacing: 0;
}

.adoption-plan-hero p {
  max-width: 285px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  line-height: 1.45;
}

.prototype-quick-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(48, 78, 54, 0.08);
  border: 1px solid rgba(32, 97, 58, 0.08);
  margin-bottom: 18px;
}

.prototype-quick-card button {
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  text-align: center;
  min-width: 0;
}

.prototype-quick-card strong {
  display: block;
  margin-top: 7px;
  font-size: 0.72rem;
  line-height: 1.2;
}

.prototype-quick-card em {
  display: block;
  margin-top: 3px;
  color: #7a8477;
  font-size: 0.58rem;
  line-height: 1.25;
  font-style: normal;
}

.prototype-notice {
  margin-bottom: 22px;
}

.prototype-section-title {
  margin-top: 22px;
  margin-bottom: 12px;
}

.adoption-product-list {
  display: grid;
  gap: 18px;
}

.adoption-product-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(32, 97, 58, 0.09);
  box-shadow: 0 16px 34px rgba(48, 78, 54, 0.08);
}

.adoption-product-photo {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.adoption-product-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(6, 38, 17, 0.72));
}

.adoption-product-photo span {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #087b2a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.adoption-product-photo h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 1.28rem;
  line-height: 1.2;
}

.adoption-product-body {
  padding: 14px 14px 16px;
}

.adoption-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.adoption-product-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf6ea;
  color: #2d7635;
  font-size: 0.68rem;
  font-weight: 800;
}

.adoption-product-price {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 3px;
  color: #087b2a;
}

.adoption-product-price strong {
  font-size: 1.18rem;
}

.adoption-product-price em {
  color: #6f7a6b;
  font-style: normal;
  font-size: 0.78rem;
}

.adoption-product-body p {
  margin: 8px 0 14px;
  color: #657261;
  font-size: 0.84rem;
  line-height: 1.6;
}

.adoption-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.adoption-product-actions .btn {
  min-height: 42px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.market-tree-card.is-disabled .tree-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(25, 35, 27, 0.38);
}

.market-tree-card.is-disabled .tree-card-body {
  opacity: 0.78;
}

.adoption-prototype-page .market-tree-card .tree-card-image {
  height: 198px;
}

@media (max-width: 380px) {
  .prototype-quick-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adoption-product-actions {
    grid-template-columns: 1fr;
  }
}

/* 20260604 guide polish: hero shortcuts, carousels and video feedback */
.hero-carousel {
  padding-bottom: 84px;
}

.hero-quick-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 8px;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 32px rgba(31, 73, 43, 0.18);
  backdrop-filter: blur(12px);
}

.hero-quick-overlay a,
.hero-quick-overlay button {
  display: grid;
  place-items: center;
  gap: 5px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #183a24;
  text-decoration: none;
  font: inherit;
}

.hero-quick-overlay strong {
  font-size: 0.72rem;
  line-height: 1.15;
  white-space: nowrap;
}

.hero-quick-icon {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: #e9f6e8;
  color: #087b2a;
  box-shadow: inset 0 -1px 0 rgba(8,123,42,0.12);
}

.hero-quick-icon::before,
.hero-quick-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hero-quick-calendar::before {
  width: 15px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.hero-quick-calendar::after {
  width: 13px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -6px);
}

.hero-quick-tree::before {
  width: 15px;
  height: 15px;
  border-radius: 50% 50% 45% 45%;
  background: currentColor;
}

.hero-quick-tree::after {
  width: 3px;
  height: 11px;
  border-radius: 999px;
  background: #7d5730;
  transform: translate(-50%, 2px);
}

.hero-quick-ticket::before {
  width: 17px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.hero-quick-ticket::after {
  width: 2px;
  height: 10px;
  border-left: 2px dashed currentColor;
}

.hero-quick-phone::before {
  width: 13px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.hero-quick-phone::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, 5px);
}

.home-recommend-carousel,
.adoption-product-carousel {
  position: relative;
}

.home-recommend-scroll {
  grid-auto-columns: 86%;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.home-recommend-scroll::-webkit-scrollbar,
.adoption-product-list::-webkit-scrollbar {
  display: none;
}

.mini-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 4px 0 0;
}

.mini-carousel-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 123, 42, 0.18);
  transition: width 0.2s ease, background 0.2s ease;
}

.mini-carousel-dots button.active {
  width: 18px;
  background: #087b2a;
}

.adoption-product-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.adoption-product-card {
  scroll-snap-align: center;
}

.reservation-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 244px;
  margin-bottom: 16px;
  padding: 24px 18px 92px;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(13, 54, 27, 0.18), rgba(12, 49, 25, 0.78)),
    url("../assets/farm-hero.png") center/cover no-repeat;
  box-shadow: 0 18px 38px rgba(31, 73, 43, 0.14);
}

.reservation-hero-card span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.reservation-hero-card h2 {
  max-width: 250px;
  margin: 0;
  font-size: 1.58rem;
  line-height: 1.22;
}

.reservation-hero-card p {
  max-width: 286px;
  margin: 9px 0 0;
  color: rgba(255,255,255,0.88);
  font-size: 0.84rem;
  line-height: 1.5;
}

.reservation-quick-overlay {
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.video-request-btn[disabled] {
  opacity: 1;
  border-color: rgba(8, 123, 42, 0.16);
  background: #e8f7e6;
  color: #087b2a;
}

@media (max-width: 360px) {
  .hero-quick-overlay {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-carousel {
    height: 330px;
    padding-bottom: 150px;
  }

  .reservation-hero-card {
    padding-bottom: 150px;
  }
}

/* 20260604 guide polish v2: restore clean two-pill hero shortcuts */
.home-prototype-page .hero-carousel {
  height: 326px;
  padding-bottom: 0;
  margin-bottom: 14px;
}

.home-prototype-page .hero-content {
  bottom: 104px;
}

.hero-pill-actions {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-prototype-page .home-service-grid {
  margin: 0 0 20px;
  z-index: 1;
}

.home-prototype-page .carousel-dots {
  top: 16px;
  right: 18px;
  z-index: 5;
}

.hero-pill {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 52px;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(12, 45, 25, 0.18);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
}

.hero-pill-primary {
  background: #5fa35a;
  color: #fff;
}

.hero-pill-light {
  background: rgba(255,255,255,0.96);
  color: #26723d;
}

.reservation-hero-card {
  padding-bottom: 92px;
}

.reservation-pill-actions,
.adoption-hero-pills {
  left: 18px;
  right: 18px;
  bottom: 16px;
}

.adoption-plan-hero {
  position: relative;
  min-height: 236px;
  padding-bottom: 94px;
}

.adoption-plan-hero > div:first-child {
  position: relative;
  z-index: 1;
}

@media (max-width: 360px) {
  .home-prototype-page .hero-carousel {
    height: 338px;
  }

  .home-prototype-page .hero-content {
    bottom: 112px;
  }

  .hero-pill-actions {
    left: 14px;
    right: 14px;
    gap: 10px;
  }

  .hero-pill {
    min-height: 48px;
    font-size: 0.9rem;
  }
}

/* 20260604 guide polish v4: align home hero with adoption card style */
.home-prototype-page .hero-carousel {
  height: 286px;
  margin: 4px 0 16px;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(31, 73, 43, 0.12);
}

.home-prototype-page .hero-content {
  left: 18px;
  right: 18px;
  bottom: 92px;
  padding: 0;
}

.home-prototype-page .hero-kicker {
  margin-bottom: 8px;
  padding: 5px 10px;
  font-size: 0.72rem;
}

.home-prototype-page .hero-title {
  max-width: 288px;
  font-size: 1.55rem;
  line-height: 1.22;
}

.home-prototype-page .hero-desc {
  max-width: 300px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.home-prototype-page .hero-pill-actions {
  left: 18px;
  right: 18px;
  bottom: 16px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.home-prototype-page .hero-pill-actions .hero-pill {
  width: min(250px, 78%);
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.62);
  background: rgba(255,255,255,.24);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.46),
    0 16px 34px rgba(11, 48, 23, .22);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
}

.home-prototype-page .hero-pill-actions .hero-pill::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(95, 163, 90, .72), rgba(255,255,255,.2));
  z-index: -1;
}

.home-prototype-page .home-service-grid {
  margin-top: 0;
}

@media (max-width: 360px) {
  .home-prototype-page .hero-carousel {
    height: 292px;
    border-radius: 16px;
  }

  .home-prototype-page .hero-content {
    bottom: 96px;
  }

  .home-prototype-page .hero-title {
    font-size: 1.42rem;
  }
}

/* 20260604 admin polish: align merchant console with farm visual language */
body:has(.admin-header),
body:has(.admin-login-page),
.admin-login-page {
  background:
    linear-gradient(180deg, rgba(232, 247, 230, 0.84), rgba(251, 249, 244, 0.96) 240px),
    #fbf9f4;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(31, 73, 43, 0.08);
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(31, 73, 43, 0.05);
}

.admin-header .header-title {
  color: #14351f;
  font-weight: 900;
}

.admin-header .header-back {
  border: 1px solid rgba(8, 123, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  color: #087b2a;
  box-shadow: 0 8px 18px rgba(31, 73, 43, 0.08);
}

.admin-logout-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(8, 123, 42, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #087b2a;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(31, 73, 43, 0.08);
}

body:has(.admin-header) .page-container {
  padding-top: 14px;
  padding-bottom: 96px;
}

body:has(.admin-header) .card,
body:has(.admin-header) .form-panel,
body:has(.admin-header) .reservation-card,
body:has(.admin-header) .video-request-admin-card,
body:has(.admin-header) .video-request-admin-item {
  border: 1px solid rgba(32, 97, 58, 0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 30px rgba(48, 78, 54, 0.08);
}

body:has(.admin-header) .reservation-card {
  overflow: hidden;
  padding: 16px;
}

body:has(.admin-header) .reservation-card::before {
  background: linear-gradient(90deg, #087b2a, #77b65f);
}

body:has(.admin-header) .section-title h2,
body:has(.admin-header) .form-panel-title,
body:has(.admin-header) .reservation-main,
body:has(.admin-header) .tree-title-row h3 {
  color: #102d1a;
  font-weight: 900;
}

.admin-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

body:has(.admin-header) .form-input,
body:has(.admin-header) .field-picker,
body:has(.admin-header) .form-textarea,
body:has(.admin-header) .form-select {
  border-color: rgba(32, 97, 58, 0.12);
  border-radius: 14px;
  background: #fbfdf9;
}

body:has(.admin-header) .btn {
  border-radius: 14px;
  font-weight: 900;
}

body:has(.admin-header) .btn-primary,
.admin-login-page .btn-primary {
  border-color: #087b2a;
  background: linear-gradient(135deg, #087b2a, #69a953);
  box-shadow: 0 12px 22px rgba(8, 123, 42, 0.18);
}

body:has(.admin-header) .btn-secondary {
  border-color: rgba(8, 123, 42, 0.13);
  background: #fff;
  color: #26723d;
}

.admin-adoption-nav {
  border-top: 1px solid rgba(31, 73, 43, 0.08);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 -12px 28px rgba(31, 73, 43, 0.08);
}

.admin-adoption-nav .tab-item.active {
  color: #087b2a;
}

.adoption-summary,
.stats-grid,
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.adoption-summary > div,
.stats-grid > div,
.admin-dashboard-grid > div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(32, 97, 58, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(232, 247, 230, 0.88), rgba(255,255,255,0.96));
  box-shadow: 0 14px 30px rgba(48, 78, 54, 0.08);
}

.adoption-summary span,
.stats-grid span,
.admin-dashboard-grid span {
  color: #66745f;
  font-size: 0.76rem;
  font-weight: 800;
}

.adoption-summary strong,
.stats-grid strong,
.admin-dashboard-grid strong {
  display: block;
  margin-top: 8px;
  color: #102d1a;
  font-size: 1.55rem;
  font-weight: 950;
}

.admin-login-page {
  min-height: 100vh;
  padding: 44px 22px 24px;
}

.admin-login-page .login-header {
  overflow: hidden;
  margin-bottom: 20px;
  padding: 28px 20px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(12, 49, 25, 0.1), rgba(12, 49, 25, 0.82)),
    url("../assets/farm-hero.png") center/cover no-repeat;
  box-shadow: 0 18px 38px rgba(31, 73, 43, 0.14);
}

.admin-login-page .login-logo {
  background: rgba(255,255,255,0.92);
  color: #087b2a;
}

.admin-login-page .login-title,
.admin-login-page .login-subtitle {
  color: #fff;
}

.admin-login-page .login-form {
  border: 1px solid rgba(32, 97, 58, 0.08);
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 16px 34px rgba(48, 78, 54, 0.1);
}

@media (max-width: 360px) {
  .admin-filter-grid,
  .adoption-summary,
  .stats-grid,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* 20260604 orchard admin: maintain trees with selections and map picking */
.admin-orchard-page {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.admin-hero-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 61, 30, 0.94), rgba(67, 132, 63, 0.82)),
    url("../assets/farm-hero.png") center/cover no-repeat;
  box-shadow: 0 18px 36px rgba(31, 73, 43, 0.15);
}

.admin-hero-panel span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-hero-panel h2 {
  max-width: 260px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.2;
}

.admin-hero-panel p {
  margin-top: 7px;
  color: rgba(255,255,255,0.84);
  font-size: 0.82rem;
  line-height: 1.5;
}

.admin-toolbar-card {
  display: grid;
  gap: 12px;
}

.admin-toolbar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-hero-actions {
  display: grid;
  gap: 10px;
  min-width: 112px;
}

.admin-tree-card {
  display: grid;
  gap: 12px;
}

.admin-tree-card-top {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
}

.admin-tree-thumb {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  background: #eef8ea center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(32, 97, 58, 0.08);
}

.orchard-form-modal {
  width: min(94vw, 560px);
  max-height: 88vh;
  overflow-y: auto;
  padding-bottom: 18px;
}

.care-batch-modal {
  width: min(96vw, 1080px);
}

.care-batch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 16px;
}

.care-batch-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(32, 97, 58, 0.08);
  border-radius: 18px;
  background: rgba(250, 253, 248, 0.86);
}

.care-quick-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.compact-actions {
  margin: 10px 0 12px;
}

.care-map-picker {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(32, 97, 58, 0.14);
  background:
    linear-gradient(135deg, rgba(32, 97, 58, 0.22), rgba(247, 179, 75, 0.14)),
    url('../assets/farm-satellite-map.png') center / contain no-repeat,
    #edf4e8;
  touch-action: none;
}

.care-zone-layer,
.care-map-lasso {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.care-zone-polygon {
  fill: color-mix(in srgb, var(--zone-color, #74b65f) 24%, transparent);
  stroke: color-mix(in srgb, var(--zone-color, #74b65f) 72%, #174626);
  stroke-width: 0.6;
  cursor: pointer;
}

.care-zone-label {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.86);
  color: #1f5f34;
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(31, 95, 52, 0.12);
}

.care-map-lasso {
  z-index: 4;
  pointer-events: none;
}

.care-map-lasso polygon {
  fill: rgba(8, 123, 42, 0.2);
  stroke: #087b2a;
  stroke-width: 0.8;
  stroke-dasharray: 2 1.2;
}

.care-map-point {
  position: absolute;
  z-index: 5;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #9aa39a;
  box-shadow: 0 4px 10px rgba(20, 60, 30, 0.22);
}

.care-map-point.selected {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: #f2a51f;
  box-shadow: 0 0 0 5px rgba(242, 165, 31, 0.22), 0 8px 16px rgba(20, 60, 30, 0.2);
}

.care-map-hint {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: #49614e;
  font-size: 0.78rem;
  font-weight: 700;
}

.care-selected-summary {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #eef8ed;
  color: #1f6b37;
  font-size: 0.9rem;
  font-weight: 900;
}

.care-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 96px;
  overflow: auto;
  margin-bottom: 12px;
}

.care-selected-list span,
.care-selected-list em {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  color: #536251;
  font-size: 0.72rem;
  font-style: normal;
  border: 1px solid rgba(32, 97, 58, 0.08);
}

@media (max-width: 860px) {
  .care-batch-grid {
    grid-template-columns: 1fr;
  }

  .care-map-picker {
    min-height: 300px;
  }
}

.form-section {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(32, 97, 58, 0.08);
  border-radius: 18px;
  background: #fbfdf9;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.quick-chip {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(47, 123, 79, 0.14);
  border-radius: 999px;
  color: #2f7b4f;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-value-guide {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 131, 35, 0.2);
  border-radius: 16px;
  background: #fff7e8;
  color: #765522;
  display: grid;
  gap: 6px;
  font-size: .78rem;
  line-height: 1.45;
}

.admin-value-guide strong {
  color: #8f4d12;
  font-size: .84rem;
}

.admin-value-guide span {
  display: block;
}

.orchard-picker-map {
  position: relative;
  height: 214px;
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid rgba(32, 97, 58, 0.12);
  border-radius: 22px;
  cursor: crosshair;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.1), transparent 40%),
    url("../assets/farm-map-zones.jpg") center/cover no-repeat,
    linear-gradient(135deg, #dff0d5, #f7f1d2);
}

.orchard-picker-map::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(255,255,255,0.5);
  border-radius: 18px;
  pointer-events: none;
}

.orchard-zone {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 78, 42, 0.72);
  font-size: 0.72rem;
  font-weight: 950;
  backdrop-filter: blur(8px);
}

.orchard-zone.cherry { left: 18%; top: 22%; }
.orchard-zone.apple { right: 16%; top: 24%; }
.orchard-zone.pear { right: 18%; bottom: 28%; }
.orchard-zone.service { left: 14%; bottom: 18%; }

#pickerPin {
  position: absolute;
  z-index: 4;
  width: 28px;
  height: 28px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #ef4e3f;
  box-shadow: 0 10px 18px rgba(83, 41, 21, 0.22);
  transform: translate(-50%, -100%) rotate(-45deg);
}

#pickerPin::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.map-action-grid,
.form-actions-sticky {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-actions-sticky {
  position: sticky;
  bottom: -18px;
  z-index: 5;
  margin: 16px -2px 0;
  padding: 12px 2px 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%);
}

@media (max-width: 420px) {
  .admin-hero-panel,
  .admin-tree-card-top,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .admin-tree-thumb {
    width: 100%;
    height: 138px;
  }
}

/* 20260604 orchard screen */
.orchard-screen-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(108, 183, 91, 0.18), transparent 30%),
    linear-gradient(135deg, #071b10, #123920 58%, #0b2114);
}

.orchard-screen {
  min-height: 100vh;
  padding: 22px;
  color: #eaffea;
}

.orchard-screen-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.orchard-screen-header span {
  color: #9fe08d;
  font-size: 0.78rem;
  font-weight: 950;
}

.orchard-screen-header h1 {
  margin-top: 6px;
  color: #fff;
  font-size: 2rem;
  line-height: 1.1;
}

.orchard-screen-header p {
  margin-top: 8px;
  color: rgba(234,255,234,0.68);
}

.screen-header-actions {
  display: flex;
  gap: 10px;
}

.screen-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.screen-kpi-grid > div,
.screen-map-panel,
.screen-side-panel,
.screen-tree-strip article,
.screen-detail-pop {
  border: 1px solid rgba(190, 239, 175, 0.13);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 18px 34px rgba(0,0,0,0.18);
  backdrop-filter: blur(16px);
}

.screen-kpi-grid > div {
  min-height: 104px;
  padding: 16px;
  border-radius: 22px;
}

.screen-kpi-grid span {
  color: rgba(234,255,234,0.68);
  font-size: 0.82rem;
  font-weight: 850;
}

.screen-kpi-grid strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 2rem;
  font-weight: 950;
}

.screen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 14px;
}

.screen-map-panel,
.screen-side-panel {
  border-radius: 26px;
  padding: 16px;
}

.screen-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.screen-panel-title h2 {
  color: #fff;
  font-size: 1.08rem;
}

.screen-panel-title span {
  color: rgba(234,255,234,0.62);
  font-size: 0.76rem;
}

.screen-orchard-map {
  position: relative;
  min-height: 520px;
  aspect-ratio: var(--farm-map-aspect, 1356 / 795);
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(7,27,16,0.05), rgba(7,27,16,0.32)),
    url("../assets/farm-satellite-map.png") center/contain no-repeat,
    linear-gradient(135deg, #dff0d5, #f7f1d2);
}

.screen-amap-layer,
.screen-static-map-layer {
  position: absolute;
  inset: 0;
}

.screen-amap-layer {
  z-index: 1;
  display: none;
}

.screen-static-map-layer {
  z-index: 2;
}

.screen-orchard-map.amap-mode {
  background: #dfe8d8;
}

.screen-orchard-map.amap-mode .screen-amap-layer {
  display: block;
}

.screen-orchard-map.amap-mode .screen-static-map-layer {
  display: none;
}

.screen-orchard-map.image-mode {
  background-size: 100% 100%, contain;
  background-position: center;
  background-repeat: no-repeat;
}

.screen-orchard-map.image-mode::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(5, 18, 10, .18) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(6, 22, 12, .2));
}

.screen-orchard-map.image-mode .screen-zone,
.screen-orchard-map.image-mode .screen-map-point {
  z-index: 3;
}

.amap-tree-label {
  padding: 4px 8px;
  border: 1px solid rgba(31, 93, 57, .12);
  border-radius: 999px;
  color: #164022;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 18px rgba(20, 54, 30, .16);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.screen-zone {
  position: absolute;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 27, 16, 0.56);
  font-size: 0.82rem;
  font-weight: 950;
}

.zone-cherry { left: 16%; top: 18%; }
.zone-apple { right: 14%; top: 18%; }
.zone-pear { right: 18%; bottom: 24%; }
.zone-service { left: 12%; bottom: 18%; }

.screen-map-point {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255,255,255,0.86);
  border-radius: 50%;
  color: #fff;
  background: #2f7b4f;
  font-size: 0.76rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22);
  transform: translate(-50%, -50%);
}

.screen-map-point.adopted { background: #d9952f; }
.screen-map-point.maintenance { background: #65756d; }

.screen-bars {
  display: grid;
  gap: 12px;
}

.screen-bar-item div {
  display: flex;
  justify-content: space-between;
  color: #eaffea;
  font-size: 0.86rem;
  font-weight: 900;
}

.screen-bar-item i {
  display: block;
  height: 9px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.11);
}

.screen-bar-item em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #89df73, #f1d174);
}

.screen-orders {
  display: grid;
  gap: 10px;
}

.screen-order-item {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
}

.screen-order-item strong,
.screen-order-item span {
  display: block;
}

.screen-order-item strong {
  color: #fff;
  font-size: 0.9rem;
}

.screen-order-item span,
.screen-empty {
  margin-top: 4px;
  color: rgba(234,255,234,0.64);
  font-size: 0.78rem;
}

.screen-tree-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.screen-tree-strip article {
  min-height: 86px;
  padding: 12px;
  border-radius: 18px;
  cursor: pointer;
}

.screen-tree-strip span {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #89df73;
}

.screen-tree-strip span.adopted { background: #d9952f; }
.screen-tree-strip span.maintenance { background: #9aa49d; }

.screen-tree-strip strong,
.screen-tree-strip em {
  display: block;
}

.screen-tree-strip strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-tree-strip em {
  margin-top: 5px;
  color: rgba(234,255,234,0.58);
  font-size: 0.72rem;
  font-style: normal;
}

.screen-detail-pop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  width: min(360px, calc(100vw - 32px));
  display: none;
  gap: 7px;
  padding: 16px;
  border-radius: 20px;
  color: #eaffea;
}

.screen-detail-pop.show {
  display: grid;
}

.screen-detail-pop button {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.12);
  font-size: 1.2rem;
}

.screen-detail-pop strong {
  color: #fff;
  font-size: 1.1rem;
}

.screen-detail-pop span,
.screen-detail-pop p {
  color: rgba(234,255,234,0.68);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* 20260604 admin PC workspace */
.admin-order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 900px) {
  body:has(.admin-header) {
    padding-left: 264px;
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 238, 176, 0.2), transparent 28%),
      linear-gradient(180deg, #f7faf3 0%, #f4f6ef 260px, #f7f7f2 100%);
  }

  body:has(.admin-header) .admin-header {
    position: fixed;
    left: 264px;
    right: 0;
    width: auto;
    max-width: none;
    transform: none;
    height: 72px;
    padding: 0 32px;
    border-bottom: 1px solid rgba(34, 67, 46, 0.08);
    background: rgba(248, 250, 244, 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
    box-shadow: 0 14px 30px rgba(29, 54, 35, 0.06);
  }

  body:has(.admin-header) .admin-header .header-title {
    color: #14241a;
    font-size: 1.22rem;
    letter-spacing: 0;
  }

  body:has(.admin-header) .admin-header .header-back {
    width: auto;
    min-width: 76px;
    padding: 0 14px;
  }

  body:has(.admin-header) .container,
  body:has(.admin-header) .page-container {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body:has(.admin-header) .page-container {
    padding: 100px 34px 46px;
  }

  body:has(.admin-header) .admin-adoption-nav {
    position: fixed;
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    transform: none;
    z-index: 120;
    width: 264px;
    max-width: none;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: stretch;
    padding: 132px 18px 24px;
    border-top: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background:
      radial-gradient(circle at 24% 8%, rgba(214, 167, 82, 0.24), transparent 26%),
      linear-gradient(180deg, #102819 0%, #16351f 52%, #0d2016 100%);
    box-shadow: 18px 0 42px rgba(16, 40, 25, 0.18);
  }

  body:has(.admin-header) .admin-adoption-nav::before {
    content: "西马休闲农场\A运营工作台";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 22px;
    min-height: 82px;
    padding: 18px 16px 14px 58px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: #fff;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
    white-space: pre-line;
    font-size: 1.04rem;
    line-height: 1.55;
    font-weight: 950;
    letter-spacing: 0;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.18),
      0 16px 34px rgba(0,0,0,0.18);
  }

  body:has(.admin-header) .admin-adoption-nav::after {
    content: "西";
    position: absolute;
    left: 34px;
    top: 41px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #17351f;
    background: linear-gradient(135deg, #fff8df, #d8a94e);
    font-size: 1rem;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  }

  body:has(.admin-header) .admin-adoption-nav .tab-item {
    height: 50px;
    flex: none;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 11px;
    justify-content: start;
    align-items: center;
    padding: 0 12px;
    border-radius: 16px;
    color: rgba(235, 246, 232, 0.74);
    text-align: left;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  }

  body:has(.admin-header) .admin-adoption-nav .tab-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    transform: translateX(2px);
  }

  body:has(.admin-header) .admin-adoption-nav .tab-item.active {
    color: #122a1a;
    background: #f8fbf2;
    box-shadow: 0 16px 30px rgba(0,0,0,0.22);
  }

  body:has(.admin-header) .admin-adoption-nav .tab-item-icon {
    width: 24px;
    height: 24px;
    margin: 0;
    opacity: 0.9;
  }

  body:has(.admin-header) .admin-adoption-nav .tab-item.active .tab-item-icon {
    color: #0b7a2a;
    opacity: 1;
  }

  body:has(.admin-header) .admin-adoption-nav .tab-item-text {
    font-size: 0.94rem;
    font-weight: 900;
    letter-spacing: 0;
  }

  body:has(.admin-header) .admin-logout-btn {
    right: 30px;
    height: 38px;
    padding: 0 16px;
    border-color: rgba(11, 122, 42, 0.12);
    background: #fff;
    box-shadow: 0 10px 22px rgba(24, 55, 35, 0.08);
  }

  body:has(.admin-header) .adoption-summary,
  body:has(.admin-header) .stats-grid,
  body:has(.admin-header) .admin-dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body:has(.admin-header) .admin-toolbar-card {
    grid-template-columns: minmax(320px, 1.2fr) minmax(300px, 0.9fr) auto;
    align-items: end;
  }

  body:has(.admin-header) .admin-toolbar-card .admin-filter-grid {
    margin-top: 0;
  }

  body:has(.admin-header) .admin-toolbar-actions {
    min-width: 260px;
  }

  body:has(.admin-header) #treeList,
  body:has(.admin-header) .admin-order-grid,
  body:has(.admin-header) #orderList {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  body:has(.admin-header) #treeList .empty-state,
  body:has(.admin-header) #orderList .empty-state,
  body:has(.admin-header) #treeList .loading,
  body:has(.admin-header) #orderList .loading {
    grid-column: 1 / -1;
  }

  body:has(.admin-header) .reservation-card,
  body:has(.admin-header) .admin-tree-card,
  body:has(.admin-header) .admin-order-card {
    margin-bottom: 0;
  }

  body:has(.admin-header) .orchard-form-modal,
  body:has(.admin-header) .admin-form-modal {
    width: min(860px, calc(100vw - 300px));
    max-height: 88vh;
  }

  body:has(.admin-header) .orchard-picker-map {
    height: 300px;
  }

  .admin-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 0.85fr) minmax(420px, 1fr);
    align-items: center;
    gap: 34px;
    padding: 54px max(38px, 8vw);
  }

  .admin-login-page .login-header {
    min-height: 520px;
    display: grid;
    align-content: end;
    margin-bottom: 0;
    padding: 34px;
    border-radius: 30px;
  }

  .admin-login-page .login-form {
    max-width: 460px;
    margin: 0;
    padding: 30px;
  }
}

@media (min-width: 1320px) {
  body:has(.admin-header) #treeList,
  body:has(.admin-header) .admin-order-grid,
  body:has(.admin-header) #orderList {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .orchard-screen {
    padding: 14px;
  }

  .orchard-screen-header,
  .screen-layout,
  .screen-kpi-grid {
    grid-template-columns: 1fr;
  }

  .screen-tree-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-orchard-map {
    min-height: 380px;
  }
}

/* 20260605 adoption decision flow polish */
.header-nav-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mini-nav-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  border-radius: 50% 50% 50% 0;
  background: #2f7d4f;
  transform: rotate(-45deg);
  position: relative;
}

.mini-nav-icon::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  left: 5px;
  top: 5px;
}

.home-brand-map-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 12px;
  margin-top: 14px;
}

.brand-intro,
.brand-map-panel {
  border: 1px solid rgba(47, 125, 79, .12);
  background: linear-gradient(180deg, #fff, #f6fbf4);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(47, 84, 54, .08);
}

.brand-intro span {
  display: inline-flex;
  color: #2f7d4f;
  font-size: .78rem;
  font-weight: 700;
  background: rgba(47, 125, 79, .1);
  border-radius: 999px;
  padding: 5px 9px;
}

.brand-intro h2 {
  margin: 10px 0 6px;
  font-size: 1.18rem;
  color: #1e3d2b;
}

.brand-intro p {
  color: #5d6d61;
  font-size: .88rem;
  line-height: 1.65;
}

.brand-intro div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.brand-intro button,
.brand-map-panel {
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.brand-intro button {
  min-height: 38px;
  border-radius: 12px;
  background: #2f7d4f;
  color: #fff;
}

.brand-intro button + button {
  background: #fff4df;
  color: #9a5a12;
}

.brand-map-panel {
  text-align: left;
  color: #1f3828;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.brand-map-panel::before {
  content: "";
  position: absolute;
  inset: auto -14px -20px auto;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(240, 170, 54, .18);
}

.brand-map-pin {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 16px;
  background: #e85d45;
  margin-bottom: 12px;
  position: relative;
}

.brand-map-pin::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
}

.brand-map-panel strong,
.brand-map-panel em {
  display: block;
  position: relative;
}

.brand-map-panel em {
  margin-top: 8px;
  color: #6a776b;
  font-size: .78rem;
  font-style: normal;
  line-height: 1.5;
}

.adoption-progress-card {
  margin-top: 14px;
}

.species-progress-list {
  display: grid;
  gap: 10px;
}

.species-progress-item {
  border: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(42, 74, 48, .08);
  text-align: left;
}

.species-progress-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #2f7d4f, #8fbd55);
}

.species-progress-main strong,
.species-progress-main em,
.species-progress-main i {
  display: block;
}

.species-progress-main strong {
  color: #213d2a;
  font-size: .96rem;
}

.species-progress-main em {
  margin-top: 3px;
  font-size: .78rem;
  color: #6a7568;
  font-style: normal;
}

.species-progress-main i {
  height: 7px;
  border-radius: 999px;
  background: #edf3e8;
  margin-top: 8px;
  overflow: hidden;
}

.species-progress-main b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0aa36, #2f7d4f);
}

.adoption-product-rights,
.payment-order-tags,
.service-pay-rights,
.adoption-rights-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.adoption-product-rights span,
.payment-order-tags span,
.service-pay-rights span,
.adoption-rights-strip span {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(47, 125, 79, .08);
  color: #2f6c43;
  font-size: .72rem;
  font-weight: 700;
}

.adoption-product-rights {
  margin: 9px 0 4px;
}

.market-tree-main h3 span,
.market-tree-main p b {
  color: #2f7d4f;
}

.tree-share-link {
  border: 0;
  background: transparent;
  color: #2f7d4f;
  font-weight: 700;
  padding: 10px 0 0;
  width: 100%;
  text-align: left;
}

.duration-price-tip {
  margin-top: 8px;
  color: #6a7568;
  font-size: .78rem;
  line-height: 1.5;
}

.duration-slot-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.duration-slot-group .time-slot {
  min-width: 0;
  white-space: nowrap;
}

.payment-order-tags {
  margin: 7px 0 2px;
}

.service-pay-summary .payment-order-tags span {
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.12);
}

.service-pay-rights {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(47, 125, 79, .12);
}

.service-icon-share {
  background: linear-gradient(135deg, #f0aa36, #2f7d4f);
}

.verify-scan-modal {
  max-width: 440px;
}

.verify-scan-video {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 14px 0;
  object-fit: cover;
  border-radius: 18px;
  background: #102216;
  border: 4px solid rgba(47, 125, 79, .16);
}

@media (max-width: 520px) {
  .home-brand-map-card {
    grid-template-columns: 1fr;
  }

  .brand-intro,
  .brand-map-panel {
    border-radius: 16px;
  }
}

/* 20260605 home story/location block: match provided prototype */
.home-story-location {
  display: grid;
  gap: 18px;
  margin: 16px 0 22px;
}

.home-story-card {
  min-height: 132px;
  border-radius: 14px;
  padding: 20px 18px 18px;
  background:
    radial-gradient(circle at 86% 12%, transparent 0 30px, rgba(255,255,255,.46) 31px 37px, transparent 38px),
    linear-gradient(135deg, #f0f0ed, #e7e6e1);
  color: #304036;
  box-shadow: 0 10px 22px rgba(39, 55, 42, .06);
}

.home-story-card h3 {
  margin: 0 0 9px;
  color: #207749;
  font-size: .95rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.home-story-card p {
  margin: 0;
  max-width: 92%;
  color: #334239;
  font-size: .78rem;
  line-height: 1.68;
  font-weight: 500;
}

.home-story-card button {
  margin-top: 13px;
  min-width: 114px;
  height: 31px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid #1f8a4d;
  background: rgba(255, 255, 255, .42);
  color: #1f8a4d;
  font-size: .75rem;
  font-weight: 800;
}

.home-route-card {
  display: grid;
  gap: 13px;
  margin: 14px 0 22px;
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(240,248,235,.94)),
    url("../assets/farm-map-zones.jpg") right bottom/42% auto no-repeat;
  border: 1px solid rgba(47, 125, 79, .1);
  box-shadow: 0 12px 26px rgba(42, 76, 48, .08);
}

.home-route-head span {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1f7547;
  background: #eaf6e5;
  font-size: .72rem;
  font-weight: 950;
}

.home-route-head h2 {
  margin-top: 7px;
  color: #173f27;
  font-size: 1.08rem;
  line-height: 1.25;
}

.home-route-head p {
  margin-top: 5px;
  max-width: 86%;
  color: #657064;
  font-size: .78rem;
  line-height: 1.45;
}

.home-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-route-grid article {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  color: #fff;
  background: #1f5f3a;
  border: 1px solid rgba(47, 125, 79, .08);
  isolation: isolate;
}

.home-route-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--route-bg, url("../assets/xima-ancient-road-card.jpg")) center/cover no-repeat;
  transform: scale(1.02);
}

.home-route-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(16, 58, 35, .82), rgba(16, 58, 35, .34) 58%, rgba(199, 139, 45, .42));
}

.home-route-grid article:nth-child(1) {
  --route-bg: url("../assets/xima-ancient-road-card.jpg");
}

.home-route-grid article:nth-child(2) {
  --route-bg: url("../assets/xima-gate-card.jpg");
}

.home-route-grid article:nth-child(3) {
  --route-bg: url("../assets/xima-fruit-canopy-card.jpg");
}

.home-route-grid article:nth-child(4) {
  --route-bg: url("../assets/xima-video2-frame7.jpg");
}

.home-route-grid i {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff4c8;
  background: rgba(255,255,255,.16);
  font-style: normal;
  font-size: .7rem;
  font-weight: 950;
}

.home-route-grid strong {
  color: #fff;
  font-size: .82rem;
  font-weight: 950;
}

.home-route-grid span {
  color: rgba(255,255,255,.86);
  font-size: .7rem;
  line-height: 1.35;
}

.home-location-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(37, 52, 41, .1);
  border: 1px solid rgba(37, 52, 41, .06);
}

.home-location-map {
  height: 105px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    repeating-radial-gradient(ellipse at 50% 42%, rgba(255,255,255,.34) 0 2px, rgba(255,255,255,0) 3px 14px),
    linear-gradient(135deg, #d4d6d2, #bfc4be 52%, #e2e3df);
}

.home-location-map::before,
.home-location-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,.42), transparent 34%),
    radial-gradient(circle at 16% 22%, rgba(255,255,255,.35), transparent 26%),
    radial-gradient(circle at 82% 72%, rgba(255,255,255,.24), transparent 28%);
  mix-blend-mode: screen;
}

.home-location-pin {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 86, 48, .18);
}

.home-location-pin::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: #1f8a4d;
  transform: rotate(-45deg);
}

.home-location-pin::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.home-location-body {
  display: grid;
  grid-template-columns: 1fr 48px;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 13px;
}

.home-location-body h3 {
  margin: 0;
  color: #1c2c22;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 900;
}

.home-location-body p {
  margin: 6px 0 0;
  color: #6c746d;
  font-size: .78rem;
  line-height: 1.35;
  font-weight: 600;
}

.home-location-body button {
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 50%;
  background: #50bd4e;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px rgba(80, 189, 78, .28);
}

.home-location-body button span {
  width: 22px;
  height: 22px;
  display: block;
  position: relative;
  transform: none;
}

.home-location-body button span::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 0;
  background: #155f31;
  transform: rotate(-45deg);
}

.home-location-body button span::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 1px;
  width: 18px;
  height: 8px;
  border: 2px solid #155f31;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  transform: skewX(-14deg);
}

@media (min-width: 720px) {
  .home-story-location {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 20260605 final glass pills: smaller, softer, no hard white border */
.home-prototype-page .hero-content {
  bottom: 84px;
}

.home-prototype-page .hero-pill-actions {
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.home-prototype-page .hero-pill-actions .hero-pill {
  pointer-events: auto;
  width: 176px;
  min-height: 42px;
  border: 0;
  outline: 1px solid rgba(255, 255, 255, .18);
  background: rgba(73, 132, 74, .34);
  color: rgba(255, 255, 255, .94);
  font-size: .9rem;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(17, 73, 35, .16),
    0 10px 22px rgba(8, 38, 18, .16);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.home-prototype-page .hero-pill-actions .hero-pill::before {
  inset: 0;
  background: linear-gradient(135deg, rgba(71, 144, 78, .28), rgba(255, 255, 255, .10));
}

.adoption-prototype-page .adoption-hero-pills {
  left: 18px;
  right: 18px;
  bottom: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.adoption-prototype-page .adoption-hero-pills .hero-pill {
  min-height: 40px;
  border: 0;
  outline: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .94);
  font-size: .82rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .20),
    0 8px 18px rgba(16, 51, 26, .13);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}

.adoption-prototype-page .adoption-hero-pills .hero-pill-primary {
  background: rgba(42, 127, 68, .38);
}

.adoption-prototype-page .adoption-hero-pills .hero-pill-light {
  background: rgba(255, 255, 255, .22);
}

/* 20260605 random adoption flow */
.adoption-product-actions.single-action {
  grid-template-columns: 1fr;
}

.adoption-product-actions .btn-block {
  width: 100%;
}

.random-assign-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(47, 125, 79, .1), rgba(240, 170, 54, .12));
  border: 1px solid rgba(47, 125, 79, .12);
  box-shadow: 0 10px 24px rgba(39, 74, 44, .08);
}

.random-assign-card span,
.random-assign-card strong,
.random-assign-card p {
  display: block;
}

.random-assign-card span {
  color: #2f7d4f;
  font-size: .74rem;
  font-weight: 800;
}

.random-assign-card strong {
  margin-top: 4px;
  color: #223d2b;
  font-size: .98rem;
}

.random-assign-card p {
  margin: 5px 0 0;
  color: #69766b;
  font-size: .76rem;
  line-height: 1.5;
}

.random-assign-card button {
  min-width: 76px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #2f7d4f;
  font-size: .82rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(47, 125, 79, .12);
}

/* 20260605 category-first adoption page */
.adoption-prototype-page .adoption-product-carousel {
  overflow: visible;
}

.adoption-prototype-page .adoption-product-list {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: 1fr;
  gap: 14px;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.adoption-prototype-page .adoption-product-card {
  scroll-snap-align: unset;
  border-radius: 16px;
}

.adoption-prototype-page .adoption-product-photo {
  height: 150px;
}

.adoption-prototype-page .adoption-product-body {
  padding: 13px 13px 14px;
}

.adoption-product-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.adoption-product-status span {
  min-width: 0;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.adoption-product-status span {
  color: #237043;
  background: #eaf6e5;
}

.adoption-product-brief {
  display: grid;
  gap: 7px;
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfff8, #fffaf0);
  border: 1px solid rgba(47, 125, 79, .08);
}

.adoption-product-brief div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 9px;
  align-items: start;
}

.adoption-product-brief b {
  color: #1f6d3d;
  font-size: .72rem;
  line-height: 1.45;
  font-weight: 950;
}

.adoption-product-brief span {
  color: #5d6d61;
  font-size: .74rem;
  line-height: 1.45;
  font-weight: 750;
}

.adoption-prototype-page .mini-carousel-dots {
  display: none;
}

.product-progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 9px 0 2px;
  color: #607064;
  font-size: .74rem;
  font-weight: 800;
}

.product-progress-row em {
  color: #2f7d4f;
  font-style: normal;
}

.product-progress-row i {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: #edf3e8;
  overflow: hidden;
}

.product-progress-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb23f, #2f9a54);
}

.product-progress-row.is-loading {
  color: #8b6a24;
}

.product-progress-row.is-loading i {
  background: #fff3d5;
}

.product-progress-row.is-loading b {
  background: linear-gradient(90deg, #ffd36a, #ffb23f);
}

/* 20260605 clearer adoption trust copy */
.adoption-trust-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(47, 125, 79, .08);
  box-shadow: 0 12px 26px rgba(45, 78, 48, .07);
}

.adoption-trust-card .trust-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfff7, #fffaf0);
}

.adoption-trust-card strong {
  display: block;
  color: #183d25;
  font-size: .84rem;
  line-height: 1.45;
  font-weight: 900;
}

.adoption-trust-card span {
  display: block;
  margin-top: 2px;
  color: #627064;
  font-size: .74rem;
  line-height: 1.45;
  font-weight: 700;
}

.trust-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-block;
  color: #2f7d4f;
  background: linear-gradient(135deg, #e8f7dc, #fff4cf);
}

.trust-icon::before,
.trust-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.trust-icon-leaf::before {
  width: 18px;
  height: 24px;
  left: 11px;
  top: 7px;
  border-radius: 18px 4px 18px 4px;
  background: currentColor;
  transform: rotate(38deg);
}

.trust-icon-leaf::after {
  width: 13px;
  height: 2px;
  left: 13px;
  top: 21px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(-35deg);
}

.trust-icon-shield::before {
  width: 20px;
  height: 24px;
  left: 9px;
  top: 7px;
  border-radius: 10px 10px 12px 12px;
  border: 3px solid currentColor;
  background: rgba(255,255,255,.48);
}

.trust-icon-shield::after {
  width: 10px;
  height: 6px;
  left: 15px;
  top: 17px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
}

.trust-icon-box::before {
  width: 22px;
  height: 18px;
  left: 8px;
  top: 14px;
  border: 3px solid currentColor;
  border-radius: 5px;
  background: rgba(255,255,255,.45);
}

.trust-icon-box::after {
  width: 18px;
  height: 10px;
  left: 10px;
  top: 7px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.compact-modal-hint {
  line-height: 1.5;
}

.service-payment-page .service-pay-title p {
  line-height: 1.55;
  max-width: 236px;
}

.service-payment-page .service-pay-main-card {
  gap: 12px;
  padding: 16px 16px 14px;
}

.service-payment-page .service-qr-image {
  width: min(100%, 232px);
}

.service-payment-page .service-qr-panel.simple {
  padding: 10px;
}

.service-payment-page .service-pay-rights {
  margin-top: 4px;
  padding-top: 10px;
}

.service-payment-page {
  gap: 10px;
  padding-bottom: calc(124px + env(safe-area-inset-bottom));
}

.service-payment-page .service-pay-summary {
  gap: 5px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(31, 73, 43, 0.13);
}

.service-payment-page .service-pay-summary strong {
  margin-top: 2px;
  font-size: 1.7rem;
}

.service-payment-page .service-pay-summary small {
  padding: 4px 8px;
  font-size: .72rem;
}

.service-payment-page .service-pay-summary p {
  font-size: .86rem;
}

.service-payment-page .payment-order-tags {
  margin: 4px 0 0;
  gap: 5px;
}

.service-payment-page .payment-order-tags span {
  padding: 4px 7px;
  font-size: .68rem;
}

.service-payment-page .copy-code-pill {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 14px;
}

.service-payment-page .copy-code-pill span {
  font-size: .68rem;
}

.service-payment-page .copy-code-pill b {
  font-size: .82rem;
}

.service-payment-page .service-pay-main-card {
  gap: 9px;
  margin: 10px 0 0;
  padding: 13px 14px 12px;
  border-radius: 20px;
}

.service-pay-brief {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2faed, #fffdf6);
  border: 1px solid rgba(47, 125, 79, .08);
}

.service-pay-brief span {
  color: #2f7d4f;
  font-size: .78rem;
  font-weight: 950;
}

.service-pay-brief p {
  color: #5c6d60;
  font-size: .76rem;
  line-height: 1.45;
  margin: 0;
}

.service-payment-page .service-pay-title {
  grid-template-columns: 42px 1fr;
  gap: 10px;
}

.service-payment-page .service-pay-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  font-size: .88rem;
}

.service-payment-page .service-pay-title strong {
  font-size: .98rem;
}

.service-payment-page .service-pay-title p {
  max-width: none;
  margin-top: 2px;
  font-size: .76rem;
  line-height: 1.35;
}

.service-payment-page .service-qr-panel.simple {
  padding: 7px;
  border-radius: 18px;
}

.service-payment-page .service-qr-image {
  width: min(100%, 208px);
  border-width: 7px;
  border-radius: 15px;
  box-shadow: 0 10px 22px rgba(31, 73, 43, 0.11);
}

.payment-mini-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.payment-mini-steps span {
  min-width: 0;
  padding: 7px 4px;
  border-radius: 12px;
  color: #2d6040;
  background: #f3faef;
  font-size: .68rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.service-payment-page .service-pay-rights {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.service-payment-page .service-pay-rights span {
  padding: 4px 7px;
  font-size: .68rem;
}

.service-payment-page .service-assist-row {
  margin-top: 10px;
}

.service-payment-page .sticky-submit {
  margin-top: 82px;
  margin-bottom: 96px;
}

.service-payment-page .payment-order-line {
  display: block;
  margin: 1px 0 2px;
  min-width: 0;
}

.service-payment-page .payment-order-line span {
  display: block;
  overflow: hidden;
  padding: 0;
  color: rgba(255,255,255,.82);
  background: transparent;
  border: 0;
  font-size: .72rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-contact-line {
  overflow: hidden;
  color: rgba(255,255,255,.84);
  font-size: .74rem;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-adopt-modal {
  max-height: min(86vh, 620px);
  overflow-y: auto;
}

/* 20260605 admin analytics polish */
.admin-analytics-page {
  display: grid;
  gap: 16px;
}

.admin-analytics-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 55, 35, .92), rgba(47, 123, 79, .78)),
    url("../assets/farm-hero.png") center/cover no-repeat;
  box-shadow: 0 18px 36px rgba(31, 73, 43, .14);
}

.admin-analytics-hero span {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #eaffdf;
  background: rgba(255,255,255,.14);
  font-size: .78rem;
  font-weight: 950;
}

.admin-analytics-hero h2 {
  margin-top: 10px;
  color: #fff;
  font-size: 1.42rem;
  line-height: 1.25;
}

.admin-analytics-hero p {
  margin-top: 6px;
  color: rgba(255,255,255,.78);
  font-size: .88rem;
  line-height: 1.55;
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.analytics-kpi-card {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(47, 125, 79, .1);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f7fbf3);
  text-align: left;
  box-shadow: 0 12px 26px rgba(47, 84, 54, .07);
}

.analytics-kpi-card span {
  color: #617064;
  font-size: .78rem;
  font-weight: 850;
}

.analytics-kpi-card strong {
  color: #173d25;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 950;
}

.analytics-kpi-card em {
  color: #2f7d4f;
  font-size: .78rem;
  font-style: normal;
  font-weight: 850;
}

.analytics-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.analytics-panel {
  padding: 16px;
  border-radius: 22px;
}

.analytics-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.analytics-panel-head h3 {
  color: #183d25;
  font-size: 1rem;
}

.analytics-panel-head p {
  margin-top: 4px;
  color: #6b7568;
  font-size: .78rem;
}

.analytics-panel-head a {
  color: #2f7d4f;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.analytics-bar-list {
  display: grid;
  gap: 10px;
}

.analytics-bar-list.compact {
  margin-top: 12px;
}

.analytics-bar-item {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 1.2fr 48px;
  gap: 10px;
  align-items: center;
}

.analytics-bar-item strong,
.analytics-bar-item span,
.analytics-bar-item em {
  display: block;
}

.analytics-bar-item strong {
  color: #253d2c;
  font-size: .86rem;
}

.analytics-bar-item span {
  margin-top: 2px;
  color: #6b7568;
  font-size: .72rem;
}

.analytics-bar-item i,
.analytics-species-item i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3e8;
}

.analytics-bar-item b,
.analytics-species-item b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb23f, #2f9a54);
}

.analytics-bar-item em {
  color: #2f7d4f;
  font-size: .78rem;
  font-style: normal;
  font-weight: 950;
  text-align: right;
}

.analytics-species-list {
  display: grid;
  gap: 10px;
}

.analytics-species-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fbf5;
}

.analytics-species-item strong {
  color: #183d25;
  font-size: .92rem;
}

.analytics-species-item span {
  display: block;
  margin-top: 3px;
  color: #6b7568;
  font-size: .72rem;
}

.analytics-species-item em {
  color: #2f7d4f;
  font-size: .78rem;
  font-style: normal;
  font-weight: 950;
}

.analytics-species-item i {
  grid-column: 1 / -1;
}

.analytics-column-chart {
  height: 178px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(52px, 1fr);
  gap: 10px;
  align-items: end;
  overflow-x: auto;
  padding-bottom: 4px;
}

.analytics-column-chart div {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 52px;
}

.analytics-column-chart i {
  width: 26px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #74aa4c, #2f7d4f);
}

.analytics-column-chart strong {
  color: #183d25;
  font-size: .78rem;
}

.analytics-column-chart span,
.analytics-column-chart em {
  color: #6b7568;
  font-size: .68rem;
  font-style: normal;
}

.analytics-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.analytics-mini-grid div {
  padding: 12px;
  border-radius: 16px;
  background: #f8fbf5;
}

.analytics-mini-grid span,
.analytics-mini-grid strong {
  display: block;
}

.analytics-mini-grid span {
  color: #6b7568;
  font-size: .72rem;
  font-weight: 800;
}

.analytics-mini-grid strong {
  margin-top: 5px;
  color: #183d25;
  font-size: 1.28rem;
  font-weight: 950;
}

.admin-order-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.admin-order-code-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(47, 125, 79, .16);
  border-radius: 999px;
  color: #2f7d4f;
  background: #edf8ea;
  font: inherit;
  font-size: .78rem;
  font-weight: 950;
}

.admin-order-code-row button b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order-code-row button span {
  color: #fff;
  background: #2f7d4f;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: .68rem;
}

.admin-order-code-row small {
  color: #6b7568;
  font-size: .78rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .admin-analytics-hero,
  .analytics-board-grid {
    grid-template-columns: 1fr;
  }

  .analytics-kpi-grid,
  .analytics-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-bar-item {
    grid-template-columns: 1fr 72px;
  }

  .analytics-bar-item i {
    grid-column: 1 / -1;
  }
}

/* 20260605 product polish: conversion-first mobile experience */
.home-page-body .xiaoxi-pet,
.adoption-page-body .xiaoxi-pet {
  display: none;
}

.home-page-body .home-prototype-page,
.adoption-page-body .adoption-prototype-page {
  background:
    linear-gradient(180deg, #fbfaf3 0, #f5f8ef 320px, #fbfaf6 100%);
}

.home-page-body .hero-carousel {
  height: 266px;
}

.home-page-body .hero-content {
  bottom: 84px;
}

.home-page-body .hero-title {
  max-width: 260px;
  font-size: 1.46rem;
}

.home-page-body .hero-desc {
  max-width: 276px;
  font-size: .8rem;
}

.home-page-body .hero-pill-actions .hero-pill {
  min-height: 48px;
  width: min(220px, 72%);
}

.home-page-body .home-service-grid {
  margin-bottom: 14px;
  padding: 11px 8px;
  border-radius: 20px;
}

.home-page-body .home-service-icon {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  background: linear-gradient(180deg, #e8f7e6, #f5fbef);
}

.home-page-body .home-icon-tree::before {
  left: 12px;
  top: 9px;
  width: 14px;
  height: 15px;
  border: 0;
  border-radius: 10px 10px 10px 2px;
  background: currentColor;
  transform: rotate(-18deg);
}

.home-page-body .home-icon-tree::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: -6px 2px 0 -1px currentColor, 6px 2px 0 -1px currentColor;
}

.home-page-body .home-service-item strong {
  font-size: .7rem;
}

.home-page-body .home-story-card {
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0 58%, rgba(255,255,255,.76) 76%, rgba(247,252,242,.52)),
    url("../assets/farm-map-zones.jpg") right bottom / 48% auto no-repeat;
}

.home-page-body .home-story-card p {
  max-width: 88%;
  font-size: .86rem;
}

.adoption-page-body .adoption-plan-hero {
  min-height: 178px;
  padding: 15px 14px 64px;
  border-radius: 18px;
}

.adoption-page-body .adoption-plan-hero h2 {
  max-width: 244px;
  font-size: 1.22rem;
}

.adoption-page-body .adoption-plan-hero p {
  max-width: 270px;
  font-size: .74rem;
  line-height: 1.42;
}

.adoption-page-body .adoption-hero-pills {
  bottom: 10px;
}

.adoption-page-body .adoption-hero-pills .hero-pill {
  min-height: 40px;
  font-size: .82rem;
}

.adoption-page-body .adoption-hero-pills .hero-pill-primary {
  border: 0;
  background: linear-gradient(135deg, #ff7a2f 0%, #f0532f 52%, #d93b25 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(224, 72, 38, .28), inset 0 1px 0 rgba(255,255,255,.35);
}

.adoption-page-body .hero-pill-attention {
  animation: heroCtaBreathe 2.8s ease-in-out infinite;
}

.adoption-page-body .hero-pill-attention::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid rgba(255, 122, 47, .42);
  opacity: .62;
  pointer-events: none;
  animation: heroCtaRing 2.8s ease-in-out infinite;
}

@keyframes heroCtaBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-1px) scale(1.015); }
  55% { transform: translateY(-1px) scale(1.015); }
}

@keyframes heroCtaRing {
  0%, 100% { opacity: .18; transform: scale(.98); }
  50% { opacity: .7; transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .adoption-page-body .hero-pill-attention,
  .adoption-page-body .hero-pill-attention::after {
    animation: none;
  }
}

.adoption-page-body .adoption-trust-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 14px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.adoption-page-body .adoption-trust-card .trust-item {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 6px;
  min-height: 0;
  padding: 10px 6px;
  text-align: center;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(47, 125, 79, .08);
  box-shadow: 0 8px 20px rgba(45, 78, 48, .06);
}

.adoption-page-body .adoption-trust-card .trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

.adoption-page-body .adoption-trust-card strong {
  font-size: .76rem;
}

.adoption-page-body .adoption-trust-card span {
  display: none;
}

.adoption-page-body .adoption-green-promise {
  margin: 8px 0 10px;
  padding: 8px;
  border: 1px solid rgba(47, 125, 79, .09);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,252,239,.94)),
    radial-gradient(circle at 94% 8%, rgba(255, 196, 74, .16), transparent 32%);
  box-shadow: 0 10px 24px rgba(45, 78, 48, .06);
}

.adoption-page-body .green-promise-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.adoption-page-body .green-promise-head span,
.adoption-page-body .green-promise-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(47, 125, 79, .1);
  border: 1px solid rgba(47, 125, 79, .08);
  color: #2f7d4f;
  font-size: .64rem;
  font-weight: 900;
  white-space: nowrap;
}

.adoption-page-body .green-promise-head strong {
  background: rgba(255, 255, 255, .68);
  color: #2b6f45;
}

.adoption-page-body .green-promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.adoption-page-body .green-promise-grid span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 4px 5px 19px;
  border: 1px solid rgba(47, 125, 79, .07);
  border-radius: 10px;
  background: rgba(244, 250, 239, .9);
  color: #214d31;
  font-size: .6rem;
  font-weight: 900;
  line-height: 1.25;
}

.adoption-page-body .green-promise-grid span::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #45ad63, #2f7d4f);
  box-shadow: 0 0 0 4px rgba(69, 173, 99, .12);
  transform: translateY(-50%);
}

.adoption-page-body .prototype-notice {
  margin: 8px 0 10px;
  padding: 6px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 18px rgba(45, 78, 48, .05);
}

.adoption-page-body .prototype-notice strong {
  padding: 3px 7px;
  font-size: .64rem;
}

.adoption-page-body .prototype-notice .market-notice-track {
  gap: 28px;
  font-size: .72rem;
}

.adoption-page-body .prototype-section-title {
  align-items: end;
  margin-top: 6px;
  margin-bottom: 8px;
}

.adoption-page-body .adoption-product-list {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: initial;
  gap: 14px;
  overflow: visible;
  padding-bottom: 0;
}

.adoption-page-body .adoption-more-tip {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 14px 0 92px;
  padding: 12px 10px;
  color: #71806f;
  text-align: center;
}

.adoption-page-body .adoption-more-tip strong {
  color: #2f7d4f;
  font-size: .82rem;
}

.adoption-page-body .adoption-more-tip span {
  font-size: .72rem;
}

.adoption-page-body .adoption-product-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 0;
  min-height: 164px;
  border-radius: 18px;
}

.adoption-page-body .adoption-product-photo {
  height: 100%;
  min-height: 164px;
  border-radius: 18px 0 0 18px;
}

.adoption-page-body .adoption-product-photo h3 {
  left: 10px;
  right: 10px;
  bottom: 12px;
  font-size: .98rem;
}

.adoption-page-body .adoption-product-photo span {
  left: 10px;
  top: 10px;
  font-size: .66rem;
}

.adoption-page-body .adoption-product-body {
  padding: 10px 10px 11px;
}

.adoption-page-body .adoption-product-status {
  margin-bottom: 6px;
}

.adoption-page-body .adoption-product-brief {
  gap: 7px;
  margin-top: 0;
}

.adoption-page-body .adoption-product-brief div {
  padding: 7px;
}

.adoption-page-body .adoption-product-price {
  justify-content: flex-start;
  margin-top: 5px;
}

.adoption-page-body .adoption-product-body p {
  display: -webkit-box;
  margin: 6px 0 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: .76rem;
  line-height: 1.45;
}

.adoption-page-body .adoption-product-brief div:nth-child(2),
.adoption-page-body .adoption-product-body p {
  display: none;
}

.adoption-page-body .adoption-product-status span:nth-child(n+3) {
  display: none;
}

.adoption-page-body .adoption-product-brief div {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.adoption-page-body .adoption-product-brief b,
.adoption-page-body .adoption-product-brief span {
  font-size: .72rem;
}

.adoption-page-body .product-progress-row {
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  font-size: .74rem;
}

.adoption-page-body .product-progress-row i {
  height: 6px;
}

.adoption-page-body .adoption-product-actions.single-action {
  margin-top: 6px;
}

.adoption-page-body .product-progress-row {
  margin: 5px 0 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.adoption-page-body .adoption-product-actions .btn {
  min-height: 40px;
  border-radius: 13px;
}

.admin-settings-page {
  padding-bottom: 112px;
}

.settings-card {
  padding: 16px;
  border-radius: 20px;
}

.settings-tabbar {
  position: sticky;
  top: 66px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 10px;
  padding: 8px;
  border: 1px solid rgba(31, 93, 57, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 26px rgba(31, 74, 43, .08);
  backdrop-filter: blur(16px);
}

.settings-tab {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  color: #42664d;
  background: transparent;
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.settings-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #26723d, #3f9a52);
  box-shadow: 0 10px 18px rgba(38, 114, 61, .18);
}

.settings-card[hidden] {
  display: none !important;
}

.settings-image-grid {
  display: grid;
  gap: 14px;
}

.settings-image-item,
.settings-image-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(47, 125, 79, .08);
  border-radius: 16px;
  background: rgba(247, 252, 242, .72);
}

.settings-image-preview {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #eef6e8;
  box-shadow: inset 0 0 0 1px rgba(47, 125, 79, .08);
}

.settings-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.settings-image-preview.qr-preview img {
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.settings-image-form {
  min-width: 0;
}

@media (max-width: 420px) {
  .settings-image-item,
  .settings-image-row {
    grid-template-columns: 88px 1fr;
    gap: 10px;
    padding: 10px;
  }
}

.tree-detail-page-body .market-detail-page {
  padding-bottom: 132px;
}

.tree-detail-page-body .market-detail-hero {
  min-height: 396px;
  border-radius: 0 0 24px 24px;
}

.tree-detail-page-body .market-detail-hero .detail-hero-bottom h2 {
  font-size: 1.86rem;
}

.tree-detail-page-body .market-fact-card {
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.tree-detail-page-body .market-fact-card div {
  padding: 10px;
  border-radius: 14px;
}

.tree-detail-page-body .tree-photo-panel {
  min-height: 188px;
}

.tree-detail-page-body .detail-guarantees {
  margin-bottom: 128px;
}

.tree-detail-page-body .tree-sticky-action {
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(430px, calc(100% - 28px));
  padding: 9px;
  border-radius: 22px;
}

.tree-detail-page-body .tree-adopt-cta {
  min-height: 46px;
  border-radius: 16px;
}

@media (max-width: 380px) {
  .adoption-page-body .adoption-product-card {
    grid-template-columns: 104px 1fr;
  }

  .adoption-page-body .adoption-product-photo {
    min-height: 176px;
  }

  .home-page-body .hero-title {
    font-size: 1.36rem;
  }
}

/* 20260612 password reset support */
.password-support-card .text-muted {
  line-height: 1.75;
}

.password-support-actions {
  display: grid;
  gap: 10px;
}

/* 20260624 mobile polish: tighten hero cards, bottom actions and detail media */
.reservation-mobile-page {
  padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

.reservation-mobile-page .reservation-hero-card {
  min-height: 214px;
  margin: 0 2px 14px;
  padding: 20px 16px 82px;
  border-radius: 20px;
  background-position: center top;
  box-shadow: 0 14px 30px rgba(31, 73, 43, 0.13);
}

.reservation-mobile-page .reservation-hero-card h2 {
  max-width: 236px;
  font-size: 1.42rem;
}

.reservation-mobile-page .reservation-hero-card p {
  max-width: 292px;
  font-size: .8rem;
  line-height: 1.48;
}

.reservation-mobile-page .reservation-pill-actions {
  left: 14px;
  right: 14px;
  bottom: 14px;
  gap: 10px;
}

.reservation-mobile-page .reservation-pill-actions .hero-pill {
  min-height: 46px;
  border: 0;
  outline: 1px solid rgba(255, 255, 255, .2);
  font-size: .9rem;
  box-shadow: 0 10px 22px rgba(8, 38, 18, .14);
}

.reservation-mobile-page .reservation-pill-actions .hero-pill-primary {
  background: rgba(79, 159, 87, .78);
}

.reservation-mobile-page .reservation-pill-actions .hero-pill-light {
  background: rgba(255, 255, 255, .88);
  color: #1c6a3a;
}

.reservation-mobile-page .form-panel {
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
}

.reservation-mobile-page .sticky-submit {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 130;
  width: min(396px, calc(100% - 44px));
  padding: 0;
  background: transparent;
  transform: translateX(-50%);
}

.reservation-mobile-page .sticky-submit .btn {
  min-height: 48px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(21, 83, 45, .2);
}

.adoption-page-body .adoption-more-tip {
  min-height: 64px;
  margin: 8px 0 72px;
  padding: 10px 10px 8px;
}

.adoption-page-body .adoption-more-tip::after {
  content: "";
  width: 38px;
  height: 2px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(47, 125, 79, .16);
}

.tree-detail-page-body .market-detail-page {
  padding-top: 10px;
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.tree-detail-page-body .market-detail-hero {
  min-height: 268px;
  margin: 0 0 14px;
  padding: 14px 14px 18px;
  border-radius: 22px;
  background-position: center;
  box-shadow: 0 16px 34px rgba(31, 73, 43, .14);
}

.tree-detail-page-body .market-detail-hero::after {
  background: linear-gradient(180deg, rgba(8, 35, 20, .16), rgba(8, 35, 20, .76));
}

.tree-detail-page-body .detail-hero-top span,
.tree-detail-page-body .detail-hero-top strong {
  padding: 5px 9px;
  font-size: .7rem;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px);
}

.tree-detail-page-body .market-detail-hero .detail-hero-bottom h2 {
  max-width: 260px;
  margin-bottom: 6px;
  font-size: 1.44rem;
}

.tree-detail-page-body .detail-hero-bottom p {
  font-size: .78rem;
  line-height: 1.45;
}

.tree-detail-page-body .detail-hero-bottom b {
  margin-top: 9px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .9rem;
}

.tree-detail-page-body .market-fact-card {
  margin-top: 0;
}

.tree-detail-page-body .tree-photo-panel {
  min-height: 158px;
  border-radius: 18px;
}

.tree-detail-page-body .detail-guarantees {
  margin-bottom: 106px;
}

.tree-detail-page-body .tree-sticky-action {
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 32px));
  padding: 8px;
  border-radius: 20px;
}

.tree-detail-page-body .tree-action-price {
  min-width: 70px;
}

.tree-detail-page-body .tree-action-price strong {
  font-size: 1.08rem;
}

.tree-detail-page-body .tree-adopt-cta {
  min-height: 44px;
  border-radius: 14px;
}

@media (max-width: 380px) {
  .reservation-mobile-page .reservation-hero-card {
    min-height: 204px;
    padding: 18px 14px 78px;
  }

  .reservation-mobile-page .reservation-hero-card h2 {
    font-size: 1.32rem;
  }

  .reservation-mobile-page .reservation-pill-actions .hero-pill {
    min-height: 43px;
    font-size: .84rem;
  }

  .tree-detail-page-body .market-detail-hero {
    min-height: 248px;
  }

  .tree-detail-page-body .market-detail-hero .detail-hero-bottom h2 {
    font-size: 1.34rem;
  }
}

/* 20260703 admin adaptive polish */
body:has(.admin-header) {
  color: #10251a;
  background:
    radial-gradient(circle at 16% 0%, rgba(211, 235, 202, .74), transparent 34%),
    linear-gradient(180deg, #f7faf4 0%, #f3f6ee 100%);
}

body:has(.admin-header) .card,
body:has(.admin-header) .settings-card,
body:has(.admin-header) .reservation-card {
  border: 1px solid rgba(31, 93, 57, .08);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 16px 38px rgba(31, 74, 43, .08);
}

body:has(.admin-header) .form-input,
body:has(.admin-header) .form-select,
body:has(.admin-header) .form-textarea {
  border-color: rgba(31, 93, 57, .14);
  background: rgba(255, 255, 255, .92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

body:has(.admin-header) .form-input:focus,
body:has(.admin-header) .form-select:focus,
body:has(.admin-header) .form-textarea:focus {
  border-color: rgba(25, 128, 62, .42);
  box-shadow: 0 0 0 4px rgba(25, 128, 62, .09);
}

.btn-danger,
.admin-tree-action.danger,
.quick-chip.danger {
  color: #a6382f !important;
  border-color: rgba(166, 56, 47, .18) !important;
  background: #fff6f3 !important;
}

.btn-danger:hover,
.admin-tree-action.danger:hover,
.quick-chip.danger:hover {
  color: #fff !important;
  background: #b8453b !important;
}

.btn-compact {
  min-height: 36px;
  padding: 0 12px;
  font-size: .82rem;
}

.admin-order-actions,
.admin-tree-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 9px;
  align-items: stretch;
}

.admin-tree-action {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-tree-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(27, 78, 43, .1);
}

.orchard-map-designer {
  position: relative;
  min-height: 250px;
  aspect-ratio: var(--farm-map-aspect, 1356 / 795);
  overflow: hidden;
  margin: 12px 0 16px;
  border: 1px solid rgba(31, 93, 57, .12);
  border-radius: 24px;
  cursor: crosshair;
  background:
    linear-gradient(135deg, rgba(255,255,255,.42), transparent 38%),
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.9), transparent 10%),
    linear-gradient(135deg, #dff1d2 0%, #f4edca 58%, #cce7d3 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
  touch-action: none;
  user-select: none;
}

.orchard-map-designer.satellite-map {
  background-size: 100% 100%, contain;
  background-position: center;
  background-repeat: no-repeat;
}

.orchard-map-designer.satellite-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.04), rgba(4, 20, 10, .18)),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(4, 20, 10, .18));
}

.orchard-map-designer.satellite-map .orchard-map-lanes {
  display: none;
}

.map-draw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 93, 57, .09);
  border-radius: 16px;
  background: rgba(247, 252, 242, .78);
}

.map-draw-toolbar span {
  flex: 1 1 260px;
  color: #486452;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.45;
}

.orchard-map-lanes,
.orchard-map-lanes::before,
.orchard-map-lanes::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.orchard-map-lanes {
  left: 8%;
  right: 8%;
  top: 52%;
  height: 12px;
  border-radius: 999px;
  background: rgba(121, 95, 55, .18);
  transform: rotate(-4deg);
}

.orchard-map-lanes::before {
  left: 5%;
  right: 22%;
  top: -76px;
  height: 10px;
  border-radius: inherit;
  background: rgba(121, 95, 55, .13);
  transform: rotate(13deg);
}

.orchard-map-lanes::after {
  left: 30%;
  right: 4%;
  top: 72px;
  height: 10px;
  border-radius: inherit;
  background: rgba(121, 95, 55, .12);
  transform: rotate(10deg);
}

.map-designer-note {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 4;
  padding: 6px 10px;
  border-radius: 999px;
  color: #47624f;
  background: rgba(255,255,255,.76);
  font-size: .74rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.designer-zone,
.orchard-zone.dynamic,
.screen-zone.dynamic {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 34px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 42% 58% 46% 54% / 54% 44% 56% 46%;
  color: #fff;
  background-color: var(--zone-color, #74b65f);
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.35), transparent 28%),
    color-mix(in srgb, var(--zone-color, #74b65f) 86%, #1c5631);
  box-shadow: 0 14px 26px rgba(43, 86, 48, .18);
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: .78rem;
  font-weight: 950;
  line-height: 1.25;
}

.designer-zone {
  cursor: pointer;
}

#areaPreviewLayer,
#orchardPickerZones,
#screenAreaZones {
  position: absolute;
  inset: 0;
  z-index: 3;
}

#screenMapPoints {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.area-polygon-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: auto;
}

.designer-polygon,
.screen-polygon-zone {
  pointer-events: auto;
  cursor: pointer;
}

.designer-polygon polygon,
.screen-polygon-zone polygon {
  fill: color-mix(in srgb, var(--zone-color, #74b65f) 72%, transparent);
  stroke: rgba(255, 255, 255, .94);
  stroke-width: .8;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 12px 18px rgba(7, 31, 14, .18));
}

.designer-polygon.active polygon {
  stroke: #fff4b7;
  stroke-width: 1.25;
  filter: drop-shadow(0 14px 22px rgba(7, 31, 14, .22));
}

.designer-polygon text,
.screen-polygon-zone text {
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(20, 54, 30, .48);
  stroke-width: .9;
  vector-effect: non-scaling-stroke;
  text-anchor: middle;
  dominant-baseline: middle;
  font-size: 3.2px;
  font-weight: 950;
  pointer-events: none;
}

.designer-point {
  position: absolute;
  z-index: 5;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #1f7a46;
  box-shadow: 0 8px 18px rgba(10, 42, 20, .24);
  transform: translate(-50%, -50%);
  font-size: .72rem;
  font-weight: 950;
  pointer-events: none;
}

.area-draw-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(235, 247, 226, .76);
  color: #31543d;
  font-size: .8rem;
  font-weight: 850;
}

.area-draw-summary span {
  color: #64806b;
}

.designer-zone.active {
  outline: 3px solid rgba(255, 247, 205, .95);
  box-shadow: 0 0 0 5px rgba(43, 126, 66, .16), 0 18px 34px rgba(43, 86, 48, .22);
}

.designer-zone.service,
.orchard-zone.dynamic.service,
.screen-zone.dynamic.service {
  border-radius: 18px;
}

.designer-zone span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-area-editor {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(31, 93, 57, .08);
  border-radius: 18px;
  background: rgba(247, 252, 242, .74);
}

.settings-area-editor.active {
  border-color: rgba(25, 128, 62, .28);
  background: linear-gradient(180deg, #ffffff, #f2faed);
}

.area-select-btn {
  justify-self: start;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(31, 93, 57, .14);
  border-radius: 999px;
  color: #1f6a3d;
  background: #fff;
  font-size: .76rem;
  font-weight: 900;
}

.settings-area-editor.active .area-select-btn {
  color: #fff;
  background: #20763f;
}

.color-input {
  min-height: 46px;
  padding: 6px;
}

.orchard-zone.dynamic {
  pointer-events: none;
  opacity: .9;
}

.screen-zone.dynamic {
  pointer-events: none;
  opacity: .92;
  font-size: .9rem;
}

@media (min-width: 900px) {
  body:has(.admin-header) .page-container {
    max-width: 1480px;
    margin: 0 auto;
  }

  body:has(.admin-header) .admin-hero-panel {
    min-height: 190px;
    padding: 26px;
    border-radius: 30px;
  }

  body:has(.admin-header) .admin-hero-panel h2 {
    max-width: 560px;
    font-size: 2rem;
  }

  body:has(.admin-header) .admin-hero-panel p {
    max-width: 680px;
    font-size: .96rem;
  }

  body:has(.admin-header) .admin-toolbar-card {
    grid-template-columns: minmax(300px, 1fr) minmax(280px, .9fr) auto;
    gap: 16px;
    padding: 18px;
  }

  body:has(.admin-header) .admin-toolbar-card .tree-title-row {
    align-self: center;
  }

  body:has(.admin-header) .admin-search-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px;
  }

  body:has(.admin-header) .settings-area-editor .grid-3 {
    grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(110px, .55fr));
  }

  body:has(.admin-header) .settings-image-item,
  body:has(.admin-header) .settings-image-row {
    grid-template-columns: 132px minmax(0, 1fr);
    padding: 16px;
  }
}

@media (max-width: 899px) {
  body:has(.admin-header) .admin-header {
    height: 58px;
    border-bottom: 1px solid rgba(31, 93, 57, .08);
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px);
  }

  body:has(.admin-header) .page-container {
    padding: 12px 16px calc(126px + env(safe-area-inset-bottom)) !important;
  }

  body:has(.admin-header) .admin-hero-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px;
    margin-top: 8px;
  }

  body:has(.admin-header) .admin-toolbar-card {
    padding: 16px;
  }

  body:has(.admin-header) .admin-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 10px;
  }

  body:has(.admin-header) .adoption-summary {
    gap: 12px;
  }

  body:has(.admin-header) .adoption-summary > div {
    min-height: 100px;
    border-radius: 18px;
  }

  .orchard-map-designer {
    min-height: 214px;
    border-radius: 20px;
  }

  .settings-area-editor .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

/* 20260703 conversion/admin density polish */
body:has(.admin-header) .admin-hero-panel {
  min-height: 132px;
  padding: 18px 20px;
  border-radius: 22px;
}

body:has(.admin-header) .admin-hero-panel h2 {
  font-size: 1.42rem;
  line-height: 1.22;
}

body:has(.admin-header) .admin-hero-panel p {
  margin-top: 6px;
  font-size: .84rem;
  line-height: 1.55;
}

body:has(.admin-header) .admin-toolbar-card,
body:has(.admin-header) .video-request-admin-card,
body:has(.admin-header) .settings-card {
  padding: 12px;
  border-radius: 18px;
}

body:has(.admin-header) .form-label {
  margin-bottom: 5px;
  font-size: .76rem;
}

body:has(.admin-header) .form-input,
body:has(.admin-header) .form-select {
  min-height: 40px;
  border-radius: 12px;
  font-size: .84rem;
}

body:has(.admin-header) .form-textarea {
  min-height: 92px;
  border-radius: 12px;
  font-size: .84rem;
}

body:has(.admin-header) .section-title {
  margin-bottom: 10px;
}

body:has(.admin-header) .section-title h2,
body:has(.admin-header) .tree-title-row h3 {
  font-size: 1rem;
}

body:has(.admin-header) .section-title span,
body:has(.admin-header) .text-muted,
body:has(.admin-header) .tree-title-row p {
  font-size: .76rem;
  line-height: 1.45;
}

body:has(.admin-header) .adoption-summary {
  gap: 8px;
  margin-top: 10px;
}

body:has(.admin-header) .adoption-summary > div {
  min-height: 76px;
  padding: 12px;
  border-radius: 16px;
}

body:has(.admin-header) .adoption-summary span {
  font-size: .72rem;
}

body:has(.admin-header) .adoption-summary strong {
  font-size: 1.45rem;
}

body:has(.admin-header) .admin-tree-card {
  padding: 12px;
  border-radius: 18px;
}

body:has(.admin-header) .admin-tree-card-top {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
}

body:has(.admin-header) .admin-tree-thumb {
  width: 74px;
  min-height: 74px;
  border-radius: 14px;
}

body:has(.admin-header) .reservation-meta {
  gap: 6px;
  margin-top: 8px;
}

body:has(.admin-header) .reservation-meta span,
body:has(.admin-header) .tree-tags span {
  padding: 5px 7px;
  border-radius: 999px;
  font-size: .72rem;
}

body:has(.admin-header) .tree-admin-motto {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: .78rem;
  line-height: 1.45;
}

body:has(.admin-header) .admin-tree-actions {
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 6px;
  margin-top: 9px;
}

body:has(.admin-header) .admin-tree-action {
  min-height: 34px;
  border-radius: 10px;
  font-size: .76rem;
}

body:has(.admin-header) .settings-image-item,
body:has(.admin-header) .settings-image-row {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
}

body:has(.admin-header) .settings-image-preview {
  border-radius: 12px;
}

body:has(.admin-header) .settings-area-editor {
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
}

body:has(.admin-header) .quick-chip-row {
  gap: 6px;
}

body:has(.admin-header) .quick-chip {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: .72rem;
}

@media (min-width: 900px) {
  body:has(.admin-header) .admin-hero-panel {
    min-height: 136px;
    padding: 20px 22px;
  }

  body:has(.admin-header) .admin-hero-panel h2 {
    max-width: 720px;
    font-size: 1.5rem;
  }

  body:has(.admin-header) .admin-toolbar-card {
    grid-template-columns: minmax(320px, 1.1fr) minmax(340px, .9fr) auto;
    gap: 10px;
    align-items: center;
  }

  body:has(.admin-header) .tree-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body:has(.admin-header) .settings-card {
    padding: 14px;
  }

  body:has(.admin-header) .settings-stack {
    display: grid;
    gap: 10px;
  }

  body:has(.admin-header) .settings-image-item,
  body:has(.admin-header) .settings-image-row {
    grid-template-columns: 104px minmax(0, 1fr);
    padding: 12px;
  }
}

@media (max-width: 520px) {
  .settings-tabbar {
    top: 58px;
    grid-template-columns: repeat(5, max-content);
    overflow-x: auto;
    padding: 7px;
    border-radius: 16px;
    scrollbar-width: none;
  }

  .settings-tabbar::-webkit-scrollbar {
    display: none;
  }

  .settings-tab {
    min-width: 76px;
    min-height: 36px;
    font-size: .76rem;
  }

  body:has(.admin-header) .admin-tree-card-top,
  body:has(.admin-header) .settings-image-item,
  body:has(.admin-header) .settings-image-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

/* 20260703 admin PC density pass */
.settings-map-config {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(31, 93, 57, .08);
  border-radius: 16px;
  background: rgba(247, 252, 242, .68);
}

.settings-image-row.compact-map-row {
  align-items: stretch;
}

.settings-image-preview.map-preview {
  aspect-ratio: 16 / 9;
}

.settings-image-preview.map-preview img {
  object-fit: cover;
}

@media (min-width: 900px) {
  body:has(.admin-header) {
    padding-left: 236px;
  }

  body:has(.admin-header) .admin-header {
    left: 236px;
    height: 64px;
    padding: 0 24px;
  }

  body:has(.admin-header) .admin-adoption-nav {
    width: 236px;
    padding: 116px 14px 18px;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  body:has(.admin-header) .admin-adoption-nav::before {
    left: 14px;
    right: 14px;
    top: 18px;
    min-height: 74px;
    padding: 15px 13px 12px 52px;
    border-radius: 17px;
    font-size: .98rem;
  }

  body:has(.admin-header) .admin-adoption-nav::after {
    left: 27px;
    top: 35px;
  }

  body:has(.admin-header) .admin-adoption-nav .tab-item {
    height: 44px;
    grid-template-columns: 28px 1fr;
    gap: 9px;
    border-radius: 13px;
  }

  body:has(.admin-header) .admin-adoption-nav .tab-item-text {
    font-size: .88rem;
  }

  body:has(.admin-header) .page-container {
    padding: 82px 22px 34px !important;
  }

  body:has(.admin-header) .admin-hero-panel {
    min-height: 106px;
    padding: 16px 18px;
    border-radius: 18px;
  }

  body:has(.admin-header) .admin-hero-panel h2 {
    font-size: 1.28rem;
  }

  body:has(.admin-header) .admin-toolbar-card {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(260px, .9fr) auto;
    gap: 10px;
    align-items: center;
  }

  body:has(.admin-header) #treeList.tree-list {
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
    gap: 10px;
  }

  body:has(.admin-header) .admin-tree-card {
    display: grid;
    gap: 8px;
    min-height: 0;
    padding: 10px;
  }

  body:has(.admin-header) .admin-tree-card-top {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
  }

  body:has(.admin-header) .admin-tree-thumb {
    width: 66px;
    min-height: 66px;
    border-radius: 12px;
  }

  body:has(.admin-header) .tree-title-row {
    align-items: center;
    gap: 8px;
  }

  body:has(.admin-header) .tree-title-row h3 {
    max-width: 16em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(.admin-header) .tree-tags {
    margin: 7px 0 0;
    gap: 5px;
  }

  body:has(.admin-header) .reservation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  body:has(.admin-header) .tree-admin-motto {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 48px;
  }

  body:has(.admin-header) .admin-tree-actions,
  body:has(.admin-header) .admin-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }

  body:has(.admin-header) .admin-tree-action,
  body:has(.admin-header) .admin-order-actions .btn {
    flex: 0 0 auto;
    min-width: 72px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: .74rem;
    white-space: nowrap;
  }

  body:has(.admin-header) .admin-tree-action.wide {
    grid-column: auto;
    background: #fff;
  }

  body:has(.admin-header) .admin-tree-action.danger {
    margin-left: auto;
    min-width: 54px;
  }

  body:has(.admin-header) .settings-map-config {
    grid-template-columns: minmax(280px, .65fr) minmax(360px, 1fr);
    align-items: start;
  }

  body:has(.admin-header) .settings-map-config > .grid {
    grid-column: 1 / -1;
  }

  body:has(.admin-header) .settings-map-config > p {
    grid-column: 1 / -1;
  }
}

/* 20260707 care batch modal: PC layout fix */
body:has(.admin-header) .care-batch-modal {
  width: min(1180px, calc(100vw - 320px)) !important;
  max-width: none;
}

body:has(.admin-header) .care-batch-modal .care-batch-grid {
  grid-template-columns: minmax(420px, 1.08fr) minmax(360px, .92fr);
  align-items: start;
}

body:has(.admin-header) .care-batch-modal .care-batch-panel {
  min-width: 0;
}

body:has(.admin-header) #careLogModal.single-care-mode .care-batch-modal {
  width: min(620px, calc(100vw - 320px)) !important;
}

body:has(.admin-header) #careLogModal.single-care-mode .care-batch-grid {
  grid-template-columns: 1fr;
}

body:has(.admin-header) #careLogModal.single-care-mode .care-batch-panel:first-child {
  display: none;
}

@media (max-width: 899px) {
  body:has(.admin-header) .care-batch-modal,
  body:has(.admin-header) #careLogModal.single-care-mode .care-batch-modal {
    width: min(94vw, 620px) !important;
  }

  body:has(.admin-header) .care-batch-modal .care-batch-grid {
    grid-template-columns: 1fr;
  }
}

/* 20260707 dead tree archive and cockpit statistics */
.tree-status-dead {
  color: #9b2f1f;
  background: #ffe8df;
}

.tree-death-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(178, 65, 39, .13);
  border-radius: 12px;
  color: #8d3a29;
  background: linear-gradient(180deg, #fff6f0, #fffaf6);
  font-size: .76rem;
  font-weight: 850;
}

.tree-death-summary b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: #b95037;
  font-size: .72rem;
}

.tree-death-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-event-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.analytics-event-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f8fbf5;
}

.analytics-event-item strong,
.analytics-event-item span,
.analytics-event-item em {
  display: block;
}

.analytics-event-item strong {
  overflow: hidden;
  color: #183d25;
  font-size: .84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-event-item span {
  margin-top: 3px;
  overflow: hidden;
  color: #6b7568;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-event-item em {
  min-width: 52px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #2f7d4f;
  background: #edf8ea;
  font-size: .74rem;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.analytics-bar-item.danger b {
  background: linear-gradient(90deg, #c45c3c, #f0af67);
}

.analytics-bar-item.danger em {
  color: #a1432e;
}

.screen-map-point.dead {
  background: #b95037;
}

.screen-tree-strip span.dead {
  background: #c35d3c;
}

.screen-care-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.screen-care-summary div,
.screen-event-item {
  border: 1px solid rgba(190, 239, 175, .09);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.screen-care-summary div {
  padding: 10px;
}

.screen-care-summary span,
.screen-care-summary strong,
.screen-event-item strong,
.screen-event-item span {
  display: block;
}

.screen-care-summary span {
  color: rgba(234,255,234,.58);
  font-size: .68rem;
  font-weight: 850;
}

.screen-care-summary strong {
  margin-top: 5px;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 950;
}

.screen-events {
  display: grid;
  gap: 8px;
}

.screen-event-item {
  padding: 9px 10px;
}

.screen-event-item strong {
  overflow: hidden;
  color: #fff;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-event-item span {
  margin-top: 4px;
  overflow: hidden;
  color: rgba(234,255,234,.58);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-bars.danger .screen-bar-item em {
  background: linear-gradient(90deg, #d46946, #f0b25b);
}

@media (min-width: 1100px) {
  .screen-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .analytics-event-item,
  .tree-death-summary {
    grid-template-columns: 1fr;
  }

  .tree-death-summary span,
  .analytics-event-item strong,
  .analytics-event-item span {
    white-space: normal;
  }

  .screen-care-summary {
    grid-template-columns: 1fr;
  }
}

/* 20260708 special adoption module */
.compact-admin-modal {
  max-width: 760px;
}

.admin-tree-action.danger-soft {
  color: #a1432e;
  background: #fff1e9;
}

.special-hero {
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(28, 83, 48, .9), rgba(202, 139, 53, .72)),
    url("../assets/farm-hero.png") center/cover no-repeat;
  box-shadow: 0 18px 36px rgba(31, 73, 43, .14);
}

.special-hero span,
.special-admin-hero span {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff7dc;
  background: rgba(255,255,255,.15);
  font-size: .76rem;
  font-weight: 950;
}

.special-hero h2 {
  margin-top: 10px;
  color: #fff;
  font-size: 1.48rem;
  line-height: 1.25;
}

.special-hero p {
  margin-top: 8px;
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  line-height: 1.6;
}

.special-tabs {
  position: sticky;
  top: 58px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
  padding: 7px;
  border: 1px solid rgba(47, 125, 79, .08);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
}

.special-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  color: #4f6254;
  background: transparent;
  font: inherit;
  font-size: .86rem;
  font-weight: 950;
}

.special-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #2f7d4f, #74aa4c);
  box-shadow: 0 10px 18px rgba(47, 125, 79, .18);
}

.special-trust-row,
.special-benefits,
.special-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.special-trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.special-trust-row span,
.special-benefits span,
.special-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #2f7d4f;
  background: #edf8ea;
  font-size: .72rem;
  font-weight: 900;
}

.special-trust-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 4px;
  text-align: center;
  white-space: normal;
}

.special-product-list,
.special-admin-grid {
  display: grid;
  gap: 14px;
}

.special-product-card {
  overflow: hidden;
  border: 1px solid rgba(47, 125, 79, .09);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(48, 82, 45, .08);
}

.special-product-image {
  position: relative;
  min-height: 118px;
  background-size: cover;
  background-position: center;
}

.special-product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.28));
}

.special-product-image span {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(21, 68, 39, .72);
  font-size: .74rem;
  font-weight: 950;
}

.special-product-body {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.special-product-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.special-product-head h3 {
  color: #183d25;
  font-size: 1.04rem;
}

.special-product-head p {
  margin-top: 4px;
  color: #657064;
  font-size: .78rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.special-product-head strong {
  color: #d77d22;
  font-size: 1.12rem;
  font-weight: 950;
}

.special-adoption-page .special-meta,
.special-adoption-page .special-benefits {
  gap: 6px;
}

.special-adoption-page .special-meta span,
.special-adoption-page .special-benefits span {
  padding: 5px 8px;
  font-size: .7rem;
}

.special-adoption-page .product-progress-row {
  margin: 0;
}

.special-adoption-page .btn-block {
  min-height: 42px;
}

.special-order-card,
.special-my-card {
  display: grid;
  gap: 12px;
}

.special-success-card {
  display: grid;
  gap: 13px;
  margin-top: 12px;
  padding: 20px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 244, 184, .34), transparent 36%),
    linear-gradient(135deg, #17452b, #2f7d4f 58%, #ca8b35);
  box-shadow: 0 18px 40px rgba(31, 73, 43, .18);
}

.special-success-card[hidden] {
  display: none;
}

.special-success-badge {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff8d9;
  background: rgba(255,255,255,.16);
  font-size: .74rem;
  font-weight: 950;
}

.special-success-card h2 {
  color: #fff;
  font-size: 1.32rem;
  line-height: 1.22;
}

.special-success-card p {
  color: rgba(255,255,255,.82);
  font-size: .86rem;
  line-height: 1.55;
}

.special-copy-code {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.14);
}

.special-lock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.special-lock-grid div {
  padding: 11px;
  border-radius: 16px;
  background: rgba(255,255,255,.13);
}

.special-lock-grid span,
.special-lock-grid strong {
  display: block;
}

.special-lock-grid span {
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 850;
}

.special-lock-grid strong {
  margin-top: 4px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 950;
}

.special-order-leading {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: #2f7d4f;
  background: linear-gradient(180deg, #eff8ec, #fff9e9);
  box-shadow: inset 0 0 0 1px rgba(47, 125, 79, .08);
}

.special-my-card {
  grid-template-columns: auto minmax(0, 1fr);
}

.special-my-card > .tree-title-row,
.special-my-card > .reservation-meta,
.special-my-card > .copy-code-pill,
.special-my-card > .adoption-lock-tip,
.special-my-card > .payment-action-grid {
  grid-column: 2;
}

.special-empty-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 20px;
  color: #2f7d4f;
  background: #edf8ea;
  font-size: 1.4rem;
  font-weight: 950;
}

.special-orders-page .page-container {
  padding-top: 12px;
}

.special-orders-page .adoption-summary {
  gap: 10px;
  margin-top: 10px !important;
}

.special-orders-page .adoption-summary > div {
  min-height: auto;
  padding: 14px 16px;
  border-radius: 18px;
}

.special-orders-page .adoption-summary strong {
  font-size: 1.45rem;
  line-height: 1.1;
}

.special-orders-page .special-my-card {
  gap: 8px 10px;
  padding: 14px;
  border-radius: 20px;
}

.special-orders-page .reservation-meta {
  gap: 6px 10px;
  margin: 4px 0;
  font-size: .78rem;
}

.special-orders-page .special-order-code {
  margin-top: 2px !important;
  padding: 8px 10px;
  border-color: rgba(47, 125, 79, .16);
  background: #f4faf1;
}

.special-orders-page .special-order-code span {
  color: #567060;
}

.special-orders-page .special-order-code b {
  color: #1f5f3a;
}

.special-orders-page .adoption-lock-tip {
  margin: 4px 0 0;
  padding: 9px 10px;
}

.special-orders-page .payment-action-grid {
  margin-top: 4px;
}

.special-pay-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.special-pay-steps span {
  padding: 8px;
  border-radius: 12px;
  color: #2f7d4f;
  background: #edf8ea;
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
}

.admin-special-page {
  display: grid;
  gap: 14px;
}

.special-admin-card {
  display: grid;
  gap: 10px;
}

.special-product-toolbar {
  padding: 14px;
}

.special-product-thumb {
  background-color: #edf8ea;
  background-position: center;
  background-size: cover;
}

.special-screen-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.special-screen-board article {
  min-height: 240px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(190, 239, 175, .13);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
}

.special-screen-board span {
  color: rgba(234,255,234,.66);
  font-size: .9rem;
  font-weight: 900;
}

.special-screen-board strong {
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  font-weight: 950;
}

.special-screen-board p {
  color: rgba(234,255,234,.66);
  font-size: .86rem;
}

.special-screen-board i {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.special-screen-board b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #fff0a0);
}

.special-screen-analytics {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(190, 239, 175, .13);
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.special-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.special-chart-grid article {
  min-width: 0;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(190, 239, 175, .11);
}

.special-echart {
  width: 100%;
  height: 250px;
}

.special-screen-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(190, 239, 175, .12);
}

.special-screen-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  background: rgba(255,255,255,.04);
}

.special-screen-table th,
.special-screen-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(190, 239, 175, .1);
  color: rgba(234,255,234,.82);
  font-size: .86rem;
  text-align: left;
  white-space: nowrap;
}

.special-screen-table th {
  color: rgba(234,255,234,.62);
  background: rgba(255,255,255,.05);
  font-weight: 950;
}

.special-screen-table tr:last-child td {
  border-bottom: 0;
}

@media (min-width: 900px) {
  .special-product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .special-admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
  }
}

@media (max-width: 520px) {
  .special-pay-steps,
  .special-screen-board {
    grid-template-columns: 1fr;
  }

  .special-chart-grid {
    grid-template-columns: 1fr;
  }

  .special-product-head {
    grid-template-columns: 1fr;
  }
}
