/* =========================================================================
   OVERDRIVE CITY - INTERACTIVE SMARTPHONE (CyberPhone OS)
   Ultra-sleek titanium chassis, OLED dark display, glassmorphism, dynamic apps
   ========================================================================= */

/* Floating HUD Toggle Button */
.hud-phone-toggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(8px);
  z-index: 95;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* Quando dentro de veículo com o velocímetro/rádio ativo, posiciona os botões ao lado sem conflito */
body.in-vehicle .hud-phone-toggle {
  bottom: 46px;
  right: 250px;
}

body.in-vehicle #hud-btn-inventory,
#hud-btn-inventory.in-vehicle {
  bottom: 40px !important;
  right: 395px !important;
}

body.in-vehicle #hud-btn-inventory.phone-open,
#hud-btn-inventory.in-vehicle.phone-open {
  bottom: 40px !important;
  right: 360px !important;
}

.hud-phone-toggle:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 240, 255, 0.4);
}

.hud-phone-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 10px;
  display: none;
}

/* Smartphone Device Container */
#smartphone-device {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 310px;
  height: 580px;
  background: #020617;
  border-radius: 42px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85),
              0 0 0 4px #334155,
              0 0 0 6px #0f172a,
              0 0 35px rgba(0, 240, 255, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  contain: strict;
  z-index: 1000;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.15),
              opacity 0.25s ease;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

#smartphone-device.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Phone Screen Area */
.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #090d16 0%, #030712 100%);
  position: relative;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  contain: strict;
}

/* Top Notch & Speaker Punch */
.phone-notch-container {
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 20;
}

.phone-speaker {
  width: 44px;
  height: 4px;
  background: #1e293b;
  border-radius: 4px;
  position: absolute;
  top: 6px;
}

.phone-camera-hole {
  width: 10px;
  height: 10px;
  background: #000000;
  border: 1.5px solid #1e293b;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  right: 100px;
}

/* Status Bar */
.phone-status-bar {
  height: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  z-index: 10;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

/* Views & Screens (Homescreen & Apps) */
.phone-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.phone-view::-webkit-scrollbar,
#smartphone-device *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

#phone-view-home {
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phone-view.hidden {
  display: none !important;
}

/* Homescreen Styling */
.homescreen-header {
  padding: 16px 20px 4px 20px;
  text-align: center;
}

.homescreen-clock {
  font-size: 44px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -1px;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.homescreen-date {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 4px;
  text-transform: capitalize;
}

.homescreen-weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 8px;
  font-size: 10px;
  color: #cbd5e1;
}

/* App Grid (6 Shortcuts on Homescreen) */
.homescreen-app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  padding: 8px 24px;
  justify-items: center;
  align-content: center;
}

/* Swipe-Up Hint for App Drawer */
.homescreen-drawer-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0 8px 0;
  cursor: pointer;
  margin-top: auto;
  user-select: none;
  transition: transform 0.15s ease;
}

.homescreen-drawer-hint:hover {
  transform: translateY(-2px);
}

.drawer-hint-chevron {
  font-size: 9px;
  color: #00f0ff;
  animation: bounceDrawerHint 1.4s infinite ease-in-out;
}

.drawer-hint-text {
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

@keyframes bounceDrawerHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* =========================================================================
   APP DRAWER (TODOS OS APPS - SLIDE UP SHEET)
   ========================================================================= */
.phone-app-drawer {
  position: absolute;
  inset: 0;
  top: 30px;
  background: rgba(10, 15, 29, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1.5px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 240, 255, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transform: translateY(102%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.32s;
  user-select: none;
  overflow: hidden;
}

.phone-app-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.phone-app-drawer:not(.open) {
  visibility: hidden !important;
  pointer-events: none !important;
}

.drawer-header {
  padding: 10px 16px 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.7);
  cursor: grab;
}

.drawer-pill-handle {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  margin-bottom: 8px;
  transition: background 0.15s;
}

.drawer-header:hover .drawer-pill-handle {
  background: #00f0ff;
}

.drawer-title-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.drawer-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #00f0ff;
  font-family: 'JetBrains Mono', monospace;
}

.drawer-btn-dismiss {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-btn-dismiss:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ef4444;
}

.drawer-search-wrap {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.drawer-search-icon {
  position: absolute;
  left: 10px;
  font-size: 11px;
  color: #64748b;
  pointer-events: none;
}

.drawer-search-input {
  width: 100%;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px 10px 6px 28px;
  color: #ffffff;
  font-size: 11px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.drawer-search-input:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.drawer-app-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 8px;
  padding: 16px 12px 24px 12px;
  overflow-y: auto;
  align-content: start;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.drawer-app-grid .app-icon-item .app-icon-box {
  width: 52px;
  height: 52px;
  font-size: 24px;
  border-radius: 15px;
}

.drawer-app-grid .app-icon-item .app-icon-label {
  font-size: 10px;
  max-width: 75px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-bottom-bar {
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: rgba(10, 15, 29, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  user-select: none;
}

.drawer-bottom-bar:hover .phone-home-indicator {
  width: 140px;
  background: rgba(255, 255, 255, 0.85);
}

.app-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.app-icon-item:hover {
  transform: scale(1.06);
}

.app-icon-item:active {
  transform: scale(0.95);
}

.app-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  position: relative;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

.app-icon-cyberride {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #000000;
  box-shadow: 0 6px 18px rgba(234, 179, 8, 0.35);
}

.app-icon-camera {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
}

.app-icon-messages {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.35);
}

.app-icon-bank {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.app-badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #090d16;
}

.app-icon-label {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* App Header Bar (Inside Apps) */
.app-header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
}

.app-btn-back {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 6px;
}

.app-btn-back:hover {
  background: rgba(255, 255, 255, 0.08);
}

.app-header-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

/* Bottom Home Bar Indicator */
.phone-home-bar-container {
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.phone-home-indicator {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.phone-home-bar-container:hover .phone-home-indicator {
  width: 140px;
  background: rgba(255, 255, 255, 0.85);
}

/* =========================================================================
   APP 1: CYBERRIDE (TÁXI AUTÔNOMO)
   ========================================================================= */
.cyberride-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cyberride-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cyberride-status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cyberride-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #eab308;
  box-shadow: 0 0 8px #eab308;
}

.cyberride-status-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.cyberride-status-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

.cyberride-dest-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
}

.cyberride-dest-btn {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.cyberride-dest-btn:hover {
  background: #334155;
  border-color: #eab308;
  color: #ffffff;
  transform: translateX(2px);
}

.cyberride-dest-btn.active {
  background: rgba(234, 179, 8, 0.18);
  border-color: #eab308;
  color: #fef08a;
}

.cyberride-call-btn {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #000000;
  border: none;
  padding: 13px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease;
}

.cyberride-call-btn:hover {
  transform: translateY(-2px);
}

.cyberride-call-btn:active {
  transform: translateY(0);
}

.cyberride-call-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================================
   APP 2: CÂMERA (2.5D FOTOGRAFIA & OVERGRAM)
   ========================================================================= */
.camera-view-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  gap: 10px;
}

.camera-preview-box {
  flex: 1;
  background: #000000;
  border: 1px solid #1e293b;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#camera-preview-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Viewfinder Crosshair & Grid Overlay */
.camera-viewfinder-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.camera-viewfinder-grid div {
  border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.camera-focus-bracket {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1.5px solid #00f0ff;
  border-radius: 6px;
  pointer-events: none;
  animation: pulseBracket 2s infinite;
}

@keyframes pulseBracket {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.camera-filter-carousel {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
}

.camera-filter-btn {
  background: #0f172a;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.camera-filter-btn.active {
  background: #ec4899;
  border-color: #ec4899;
  color: #ffffff;
}

.camera-bottom-actions {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
}

.camera-shutter-btn {
  width: 62px;
  height: 62px;
  background: #ffffff;
  border: 4px solid #1e293b;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s ease;
}

.camera-shutter-btn:active {
  transform: scale(0.9);
  background: #e2e8f0;
}

/* OverGram Photo Result Card Modal */
.overgram-modal {
  position: absolute;
  inset: 0;
  background: #030712;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 10px;
}

.overgram-modal.hidden {
  display: none !important;
}

.overgram-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.overgram-user-header {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.overgram-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.overgram-user-meta {
  flex: 1;
}

.overgram-username {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}

.overgram-location {
  font-size: 10px;
  color: #94a3b8;
}

#overgram-photo-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.overgram-actions-row {
  padding: 8px 12px;
  display: flex;
  gap: 8px;
}

.overgram-action-btn {
  flex: 1;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.overgram-action-btn.btn-download {
  background: #0284c7;
  border-color: #38bdf8;
}

/* =========================================================================
   APP 3: MENSAGENS PRIVADAS (DM)
   ========================================================================= */
.messages-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.messages-player-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.messages-player-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.messages-player-item:hover {
  background: #1e293b;
  border-color: #06b6d4;
  transform: translateX(2px);
}

.messages-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.messages-player-info {
  flex: 1;
}

.messages-player-name {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

.messages-player-status {
  font-size: 10px;
  color: #22c55e;
}

/* Chat Thread Conversation View */
.chat-thread-view {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-thread-view.hidden {
  display: none !important;
}

.chat-thread-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dm-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.dm-bubble-sent {
  align-self: flex-end;
  background: #0284c7;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.dm-bubble-received {
  align-self: flex-start;
  background: #1e293b;
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}

.dm-bubble-time {
  font-size: 9px;
  opacity: 0.65;
  margin-top: 3px;
  text-align: right;
}

.chat-thread-footer {
  padding: 8px 10px;
  background: #0f172a;
  border-top: 1px solid #1e293b;
  display: flex;
  gap: 6px;
}

.dm-input {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 12px;
  outline: none;
}

.dm-input:focus {
  border-color: #06b6d4;
}

.dm-btn-send {
  background: #06b6d4;
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* =========================================================================
   APP 4: CYBERBANK (BANCO & SALDO)
   ========================================================================= */
.bank-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bank-card-glass {
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #064e3b 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 16px;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 140px;
}

.bank-card-chip {
  width: 32px;
  height: 24px;
  background: #facc15;
  border-radius: 5px;
  border: 1px solid #ca8a04;
}

.bank-balance-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.bank-balance-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.bank-card-owner {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.bank-transfer-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bank-transfer-title {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

.bank-select, .bank-input {
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  outline: none;
}

.bank-select:focus, .bank-input:focus {
  border-color: #10b981;
}

.bank-btn-transfer {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease;
}

.bank-btn-transfer:hover {
  transform: translateY(-2px);
}

.bank-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
}

.bank-history-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.bank-history-item.positive {
  color: #34d399;
}

.bank-history-item.negative {
  color: #f87171;
}

/* Screen Flash when taking photo */
.camera-flash-overlay {
  position: absolute;
  inset: 0;
  border-radius: 42px;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}

.camera-flash-overlay.flashing {
  animation: cameraFlashAnim 0.35s ease-out forwards;
}

@keyframes cameraFlashAnim {
  0% {
    opacity: 0.9;
  }
  25% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
  }
}

/* =========================================================================
   APP 5: CONTATOS & AMIGOS
   ========================================================================= */
.app-icon-contacts {
  background: linear-gradient(135deg, #0284c7, #6366f1) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.contacts-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 12px;
  gap: 12px;
}

.contacts-add-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 12px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #38bdf8;
  text-transform: uppercase;
}

.contacts-add-desc {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.3;
}

.contacts-add-input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-input {
  flex: 1;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: #f8fafc;
  outline: none;
  transition: border-color 0.15s ease;
}

.contact-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.btn-add-contact {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease, filter 0.15s ease;
}

.btn-add-contact:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-add-contact:active {
  transform: translateY(0);
}

.contact-feedback {
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.3;
}

.contact-feedback.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.contact-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.contacts-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
}

.contacts-badge {
  background: #1e293b;
  color: #38bdf8;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
}

.contact-card-item {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.contact-card-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.contact-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-nickname {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-status-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  margin-top: 1px;
}

.contact-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.contact-status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.contact-status-dot.offline {
  background: #64748b;
}

.contact-status-text {
  color: #94a3b8;
  font-size: 10px;
}

.contact-status-text.online {
  color: #4ade80;
  font-weight: 600;
}

.contact-actions-row {
  display: flex;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
}

.contact-action-btn {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 10px;
  padding: 5px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.12s ease;
}

.contact-action-btn:hover {
  background: #334155;
  color: #ffffff;
  border-color: #38bdf8;
}

.contact-action-btn.btn-remove-contact {
  flex: 0 0 28px;
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.contact-action-btn.btn-remove-contact:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.contact-empty-state {
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed #334155;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact-empty-icon {
  font-size: 28px;
  opacity: 0.7;
}

.contact-empty-title {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.contact-empty-desc {
  font-size: 10px;
  color: #64748b;
  line-height: 1.4;
  max-width: 220px;
}

