:root {
  --bg: #f6f8fc;
  --bg-soft: #eef4fb;
  --panel: #ffffff;
  --panel-2: #f4f7fb;
  --line: rgba(18, 43, 79, 0.12);
  --text: #111827;
  --muted: #667085;
  --gold: #2e5bea;
  --gold-strong: #0ea5e9;
  --gold-soft: rgba(46, 91, 234, 0.1);
  --accent: #2e5bea;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(46, 91, 234, 0.1);
  --accent-rgb: 46 91 234;
  --accent-strong-rgb: 24 182 242;
  --text-rgb: 17 24 39;
  --muted-rgb: 102 112 133;
  --surface-rgb: 255 255 255;
  --danger-rgb: 217 72 65;
  --success-rgb: 22 163 122;
  --accent-contrast: #ffffff;
  --accent-gradient: linear-gradient(135deg, #2e5bea 0%, #18b6f2 58%, #3b2eea 100%);
  --accent-gradient-horizontal: linear-gradient(90deg, #3b2eea 0%, #2e5bea 45%, #18b6f2 100%);
  --accent-shadow: rgba(46, 91, 234, 0.2);
  --danger: #d94841;
  --success: #16a37a;
  --status-success-text: #087f5b;
  --status-success-background: rgba(22, 163, 122, 0.12);
  --status-success-border: rgba(22, 163, 122, 0.28);
  --status-danger-text: #b42318;
  --status-danger-background: rgba(217, 72, 65, 0.1);
  --status-danger-border: rgba(217, 72, 65, 0.24);
  --shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --body-background: linear-gradient(135deg, #f8fbff 0%, #eef4fb 46%, #ffffff 100%);
  --phone-background: #ffffff;
  --screen-background: linear-gradient(180deg, #ffffff 0%, #f7faff 45%, #eef4fb 100%);
  --panel-surface: rgba(255, 255, 255, 0.92);
  --panel-2-surface: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  --hero-surface:
    linear-gradient(90deg, rgba(46, 91, 234, 0.95) 0 3px, transparent 3px),
    linear-gradient(135deg, rgba(46, 91, 234, 0.08) 0%, rgba(24, 182, 242, 0.08) 56%, rgba(255, 255, 255, 0.96) 100%);
  --hero-side-surface: linear-gradient(180deg, rgba(24, 182, 242, 0.12), transparent 76%);
  --icon-button-background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  --soft-surface: rgba(255, 255, 255, 0.76);
  --nav-background: rgba(255, 255, 255, 0.92);
  --mini-chart-background:
    linear-gradient(180deg, rgba(46, 91, 234, 0.08), transparent),
    linear-gradient(90deg, rgba(18, 43, 79, 0.055) 0 1px, transparent 1px 24px),
    linear-gradient(0deg, rgba(18, 43, 79, 0.055) 0 1px, transparent 1px 24px);
  --floating-accent-background: linear-gradient(120deg, rgba(46, 91, 234, 0.06), transparent 42%);
  --theme-callout-background:
    linear-gradient(135deg, rgba(46, 91, 234, 0.12) 0%, rgba(24, 182, 242, 0.1) 58%, rgba(255, 255, 255, 0.94) 100%);
  --theme-callout-border: rgba(46, 91, 234, 0.18);
  --theme-callout-shadow: 0 10px 24px rgba(46, 91, 234, 0.09);
  --calendar-background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  --calendar-day-background: #f1f5fb;
  --calendar-day-hover-background: rgba(46, 91, 234, 0.12);
  --calendar-day-muted-background: rgba(18, 43, 79, 0.04);
  --calendar-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
  --focus-border: rgba(46, 91, 234, 0.48);
  --focus-ring: rgba(46, 91, 234, 0.12);
  --placeholder: #98a2b3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--body-background);
}

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

.app-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.phone-frame {
  width: 100%;
  max-width: 430px;
  min-height: 1200px;
  background: var(--phone-background);
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 40px rgba(17, 24, 39, 0.08),
    0 32px 80px rgba(17, 24, 39, 0.12);
}


.screen {
  position: relative;
  min-height: 1200px;
  padding: 10px 18px 110px;
  background: var(--screen-background);
}

.top-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  margin: 6px 2px 18px;
  position: relative;
  z-index: 2;
}

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.top-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.top-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.top-brand-copy {
  min-width: 0;
}

.top-brand-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-brand-meta {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-app-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--icon-button-background);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}

.top-icon-btn.is-user {
  color: var(--accent-contrast);
  background: var(--accent-gradient);
}

.top-icon-dot {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-card,
.section-panel,
.metric-card,
.account-card,
.list-row,
.auth-card,
.action-card {
  border: 1px solid var(--line);
  background: var(--panel-surface);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 22px;
  overflow: hidden;
  position: relative;
  background: var(--hero-surface);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 28%;
  background: var(--hero-side-surface);
  opacity: 0.65;
}

.brand-chip,
.soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-chip {
  color: var(--accent-contrast);
  background: var(--accent-gradient);
}

.soft-chip {
  color: var(--muted);
  background: var(--soft-surface);
  border: 1px solid var(--line);
}

.section-title {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-subtitle,
.muted {
  color: var(--muted);
}

.balance-figure {
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.gold-text {
  color: var(--accent);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.action-card {
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  background: var(--panel-surface);
}

.action-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
}

.section-panel {
  border-radius: 20px;
  padding: 18px;
}

.metric-card,
.account-card {
  border-radius: 18px;
  padding: 18px;
}

.metric-card.gold-surface,
.account-card.gold-surface {
  background: var(--accent-gradient);
  color: var(--accent-contrast);
  border-color: transparent;
}

.metric-card.dark-surface,
.account-card.dark-surface {
  background: var(--panel-2-surface);
}

.metric-card .value,
.account-card .value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
}

.row-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.progress-thin {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.progress-thin > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-gradient-horizontal);
}

.bottom-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 8px;
  border-radius: 22px;
  background: var(--nav-background);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
}

.nav-item-mobile {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 58px;
  padding: 6px 2px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.nav-item-mobile.active {
  color: var(--accent);
  background: transparent;
}

.nav-item-mobile i {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-item-mobile span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item-mobile:hover,
.nav-item-mobile:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-item-mobile.active i {
  color: var(--accent-contrast);
  background: var(--accent-gradient);
  box-shadow: 0 10px 22px var(--accent-shadow);
  transform: translateY(-1px);
}

.nav-item-mobile.active span {
  color: var(--accent);
  font-weight: 800;
}

.nav-item-mobile[data-page="messages"] {
  gap: 0;
  background: transparent;
  transform: none;
  overflow: visible;
  min-height: 58px;
}

.nav-item-mobile[data-page="messages"] i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  box-shadow: none;
  font-size: 2.25rem;
  transform: translate(-50%, -58%) scale(1.06);
  filter:
    drop-shadow(0 8px 12px var(--accent-shadow))
    drop-shadow(0 0 10px rgba(24, 182, 242, 0.42));
}

.nav-item-mobile[data-page="messages"] span {
  display: none;
}

.nav-item-mobile[data-page="messages"]:hover,
.nav-item-mobile[data-page="messages"]:focus-visible {
  background: transparent;
}

.nav-item-mobile[data-page="messages"]:hover i,
.nav-item-mobile[data-page="messages"]:focus-visible i {
  transform: translate(-50%, -62%) scale(1.1);
  box-shadow: none;
  filter:
    drop-shadow(0 12px 16px var(--accent-shadow))
    drop-shadow(0 0 14px rgba(24, 182, 242, 0.5));
}

.member-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 2040;
  display: none;
  align-items: stretch;
  justify-content: center;
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(12px);
}

.member-chat-modal.is-open {
  display: flex;
}

.member-chat-panel {
  width: min(100%, 430px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--screen-background);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.member-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-surface);
}

.member-chat-heading {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.member-chat-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--accent-contrast);
  background: var(--accent-gradient);
  box-shadow: 0 12px 24px var(--accent-shadow);
}

.member-chat-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
}

.member-chat-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-chat-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  flex: 0 0 auto;
  color: var(--accent);
  background: var(--icon-button-background);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.member-chat-status {
  min-height: 0;
  padding: 0 18px;
  color: var(--danger);
  background: var(--panel-surface);
  font-size: 0.76rem;
  font-weight: 700;
}

.member-chat-status:not(:empty) {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.member-chat-status.is-success {
  color: var(--success);
}

.member-chat-notice {
  width: min(100%, 330px);
  margin: auto;
  padding: 24px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid;
  justify-items: center;
  text-align: center;
  color: var(--text);
  background: var(--panel-surface);
  box-shadow: var(--shadow);
}

.member-chat-notice.is-locked {
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.member-chat-notice-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-contrast);
  background: var(--accent-gradient);
  box-shadow: 0 16px 30px var(--accent-shadow);
  font-size: 1.35rem;
}

.member-chat-notice-title {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.member-chat-notice-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
}

.member-chat-notice-btn {
  min-width: 96px;
  min-height: 44px;
  margin-top: 18px;
  border: 0;
  border-radius: 14px;
  color: var(--accent-contrast);
  background: var(--accent-gradient);
  box-shadow: 0 12px 24px var(--accent-shadow);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-chat-placeholder-list {
  width: 100%;
  max-width: 360px;
  margin: auto auto 0;
  display: grid;
  gap: 12px;
  opacity: 0.48;
  filter: blur(0.2px);
}

.member-chat-placeholder-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.member-chat-placeholder-row.is-mine {
  justify-content: flex-end;
}

.member-chat-placeholder-row span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  flex: 0 0 auto;
  background: var(--accent-soft);
}

.member-chat-placeholder-row div {
  width: min(74%, 250px);
  padding: 12px;
  border-radius: 16px 16px 16px 6px;
  background: rgb(var(--surface-rgb) / 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.member-chat-placeholder-row.is-mine div {
  border-radius: 16px 16px 6px 16px;
  background: var(--accent-gradient);
}

.member-chat-placeholder-row b,
.member-chat-placeholder-row i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgb(var(--muted-rgb) / 0.24);
}

.member-chat-placeholder-row.is-mine b,
.member-chat-placeholder-row.is-mine i {
  background: rgb(var(--surface-rgb) / 0.44);
}

.member-chat-placeholder-row b {
  width: 46%;
  margin-bottom: 8px;
}

.member-chat-placeholder-row i {
  width: 82%;
}

.member-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-chat-empty {
  margin: auto;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
}

.member-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.member-chat-row.is-mine {
  justify-content: flex-end;
}

.member-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--accent-contrast);
  background: var(--accent-gradient);
  font-size: 0.76rem;
  font-weight: 800;
}

.member-chat-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.member-chat-bubble {
  max-width: min(78%, 310px);
  padding: 10px 12px;
  border-radius: 16px 16px 16px 6px;
  color: var(--text);
  background: rgb(var(--surface-rgb) / 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.member-chat-row.is-mine .member-chat-bubble {
  color: var(--accent-contrast);
  background: var(--accent-gradient);
  border-color: transparent;
  border-radius: 16px 16px 6px 16px;
}

.member-chat-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin: 8px -2px -1px 0;
  padding-top: 7px;
  border-top: 1px solid rgb(var(--muted-rgb) / 0.12);
}

.member-chat-action {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgb(var(--surface-rgb) / 0.92);
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.1);
  font-size: 0.82rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.member-chat-action:hover,
.member-chat-action:focus-visible {
  transform: translateY(-1px);
  background: var(--panel-surface);
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.14);
}

.member-chat-action.is-danger {
  color: var(--danger);
}

.member-chat-row.is-mine .member-chat-action {
  color: var(--accent-contrast);
  background: rgb(var(--surface-rgb) / 0.2);
  box-shadow: none;
}

.member-chat-confirm {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(17, 24, 39, 0.52);
  backdrop-filter: blur(12px);
}

.member-chat-confirm.is-open {
  display: flex;
}

.member-chat-confirm-card {
  width: min(100%, 330px);
  padding: 22px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  justify-items: center;
  text-align: center;
  color: var(--text);
  background: var(--panel-surface);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.24);
  animation: member-chat-confirm-in 0.18s ease both;
}

.member-chat-confirm-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
  font-size: 1.28rem;
}

.member-chat-confirm-title {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

.member-chat-confirm-copy {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.member-chat-confirm-actions {
  width: 100%;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.member-chat-confirm-btn {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 850;
}

.member-chat-confirm-btn.is-cancel {
  color: var(--text);
  background: rgb(var(--surface-rgb) / 0.86);
  border: 1px solid var(--line);
}

.member-chat-confirm-btn.is-confirm {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.24);
}

@keyframes member-chat-confirm-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.member-chat-name {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.member-chat-row.is-mine .member-chat-name {
  color: rgb(var(--surface-rgb) / 0.86);
}

.member-chat-text {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.member-chat-image {
  display: block;
  width: min(100%, 220px);
  max-height: 260px;
  margin-top: 8px;
  border-radius: 12px;
  object-fit: cover;
  background: rgb(var(--surface-rgb) / 0.36);
}

.member-chat-text:empty {
  display: none;
}

.member-chat-date {
  margin-top: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.7;
}

.member-chat-compose {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  gap: 9px;
  align-items: end;
  padding: 12px 14px 16px;
  background: var(--panel-surface);
  border-top: 1px solid var(--line);
}

.member-chat-compose.is-hidden {
  display: none;
}

.member-chat-compose.is-readonly .member-chat-input,
.member-chat-compose.is-readonly .member-chat-upload,
.member-chat-compose.is-readonly .member-chat-send {
  cursor: not-allowed;
  opacity: 0.58;
}

.member-chat-input {
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  resize: vertical;
  color: var(--text);
  background: rgb(var(--surface-rgb) / 0.82);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
}

.member-chat-input:focus {
  outline: 0;
  border-color: var(--focus-border);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.member-chat-upload {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--icon-button-background);
  overflow: hidden;
  cursor: pointer;
}

.member-chat-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.member-chat-file {
  grid-column: 1 / -1;
  min-height: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-chat-file:empty {
  display: none;
}

.member-chat-send {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  color: var(--accent-contrast);
  background: var(--accent-gradient);
  box-shadow: 0 12px 24px var(--accent-shadow);
}

.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  border-radius: 22px;
  padding: 26px 22px;
  background: var(--hero-surface);
}

.form-control,
.form-select {
  min-height: 52px;
  border-radius: 12px;
  border-color: var(--line);
  background-color: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  color: var(--text);
  border-color: var(--focus-border);
  box-shadow: 0 0 0 0.25rem var(--focus-ring);
  background-color: rgba(255, 255, 255, 0.04);
}

.form-control::placeholder {
  color: var(--placeholder);
}

.btn-gold {
  background: var(--accent-gradient);
  color: var(--accent-contrast);
  border: 0;
  min-height: 52px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-outline-gold {
  color: var(--accent);
  border-color: var(--line);
  min-height: 52px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-outline-gold:hover {
  color: var(--accent-contrast);
  background: var(--accent-gradient);
  border-color: transparent;
}

.mini-chart {
  height: 150px;
  border-radius: 16px;
  background: var(--mini-chart-background);
  background-size: auto, 25% 100%, 100% 25%;
  position: relative;
  overflow: hidden;
}

.mini-chart svg {
  position: absolute;
  inset: 0;
}

.avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-contrast);
  background: var(--accent-gradient);
}

.floating-accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--floating-accent-background);
  opacity: 0.58;
}

.theme-callout,
.projected-income {
  color: var(--text);
  background: var(--theme-callout-background);
  border: 1px solid var(--theme-callout-border);
  box-shadow: var(--theme-callout-shadow);
}

.theme-callout-label,
.projected-income .text-uppercase {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.theme-callout-value,
.projected-income .fw-semibold {
  color: var(--text);
}

.status-pill,
.transaction-status-label,
.transaction-detail-status {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgb(var(--surface-rgb) / 0.72);
}

.status-pill.is-approved,
.status-pill.is-received,
.status-pill.is-completed,
.status-pill.is-active,
.kyc-status.is-verified,
.transaction-status-label.is-approved,
.transaction-status-label.is-received,
.transaction-status-label.is-completed,
.transaction-detail-status.is-approved,
.transaction-detail-status.is-received,
.transaction-detail-status.is-completed {
  color: var(--status-success-text);
  background: var(--status-success-background);
  border-color: var(--status-success-border);
}

.status-pill.is-pending,
.status-pill.is-rejected,
.status-pill.is-inactive,
.kyc-status.is-pending,
.transaction-status-label.is-pending,
.transaction-status-label.is-rejected,
.transaction-status-label.is-void,
.transaction-detail-status.is-pending,
.transaction-detail-status.is-rejected,
.transaction-detail-status.is-void {
  color: var(--status-danger-text);
  background: var(--status-danger-background);
  border-color: var(--status-danger-border);
}

.theme-modal .modal-dialog,
.transaction-modal .modal-dialog,
.income-modal .modal-dialog {
  width: min(100% - 24px, 430px);
  margin-left: auto;
  margin-right: auto;
}

.theme-modal .modal-content,
.transaction-modal .modal-content,
.income-modal .modal-content {
  color: var(--text);
  background: var(--panel-surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.24);
  overflow: hidden;
}

.theme-modal .modal-header,
.transaction-modal .modal-header,
.income-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  background: var(--hero-surface);
  border-bottom: 1px solid var(--line);
}

.theme-modal .modal-title,
.transaction-modal .modal-title,
.income-modal .modal-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.theme-modal .btn-close,
.transaction-modal .btn-close,
.income-modal .btn-close {
  width: 38px;
  height: 38px;
  margin: 0 0 0 auto !important;
  border-radius: 12px;
  background-color: rgb(var(--surface-rgb) / 0.78);
  border: 1px solid var(--line);
  opacity: 1;
  filter: none;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.theme-modal .modal-body,
.transaction-modal .modal-body,
.income-modal .modal-body {
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.detail-list,
.transaction-detail-list {
  display: grid;
  gap: 10px;
}

.detail-row,
.transaction-detail-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.78fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(var(--surface-rgb) / 0.78);
}

.detail-label,
.transaction-detail-label {
  min-width: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-value,
.transaction-detail-value {
  min-width: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.transaction-detail-value.is-credit {
  color: var(--accent);
}

.transaction-detail-value.is-success {
  color: var(--success);
}

.transaction-detail-value.is-danger {
  color: var(--danger);
}

.transaction-detail-empty {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(var(--surface-rgb) / 0.78);
  font-weight: 600;
  text-align: center;
}

.logout-btn {
  color: var(--status-danger-text);
  background: var(--status-danger-background);
  border-color: var(--status-danger-border);
}

.logout-btn:hover {
  color: #ffffff;
  background: var(--danger);
  border-color: var(--danger);
}

.date-filter-button {
  color: var(--text);
  background: var(--theme-callout-background);
  border-color: var(--theme-callout-border);
  box-shadow: var(--theme-callout-shadow);
}

.date-filter-icon,
.date-day.is-selected,
.date-action-btn.primary {
  color: var(--accent-contrast);
  background: var(--accent-gradient);
}

.date-filter-arrow,
.date-nav-btn,
.date-action-btn {
  color: var(--accent);
  background: var(--icon-button-background);
  border-color: var(--line);
}

.date-picker-panel {
  color: var(--text);
  background: var(--calendar-background);
  border-color: var(--line);
  box-shadow: var(--calendar-shadow);
}

.date-picker-month {
  color: var(--text);
}

.date-picker-weekdays span {
  color: var(--muted);
}

.date-day {
  color: var(--text);
  background: var(--calendar-day-background);
}

.date-day:not(:disabled):hover {
  color: var(--accent);
  background: var(--calendar-day-hover-background);
}

.date-day:disabled {
  color: rgb(var(--muted-rgb) / 0.42);
  background: var(--calendar-day-muted-background);
}

.date-day.is-today {
  color: var(--success);
  border-color: var(--status-success-border);
  background: var(--status-success-background);
}

.date-day.is-selected {
  box-shadow: 0 10px 20px var(--accent-shadow);
}

.page-link-inline {
  color: var(--accent);
  font-weight: 600;
}

.theme-panel,
.asset-summary-tile,
.asset-meta,
.asset-filter-panel,
.transaction-filter-panel,
.transaction-empty,
.transaction-loading,
.transaction-end,
.notification-stat-card,
.notification-card,
.history-filter-panel,
.history-filter-card,
.history-summary-card,
.history-entry-card,
.history-table-card,
.message-card,
.message-panel,
.message-thread-card,
.support-card,
.support-thread-card,
.thread-modal-content,
.thread-header,
.thread-footer,
.thread-message,
.thread-bubble,
.ticket-item,
.profile-menu,
.profile-menu-group,
.profile-menu-btn,
.profile-panel,
.profile-hero,
.profile-card,
.referral-card,
.referral-link-box,
.referral-stat-card,
.empty-state,
.payment-detail-panel,
.result-summary,
.password-rules,
.sponsor-block,
.plan-meta,
.projected-income,
.theme-callout {
  color: var(--text) !important;
  background: var(--panel-surface) !important;
  border-color: var(--line) !important;
}

.projected-income,
.theme-callout {
  background: var(--theme-callout-background) !important;
  border-color: var(--theme-callout-border) !important;
  box-shadow: var(--theme-callout-shadow) !important;
}

body {
  color: var(--text) !important;
  background: var(--body-background) !important;
}

.screen {
  color: var(--text) !important;
  background: var(--screen-background) !important;
}

.phone-frame {
  background: var(--phone-background) !important;
  border-color: var(--line) !important;
}

.app-shell {
  background: var(--body-background) !important;
}

.brand-chip,
.btn-gold,
.top-icon-btn.is-user,
.support-upload-icon,
.countdown-badge:not(.is-done),
.message-compose-fab,
.message-avatar,
.message-unread-pill,
.thread-avatar,
.thread-send-btn,
.profile-menu-badge,
.profile-menu-btn.active,
.profile-menu-btn.active i,
.profile-avatar,
.ticket-badge,
.notification-badge,
.notification-card::before,
.history-entry-card::before,
.history-timeline-dot,
.referral-copy-btn,
.referral-action-primary,
.notification-action,
.support-send-btn,
.message-action-btn,
.profile-action-btn,
.success-icon,
.deposit-type-toggle input:checked + span,
.activity-tab-btn.active {
  color: var(--accent-contrast) !important;
  background: var(--accent-gradient) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 24px var(--accent-shadow) !important;
}

.copy-detail {
  color: var(--accent) !important;
  background: transparent !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

.copy-detail:hover,
.copy-detail:focus-visible {
  color: var(--accent-strong) !important;
  background: var(--accent-soft) !important;
  border-color: var(--focus-border) !important;
  box-shadow: 0 0 0 3px var(--focus-ring) !important;
}

.message-card.is-unread .message-name::after {
  background: var(--accent) !important;
  box-shadow: 0 0 12px var(--accent-shadow) !important;
}

.thread-bubble-wrap.is-mine .thread-bubble,
.thread-row.is-mine .thread-message {
  color: var(--accent-contrast) !important;
  background: var(--accent-gradient) !important;
  border-color: transparent !important;
}

.soft-chip,
.btn-outline-gold,
.countdown-badge.is-done,
.payment-detail-panel,
.upload-dropzone,
.gateway-card label,
.wallet-card label,
.plan-card label,
.quick-amount,
.asset-filter-select,
.transaction-filter-select,
.form-control,
.form-select {
  color: var(--text) !important;
  background: rgb(var(--surface-rgb) / 0.74) !important;
  border-color: var(--line) !important;
}

.btn-outline-gold:hover,
.quick-amount:hover {
  color: var(--accent-contrast) !important;
  background: var(--accent-gradient) !important;
}

.gold-text,
.page-link-inline,
.change-plan-link,
.sponsor-label,
.countdown-badge.is-done,
.row-icon,
.action-icon,
.notification-icon,
.mark-read-link,
.ticket-item:hover .ticket-title,
.thread-avatar.is-support,
.thread-upload-btn,
.profile-menu-btn i {
  color: var(--accent) !important;
}

.gateway-card input:checked + label,
.wallet-card input:checked + label,
.plan-card input:checked + label,
.asset-filter-select:focus,
.transaction-filter-select:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--focus-border) !important;
  box-shadow: 0 0 0 3px var(--focus-ring) !important;
}

.muted,
.section-subtitle,
.top-brand-meta,
.field-note,
.transaction-end {
  color: var(--muted) !important;
}

@media (max-width: 480px) {
  .app-shell {
    padding: 0;
  }

  .phone-frame {
    max-width: 100%;
    border-radius: 0;
    min-height: 100vh;
  }

  .screen {
    min-height: 100vh;
  }
}
