/* BeiKe customer app visual skin. Layout, visibility and interactions stay in their source styles. */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: #1b3028;
  background: #eff2ef;
  --ios-bg: #f4f6f4;
  --ios-card: #fff;
  --ios-ink: #1b3028;
  --ios-muted: #718078;
  --ios-green: #316f57;
  --ios-green-soft: #eaf3ed;
  --ios-line: rgba(29, 59, 43, .105);
  --ios-shadow: 0 5px 18px rgba(29, 53, 39, .055);
}

.device,
.wallet-preview,
.history-preview,
.profile-preview,
.support-preview,
.notifications-preview,
.sell-preview,
.wheel-preview,
.new-user-preview,
.tasks-preview,
.buddy-preview,
.monthly-preview { background: var(--ios-bg); color: var(--ios-ink); }

.device { -webkit-font-smoothing: antialiased; }
.device button, .device input, .device textarea, .device select { font-family: inherit; }
.device :is(button, input, textarea, select):focus-visible { outline: 2px solid rgba(49,111,87,.55); outline-offset: 2px; }
.device :is(input, textarea, select) { accent-color: var(--ios-green); }

/* Bars use the same light glass treatment as the sheet surfaces. */
.bottom-nav {
  border: 1px solid rgba(255,255,255,.82);
  background: rgba(249,251,249,.82);
  box-shadow: 0 5px 23px rgba(24,49,35,.11), inset 0 1px rgba(255,255,255,.7);
  backdrop-filter: saturate(1.3) blur(24px);
  -webkit-backdrop-filter: saturate(1.3) blur(24px);
  border-radius: 25px;
}
.bottom-nav button { color: #82918a; font-weight: 600; border-radius: 19px; transition: color .16s ease, background-color .16s ease; }
.bottom-nav button.active { background: rgba(207,227,213,.48); color: #276448; }
.bottom-nav svg, .header-icon svg, .page-header-icon svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.app-header, .wallet-topbar, .history-topbar, .profile-topbar,
.sell-preview-topbar, .support-topbar, .notifications-topbar,
.tasks-topbar, .wheel-topbar, .new-user-topbar, .buddy-topbar, .monthly-topbar {
  color: var(--ios-ink);
}
.brand-mark { background: #346f58; border-radius: 13px; box-shadow: none; }
.brand-wordmark strong { color: var(--ios-ink); font-weight: 700; }
.brand-wordmark small, .invite-meta, .app-header small { color: var(--ios-muted); }
.header-actions, .page-header-actions {
  border-color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.74);
  box-shadow: 0 2px 10px rgba(31,52,38,.055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 17px;
}
.header-icon, .page-header-icon { background: transparent; color: var(--ios-green); border-radius: 12px; }
.header-icon svg, .page-header-icon svg { stroke-width: 1.65; }
.copy-code { background: #edf2ed; border-color: var(--ios-line); color: var(--ios-green); }

/* Type hierarchy and labels. */
.intro h2, .sell-preview-heading h2, .support-page-heading h2,
.notifications-heading h2, .wallet-section-heading h2,
.profile-section-heading h2, .tasks-section-heading h2,
.new-user-section-title h2 { color: var(--ios-ink); letter-spacing: -.035em; font-weight: 720; }
.intro p, .sell-preview-heading p, .support-page-heading p,
.rates-heading p, .rate-note, .wallet-preview-note,
.history-footnote, .profile-preview-note, .tasks-source-note { color: var(--ios-muted); }
.intro span, .wallet-section-heading span, .support-eyebrow,
.tasks-eyebrow, .new-user-heading>span, .profile-vip-overline {
  color: #517b64; letter-spacing: .11em;
}
.section-heading h3, .rates-heading h3, .sell-catalog-meta strong,
.wallet-section-heading h2 { font-weight: 700; }

/* Home: quieter surfaces and a single grouped-rate list. */
.sell-feature {
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 25px;
  background: linear-gradient(125deg,#244e3f 0%,#3b7157 100%);
  box-shadow: 0 8px 20px rgba(31,75,51,.12);
}
.sell-feature:before { opacity: .55; }
.shortcut, .activity, .bill-service, .sell-catalog-support {
  border: 1px solid var(--ios-line);
  background: var(--ios-card);
  box-shadow: var(--ios-shadow);
  border-radius: 19px;
}
.shortcut-icon, .activity-symbol, .bill-icon,
.sell-catalog-support-icon { background: var(--ios-green-soft); color: var(--ios-green); border-radius: 13px; }
.shortcut-icon svg, .bill-icon svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.home-ticker { background: rgba(236,243,237,.78); border-color: var(--ios-line); border-radius: 15px; box-shadow: none; }
.rates-list, .sell-catalog-list {
  border: 1px solid var(--ios-line);
  border-radius: 22px;
  background: var(--ios-card);
  box-shadow: var(--ios-shadow);
}
.rates-list .rate-row, .sell-catalog-card { border-bottom-color: var(--ios-line); background: transparent; }
.rates-list .rate-row:active, .sell-catalog-card:active,
.wallet-action:active, .history-item:active, .profile-menu-line:active { background: #f1f6f2; }
.rate-sell, .sell-catalog-action, .sell-brand-choice-action {
  border-color: rgba(51,108,75,.15);
  border-radius: 11px;
  background: var(--ios-green-soft);
  color: #28674d;
  font-weight: 700;
}
.rate-row-pending .rate-sell, .sell-catalog-pending .sell-catalog-action,
.sell-brand-choice-pending .sell-brand-choice-action { background: #f0f2f0; color: #819087; }
.rate-brand, .sell-catalog-copy strong { color: var(--ios-ink); font-weight: 680; }
.rates-list .rate-quote strong, .sell-catalog-copy small { color: #316e52; }

/* Sell: grouped content, system-style search and controls. */
.sell-preview-back, .wallet-back, .wallet-withdraw-back, .wallet-bank-back,
.wallet-pin-back, .history-back, .profile-back, .support-back,
.notifications-back, .tasks-back, .new-user-back, .buddy-back, .monthly-back {
  border: 1px solid var(--ios-line);
  border-radius: 14px;
  background: rgba(255,255,255,.76);
  color: var(--ios-green);
  box-shadow: 0 2px 7px rgba(24,49,35,.035);
}
.sell-search, .wallet-bank-search {
  border: 1px solid var(--ios-line);
  border-radius: 16px;
  background: #eef2ef;
  box-shadow: inset 0 1px 2px rgba(29,58,42,.025);
}
.sell-search:focus-within, .wallet-bank-search:focus-within {
  border-color: rgba(49,111,87,.42);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(49,111,87,.09);
}
.sell-search input, .wallet-bank-search input { background: transparent; font-size: 16px; }
.sell-catalog-support { background: #eef4ef; box-shadow: none; }
.sell-catalog-chat, .support-send { background: var(--ios-green); border-radius: 13px; box-shadow: none; }
.sell-brand-logo, .sell-catalog-art { box-shadow: none; }

/* Wallet, payouts, account forms. */
.wallet-hero {
  border: 1px solid var(--ios-line);
  border-radius: 25px;
  background: #fff;
  box-shadow: var(--ios-shadow);
}
.wallet-hero strong, .wallet-hero .wallet-amount { letter-spacing: -.04em; }
.wallet-withdraw-open, .wallet-withdraw-footer button,
.wallet-bank-footer button, .wallet-pin-footer button {
  border-radius: 15px;
  background: var(--ios-green);
  box-shadow: none;
}
.wallet-action-list, .wallet-bank-account-card, .wallet-pin-preview-card,
.wallet-amount-block, .wallet-bank-select, .wallet-pin-email-card {
  border: 1px solid var(--ios-line);
  border-radius: 21px;
  background: #fff;
  box-shadow: var(--ios-shadow);
}
.wallet-action { background: transparent; }
.wallet-action + .wallet-action { border-top-color: var(--ios-line); }
.wallet-action-icon, .wallet-bank-account-icon,
.wallet-pin-mail-icon { background: var(--ios-green-soft); color: var(--ios-green); }
.wallet-amount-input, .wallet-bank-account-number, .wallet-bank-full-name,
.wallet-pin-input { border-radius: 13px; }

/* History and profile use grouped list rows and hairline separators. */
.history-sections, .history-filters, .notifications-filters,
.tasks-tabs, .new-user-tabbar { border-radius: 16px; background: #e9eeea; border-color: transparent; box-shadow: none; }
.history-sections button, .history-filters button,
.notifications-filters button, .tasks-tab, .new-user-tab-button { border-radius: 12px; }
.history-sections .active, .history-filters .active,
.notifications-filters .selected, .tasks-tab.active,
.new-user-tab-button.active {
  background: #fff; color: #2b6a4e;
  box-shadow: 0 1px 5px rgba(32,60,42,.09);
}
.history-item, .notification-item {
  border: 1px solid var(--ios-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--ios-shadow);
}
.history-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--ios-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ios-shadow);
}
.history-list .history-item { border: 0; border-radius: 0; box-shadow: none; }
.history-list .history-item + .history-item { border-top: 1px solid var(--ios-line); }
.history-filters button[aria-pressed="true"] {
  border-color: rgba(49,111,87,.15);
  background: var(--ios-green-soft);
  color: #276448;
  box-shadow: none;
}
.history-sections button[aria-selected="true"] {
  background: #fff;
  color: #276448;
  box-shadow: 0 1px 5px rgba(32,60,42,.09);
}
.history-item-main strong, .profile-menu-copy strong { color: var(--ios-ink); font-weight: 680; }
.history-item-main small, .history-item-side small { color: var(--ios-muted); }
.history-item-icon { border-radius: 13px; background: var(--ios-green-soft); color: var(--ios-green); }
.profile-identity { background: linear-gradient(170deg,#e8efeb 0%,#f4f6f4 73%,#fff 100%); }
.profile-avatar { background: #35745a; box-shadow: 0 4px 12px rgba(30,87,52,.16); }
.profile-menu { background: #fff; }
.profile-menu-line { border-bottom-color: var(--ios-line); background: transparent; }
.profile-menu-icon { color: #547969; }
.profile-menu-value, .profile-menu-copy small { color: var(--ios-muted); }
.profile-security-list, .profile-detail-list, .profile-group,
.profile-name-field, .profile-flow-field {
  border-color: var(--ios-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--ios-shadow);
}
.profile-security-row + .profile-security-row { border-top-color: var(--ios-line); }
.profile-primary-button, .profile-flow-submit,
.profile-avatar-save { border-radius: 15px; background: var(--ios-green); box-shadow: none; }

/* Rewards retain the VIP tier's own accent while the controls share one shape language. */
.tasks-hero, .new-user-hero, .monthly-hero, .buddy-hero {
  border-radius: 26px;
  box-shadow: 0 8px 22px rgba(31,65,45,.1);
}
.tasks-item, .tasks-coupon, .new-user-coupon, .new-user-milestone,
.wheel-rule, .buddy-code-card {
  border-color: var(--ios-line);
  border-radius: 19px;
  box-shadow: var(--ios-shadow);
}
.tasks-item-symbol, .new-user-benefit-icon { border-radius: 13px; }
.profile-vip-rules-open, .tasks-rules-open, .new-user-rules-open,
.wheel-rules-open, .buddy-rules-open, .monthly-rules-open { border-radius: 12px; }
.profile-vip-benefit { border-radius: 20px; box-shadow: 0 5px 18px rgba(17,33,24,.055); }
.profile-vip-hero { box-shadow: 0 9px 25px rgba(24,47,34,.16), inset 0 1px rgba(255,255,255,.28); }
.tasks-primary, .support-chat-open, .new-user-action button,
.welcome-ad-continue {
  border-radius: 15px;
  background: var(--ios-green);
  box-shadow: 0 4px 12px rgba(31,75,51,.10);
  font-weight: 700;
}
.support-faq-list, .support-conversation {
  border-color: var(--ios-line);
  border-radius: 22px;
  box-shadow: var(--ios-shadow);
}
.support-faq-item + .support-faq-item { border-top-color: var(--ios-line); }
.support-composer { border-color: var(--ios-line); border-radius: 19px; box-shadow: var(--ios-shadow); }
.welcome-ad-backdrop { background: rgba(12,31,23,.58); }
.welcome-ad-card { border: 1px solid rgba(255,255,255,.72); box-shadow: 0 22px 55px rgba(11,27,17,.25); }
.welcome-ad-art { background: linear-gradient(145deg,#244e3f 0%,#3f7858 100%); }
.welcome-ad-rules p { border-color: var(--ios-line); background: #f3f6f3; border-radius: 13px; }

/* Sign-in and recovery share the customer app's restrained surface language. */
.beike-auth-layer {
  background: linear-gradient(180deg,#edf2ee 0%,#f7f9f7 62%,#f1f4f1 100%);
  color: var(--ios-ink);
}
.beike-auth-card {
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 40px rgba(30,53,37,.09);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.beike-auth-brand { color: var(--ios-green); }
.beike-auth-brand span { border-radius: 12px; background: var(--ios-green); }
.beike-auth-intro h1 { color: var(--ios-ink); font-weight: 720; letter-spacing: -.04em; }
.beike-auth-intro p, .beike-auth-help, .beike-auth-footer { color: var(--ios-muted); }
.beike-auth-intro small { color: #537a64; }
.beike-auth-tabs { border-radius: 15px; background: #e9eeea; }
.beike-auth-tabs button { border-radius: 12px; }
.beike-auth-tabs button.selected { color: var(--ios-green); box-shadow: 0 1px 5px rgba(32,60,42,.09); }
.beike-auth-form label { color: #405b4b; }
.beike-auth-form input {
  border-color: var(--ios-line);
  border-radius: 14px;
  background: #f4f6f4;
  color: var(--ios-ink);
  font-family: inherit;
}
.beike-auth-form input:focus { border-color: rgba(49,111,87,.45); background: #fff; box-shadow: 0 0 0 3px rgba(49,111,87,.10); }
.beike-auth-code-send { border-color: rgba(49,111,87,.17); border-radius: 13px; background: var(--ios-green-soft); color: var(--ios-green); }
.beike-auth-primary { border-radius: 15px; background: var(--ios-green); font-weight: 700; }
.beike-auth-link, .beike-auth-footer a { color: var(--ios-green); }

/* Sheets and dialogs have a soft scrim and a consistent iOS-like surface. */
.sell-choice-overlay, .sell-coupon-overlay, .wallet-bank-picker,
.wallet-info-sheet, .profile-vip-rules-overlay,
.tasks-rules-sheet, .new-user-rules-overlay,
.buddy-share-sheet, .buddy-rules-sheet, .monthly-rules-overlay {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sell-choice-panel, .sell-coupon-panel, .wallet-bank-picker-panel,
.profile-vip-rules-sheet, .tasks-rules-card, .new-user-rules-card,
.buddy-sheet-card, .monthly-rules-card {
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px 28px 0 0;
  background: rgba(253,254,253,.96);
  box-shadow: 0 -12px 34px rgba(23,41,30,.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.ticker-modal-card, .wallet-info-card, .history-detail-panel,
.notification-detail-card, .tasks-dialog-card,
.wallet-bank-review-card, .wallet-bank-delete-card,
.support-delete-card {
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 15px 45px rgba(22,40,29,.15);
}
.sell-choice-handle, .sell-coupon-handle, .wallet-bank-picker-grab,
.profile-vip-rules-handle, .tasks-rules-grab,
.buddy-sheet-handle { background: #d9dfda; }

/* Keep search and text-entry controls above WebKit's focus-zoom threshold. */
.sell-search input, .support-input, .wallet-bank-search input,
.profile-name-field input, .profile-flow-field input,
.wallet-bank-form-stage input { font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
  .bottom-nav button { transition: none; }
}
