:root {
  --bg: #111315;
  --paper: #f4f5f6;
  --card: #ffffff;
  --teal: #24462F;
  --teal-strong: #1c3825;
  --teal-soft-1: #e8efe9;
  --teal-soft-2: #d9e5dc;
  --teal-soft-3: #cdddcf;
  --text: #111111;
  --subtle: #7e8389;
  --line: #e5e8ea;
}

* {
  box-sizing: border-box;
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.stage {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.phone {
  width: 390px;
  max-width: 100%;
  height: 780px;
  border-radius: 42px;
  background: var(--paper);
  border: 6px solid #1c2025;
  padding: 8px 10px 14px;
  position: relative;
  overflow: hidden;
}

.status {
  height: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 0 8px;
  align-items: center;
}

.status-icons {
  letter-spacing: 2px;
}

.screen {
  display: none;
  height: calc(100% - 72px);
  overflow: auto;
  padding: 8px 6px 20px;
}

.screen.active {
  display: block;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-top {
  margin-bottom: 10px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-trigger {
  border: 0;
  cursor: pointer;
}

.top-icons {
  display: flex;
  gap: 6px;
}

.icon {
  border: 0;
  background: transparent;
  color: #5d646b;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.inner-top {
  margin-bottom: 14px;
}

.inner-top button {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.inner-top h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.balance-card {
  background: var(--teal);
  color: #fff;
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0 12px;
}

.balance-card small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.balance-head,
.amount-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.balance-card h2 {
  margin: 5px 0 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
}

.quick::-webkit-scrollbar {
  display: none;
}

.quick.is-dragging {
  cursor: grabbing;
}

.quick button {
  min-width: 68px;
  border: 0;
  background: transparent;
  color: #4e545b;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  line-height: 1.1;
}

.quick button .q-icon,
.quick button span:first-child {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--teal-soft-1), var(--teal-soft-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.quick button .q-icon i,
.quick button span:first-child i {
  line-height: 1;
}

.quick button .q-label {
  font-size: 10px;
  color: #4e545b;
  white-space: nowrap;
  text-align: center;
}

.service-banner {
  background: var(--card);
  border-radius: 8px;
  padding: 8px;
  margin: 10px 0;
}

.mock-image {
  height: 48px;
  border-radius: 3px;
  background: linear-gradient(90deg, #f4efe9, #d6d7d8);
}

.mock-image.second {
  background: linear-gradient(90deg, #f0e7d8, #d5c0a1);
}

.service-banner p {
  margin: 7px 0 2px;
  font-size: 12px;
}

.service-banner small {
  color: var(--subtle);
  font-size: 10px;
}

.statement-preview {
  margin-top: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-head h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mini-action {
  border: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.line-item {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.title {
  margin: 2px 0 5px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.muted {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 0;
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.toggle-balance {
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: inherit;
  background: rgba(255, 255, 255, 0.2);
}

.amount-head .toggle-balance {
  background: #e7ecef;
  color: #4e545b;
}

.amount {
  margin: 0 0 10px;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pix-actions button {
  min-width: 72px;
}

.list-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 15px 2px;
  font-size: 13px;
}

.boletos-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 8px;
}

.boletos-actions button {
  border: 0;
  background: transparent;
  color: #30363c;
  min-height: 72px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.boletos-actions button span {
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.credit-card {
  margin-bottom: 14px;
  border-radius: 10px;
  padding: 14px;
  background: linear-gradient(150deg, #3b3d42, #000000);
  color: #fff;
}

.chip-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 62px;
  font-size: 11px;
}

.credit-card strong {
  display: block;
  text-align: right;
}

.details p {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.details span {
  color: var(--subtle);
  font-size: 10px;
}

.loan-list {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 8px;
  display: grid;
  gap: 3px;
}

.loan-list b {
  font-weight: 500;
}

.loan-list small {
  color: var(--teal);
}

.loan-list span {
  justify-self: end;
  font-size: 12px;
}

.limit {
  text-align: center;
  margin-top: 14px;
  color: var(--teal);
  font-size: 13px;
}

.sim-value {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 12px 0 20px;
}

.cta {
  width: 100%;
  border: 0;
  border-radius: 6px;
  height: 44px;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
}

.keypad {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  font-size: 28px;
}

.detail-card p {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 10px 0;
}

.detail-card span {
  color: var(--subtle);
  font-size: 11px;
}

.ghost-action {
  width: 100%;
  margin: 14px 0;
  border: 1px solid var(--line);
  background: #fff;
  height: 40px;
}

.success-screen {
  text-align: center;
  padding-top: 40px;
}

.ok-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 20px auto;
  background: var(--teal-soft-2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 44px;
}

.tabs {
  margin: 12px 0;
  background: #eceef0;
  border-radius: 999px;
  padding: 3px;
  display: flex;
  gap: 3px;
}

.tabs button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 7px 4px;
  font-size: 11px;
}

.tabs .active {
  background: #ffffff;
}

.approval-item,
.tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.tx-row {
  font-size: 12px;
}

.tx-row b {
  font-size: 12px;
  font-weight: 600;
}

.actions-row {
  display: flex;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding: 10px 0;
}

.reject,
.approve {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 6px;
}

.reject {
  background: #ffecec;
  color: #ab5050;
}

.approve {
  background: var(--teal);
  color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 10px;
}

.features-grid button {
  border: 0;
  background: transparent;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #30363c;
  cursor: pointer;
  font-weight: 500;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--teal-soft-1), var(--teal-soft-2));
  display: flex;
  justify-content: center;
  align-items: center;
  color: #4b535b;
  font-size: 18px;
}

.feature-icon i {
  line-height: 1;
}

.features-grid button span:last-child {
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.features-grid button:hover .feature-icon {
  background: #e1e6ea;
}

.features-grid button:active .feature-icon {
  transform: scale(0.96);
}

.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  align-items: center;
  background: linear-gradient(180deg, #f7fafb, #edf2f5);
  border: 1px solid #d9e0e6;
  border-radius: 0;
  padding: 4px;
  box-shadow: 0 8px 18px rgba(17, 34, 51, 0.14);
}

.nav-item {
  height: auto;
  border: 0;
  background: transparent;
  color: #60666d;
  font-size: 8px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.nav-item:hover {
  transform: translateY(-1px);
}

.nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: #60666d;
  box-shadow: none;
  transition: box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.nav-icon i {
  line-height: 1;
}

.nav-label {
  line-height: 1.1;
}

.nav-item.active {
  color: #60666d;
}

.nav-item.active .nav-icon {
  background: transparent;
  color: #60666d;
  box-shadow: none;
}

.nav-item.pix-center {
  margin-top: -22px;
  align-self: center;
}

.nav-item.pix-center .nav-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--teal), var(--teal-strong));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(36, 70, 47, 0.4);
}

.nav-item.pix-center:hover .nav-icon {
  box-shadow: 0 14px 26px rgba(36, 70, 47, 0.46);
}

.positive {
  color: var(--teal);
}

.negative {
  color: #b55353;
}

.profile-head {
  text-align: center;
  margin-bottom: 8px;
}

.profile-avatar-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(160deg, var(--teal-soft-1), var(--teal-soft-2));
  color: var(--teal-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
  cursor: pointer;
}

.profile-avatar-icon {
  font-size: 30px;
  line-height: 1;
}

.profile-avatar-edit {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 4px 8px rgba(36, 70, 47, 0.3);
}

.profile-head strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.profile-head small {
  display: block;
  color: var(--subtle);
  font-size: 10px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 14px;
  margin-top: 8px;
}

.group-label {
  margin: 10px 0 2px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.menu-line {
  width: 100%;
  border: 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.outline-btn {
  width: 100%;
  border: 1px solid var(--line);
  height: 44px;
  border-radius: 6px;
  margin-top: 18px;
  background: #fff;
}

.version {
  text-align: center;
  font-size: 10px;
  color: var(--subtle);
}

.mid-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 5px;
}

.switch-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--subtle);
}

.switch {
  width: 33px;
  height: 20px;
  border-radius: 999px;
  background: #d5d8dc;
  position: relative;
}

.switch::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px;
  top: 2px;
}

.plan-card {
  background: var(--teal);
  color: #fff;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.plan-card small {
  display: block;
  opacity: 0.95;
  font-size: 10px;
}

.help-form {
  display: grid;
  gap: 8px;
}

.help-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.help-form input,
.help-form select,
.help-form textarea {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7f8f9;
  padding: 10px;
}

.help-form textarea {
  min-height: 90px;
  resize: none;
}

.send-btn {
  margin-top: 8px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: #cfd5dd;
  color: #ffffff;
}

@media (max-width: 900px) {
  .stage {
    padding: 12px;
  }

  .phone {
    width: min(390px, calc(100vw - 24px));
    height: min(780px, calc(100vh - 24px));
  }
}

@media (max-width: 560px) {
  .stage {
    padding: 0;
  }

  .phone {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: 0;
    padding: 8px 10px 10px;
  }

  .screen {
    padding: 8px 8px 20px;
  }
}

@media (max-height: 740px) {
  .phone {
    height: 100vh;
  }

  .title {
    font-size: 26px;
  }

  .amount,
  .sim-value {
    font-size: 34px;
  }
}
