/* === TikTok Transfer - Simulator Match === */
:root {
  --primary: #ea2f46;
  --primary-dark: #cf243c;
  --bg: #efefef;
  --card-bg: #ffffff;
  --text: #101010;
  --text-secondary: #5a5d66;
  --text-muted: #8d9199;
  --text-light: #b0b0b7;
  --border: #dddddf;
  --input-bg: #ffffff;
  --success: #28b446;
  --danger: #ef4444;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  overflow-x: hidden;
}

body {
  display: flex;
  justify-content: center;
  padding: 0 14px 18px;
}

.phone-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  padding-top: calc(var(--safe-top) + 14px);
}

.app-container {
  width: 100%;
  min-height: calc(100vh - 14px);
  min-height: calc(100dvh - 14px);
  position: relative;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  visibility: hidden;
  flex-direction: column;
  flex: 1;
  padding: 10px 4px 18px;
  gap: 18px;
}

.screen.active {
  display: flex;
  visibility: visible;
  position: relative;
  z-index: 1;
}

.screen.active.slide-in-right {
  animation: slideInRight 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.screen.active.slide-in-left {
  animation: slideInLeft 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.screen.active.fade-scale-in {
  animation: fadeScaleIn 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.screen.active.fade-in {
  animation: fadeIn 0.2s ease;
}

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.sim-card {
  background: var(--card-bg);
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 34px;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.04);
}

.sim-card-primary {
  padding: 28px 18px 22px;
}

.sim-card-secondary {
  padding: 26px 18px 20px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.tiktok-logo {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid #ececef;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.tiktok-logo svg {
  width: 44px;
  height: 44px;
}

.header-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.header-label {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-secondary);
}

.header-value {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--text);
}

.btn-mgmt {
  min-width: 138px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.btn-mgmt:active { opacity: 0.85; transform: scale(0.97); }

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}

.search-wrapper {
  position: relative;
  margin-bottom: 22px;
}

.search-input {
  width: 100%;
  height: 62px;
  border: 2px solid #dedee2;
  border-radius: 999px;
  background: var(--input-bg);
  padding: 0 20px 0 52px;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  transition: border-color 0.2s, background 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
  background: #fff;
}

.search-input::placeholder {
  color: var(--text-light);
  font-size: 18px;
}

.search-at {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-secondary);
  pointer-events: none;
}

.search-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid #e0e0e5;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinSearch 0.7s linear infinite;
  flex-shrink: 0;
  margin-left: 8px;
}

.search-spinner.visible { display: inline-block; }

@keyframes spinSearch {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.user-card {
  background: var(--card-bg);
  border: 2px solid #ececef;
  border-radius: 24px;
  padding: 12px 14px;
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.user-card.visible {
  display: flex;
  animation: cardIn 0.2s ease;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-avatar-wrap {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8e8e8;
  border: 1px solid #ececef;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.user-nick {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-handle {
  font-size: 15px;
  line-height: 1.25;
  color: var(--text-secondary);
}

.user-stat {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}

.btn-all {
  min-width: 126px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-all:active { opacity: 0.85; }

.limit-section {
  margin-bottom: 2px;
}

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

.limit-label,
.limit-value {
  font-size: 13px;
  font-weight: 500;
  color: #4c4f57;
}

.limit-label {
  letter-spacing: 0.2px;
}

.limit-bar {
  width: 100%;
  height: 10px;
  background: #ebedf0;
  border-radius: 999px;
  overflow: hidden;
}

.limit-fill {
  height: 100%;
  background: #6d7683;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.amount-section {
  margin-bottom: 22px;
}

.amount-label {
  display: block;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
  margin-bottom: 14px;
}

.amount-display {
  width: 100%;
  height: 78px;
  border: 2px solid #dedee2;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}

.amount-display.active {
  border-color: var(--primary);
}

.amount-display .cursor {
  display: inline-block;
  width: 2px;
  height: 30px;
  background: var(--primary);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

.amount-display .cursor.hidden { display: none; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.fee-box {
  margin-bottom: 20px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.fee-row .fee-label {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
}

.fee-row .fee-amount {
  font-size: 18px;
  font-weight: 700;
  color: #4b4f57;
}

.fee-row .fee-amount.negative {
  color: #4b4f57;
}

.fee-row .fee-amount.positive {
  color: #4b4f57;
}

.btn-send,
.btn-back,
.btn-login,
.btn-alert {
  transition: opacity 0.15s;
}

.btn-send {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
}

.btn-send:active { opacity: 0.85; transform: scale(0.97); }

.btn-send:disabled {
  background: #f5a4af;
  color: rgba(255, 255, 255, 0.78);
  cursor: not-allowed;
  opacity: 1;
}

.screen-processing,
.screen-success {
  background: var(--card-bg);
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  gap: 0;
  overflow: hidden;
}

.screen-success .suc-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.screen-success .suc-check-wrap {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.screen-success .suc-back-btn {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.screen-success .suc-help {
  transition: opacity 0.3s ease;
}

.suc-header {
  display: flex;
  align-items: center;
  padding: 16px 16px 12px;
}

.suc-back {
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.suc-header-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.suc-header-spacer {
  width: 36px;
}

.suc-subtitle {
  padding: 0 20px;
  font-size: 13px;
  color: #8e8e93;
  margin-bottom: 4px;
}

.suc-amount-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 20px 20px;
}

.suc-currency {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.suc-big-amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.1;
}

.suc-card {
  margin: 0 16px;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 14px;
  padding: 0;
  text-align: left;
  overflow: hidden;
}

.suc-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 12px;
}

.suc-badge-text {
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
}

.suc-line {
  height: 1px;
  background: #f0f0f0;
  margin: 0 16px;
}

.suc-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 16px;
  gap: 12px;
}

.suc-info-label {
  font-size: 13px;
  color: #8e8e93;
  flex-shrink: 0;
}

.suc-info-label-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.suc-info-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.suc-info-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

.suc-arrival {
  color: var(--primary);
  font-weight: 600;
}

.suc-back-btn {
  margin: 24px 16px 0;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.suc-back-btn:active { opacity: 0.85; transform: scale(0.97); }

.suc-help {
  text-align: center;
  font-size: 13px;
  color: #8e8e93;
  padding: 14px 0 20px;
  cursor: pointer;
}

.lami-footer {
  text-align: center;
  font-size: 10px;
  color: #ccc;
  padding: 8px 0 12px;
  letter-spacing: 0.3px;
  user-select: none;
  -webkit-user-select: none;
}

.lami-footer .lami-name {
  font-weight: 600;
  color: #bbb;
}

.login-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-overlay.visible { display: flex; }

/* === Lock Screen === */
.lock-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lock-overlay.visible { display: flex; }

.lock-card {
  width: 100%;
  max-width: 340px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 36px 24px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  text-align: center;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lock-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fef0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.lock-icon-wrap svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
  stroke-width: 2.2;
}

.lock-title-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.lock-sub-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.lock-card .form-group { margin-bottom: 14px; }

.lock-card .form-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #e1e3e8;
  border-radius: 12px;
  background: #f3f4f6;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  padding: 0 14px;
  text-align: center;
  letter-spacing: 1px;
  transition: border-color 0.2s;
}

.lock-card .form-input:focus {
  border-color: var(--primary);
  background: #fff;
}

.btn-lock {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-lock:active { opacity: 0.85; transform: scale(0.97); }

.lock-error {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: var(--danger);
  text-align: center;
}

.lock-error.visible { display: block; }

.login-card,
.alert-card {
  background: var(--card-bg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-card {
  width: 100%;
  max-width: 340px;
  border-radius: 18px;
  padding: 30px 24px 24px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 6px;
}

.login-sub {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 22px;
}

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: #f3f4f6;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  padding: 0 14px;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
  background: #fff;
}

.btn-login,
.btn-demo {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
}

.btn-login {
  border: none;
  background: var(--primary);
  color: #fff;
  margin-top: 6px;
}

.btn-login:active { opacity: 0.85; transform: scale(0.97); }

.btn-demo {
  margin-top: 10px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-demo:active { background: #fef0f3; }

.login-error {
  display: none;
  margin-top: 10px;
  font-size: 13px;
  color: var(--danger);
  text-align: center;
}

.login-error.visible { display: block; }

.alert-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.alert-overlay.visible { display: flex; }

.alert-card {
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  padding: 26px 22px 20px;
  text-align: center;
}

.alert-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

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

.btn-alert {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-alert:active { opacity: 0.85; transform: scale(0.97); }

.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2600;
}

.confirm-overlay.visible {
  display: block;
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  animation: backdropFadeIn 0.25s ease;
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.confirm-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #fff;
  border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(18px + var(--safe-bottom));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.14);
  animation: sheetUp 0.22s ease;
}

.confirm-handle {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #d0d0d5;
  margin: 0 auto 14px;
}

.confirm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.confirm-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
}

.confirm-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-close:active { background: rgba(0, 0, 0, 0.05); }

.confirm-body {
  padding: 0 4px;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.confirm-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.confirm-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.confirm-value.highlight {
  color: var(--primary);
  font-weight: 700;
}

.confirm-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  margin-top: 24px;
  transition: opacity 0.15s;
}

.confirm-btn:active { opacity: 0.85; transform: scale(0.97); }

.settings-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2600;
}

.settings-overlay.visible {
  display: block;
}

.settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
}

.settings-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #fff;
  border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(18px + var(--safe-bottom));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.14);
  animation: sheetUp 0.22s ease;
}

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

.settings-handle {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #d7d9df;
  margin: 2px auto 12px;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.settings-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f1f2f5;
  color: #50545c;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.settings-group {
  margin-bottom: 14px;
}

.settings-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.settings-input-wrap {
  position: relative;
}

.settings-input {
  width: 100%;
  height: 52px;
  border: 1.5px solid #e1e3e8;
  border-radius: 16px;
  background: #fff;
  padding: 0 16px;
  font-size: 17px;
  color: var(--text);
  outline: none;
}

.settings-input.has-prefix {
  padding-left: 34px;
}

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

.settings-prefix,
.settings-suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 17px;
}

.settings-prefix { left: 14px; }
.settings-suffix { right: 14px; }

.settings-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.settings-btn {
  flex: 1;
  height: 50px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.settings-btn.primary {
  background: var(--primary);
  color: #fff;
}

.settings-btn.secondary {
  background: #f3f4f6;
  color: var(--text);
}

.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  width: calc(100% - 40px);
  max-width: 340px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 3000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.visible { transform: translateX(-50%) translateY(0); }

.toast-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon-wrap svg {
  width: 20px;
  height: 20px;
  color: var(--success);
}

.toast-text {
  flex: 1;
  min-width: 0;
}

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

.toast-body {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

@media (max-width: 430px) {
  body { padding: 0 10px calc(14px + var(--safe-bottom)); }
  .phone-shell { padding-top: calc(var(--safe-top) + 10px); padding-bottom: calc(var(--safe-bottom) + 10px); }
  .screen { padding: 10px 0 calc(14px + var(--safe-bottom)); }
  .sim-card,
  .screen-processing { border-radius: 28px; }
  .tiktok-logo {
    width: 60px;
    height: 60px;
  }
  .header { gap: 8px; padding-bottom: 14px; }
  .header-left { gap: 8px; }
  .header-label { font-size: 14px; }
  .header-value { font-size: 19px; }
  .btn-mgmt,
  .btn-all {
    min-width: 100px;
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }
  .btn-send { height: 52px; font-size: 16px; }
  .settings-title { font-size: 20px; }
  .settings-actions { flex-direction: column; }
  .amount-display {
    height: 66px;
    font-size: 24px;
  }
  .kb-key { height: 44px; font-size: 20px; }
  .brand-inline { font-size: 9px; }
}

/* === Brand Tag === */
.brand-tag {
  text-align: center;
  font-size: 11px;
  color: #c0c0c8;
  margin-top: 10px;
  letter-spacing: 0.3px;
  user-select: none;
  -webkit-user-select: none;
}

.brand-inline {
  font-size: 10px;
  color: #d0d0d5;
  font-weight: 400;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

/* ==================== LIVE REWARDS SCREEN ==================== */
#screen-main {
  background: var(--bg);
  padding: 0;
  gap: 0;
  overflow-y: auto;
}

#screen-main.active {
  display: flex;
}

.rw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.rw-header-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.rw-header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.rw-back {
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}

.rw-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.rw-header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.rw-settings-btn {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.rw-settings-btn:active { background: rgba(0,0,0,0.05); }

.rw-tabs {
  display: flex;
  margin: 0 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f3;
  border: 1px solid #e5e5ea;
}

.rw-tab {
  flex: 1;
  padding: 12px 14px;
  text-align: center;
}

.rw-tab.active {
  background: #fff;
  border-radius: 11px;
}

.rw-tab-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.rw-tab.active .rw-tab-title {
  color: var(--text);
  font-weight: 600;
}

.rw-tab-amount {
  font-size: 12px;
  color: var(--text-muted);
}

.rw-tab.active .rw-tab-amount {
  color: var(--primary);
  font-weight: 700;
}

.rw-tab-amount.upcoming {
  color: var(--primary);
  font-weight: 700;
}

.rw-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 4px;
  vertical-align: middle;
}

.rw-balance-section {
  text-align: center;
  padding: 28px 18px 20px;
}

.rw-balance-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.rw-balance-big {
  display: inline-flex;
  align-items: baseline;
}

.rw-balance-currency {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.rw-balance-amount {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1.5px;
  line-height: 1;
}

.rw-info-box {
  margin: 0 14px;
  background: #f7f7f8;
  border-radius: 12px;
  padding: 14px 16px;
}

.rw-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.rw-info-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

.rw-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.rw-success-banner {
  display: none;
  margin: 0 14px 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 12px;
}

.rw-success-banner.visible { display: block; }

.rw-success-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.rw-success-detail {
  font-size: 14px;
  color: var(--text-secondary);
}

.rw-transfer-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 20px auto 0;
  height: 54px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.15s;
}

.rw-transfer-btn:active { opacity: 0.85; }

.rw-exchange-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 10px auto 0;
  height: 54px;
  border: 1.5px solid #d0d0d5;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.15s;
}

.rw-exchange-btn:active { opacity: 0.85; }

.rw-limit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px 6px;
}

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

.rw-limit-nums {
  font-size: 12px;
  color: var(--text-muted);
}

.rw-limit-bar {
  margin: 0 14px 4px;
  height: 4px;
  background: #e5e5ea;
  border-radius: 999px;
  overflow: hidden;
}

.rw-limit-fill {
  height: 100%;
  background: #888;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.rw-how-link {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 14px 0;
  cursor: pointer;
}

.rw-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 24px 18px 10px;
}

.rw-tx-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.rw-tx-month {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.rw-tx-in { color: var(--text-secondary); }
.rw-tx-out { color: var(--text-secondary); margin-left: auto; }

.rw-tx-list {
  padding: 0 14px 24px;
}

.rw-tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 12px;
}

.rw-tx-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rw-tx-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.rw-tx-date {
  font-size: 12px;
  color: var(--text-muted);
}

.rw-tx-amount {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.rw-tx-amount.in { color: var(--text); }
.rw-tx-amount.out { color: var(--text); }

/* ==================== TRANSFER SCREEN ==================== */
#screen-transfer {
  background: var(--bg);
  padding: 0 14px 20px;
  gap: 0;
  overflow-y: auto;
}

#screen-transfer.active {
  display: flex;
}

.tf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 12px;
}

.tf-back {
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  padding-right: 10px;
  flex: 1;
}

.tf-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  flex: 1;
  text-align: center;
}

.tf-dots-btn {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  flex: 1;
  text-align: right;
}

.tf-card {
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.tf-payment-row {
  margin-bottom: 10px;
}

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

.tf-tiktok-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tf-tiktok-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.tf-tiktok-info {
  display: flex;
  flex-direction: column;
}

.tf-tiktok-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.tf-tiktok-detail {
  font-size: 12px;
  color: var(--text-muted);
}

.tf-input-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding: 0 2px;
}

.tf-input-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
}

.tf-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font);
  background: transparent;
}

.tf-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.tf-user-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  margin-top: 10px;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 12px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-width: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease, border-width 0.3s ease;
}

.tf-user-result.visible {
  max-height: 100px;
  opacity: 1;
  padding: 12px 14px;
  border-width: 1px;
}

.tf-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

.tf-user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tf-user-nick {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.tf-user-handle {
  font-size: 13px;
  color: var(--text-secondary);
}

.tf-user-followers {
  font-size: 12px;
  color: var(--text-muted);
}

.tf-limit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px 6px;
}

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

.tf-limit-value {
  font-size: 12px;
  color: var(--text-muted);
}

.tf-limit-bar {
  margin: 0 0 10px;
  height: 4px;
  background: #e5e5ea;
  border-radius: 999px;
  overflow: hidden;
}

.tf-limit-fill {
  height: 100%;
  background: #888;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.tf-amount-card {
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.tf-amount-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.tf-amount-label {
  font-size: 13px;
  color: var(--text-muted);
}

.tf-all-btn {
  border: none;
  background: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  padding: 2px 4px;
}

.tf-amount-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}

.tf-amount-display.active {
  transform: scale(1.03);
}

.tf-amount-display:active {
  transform: scale(0.97);
}

.tf-amount-currency {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.tf-amount-num {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1.5px;
  line-height: 1;
}

.tf-amount-cursor {
  display: inline-block;
  width: 2px;
  height: 36px;
  background: var(--primary);
  animation: blink 1s infinite;
}

.tf-amount-cursor.hidden {
  display: none;
}

.tf-amount-hidden-input {
  position: absolute;
  opacity: 0;
  height: 1px;
  width: 1px;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  pointer-events: none;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.tf-fee-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.tf-fee-label {
  font-size: 13px;
  color: var(--text-muted);
}

.tf-info-icon {
  flex-shrink: 0;
}

.tf-receive-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tf-receive-big {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.tf-fee-right {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.tf-service-fee-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid #ececef;
}

.tf-service-fee {
  font-size: 13px;
  color: var(--text-muted);
}

.tf-terms {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 10px 14px 14px;
  line-height: 1.4;
}

.tf-link {
  color: #007AFF;
  text-decoration: none;
}

.tf-send-btn {
  display: block;
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.15s;
}

.tf-send-btn:active {
  opacity: 0.85;
  transform: scale(0.97);
}

.tf-send-btn:not(:disabled) {
  animation: none;
}

.tf-send-btn.btn-bounce {
  animation: btnReady 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes btnReady {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.tf-send-btn:disabled {
  background: #ccc;
  color: #999;
  cursor: not-allowed;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.loading-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.loading-spinner-ring {
  width: 52px;
  height: 52px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 0 0 rgba(234, 47, 70, 0.3);
}

.loading-overlay.visible .loading-spinner-ring {
  animation: spin 0.9s linear infinite, ringPulse 2s ease-in-out infinite;
}

.loading-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.loading-overlay.visible .loading-text {
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 47, 70, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(234, 47, 70, 0); }
}

@keyframes textPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* === Language Selector === */
.lang-selector {
  display: flex;
  gap: 6px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
}

.lang-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.lang-btn:active { transform: scale(0.97); }

/* === Interface Toggle (in Settings) === */
.interface-toggle {
  display: flex;
  gap: 6px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
}

.interface-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.interface-btn.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.interface-btn:active { transform: scale(0.97); }

/* === Balance Screen (1:1 replica) === */
#screen-balance {
  background: linear-gradient(160deg, #E8F4F8 0%, #F8E8EC 55%, #FAFAFA 100%);
  padding: 0;
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#screen-balance.active {
  display: flex;
}

/* Nav bar */
.bal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  flex-shrink: 0;
}

.bal-nav-left,
.bal-nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.bal-nav-right {
  justify-content: flex-end;
}

.bal-nav-back {
  font-size: 28px;
  font-weight: 300;
  color: #000;
  cursor: pointer;
  line-height: 1;
}

.bal-nav-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.bal-nav-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.3px;
}

.bal-nav-secure {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #8E8E93;
  font-weight: 500;
}

.bal-nav-settings {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.bal-nav-settings:active { opacity: 0.6; }

/* Balance hero */
.bal-hero {
  text-align: center;
  padding: 32px 20px 24px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bal-hero:active { opacity: 0.85; }

.bal-hero-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: #8E8E93;
  font-weight: 400;
  margin-bottom: 8px;
}

.bal-hero-currency {
  font-size: 14px;
  color: #8E8E93;
  font-weight: 500;
}

.bal-hero-amount-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bal-hero-amount {
  font-size: 44px;
  font-weight: 800;
  color: #000;
  letter-spacing: -2px;
  line-height: 1;
}

.bal-hero-arrow {
  font-size: 28px;
  font-weight: 300;
  color: #000;
  margin-top: -4px;
}

/* Coins bar */
.bal-coins-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 16px;
  padding: 10px 16px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.bal-coins-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bal-coins-icon {
  display: flex;
  align-items: center;
}

.bal-coins-text {
  font-size: 14px;
  color: #8E8E93;
  font-weight: 400;
}

.bal-coins-num {
  font-size: 15px;
  font-weight: 700;
  color: #000;
}

.bal-coins-divider {
  width: 1px;
  height: 20px;
  background: #E5E5EA;
}

.bal-coins-right {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bal-coins-cta {
  font-size: 14px;
  color: #FF2D55;
  font-weight: 600;
}

.bal-coins-arrow {
  font-size: 14px;
  color: #FF2D55;
  font-weight: 600;
}

/* Card section (Transactions header) */
.bal-card-section {
  margin: 20px 16px 0;
}

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

.bal-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #000;
}

.bal-card-viewall {
  font-size: 14px;
  color: #8E8E93;
  font-weight: 400;
}

/* Offer card */
.bal-offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 16px 0;
  padding: 16px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bal-offer-card:active { transform: scale(0.99); }

.bal-offer-left {
  flex: 1;
}

.bal-offer-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bal-offer-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.bal-offer-arrow {
  font-size: 16px;
  color: #000;
  font-weight: 400;
}

.bal-offer-sub {
  font-size: 13px;
  color: #8E8E93;
  margin-top: 4px;
}

.bal-offer-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Services section */
.bal-services-label {
  font-size: 14px;
  color: #8E8E93;
  font-weight: 400;
  margin: 24px 16px 10px;
}

.bal-services-card {
  display: flex;
  margin: 0 16px;
  padding: 20px 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.bal-service-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bal-service-item:active { transform: scale(0.94); }

.bal-service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #F2F2F7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bal-service-label {
  font-size: 12px;
  color: #000;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* Transactions list */
.bal-tx-list {
  margin: 12px 16px 0;
}

.bal-tx-list .rw-tx-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.bal-tx-list .rw-tx-item + .rw-tx-item {
  margin-top: 8px;
}

/* === Balance Red Card Screen === */
#screen-balance-red.active {
  display: flex;
}

.bal-red-card {
  margin: 0 14px;
  padding: 28px 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fe2c55 0%, #ea2f46 60%, #cf243c 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(254, 44, 85, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.bal-red-card:active {
  transform: scale(0.98);
  box-shadow: 0 3px 12px rgba(254, 44, 85, 0.2);
}

.bal-red-card-label {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 6px;
}

.bal-red-card-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.bal-red-card-currency {
  font-size: 20px;
  font-weight: 600;
  opacity: 0.9;
}

.bal-red-card-num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
}

.bal-red-card-tap-hint {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.8;
}

.bal-red-services {
  display: flex;
  justify-content: space-around;
  margin: 0 14px;
  padding: 22px 8px;
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid #eeeef0;
}

.bal-red-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bal-red-service-item:active { transform: scale(0.94); }

.bal-red-service-item span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.bal-red-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bal-red-service-icon svg {
  width: 24px;
  height: 24px;
}

.bal-red-icon-transfer {
  background: #ffe5ea;
  color: #fe2c55;
}

.bal-red-icon-exchange {
  background: #e8f0ff;
  color: #2563eb;
}

.bal-red-icon-coins {
  background: #fff4e0;
  color: #f59e0b;
}

.bal-red-icon-more {
  background: #f0f0f3;
  color: #6b7280;
}
