:root{
    --bg:#ffffff;
    --text:#0b1220;
    --muted:#6b7280;
    --blue:#1a73ff;
    --card:#f3f4f6;
    --border:#e5e7eb;
    --shadow: 0 12px 30px rgba(0,0,0,.08);
}

*{ box-sizing:border-box; }
body{
    margin:0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100svh;
    display:flex;
    justify-content:center;
}

/* “Moldura” mobile */
.app{
    width: min(430px, 100%);
    min-height: 100svh;
    display:flex;
    flex-direction:column;
    background: var(--bg);
    position: relative;
}

.screen{
    flex:1;
    padding: 22px 18px 18px;
    display:none;
    animation: fadeIn .18s ease-out;
}
.screen.active{ display:flex; flex-direction:column; }

@keyframes fadeIn{
    from{ opacity:0; transform: translateY(6px); }
    to{ opacity:1; transform: translateY(0); }
}

/* Tela 1 */
.center-wrap{
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap: 14px;
    padding-bottom: 10px;
}

.headline{
    text-align:center;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.2px;
    line-height: 1.25;
    margin: 0 10px;
}

.subnote{
    text-align:center;
    font-size: 12.5px;
    color: var(--muted);
    margin: 0 18px;
    line-height: 1.35;
}

.input-card{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow);
}

textarea{
    width:100%;
    min-height: 120px;
    resize:none;
    border:none;
    outline:none;
    font-size: 14.5px;
    line-height: 1.35;
    color: var(--text);
}
textarea::placeholder{ color:#9ca3af; }

.btn{
    width:100%;
    border:none;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15.5px;
    font-weight: 700;
    background: var(--blue);
    color:#fff;
    transition: opacity .15s ease, transform .05s ease;
}
.btn:active{ transform: scale(.99); }
.btn.disabled{
    opacity: .55;
    pointer-events:none;
}

/* Tela 2 (Home) */
.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-top: 4px;
    margin-bottom: 18px;
}
.badge{
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f3f4f6;
    border: 1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight: 800;
    color:#111827;
}

.wallet-title{
    font-size: 13px;
    color: var(--muted);
    font-weight: 650;
}

.balance{
    font-size: 34px;
    font-weight: 850;
    letter-spacing: -0.6px;
    margin: 6px 0 2px;
}
.balance-sub{
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 18px;
}

.actions{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.action-btn{
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    gap: 8px;

    padding: 14px 6px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #f3f4f6;

    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    font-weight: 700;
    font-size: 12.5px;

    text-align:center;
}

.action-btn:active{
    transform: scale(.97);
}

.action-btn .left{
    flex-direction: column;
    gap: 6px;
}

.action-btn .chev{
    display:none;
}

.icon{
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: #ffffff;
    border: none;
    font-size: 18px;
}


.left{
    display:flex;
    align-items:center;
    gap: 12px;
}

.icon{
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 16px;
}

.chev{
    color:#9ca3af;
    font-weight:900;
}

.balance-wrap{
    text-align: center;
    margin-bottom: 18px;
}

.balance{
    font-size: 37px;
    font-weight: 850;
    letter-spacing: -0.6px;
    margin: 6px 0 4px;
}

.balance-change{
    font-size: 13px;
    font-weight: 600;
    color: #16a34a; /* verde */
}


.footer-hint{
    margin-top:auto;
    padding-top: 18px;
    text-align:center;
    color: var(--muted);
    font-size: 12px;
}

.crypto-image-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

.balance-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.balance {
  height: 140px;          /* se quiser que fiquem com mesma “altura visual” */
  width: auto;           /* ou mantenha width:100% se ela precisa preencher */
  flex: 0 0 auto;        /* ou use flex: 1 1 auto se ela deve ocupar o resto */
  display: block;
  object-fit: contain; 
}

.menu-image-wrap{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
}

.send-image{
  height: 85px;
  width: auto;
  flex: 0 0 auto;        /* não cresce, não encolhe */
  display: block;
}

.menu-image{
  height: 85px;          /* se quiser que fiquem com mesma “altura visual” */
  width: auto;           /* ou mantenha width:100% se ela precisa preencher */
  flex: 0 0 auto;        /* ou use flex: 1 1 auto se ela deve ocupar o resto */
  display: block;
  object-fit: contain;
}


.crypto-image {
width: 100%;
max-width: 100%;
height: auto;
display: block;
object-fit: contain;
}

.footer-wrap {
    width: 100%;
    margin-top:auto;
    padding-top: 18px;
    text-align:center;
    color: var(--muted);
    font-size: 12px;
}

.footer {
  max-height: 65px;          
  width: auto;           
  flex: 0 0 auto;  
  display: block;
  object-fit: contain; 
}

.pin-card {
    display: flex;
    justify-content: center;
}

.pin-inputs {
    display: flex;
    gap: 12px;
}

.pin {
    width: 48px;
    height: 56px;
    font-size: 24px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #acacac;
    background: #f0f0f0;
    color: #000000;
}

.pin:focus {
    outline: none;
    border-color: #5b9cff;
}

.headline2{
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.2px;
    line-height: 1.25;
    margin: 0 10px;
}

.subnote2{
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.35;
}

/* Campos estilo card (tema claro) */
.field-card{
  width: min(520px, 92vw);
  margin: 0 auto 1px auto;
  padding: 14px;
  border-radius: 16px;
  background: rgb(255, 255, 255);
}

/* Input principal */
.text-input{
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  color: #111;
  outline: none;
}

.text-input::placeholder{
  color: #777;
}

.text-input:focus{
  border-color: rgba(0,0,0,0.35);
}

/* Linha com unidade e botão */
.input-row{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

/* Unidade (ex: %, kg, ms) */
.unit{
  opacity: .75;
  font-size: 13px;
  padding: 0 4px;
  color: #333;
}

/* Botão MAX */
.max-btn{
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.04);
  color: #df9409;
  cursor: pointer;
  font-weight: 700;
}

.max-btn:hover{
  background: rgba(0,0,0,0.08);
}

/* Texto auxiliar */
.helper{
  margin: 8px 2px 0 2px;
  font-size: 12px;
  opacity: .8;
  color: #444;
}

/* Linha de ações */
.actions-row{
  width: min(520px, 92vw);
  margin: 12px auto 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Botão secundário */
.btn.secondary{
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.14);
  color: #111;
}

.btn.secondary:hover{
  background: rgba(0,0,0,0.10);
}

/* Feedback visual no click do SendButton */
.send-image{
  cursor: pointer;
  transition: opacity 120ms ease, transform 120ms ease;
}

.send-image.is-pressed{
  opacity: .6;
  transform: scale(.99);
}

.screen-top {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  height: 100vh;
  padding: 16px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.header h1 {
  font-size: 18px;
  font-weight: 600;
}

.back-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Search */
.search-box {
  margin-bottom: 16px;
}

.search-box input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #f2f2f2;
  font-size: 14px;
  outline: none;
}

/* Crypto item */
.crypto-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
}

.crypto-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crypto-left img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.crypto-info {
  display: flex;
  flex-direction: column;
}

.crypto-name {
  font-size: 14px;
  font-weight: 600;
}

.crypto-name span {
  background: #e9e9e9;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
  margin-left: 6px;
  font-weight: 500;
}

.crypto-subtitle {
  font-size: 13px;
  color: #666;
}

/* Right side */
.crypto-right {
  text-align: right;
}

.crypto-value {
  font-weight: 600;
  font-size: 15px;
}

.crypto-amount {
  font-size: 13px;
  color: #666;
}

.screen-top {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  min-height: 100vh;
  padding: 16px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.header h1 {
  font-size: 18px;
  font-weight: 600;
}

.back-btn {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

/* Form */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

/* Input box */
.input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 10px;
}

.input-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 15px;
}

.link-btn {
  background: none;
  border: none;
  color: #4f6cff;
  font-weight: 600;
  cursor: pointer;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

/* Network */
.network-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: #f3f3f3;
  width: fit-content;
}

.network-box img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.arrow {
  margin-left: 6px;
  color: #666;
}

/* Amount */
.unit {
  font-weight: 600;
  color: #666;
}

small {
  display: block;
  margin-top: 6px;
  color: #666;
}

/* Button */
.next-btn {
  width: 100%;
  margin-top: 40px;
  padding: 16px;
  border-radius: 30px;
  border: none;
  background: #a8a6ff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.next-btn {
  opacity: 0.5;
  background: #c9c8ff;
  cursor: not-allowed;
  transition: all 0.2s ease;
}

.next-btn.active {
  opacity: 1;
  background: #4f6cff;
  cursor: pointer;
}
