/* === 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;
  flex-direction: column;
  flex: 1;
  padding: 10px 4px 18px;
  gap: 18px;
}

.screen.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

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

.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; }

.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 {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinSearch 0.6s linear infinite;
  display: none;
}

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

@keyframes spinSearch {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) 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; }

.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: 1.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 34px;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.04);
  padding: 18px 4px 24px;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.screen-processing {
  gap: 18px;
  padding: 20px 8px 26px;
}
.screen-success { gap: 18px; }

.proc-title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.35px;
  color: var(--text);
  margin-top: 2px;
}

.spinner-wrap {
  width: 56px;
  height: 56px;
  position: relative;
}

.spinner-ring {
  width: 56px;
  height: 56px;
  border: 3px solid #eceef2;
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spinRing 0.75s linear infinite;
}

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

.proc-card,
.success-card {
  width: calc(100% - 20px);
  background: #fff;
  border: 2px solid #ececef;
  border-radius: 24px;
  padding: 20px 18px;
  text-align: left;
}

.proc-card {
  width: calc(100% - 36px);
  border-width: 1.5px;
  padding: 18px 20px;
  border-radius: 26px;
}

.proc-row,
.success-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 17px;
}

.proc-row {
  font-size: 16px;
  align-items: center;
  padding: 6px 0;
}

.proc-row .p-label,
.success-row .s-label {
  color: var(--text);
  flex-shrink: 0;
}

.proc-row .p-label {
  font-weight: 500;
}

.proc-row .p-value,
.success-row .s-value {
  color: #4b4f57;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.proc-row .p-value {
  color: #575a62;
  font-size: 16px;
}

.proc-row:first-child .p-value {
  color: #5f6168;
  font-size: 18px;
}

.proc-row .p-value.fee,
.proc-row .p-value.receive,
.success-row .s-value.amount,
.success-row .s-value.fee {
  color: #4b4f57;
  font-size: 17px;
}

.proc-divider,
.success-divider {
  height: 1px;
  background: transparent;
  margin: 4px 0;
}

.redirect-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-top: 4px;
  margin-bottom: 4px;
}

.redirect-num {
  font-weight: 700;
  color: var(--text);
}

.success-icon-wrap {
  width: 110px;
  height: 110px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.success-avatar-frame {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

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

.success-badge {
  position: absolute;
  right: 4px;
  bottom: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--success);
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(40, 180, 70, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-badge svg {
  width: 18px;
  height: 18px;
}

.check-circle {
  stroke: #fff;
  stroke-width: 3.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck 0.5s ease 0.15s forwards;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text);
}

.success-row .s-value.username {
  color: var(--text-secondary);
  font-weight: 500;
}

.success-row .s-value.arrival {
  color: var(--text-secondary);
  font-weight: 500;
  font-style: italic;
}

.success-row .s-value.txid {
  color: #1e2fa3;
  text-decoration: underline;
  font-family: var(--font);
}

.btn-back {
  width: 72%;
  min-width: 220px;
  height: 58px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}

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

.kb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
}

.kb-backdrop.visible { display: block; }

.kb-overlay {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding-bottom: var(--safe-bottom);
  animation: slideUp 0.25s ease;
}

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

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

.keyboard {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #d1d3d9;
}

.kb-key {
  height: 48px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.kb-key:active { background: #c7c9ce; }

.kb-key.del {
  background: #b0b3bb;
  font-size: 15px;
  font-weight: 500;
}

.kb-key.del:active { background: #9a9da6; }

.kb-key.done {
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.kb-key.done:active { background: var(--primary-dark); }

.kb-key.dot { font-size: 26px; }

.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; }

.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; }

.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; }

.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);
}

.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; }

.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: 374px) {
  body { padding: 0 10px 14px; }
  .screen { padding: 10px 0 14px; }
  .sim-card,
  .screen-processing,
  .screen-success { border-radius: 28px; }
  .tiktok-logo {
    width: 60px;
    height: 60px;
  }
  .success-icon-wrap {
    width: 98px;
    height: 98px;
  }
  .success-avatar-frame {
    width: 88px;
    height: 88px;
  }
  .success-badge {
    width: 30px;
    height: 30px;
    right: 2px;
    bottom: 4px;
  }
  .header-value { font-size: 20px; }
  .btn-mgmt,
  .btn-all {
    min-width: 108px;
  }
  .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 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;
}
