/* ===== おこめバトン - Global Styles ===== */
:root {
  --primary: #F28B30;
  --primary-light: #FFB366;
  --primary-dark: #D97218;
  --accent: #E85D3A;
  --warm-bg: #FFF8F0;
  --warm-card: #FFFFFF;
  --warm-border: #FFE0C2;
  --text-dark: #3D2E1F;
  --text-mid: #6B5744;
  --text-light: #9B8A78;
  --success: #4CAF50;
  --gold: #FFD700;
  --silver: #C0C0C0;
  --bronze: #CD7F32;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(242, 139, 48, 0.12);
  --shadow-lg: 0 4px 24px rgba(242, 139, 48, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  background: var(--warm-bg);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== App Shell ===== */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--warm-bg);
  position: relative;
  padding-bottom: 80px;
}

/* ===== Header ===== */
.header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header-logo .rice-icon {
  font-size: 26px;
}

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

.header-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

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

.header-back {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 4px;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 480px;
  width: 100%;
  background: white;
  border-top: 1px solid var(--warm-border);
  display: flex;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px 8px;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-light);
  font-size: 10px;
  gap: 4px;
  transition: color 0.2s;
  text-decoration: none;
}

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

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

/* ===== Page Container ===== */
.page {
  display: none;
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  padding: 28px 20px;
  color: white;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.hero-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 24px;
  font-weight: 700;
}

.hero-stat-label {
  font-size: 11px;
  opacity: 0.85;
}

/* ===== Section ===== */
.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .icon {
  font-size: 20px;
}

/* ===== Facility Card ===== */
.facility-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.facility-card {
  background: var(--warm-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--warm-border);
}

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

.facility-card-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.facility-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

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

.facility-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.facility-type {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.facility-tag {
  display: inline-block;
  background: #FFF3E0;
  color: var(--primary-dark);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.facility-progress-area {
  padding: 0 16px 14px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-mid);
}

.progress-bar {
  height: 10px;
  background: #F0E6DC;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 5px;
  transition: width 1s ease;
}

.progress-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.progress-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
}

.progress-supporters {
  font-size: 11px;
  color: var(--text-light);
}

/* ===== Support Page ===== */
.support-hero {
  text-align: center;
  padding: 20px;
  background: var(--warm-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border: 1px solid var(--warm-border);
}

.support-facility-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.support-facility-type {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 16px;
}

.gauge-container {
  position: relative;
  margin: 20px auto;
  width: 200px;
  height: 200px;
}

.gauge-svg {
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: #F0E6DC;
  stroke-width: 12;
}

.gauge-fill {
  fill: none;
  stroke: url(#gaugeGradient);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-percent {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-dark);
}

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

.rice-target {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-mid);
}

.rice-target strong {
  color: var(--primary-dark);
}

.ad-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.ad-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ad-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.ad-btn-video {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.ad-btn-video15 {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
}

.ad-btn-image {
  background: white;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.ad-btn .ad-icon {
  font-size: 22px;
}

.ad-btn-sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
}

.support-message {
  text-align: center;
  padding: 16px;
  margin-top: 16px;
  background: #FFF3E0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--primary-dark);
  line-height: 1.6;
}

.share-section {
  margin-top: 20px;
  text-align: center;
}

.share-section h3 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-mid);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.share-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
  color: white;
}

.share-btn:hover {
  transform: scale(1.1);
}

.share-btn.twitter { background: #1DA1F2; }
.share-btn.line { background: #06C755; }
.share-btn.facebook { background: #1877F2; }
.share-btn.copy { background: var(--text-mid); }

/* ===== Ad Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  max-width: 360px;
  width: 90%;
  text-align: center;
}

.modal-ad-area {
  background: #f0f0f0;
  height: 200px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-light);
}

.modal-ad-area .ad-placeholder-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.modal-timer {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.modal-close {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: none;
}

.modal-close.visible {
  display: inline-block;
}

/* ===== Success Animation ===== */
.success-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 300;
  text-align: center;
  animation: popIn 0.5s ease;
}

.success-popup.active {
  display: block;
}

@keyframes popIn {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.1); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.success-rice {
  font-size: 72px;
  margin-bottom: 8px;
}

.success-text {
  background: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

/* ===== Rankings ===== */
.ranking-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ranking-tab {
  padding: 10px 16px;
  border-radius: 20px;
  border: 2px solid var(--warm-border);
  background: white;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text-mid);
  transition: all 0.2s;
}

.ranking-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-item {
  background: var(--warm-card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--warm-border);
}

.ranking-position {
  font-size: 20px;
  font-weight: 800;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.ranking-position.gold { color: var(--gold); }
.ranking-position.silver { color: var(--silver); }
.ranking-position.bronze { color: var(--bronze); }

.ranking-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

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

.ranking-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ranking-detail {
  font-size: 12px;
  color: var(--text-light);
}

.ranking-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  flex-shrink: 0;
}

/* ===== Registration Form ===== */
.form-card {
  background: var(--warm-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--warm-border);
}

.form-group {
  margin-bottom: 18px;
}

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

.form-label .required {
  color: var(--accent);
  font-size: 11px;
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--warm-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.2s;
  font-family: inherit;
}

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

.form-textarea {
  height: 100px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B8A78' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

.form-submit:hover {
  transform: translateY(-1px);
}

/* ===== Rice Selection ===== */
.rice-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.rice-option {
  background: var(--warm-card);
  border: 2px solid var(--warm-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.rice-option:hover,
.rice-option.selected {
  border-color: var(--primary);
}

.rice-option.selected {
  background: #FFF8F0;
}

.rice-emoji {
  font-size: 32px;
}

.rice-option-info {
  flex: 1;
}

.rice-option-name {
  font-size: 14px;
  font-weight: 600;
}

.rice-option-detail {
  font-size: 12px;
  color: var(--text-light);
}

.rice-option-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ===== Mypage ===== */
.mypage-header {
  background: var(--warm-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border: 1px solid var(--warm-border);
}

.mypage-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 12px;
}

.mypage-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mypage-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.mypage-stat {
  text-align: center;
}

.mypage-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
}

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

.mypage-section {
  margin-bottom: 20px;
}

.mypage-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-item {
  background: var(--warm-card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--warm-border);
}

.activity-icon {
  font-size: 24px;
}

.activity-info {
  flex: 1;
}

.activity-text {
  font-size: 13px;
}

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

/* ===== Login Modal ===== */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--warm-border);
}

.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--warm-border);
  background: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}

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

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFF3E0;
  color: var(--primary-dark);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ===== Admin Page ===== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-add-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s;
}

.admin-add-btn:hover {
  transform: translateY(-1px);
}

.rice-admin-card {
  background: var(--warm-card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--warm-border);
  box-shadow: var(--shadow);
}

.rice-admin-card .rice-admin-info {
  flex: 1;
  min-width: 0;
}

.rice-admin-card .rice-admin-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.rice-admin-card .rice-admin-detail {
  font-size: 12px;
  color: var(--text-light);
}

.rice-admin-card .rice-admin-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.rice-admin-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.rice-admin-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--warm-border);
  background: white;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.rice-admin-actions button:hover {
  background: #FFF3E0;
}

.rice-admin-actions button.delete-btn:hover {
  background: #FFE0E0;
}

/* Ad Type & Status Badges */
.ad-type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
}
.ad-type-video30 { background: #E3F2FD; color: #1565C0; }
.ad-type-video15 { background: #F3E5F5; color: #7B1FA2; }
.ad-type-image { background: #FFF3E0; color: #E65100; }
.ad-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.ad-active { background: #E8F5E9; color: #2E7D32; }
.ad-paused { background: #FFEBEE; color: #C62828; }

/* Ad Budget Summary */
.ad-budget-summary {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}
.ad-budget-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ad-budget-item { text-align: center; flex: 1; }
.ad-budget-label { font-size: 11px; color: var(--text-light); margin-bottom: 2px; }
.ad-budget-value { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.ad-budget-spent { color: var(--primary); }
.ad-budget-remaining { color: #2E7D32; }
.ad-budget-bar-wrap {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}
.ad-budget-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
  transition: width 0.3s;
}
.ad-card-budget { margin-top: 6px; }
.ad-card-budget-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-mid);
  margin-bottom: 4px;
}
.ad-card-bar-wrap {
  height: 5px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.ad-card-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s;
}
.ad-card-bar.ad-bar-low { background: #E53935; }
.ad-low { color: #E53935; }

/* Account Actions (Logout / Withdraw) */
.mypage-account-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--warm-border);
}
.account-logout-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--warm-border);
  background: var(--warm-card);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
}
.account-logout-btn:hover {
  background: #f0ebe4;
}
.account-withdraw-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  font-size: 12px;
  color: #999;
  cursor: pointer;
  text-decoration: underline;
}
.account-withdraw-btn:hover {
  color: #E53935;
}

/* Admin Form Modal */
.admin-form-modal.active {
  overflow-y: auto;
  align-items: flex-start;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.admin-form-modal .modal-content {
  max-width: 400px;
  text-align: left;
  margin: 24px auto;
  flex-shrink: 0;
}

.admin-form-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.admin-form-actions button {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.admin-form-cancel {
  background: white;
  border: 2px solid var(--warm-border);
  color: var(--text-mid);
}

.admin-form-save {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: white;
}

/* ===== Contact Footer ===== */
.contact-footer {
  text-align: center;
  padding: 20px 16px 8px;
  margin-top: 24px;
  border-top: 1px solid var(--warm-border);
}

.contact-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--warm-border);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-footer-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Contact Modal */
.contact-form-modal .modal-content {
  max-width: 400px;
  text-align: left;
}

.contact-form-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
}

.contact-form-sub {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 16px;
}

.contact-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.2s;
}

.contact-submit:hover {
  transform: translateY(-1px);
}

.contact-close-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 12px;
  cursor: pointer;
  margin-top: 8px;
  display: block;
  width: 100%;
  text-align: center;
}

/* ===== Email Preview ===== */
.email-preview-header {
  text-align: center;
  margin-bottom: 16px;
}

.email-preview-envelope {
  background: #FAFAFA;
  border: 1px solid #E0E0E0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.email-preview-field {
  padding: 8px 14px;
  border-bottom: 1px solid #E0E0E0;
  font-size: 12px;
  display: flex;
  gap: 8px;
}

.email-field-label {
  color: var(--text-light);
  flex-shrink: 0;
  min-width: 48px;
}

.email-field-value {
  color: var(--text-dark);
  font-weight: 500;
  word-break: break-all;
}

.email-preview-body {
  padding: 16px 14px;
  background: white;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dark);
}

.email-preview-body p {
  margin-bottom: 8px;
}

.email-detail-box {
  background: #FFF8F0;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
}

.email-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
}

.email-detail-row span {
  color: var(--text-light);
}

.email-detail-row strong {
  color: var(--text-dark);
}

/* ===== Rice Selector (Support Page) ===== */
.rice-selector {
  margin: 12px auto 4px;
  max-width: 320px;
}

.rice-selector-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.rice-display {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center;
}

.rice-select {
  font-size: 14px;
  padding: 10px 36px 10px 12px;
}

/* ===== Facility Status (Admin) ===== */
.facility-status-card {
  background: var(--warm-card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--warm-border);
  box-shadow: var(--shadow);
}

.facility-status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.facility-status-details {
  background: #FAFAFA;
  border-radius: 8px;
  padding: 10px 12px;
}

.facility-status-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 12px;
  gap: 8px;
}

.facility-status-row span {
  color: var(--text-light);
  flex-shrink: 0;
}

.facility-status-row strong {
  color: var(--text-dark);
  text-align: right;
  word-break: break-all;
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-badge.collecting {
  background: #E3F2FD;
  color: #1565C0;
}

.status-badge.confirming {
  background: #FCE4EC;
  color: #C2185B;
}

.status-badge.waiting {
  background: #FFF3E0;
  color: var(--primary-dark);
}

.status-badge.shipped {
  background: #E8F5E9;
  color: #2E7D32;
}

.tracking-input-area {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--warm-border);
}

.delivery-pref-summary {
  background: #E8F5E9;
  border-radius: 8px;
  padding: 8px 12px;
}

/* ===== Celebration / Party Popper ===== */
.celebration-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 300;
  pointer-events: none;
  display: none;
}

.celebration-overlay.active {
  display: block;
}

.celebration-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  text-align: center;
  pointer-events: auto;
  animation: celebPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  z-index: 2;
}

@keyframes celebPop {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-10deg); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.15) rotate(3deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

.celebration-emoji {
  font-size: 80px;
  animation: celebBounce 0.8s ease-in-out 0.3s infinite alternate;
}

@keyframes celebBounce {
  0% { transform: scale(1) rotate(-5deg); }
  100% { transform: scale(1.12) rotate(5deg); }
}

.celebration-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 8px;
  text-shadow: 0 2px 8px rgba(242, 139, 48, 0.3);
}

.celebration-sub {
  font-size: 14px;
  color: var(--text-mid);
  margin-top: 6px;
}

/* Confetti particle */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 1;
  opacity: 0;
  animation: confettiFall var(--fall-duration, 3s) var(--fall-delay, 0s) ease-out forwards;
}

.confetti.circle { border-radius: 50%; }
.confetti.rect { border-radius: 2px; width: 8px; height: 14px; }
.confetti.star { border-radius: 1px; width: 6px; height: 6px; }
.confetti.rice { border-radius: 50% 50% 50% 0; width: 8px; height: 12px; }

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift-x, 30px), var(--drift-y, 400px))
               rotate(var(--spin, 720deg))
               scale(0.3);
  }
}

/* Cracker burst lines */
.cracker-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
}

.burst-line {
  position: absolute;
  width: 4px;
  height: 0;
  border-radius: 2px;
  transform-origin: bottom center;
  animation: burstLine 0.5s ease-out forwards;
}

@keyframes burstLine {
  0% { height: 0; opacity: 1; }
  50% { height: var(--burst-len, 60px); opacity: 1; }
  100% { height: var(--burst-len, 60px); opacity: 0; transform: translateY(calc(var(--burst-len, 60px) * -0.3)) rotate(var(--burst-angle, 0deg)); }
}

/* Celebration flash */
.celeb-flash {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
  animation: celebFlash 0.6s ease-out forwards;
  z-index: 0;
  pointer-events: none;
}

@keyframes celebFlash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ===== Login Links ===== */
.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
.login-link-btn {
  background: none;
  border: none;
  color: var(--text-mid);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.login-link-btn:hover {
  color: var(--primary-dark);
}

/* ===== Login Tabs ===== */
.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--warm-border);
}
.login-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: var(--warm-card);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
}
.login-tab.active {
  background: var(--primary);
  color: #fff;
}

/* ===== Facility Dashboard ===== */
.fd-header {
  text-align: center;
  padding: 24px 16px 16px;
}
.fd-icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.fd-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}
.fd-type {
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 4px;
}

.fd-progress-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 0 16px 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fd-progress-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.fd-progress-circle {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}
.fd-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.fd-progress-percent {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
}
.fd-progress-detail {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.fd-progress-current {
  color: var(--primary-dark);
}
.fd-progress-sep {
  color: var(--text-light);
  margin: 0 4px;
}
.fd-progress-goal {
  color: var(--text-mid);
}
.fd-progress-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-mid);
}

.fd-section {
  margin: 0 16px 16px;
}
.fd-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

/* Step indicator */
.fd-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fd-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 60px;
}
.fd-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0e0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 6px;
  transition: all 0.3s;
}
.fd-step.active .fd-step-icon {
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(242,139,48,0.3);
}
.fd-step.current .fd-step-icon {
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(242,139,48,0.4);
}
.fd-step-label {
  font-size: 10px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.3;
  white-space: pre-line;
}
.fd-step.active .fd-step-label {
  color: var(--primary-dark);
  font-weight: 600;
}
.fd-step-line {
  flex: 1;
  height: 3px;
  background: #f0e0d0;
  margin-top: 18px;
  min-width: 16px;
  border-radius: 2px;
}
.fd-step-line.active {
  background: var(--primary);
}

/* Delivery form & status */
.fd-delivery-form {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fd-delivery-info {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
}
.fd-delivery-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}
.fd-delivery-row span:first-child {
  color: var(--text-mid);
}
.fd-status-message {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fd-status-message p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 12px;
}
.fd-shipped {
  text-align: center;
}
.fd-tracking {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  display: inline-block;
}

/* Facility info */
.fd-info-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fd-info-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--warm-border);
}
.fd-info-row:last-child {
  border-bottom: none;
}
.fd-info-label {
  color: var(--text-mid);
  flex: 0 0 60px;
  font-weight: 600;
}

.fd-logout-btn {
  display: block;
  margin: 8px auto 24px;
  background: none;
  border: 1px solid var(--warm-border);
  color: var(--text-mid);
  font-size: 13px;
  padding: 10px 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ===== Inline Ad (In-feed) ===== */
.inline-ad {
  background: var(--warm-card);
  border-radius: var(--radius);
  border: 1px solid #E0D5CA;
  overflow: hidden;
  position: relative;
}
.inline-ad-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
  letter-spacing: 1px;
}
.inline-ad-body {
  cursor: pointer;
  transition: opacity 0.2s;
}
.inline-ad-body:hover { opacity: 0.9; }
.inline-ad-image {
  height: 120px;
  background: linear-gradient(135deg, #f5e6d3, #ffe0b2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.inline-ad-placeholder {
  font-size: 42px;
  opacity: 0.7;
}
.inline-ad-advertiser-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  color: var(--text-mid);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.inline-ad-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
}
.inline-ad-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
}
.inline-ad-cta {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}
.inline-ad-timer-bar {
  height: 3px;
  background: #eee;
}
.inline-ad-timer-fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: background 0.3s;
  border-radius: 0 3px 3px 0;
}

/* ===== Post-Support Ad ===== */
.post-support-ad-wrapper {
  margin-top: 16px;
}
.post-support-ad-header {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 8px;
}

/* ===== Bottom Banner Ad ===== */
.bottom-banner-ad {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 480px;
  width: calc(100% - 16px);
  background: #fff;
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
  z-index: 99;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  gap: 8px;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.banner-ad-label {
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.banner-ad-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 0;
}
.banner-ad-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.banner-ad-cta {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.banner-ad-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.banner-ad-close:hover {
  color: var(--text-dark);
}

/* ===== Ad Revenue Split (Admin) ===== */
.ad-revenue-split {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.ad-revenue-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}
.ad-revenue-support {
  background: #FFF8F0;
  border-color: var(--warm-border);
}
.ad-revenue-business {
  background: #F5F5F5;
  border-color: #E0E0E0;
}
.ad-revenue-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.ad-revenue-info {
  min-width: 0;
}
.ad-revenue-label {
  font-size: 10px;
  color: var(--text-light);
  margin-bottom: 2px;
}
.ad-revenue-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}
.ad-revenue-detail {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 1px;
}

/* Revenue Model Info Box (Admin) */
.ad-revenue-model-info {
  background: linear-gradient(135deg, #FFF8F0, #FFF3E0);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}
.ad-revenue-model-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.ad-revenue-model-row {
  display: flex;
  gap: 8px;
}
.ad-revenue-model-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--text-mid);
}
.ad-revenue-model-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}
.ad-revenue-model-tag.support {
  background: #FFF3E0;
  color: var(--primary-dark);
}
.ad-revenue-model-tag.business {
  background: #E0E0E0;
  color: #424242;
}

/* ===== Home Footer Link ===== */
.home-footer-links {
  text-align: center;
  padding: 24px 16px 8px;
}

.home-footer-link {
  background: none;
  border: 1.5px solid var(--warm-border);
  color: var(--text-mid);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.home-footer-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(242, 139, 48, 0.05);
}

/* ===== Corporate Page ===== */
.corporate-page {
  padding: 0 16px 32px;
}

.corporate-hero {
  text-align: center;
  padding: 32px 0 24px;
}

.corporate-hero-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.corporate-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.corporate-hero-sub {
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
}

.corporate-section {
  margin-bottom: 28px;
}

.corporate-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--warm-border);
}

.corporate-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.corporate-stats {
  display: flex;
  gap: 12px;
}

.corporate-stat {
  flex: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  text-align: center;
}

.corporate-stat-num {
  font-size: 24px;
  font-weight: 800;
}

.corporate-stat-label {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 4px;
}

.corporate-merit {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.corporate-merit-item {
  display: flex;
  gap: 14px;
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  align-items: flex-start;
}

.corporate-merit-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.corporate-merit-body {
  flex: 1;
}

.corporate-merit-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.corporate-merit-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

.corporate-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.corporate-menu-item {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.corporate-menu-item.highlight {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(242,139,48,0.05), rgba(232,93,58,0.05));
}

.corporate-menu-tag {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.corporate-menu-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

.corporate-sdgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.corporate-sdgs-item {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.corporate-sdgs-num {
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.corporate-sdgs-text {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
}

.corporate-sdgs-text strong {
  color: var(--text-dark);
  font-size: 13px;
}

.corporate-form {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 20px;
}

.corporate-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
}

.corporate-submit:hover {
  opacity: 0.9;
}

.corporate-footer-note {
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== Ad Support Message ===== */
.ad-support-message {
  font-size: 14px;
  color: #F28B30;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(242, 139, 48, 0.1);
  border-radius: 8px;
  line-height: 1.5;
}

/* ===== Streak Badge System ===== */
.streak-info {
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  border: 1.5px solid #FFD54F;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.streak-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.streak-icon {
  font-size: 24px;
}

.streak-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.streak-progress {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.streak-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.3;
  transition: all 0.3s;
}

.streak-badge-item.earned {
  opacity: 1;
  transform: scale(1.1);
}

.streak-badge-item span:first-child {
  font-size: 24px;
}

.streak-badge-label {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 600;
}

.streak-next {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.streak-total {
  font-size: 11px;
  color: var(--text-light);
}

/* Support page streak mini */
.support-streak-mini {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 10px;
  background: rgba(242, 139, 48, 0.08);
  border-radius: var(--radius-sm);
  margin: 0 16px 8px;
}

/* ===== About Service Link ===== */
.about-service-link {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 12px;
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  border: 1.5px solid #FFD54F;
  border-radius: var(--radius);
  color: #E65100;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.about-service-link:hover {
  background: linear-gradient(135deg, #FFECB3, #FFE082);
  transform: translateY(-1px);
}

/* ===== About Service Page ===== */
.about-svc {
  padding: 0 16px 32px;
}

.about-svc-hero {
  text-align: center;
  padding: 32px 0 24px;
}

.about-svc-hero-icon {
  font-size: 56px;
  margin-bottom: 8px;
}

.about-svc-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.about-svc-hero-sub {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.6;
}

.about-svc-section {
  margin-bottom: 28px;
}

.about-svc-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--warm-border);
}

/* Flow Diagram */
.about-svc-flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.about-svc-flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.about-svc-flow-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-svc-flow-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.3;
}

.about-svc-flow-arrow {
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  margin: 0 2px;
}

.about-svc-flow-note {
  background: #FFF8E1;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
}

.about-svc-flow-note-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

.about-svc-flow-note-icon {
  flex-shrink: 0;
}

/* Steps */
.about-svc-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-svc-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.about-svc-step-num {
  background: var(--primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.about-svc-step-visual {
  font-size: 32px;
  flex-shrink: 0;
}

.about-svc-step-body {
  flex: 1;
}

.about-svc-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.about-svc-step-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Register Section */
.about-svc-register-box {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-svc-register-free {
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
}

.about-svc-register-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-svc-register-badge.free {
  background: #4CAF50;
  color: white;
}

.about-svc-register-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}

.about-svc-register-divider {
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(242,139,48,0.05), rgba(242,139,48,0.1));
}

.about-svc-register-benefits {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-svc-benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about-svc-benefit-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.about-svc-benefit-body {
  flex: 1;
}

.about-svc-benefit-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.about-svc-benefit-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Timeline */
.about-svc-timeline {
  position: relative;
  padding-left: 24px;
}

.about-svc-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--warm-border);
}

.about-svc-timeline-item {
  position: relative;
  padding-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-svc-timeline-item:last-child {
  padding-bottom: 0;
}

.about-svc-timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: -24px;
  z-index: 1;
  box-shadow: 0 0 0 3px white;
}

.about-svc-timeline-content {
  flex: 1;
}

.about-svc-timeline-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.about-svc-timeline-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
}

/* FAQ */
.about-svc-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-svc-faq-item {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.about-svc-faq-q {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.about-svc-faq-a {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* CTA */
.about-svc-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  color: white;
}

.about-svc-cta-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.about-svc-cta-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.about-svc-cta-sub {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.about-svc-cta-btn {
  background: white;
  color: var(--primary);
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.about-svc-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== Farmer Campaign Banner ===== */
.farmer-campaign-banner {
  background: linear-gradient(135deg, #FFF3E0, #FFECB3);
  border: 2px solid #FFB74D;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.farmer-campaign-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.farmer-campaign-title {
  font-size: 15px;
  font-weight: 800;
  color: #E65100;
  margin-bottom: 4px;
}

.farmer-campaign-desc {
  font-size: 12px;
  color: #BF360C;
  line-height: 1.6;
}

/* ===== Farmer Plan Cards ===== */
.farmer-plan-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.farmer-plan-card {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  position: relative;
}

.farmer-plan-card.highlight {
  box-shadow: 0 2px 12px rgba(255, 152, 0, 0.2);
}

.farmer-plan-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: #FF9800;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
}

.farmer-plan-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.farmer-plan-price {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.farmer-plan-price strong {
  font-size: 24px;
}

.farmer-plan-limit {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--warm-border);
}

.farmer-plan-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Farmer Flow ===== */
.farmer-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.farmer-flow-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.farmer-flow-num {
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.farmer-flow-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  padding-top: 4px;
}

.farmer-flow-text strong {
  color: var(--text-dark);
}

/* ===== Home Footer Sub Links ===== */
.home-footer-sub {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  gap: 4px;
}

.home-footer-small {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
}

.home-footer-small:hover {
  color: var(--primary);
  text-decoration: underline;
}

.home-footer-dot {
  color: var(--text-light);
  font-size: 12px;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding: 24px 16px 32px;
}

.legal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 8px;
}

.legal-update {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.legal-section {
  margin-bottom: 24px;
}

.legal-section h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--warm-border);
}

.legal-section p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-section ul {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 8px;
}

.legal-section li {
  margin-bottom: 4px;
}

.legal-contact {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ===== About Page ===== */
.about-card {
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table th,
.about-table td {
  font-size: 13px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--warm-border);
  text-align: left;
  vertical-align: top;
}

.about-table th {
  color: var(--text-light);
  font-weight: 600;
  width: 90px;
  white-space: nowrap;
}

.about-table td {
  color: var(--text-dark);
}

.about-table tr:last-child th,
.about-table tr:last-child td {
  border-bottom: none;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-link-btn {
  background: none;
  border: 1.5px solid var(--warm-border);
  color: var(--text-mid);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.about-link-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(242, 139, 48, 0.05);
}

/* ===== Responsive ===== */
@media (min-width: 481px) {
  .app {
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
  }
}
