/* ============================================================
   Kamao - Mobile Task & Earnings Platform
   Complete Stylesheet
   ============================================================ */

/* ----- CSS Variables / Design Tokens ----- */
:root {
  --primary: #1a8917;
  --primary-dark: #0d5e0a;
  --primary-light: #25d366;
  --primary-gradient: linear-gradient(135deg, #1a8917, #0d5e0a);
  --gold: #f5a623;
  --gold-light: #ffd700;
  --gold-gradient: linear-gradient(135deg, #f5a623, #ffd700);
  --success: #25d366;
  --warning: #ff9800;
  --danger: #f44336;
  --bg: #f0f6f0;
  --card-bg: #ffffff;
  --text: #1a2e1a;
  --text-secondary: #6b7b6b;
  --border: #e0e8e0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  background: #0d5e0a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

input {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}


/* ============================================================
   App Container
   ============================================================ */
#app {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}


/* ============================================================
   Page Base
   ============================================================ */
.page {
  display: none;
  min-height: 100vh;
  padding-bottom: 70px;
  background: var(--bg);
}

.page.active {
  display: block;
}

.tab-spacer {
  height: 70px;
}


/* ============================================================
   Tab Bar
   ============================================================ */
.custom-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
  width: 100%;
  height: 60px;
  background: #ffffff;
  display: flex;
  align-items: center;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: #999;
  font-size: 11px;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  -webkit-user-select: none;
  padding: 4px 0;
}

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

.tab-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}

.tab-label {
  font-weight: 500;
  line-height: 1.2;
}

.tab-center {
  position: relative;
}

.center-btn {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.45);
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 2;
}

.center-btn:active {
  transform: translateX(-50%) scale(0.92);
}

.wa-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}


/* ============================================================
   Nav Bar (Sub-pages)
   ============================================================ */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #ffffff;
}

.nav-back {
  padding: 6px;
  cursor: pointer;
  font-size: 20px;
  border: none;
  background: none;
  color: var(--text);
  line-height: 1;
}

.nav-back-light {
  padding: 6px;
  cursor: pointer;
  font-size: 20px;
  border: none;
  background: none;
  color: #ffffff;
  line-height: 1;
}

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

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-title {
  font-size: 16px;
  font-weight: 600;
}

.nav-title-center {
  font-size: 17px;
  font-weight: 600;
}

.nav-placeholder {
  width: 32px;
}


/* ============================================================
   Home Page (#pageHome)
   ============================================================ */

/* Header */
.home-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #1a8917, #0d5e0a);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.home-header-text {
  display: flex;
  flex-direction: column;
}

.home-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.home-tagline {
  font-size: 12px;
  color: #ffffff;
  opacity: 0.85;
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.lang-btn:active {
  background: rgba(255, 255, 255, 0.35);
}

/* Banner Swiper */
.banner-swipe {
  overflow: hidden;
  border-radius: 12px;
  margin: 12px 16px;
}

.banner-track {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-slide {
  min-width: 100%;
  height: 140px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.banner-slide::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.banner-1 {
  background: linear-gradient(135deg, #1a8917, #25d366);
}

.banner-2 {
  background: linear-gradient(135deg, #f5a623, #ff9800);
}

.banner-3 {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.banner-text {
  flex: 1;
  z-index: 1;
}

.banner-big {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.banner-reward {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.95;
  margin-top: 4px;
}

.banner-icon-wrap {
  font-size: 48px;
  z-index: 1;
  line-height: 1;
}

.banner-dots {
  text-align: center;
  margin-top: 8px;
  padding: 0 16px;
}

.banner-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 3px;
  transition: all 0.3s;
}

.banner-dot.active {
  background: var(--primary);
  width: 16px;
  border-radius: 3px;
}

/* Promo Cards */
.promo-card {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 16px 10px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s;
}

.promo-card:active {
  transform: scale(0.98);
}

.invite-promo {
  /* variant - inherits promo-card */
}

.wa-promo {
  /* variant - inherits promo-card */
}

.promo-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.promo-info {
  flex: 1;
  margin-left: 10px;
}

.promo-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.promo-desc {
  font-size: 12px;
  color: var(--primary);
  margin-top: 2px;
}

.promo-arrow {
  font-size: 20px;
  color: #ccc;
}

/* Section Block */
.section-block {
  margin: 0 16px 12px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

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

.section-title {
  font-size: 16px;
  font-weight: 700;
}

/* Task List (home page) */
.task-list,
.task-list-fallback {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

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

.task-item:active {
  background: rgba(0, 0, 0, 0.02);
}

.task-icon {
  font-size: 20px;
  width: 32px;
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
}

.task-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.task-reward {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-right: 10px;
}

.task-action {
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.task-action.done {
  background: #e8f5e8;
  color: var(--primary);
}

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

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.podium-avatar {
  font-size: 32px;
  margin-bottom: 4px;
  line-height: 1;
}

.podium-crown {
  font-size: 20px;
  line-height: 1;
}

.podium-name {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
  text-align: center;
}

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

.podium-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  font-size: 13px;
  margin-top: 6px;
}

.bar-1 {
  height: 60px;
  background: linear-gradient(180deg, #1a8917, #0d5e0a);
}

.bar-2 {
  height: 45px;
  background: linear-gradient(180deg, #25d366, #1a8917);
}

.bar-3 {
  height: 35px;
  background: linear-gradient(180deg, #6fcf6f, #25d366);
}

.first .podium-avatar {
  font-size: 40px;
}

/* Trust Section */
.trust-section {
  /* container - no special background */
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 8px 0;
}

.trust-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.trust-label {
  font-size: 14px;
  font-weight: 500;
}


/* ============================================================
   Login Page (#pageLogin)
   ============================================================ */

/* Hero Section */
.login-hero {
  position: relative;
  padding: 20px 24px 30px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a8917, #0d5e0a);
}

.hero-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.circle-1 {
  width: 180px;
  height: 180px;
  top: -40px;
  right: -60px;
}

.circle-2 {
  width: 120px;
  height: 120px;
  bottom: -20px;
  left: -30px;
}

.circle-3 {
  width: 80px;
  height: 80px;
  top: 20px;
  left: 30px;
  background: rgba(255, 215, 0, 0.08);
}

.hero-emojis {
  position: relative;
  z-index: 1;
}

.hero-emoji {
  font-size: 48px;
  letter-spacing: 8px;
  line-height: 1.2;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

/* Auth Card */
.auth-card {
  margin: 0 16px;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px 0 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  top: -16px;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin: 0 20px 16px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-form {
  padding: 0 20px;
}


/* ============================================================
   Form Elements (Shared)
   ============================================================ */
.input-group {
  margin-bottom: 14px;
}

.input-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.phone-group {
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  padding: 0 14px;
  height: 48px;
  transition: border-color 0.2s;
}

.phone-group:focus-within {
  border-color: var(--primary);
}

.input-field {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
  height: 100%;
  width: 100%;
}

.input-field::placeholder {
  color: #aaa;
}

/* Standalone input-field inside input-group (non-phone fields) */
.input-group:not(.phone-group) > .input-field {
  background: #f5f7fa;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  padding: 0 14px;
  height: 48px;
  transition: border-color 0.2s;
}

.input-group:not(.phone-group) > .input-field:focus {
  border-color: var(--primary);
}

/* Dial Code Selector */
.dial-code-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding-right: 8px;
  border-right: 1px solid #ddd;
  margin-right: 8px;
  flex-shrink: 0;
}

.dial-flag {
  font-size: 18px;
  line-height: 1;
}

.dial-code {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.dial-arrow {
  font-size: 10px;
  color: #999;
}

/* Remember Checkbox */
.remember-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.remember-check input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}


/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  padding: 0 20px;
  height: 48px;
  text-decoration: none;
}

.btn:active {
  opacity: 0.85;
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
}

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

.btn-link {
  background: none;
  color: var(--primary);
  font-size: 14px;
  padding: 0;
  height: auto;
  border: none;
  font-weight: 600;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  height: 36px;
  font-size: 13px;
  border-radius: 18px;
  padding: 0 16px;
}

.btn.loading {
  opacity: 0.7;
  pointer-events: none;
}


/* ============================================================
   Popup / Dial Code Picker
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.popup-box {
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.popup-close {
  font-size: 20px;
  cursor: pointer;
  background: none;
  border: none;
  color: #999;
  line-height: 1;
}

.dial-code-popup {
  /* no special override */
}

.dial-search-wrap {
  padding: 8px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.dial-search-input {
  width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  background: #f5f7fa;
}

.dial-search-input:focus {
  border-color: var(--primary);
}

.dial-code-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dial-code-list > div,
.dial-code-list > button {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s;
}

.dial-code-list > div:active,
.dial-code-list > button:active {
  background: #f5f7fa;
}

.dial-code-list::-webkit-scrollbar {
  width: 0;
  display: none;
}


/* ============================================================
   Task Page (#pageTask)
   ============================================================ */
.task-hero-card {
  text-align: center;
  padding: 24px 16px;
  margin: 0 16px 12px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.task-hero-icon .wa-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
}

.task-hero-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 12px;
}

.task-hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.task-step {
  margin: 0 16px 12px;
}

/* Pairing Code */
.pairing-code-box {
  text-align: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

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

.pairing-code {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--success);
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  margin: 8px 0 12px;
}

.pairing-code-box .btn {
  margin: 0 auto;
}

.pairing-timer {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Tutorial */
.tutorial-section {
  margin: 0 16px 12px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
}

.tutorial-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tutorial-steps {
  padding-left: 20px;
  font-size: 13px;
  line-height: 2;
  color: var(--text-secondary);
  list-style: decimal;
}

/* Linked Devices */
.linked-section {
  margin: 0 16px 12px;
}

.linked-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.linked-list > div {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}


/* ============================================================
   My Page (#pageMy)
   ============================================================ */
.my-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #1a8917, #0d5e0a);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.my-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.user-info-card {
  margin: 0 16px 12px;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  top: -8px;
}

.user-avatar {
  font-size: 36px;
  line-height: 1;
}

.user-details {
  flex: 1;
}

.user-id {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.user-phone {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 2px;
}

.user-balance {
  text-align: right;
}

.user-balance .balance-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.user-balance .balance-amount {
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
}

/* Menu List */
.menu-list {
  padding: 0 16px;
}

.menu-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}

.menu-item:active {
  transform: scale(0.98);
}

.menu-icon {
  font-size: 22px;
  margin-right: 14px;
  line-height: 1;
}

.menu-label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.menu-arrow {
  font-size: 18px;
  color: #ccc;
}

.logout-btn {
  margin: 16px;
  width: calc(100% - 32px);
  color: var(--danger);
  border: none;
  background: rgba(244, 67, 54, 0.08);
  border-radius: 12px;
}


/* ============================================================
   Subscription / Promo Page (#pageSubscription)
   ============================================================ */

/* Balance Card */
.balance-card {
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin: 0 16px 12px;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.balance-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -15px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.balance-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.balance-col {
  text-align: center;
  flex: 1;
}

/* Balance label inside subscription card context */
.balance-card .balance-label {
  font-size: 13px;
  opacity: 0.85;
  color: #ffffff;
}

.balance-value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

/* Invite Link */
.invite-link-card {
  margin: 0 16px 12px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.invite-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.invite-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.invite-link-input {
  flex: 1;
  background: #f5f7fa;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--primary);
  outline: none;
}

/* Commission Grid */
.commission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 16px 12px;
}

.commission-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

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

.commission-rate {
  font-size: 28px;
  font-weight: 700;
  color: var(--success);
  margin: 4px 0;
}

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

/* Creator Card (on subscription page) */
.creator-card {
  margin: 0 16px 12px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}

.creator-card:active {
  transform: scale(0.98);
}

.creator-info {
  flex: 1;
}

.creator-title {
  font-size: 15px;
  font-weight: 600;
}

.creator-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  background: #f0f0f0;
  color: #999;
  display: inline-block;
  margin-top: 4px;
}

.creator-progress-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.creator-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Team Stats */
.team-stats-card {
  margin: 0 16px 12px;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-around;
  box-shadow: var(--shadow-sm);
}

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

.team-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.team-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}


/* ============================================================
   Service Page (#pageService)
   ============================================================ */
.service-content {
  padding: 32px 16px;
  text-align: center;
}

.service-icon {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
}

.service-heading {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.service-cell {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.15s;
}

.service-cell:active {
  transform: scale(0.98);
}

.service-cell-icon {
  font-size: 24px;
  margin-right: 12px;
  line-height: 1;
}

.service-cell-info {
  flex: 1;
}

.service-cell-title {
  font-size: 15px;
  font-weight: 600;
}

.service-cell-number {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}


/* ============================================================
   Sign-In Page (#pageSignIn)
   ============================================================ */
.signin-counter {
  text-align: center;
  padding: 32px 16px;
  background: #ffffff;
  margin: 0 16px 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

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

.signin-days-value {
  font-size: 64px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin: 4px 0;
}

.signin-btn {
  margin: 0 16px 12px;
}

.signin-calendar {
  margin: 0 16px;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}


/* ============================================================
   Withdraw Page (#pageWithdraw)
   ============================================================ */
.withdraw-balance-card {
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin: 0 16px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.withdraw-balance-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.withdraw-balance-label {
  font-size: 13px;
  opacity: 0.85;
}

.withdraw-balance-amount {
  font-size: 36px;
  font-weight: 700;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.withdraw-input-section {
  margin: 0 16px 12px;
}

.withdraw-accounts {
  margin: 0 16px 12px;
}

.withdraw-accounts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.account-list label {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.account-list label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(26, 137, 23, 0.04);
}

.account-list input[type="radio"] {
  accent-color: var(--primary);
  margin-right: 12px;
  width: 18px;
  height: 18px;
}

.no-account {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}


/* ============================================================
   Add Account Page (#pageAddAccount)
   ============================================================ */
.payment-tabs {
  display: flex;
  margin: 0 16px 12px;
  border-bottom: 2px solid var(--border);
}

.payment-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 14px;
  transition: color 0.2s, border-color 0.2s;
}

.payment-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.payment-form {
  margin: 0 16px 12px;
}


/* ============================================================
   Revenue Page (#pageRevenue)
   ============================================================ */
.filter-tabs {
  display: flex;
  margin: 0 16px 12px;
  gap: 8px;
}

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

.filter-tab.active {
  background: var(--primary);
  color: #ffffff;
}

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

.revenue-list {
  margin: 0 16px;
}

.revenue-list > div {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}


/* ============================================================
   Stage Rewards Page (#pageStageRewards)
   ============================================================ */
.stage-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #1a8917, #0d5e0a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

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

.stage-list {
  padding: 12px 16px;
}

.stage-list > div {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}


/* ============================================================
   Creator Page (#pageCreator)
   ============================================================ */
.creator-hero {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #1a8917, #0d5e0a);
  color: #ffffff;
  margin-bottom: 16px;
}

.creator-hero-badge {
  font-size: 48px;
  line-height: 1;
}

.creator-hero-level {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 8px;
}

.creator-hero-invites {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
}

.creator-levels-list {
  padding: 0 16px;
}

.creator-levels-list > div {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.creator-next-card {
  margin: 0 16px 12px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.creator-next-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.creator-next-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.creator-next-progress {
  margin-top: 8px;
}

.creator-next-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.creator-next-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 8px;
  transition: width 0.4s ease;
}

.creator-next-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}


/* ============================================================
   Change Password Page (#pageChangePassword)
   ============================================================ */
.password-form {
  margin: 0 16px 12px;
}


/* ============================================================
   Withdraw Orders Page (#pageWithdrawOrders)
   ============================================================ */
.orders-list {
  padding: 0 16px;
}

.orders-list > div {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}


/* ============================================================
   Lang Setting Page (#pageLangSetting)
   ============================================================ */
.lang-list {
  padding: 0 16px;
}

.lang-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-item:active {
  background: #f5f7fa;
}

.lang-flag {
  font-size: 24px;
  margin-right: 12px;
  line-height: 1;
}

.lang-name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.lang-check {
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
}


/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 40px 16px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
}

.empty-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ============================================================
   Toast Notification
   ============================================================ */
.km-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 9999;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  max-width: 280px;
  text-align: center;
  line-height: 1.4;
}

.km-toast.show {
  opacity: 1;
}


/* ============================================================
   Dialog
   ============================================================ */
.km-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.km-dialog {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  width: 280px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: dialogFadeIn 0.2s ease;
}

@keyframes dialogFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.km-dialog-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.km-dialog-msg {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.km-dialog-btns {
  display: flex;
  gap: 10px;
}

.km-dialog-cancel {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.km-dialog-cancel:active {
  background: #f5f7fa;
}

.km-dialog-confirm {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.km-dialog-confirm:active {
  opacity: 0.85;
}


/* ============================================================
   Loading Spinner
   ============================================================ */
.km-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: kmSpin 0.6s linear infinite;
}

@keyframes kmSpin {
  to {
    transform: rotate(360deg);
  }
}


/* ============================================================
   Safe Area & Device Compatibility
   ============================================================ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .custom-tabbar {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(60px + env(safe-area-inset-bottom));
  }

  .tab-spacer {
    height: calc(70px + env(safe-area-inset-bottom));
  }

  .page {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}


/* ============================================================
   Selection & Misc
   ============================================================ */
/* ============================================================
   Dial Code Picker List Items (generated by renderDialList)
   ============================================================ */
.dial-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s;
}

.dial-list-item:active,
.dial-list-item.active {
  background: #f5f7fa;
}

.dial-list-item.active {
  color: var(--primary);
  font-weight: 600;
}

.dial-list-cc {
  display: inline-block;
  width: 28px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.dial-list-text {
  flex: 1;
}

.dial-list-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}


/* ============================================================
   Rank Podium & Table (generated by renderRankList)
   ============================================================ */
.rank-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 8px;
}

.rank-podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.rank-podium-medal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--primary-gradient);
  margin-bottom: 6px;
}

.rank-place-1 .rank-podium-medal {
  background: var(--gold-gradient);
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.rank-place-2 .rank-podium-medal {
  background: linear-gradient(135deg, #90a4ae, #607d8b);
}

.rank-place-3 .rank-podium-medal {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
}

.rank-podium-name {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
  text-align: center;
}

.rank-podium-earning {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 2px;
}

.rank-table {
  margin: 0;
}

.rank-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.rank-num {
  width: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  flex-shrink: 0;
}

.rank-name {
  flex: 1;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-earning {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}


/* ============================================================
   Task Account Items (generated by renderTaskAccounts)
   ============================================================ */
.account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.account-left {
  flex: 1;
}

.account-phone {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

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

.status-online {
  background: rgba(37, 211, 102, 0.12);
  color: var(--success);
}

.status-offline {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

.status-pending {
  background: rgba(255, 152, 0, 0.12);
  color: var(--warning);
}

.account-earning {
  font-size: 15px;
  font-weight: 700;
  color: var(--success);
  flex-shrink: 0;
}

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


/* ============================================================
   Payment Account Items (generated by renderWithdrawAccounts)
   ============================================================ */
.payment-account-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.payment-account-item.selected {
  border-color: var(--primary);
  background: rgba(26, 137, 23, 0.04);
}

.payment-radio {
  margin-right: 12px;
  flex-shrink: 0;
}

.radio-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  position: relative;
}

.radio-dot.active {
  border-color: var(--primary);
}

.radio-dot.active::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.payment-info {
  flex: 1;
}

.payment-label {
  font-size: 14px;
  font-weight: 500;
}

.payment-holder {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.add-account-link {
  text-align: center;
  padding: 12px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}


/* ============================================================
   Calendar Grid (generated by renderSignInCalendar)
   ============================================================ */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.calendar-cell {
  padding: 8px 4px;
  border-radius: 8px;
  background: #f5f7fa;
}

.calendar-cell.today {
  background: var(--primary);
  color: #ffffff;
}

.calendar-cell.signed {
  background: rgba(26, 137, 23, 0.1);
  color: var(--primary);
}

.calendar-cell.today.signed {
  background: var(--primary);
  color: #ffffff;
}

.calendar-day-label {
  font-size: 10px;
  color: inherit;
  opacity: 0.7;
}

.calendar-day-num {
  font-size: 16px;
  font-weight: 700;
  margin: 2px 0;
}

.calendar-check {
  font-size: 12px;
  color: var(--success);
}

.calendar-cell.today .calendar-check {
  color: #ffffff;
}

.calendar-stats {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Sign-in button signed state */
.signin-btn.signed {
  background: #e8f5e8;
  color: var(--primary);
  pointer-events: none;
}


/* ============================================================
   Revenue Items (generated by renderRevenueList)
   ============================================================ */
.revenue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.revenue-info {
  flex: 1;
}

.revenue-type {
  font-size: 14px;
  font-weight: 600;
}

.revenue-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

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

.revenue-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--success);
  flex-shrink: 0;
  margin-left: 12px;
}


/* ============================================================
   Stage Cards (generated by renderStageRewards)
   ============================================================ */
.stage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.stage-card.locked {
  opacity: 0.6;
}

.stage-card.claimed {
  background: #f5f7fa;
}

.stage-info {
  flex: 1;
}

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

.stage-reward {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

.stage-action {
  flex-shrink: 0;
  margin-left: 12px;
}

/* Generic km-btn used in stage/creator cards */
.km-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 16px;
  height: 32px;
  transition: opacity 0.2s;
}

.km-btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
}

.km-btn-primary:active {
  opacity: 0.85;
}

.km-btn-disabled {
  background: #e8e8e8;
  color: #999;
  cursor: not-allowed;
}


/* ============================================================
   Creator Level Cards (generated by renderCreatorPage)
   ============================================================ */
.creator-level-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.creator-level-card.locked {
  opacity: 0.6;
}

.creator-level-card.claimed {
  background: #f5f7fa;
}

.creator-level-info {
  flex: 1;
}

.creator-level-name {
  font-size: 15px;
  font-weight: 700;
}

.creator-level-req {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.creator-level-reward {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 2px;
}

.creator-level-multi {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

.creator-level-action {
  flex-shrink: 0;
  margin-left: 12px;
}


/* ============================================================
   Order Items (generated by renderWithdrawOrders)
   ============================================================ */
.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.order-info {
  flex: 1;
}

.order-amount {
  font-size: 16px;
  font-weight: 700;
}

.order-channel {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

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

.order-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  flex-shrink: 0;
  margin-left: 12px;
}

.order-status-pending {
  background: rgba(255, 152, 0, 0.12);
  color: var(--warning);
}

.order-status-approved,
.order-status-completed {
  background: rgba(37, 211, 102, 0.12);
  color: var(--success);
}

.order-status-rejected,
.order-status-failed {
  background: rgba(244, 67, 54, 0.12);
  color: var(--danger);
}


::selection {
  background: rgba(26, 137, 23, 0.2);
  color: var(--text);
}
