/* Orye - Design moderno estilo Watchlist/Funds */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: #0a0e13;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Container principal */
.app-container {
  min-height: 100vh;
  max-width: 428px;
  margin: 0 auto;
  background: linear-gradient(180deg, #0a0e13 0%, #151922 100%);
  position: relative;
}

/* Header */
.app-header {
  padding: 12px 16px;
  background: rgba(255,255,255,.02);
}
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}
.header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.page-name {
  font-size: 26px;
  font-weight: 700;
  flex: 1;
}
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4cc9ff, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0a0e13;
}

/* Search bar */
.search-bar {
  margin: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  width: 100%;
  font-size: 14px;
}
.search-bar input::placeholder { color: rgba(255,255,255,.4); }

/* Content */
.content {
  padding: 0 16px 100px;
}

/* Cards coloridos (estilo Watchlist) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  border-radius: 18px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  min-height: 110px;
}
.stat-card.yellow {
  background: linear-gradient(135deg, #ffd747 0%, #ffb84d 100%);
  color: #1a1308;
}
.stat-card.purple {
  background: linear-gradient(135deg, #b794f6 0%, #9774e8 100%);
  color: #1a0f2e;
}
.stat-card.green {
  background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
  color: #0a2318;
}
.stat-card.blue {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: #0c1a2e;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  opacity: .85;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.stat-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}
.stat-sub {
  font-size: 11px;
  opacity: .75;
  margin-top: 4px;
}

/* Card dark padrão */
.card {
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.06);
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title a {
  font-size: 13px;
  color: #4cc9ff;
  text-decoration: none;
  font-weight: 600;
}

/* Lista de itens */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.05);
}
.list-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(76, 201, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.list-icon svg { width: 20px; height: 20px; stroke: #4cc9ff; fill: none; stroke-width: 2; }
.list-info { flex: 1; }
.list-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.list-sub { font-size: 12px; color: rgba(255,255,255,.6); }
.list-value { font-weight: 700; font-size: 16px; text-align: right; }
.list-value.positive { color: #6ee7b7; }
.list-value.negative { color: #f87171; }

/* Action buttons (Add Money/Withdraw) */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.action-btn {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all .2s;
}
.action-btn:active { transform: scale(.97); }
.action-btn .ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4cc9ff15, #0ea5e925);
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-btn .ico.green { background: linear-gradient(135deg, #6ee7b715, #34d39925); }
.action-btn .ico svg { width: 24px; height: 24px; stroke: #4cc9ff; fill: none; stroke-width: 2; }
.action-btn .ico.green svg { stroke: #6ee7b7; }
.action-btn .label { font-weight: 700; font-size: 14px; }

/* Inputs e forms */
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
  font-family: inherit;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.4); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #4cc9ff;
  background: rgba(255,255,255,.06);
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #4cc9ff, #0ea5e9);
  color: #0a0e13;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s;
}
.btn-primary:active { transform: scale(.98); }
.btn-secondary {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 428px;
  margin: 0 auto;
  background: rgba(15, 20, 28, .98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 10px 20px 20px;
  z-index: 100;
}
.nav-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all .2s;
}
.nav-item.active {
  color: #4cc9ff;
  background: rgba(76, 201, 255, .1);
}
.nav-item svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  padding: 0;
}
.modal-overlay.active { display: flex; }
.modal {
  width: 100%;
  max-width: 428px;
  background: #1a1f28;
  border-radius: 24px 24px 0 0;
  padding: 24px;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 20px; font-weight: 700; }
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Auth pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, #0a0e13 0%, #151922 100%);
}
.auth-box {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 32px 24px;
}
.auth-logo {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #4cc9ff, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-subtitle {
  text-align: center;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  margin-bottom: 24px;
}
.auth-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}
.auth-link a {
  color: #4cc9ff;
  text-decoration: none;
  font-weight: 600;
}
.error-msg {
  color: #f87171;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}

/* Utilities */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none; }
