/* auExpert design tokens — Elite Ametista & Jade
 * Shared by all HTML screen mockups inside the demo phone frame.
 * iframe size = 362×816 (390-14-14 outer × 844-14-14 outer)
 */
/* Noto Color Emoji web font — renders country flag emojis correctly on
 * Windows (which by default hides regional-indicator combinations) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');
:root {
  --bg: #0D0E16;
  --bg-card: #161826;
  --bg-deep: #08090F;
  --card: #1A1D2E;
  --card-hover: #1E2336;

  --click: #8F7FA8;
  --click-light: #A89BC0;
  --click-soft: rgba(143,127,168,0.10);
  --click-ring: rgba(143,127,168,0.30);

  --ai: #4FA89E;
  --ai-soft: rgba(79,168,158,0.10);
  --ai-border: rgba(79,168,158,0.29);
  --ai-text: #7CC5BA;

  --success: #7FA886;
  --success-soft: rgba(127,168,134,0.12);
  --warning: #D4A574;
  --warning-soft: rgba(212,165,116,0.12);
  --danger: #C2645E;
  --danger-soft: rgba(194,100,94,0.12);

  --text: #F0EDF5;
  --text-sec: #A89FB5;
  --text-dim: #6B6478;
  --text-ghost: #3A3542;

  --border: #232538;
  --border-light: #2E314A;

  --safe-top: 50px;     /* notch + status */
  --safe-bottom: 30px;  /* home indicator */
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Noto Color Emoji', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
}

.screen {
  width: 100%;
  min-height: 100vh;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  position: relative;
}

/* status bar mock */
.statusbar {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--safe-top);
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px 28px 0;
  font-size: 14px; font-weight: 600; color: var(--text);
  z-index: 5; pointer-events: none;
}
.statusbar .right { display: flex; gap: 4px; align-items: center; }
.statusbar svg { width: 14px; height: 14px; }

/* header standard */
.header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 16px;
}
.header .back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); display: flex; align-items: center; justify-content: center;
  color: var(--click); border: 0.5px solid var(--border);
}
.header .title {
  flex: 1; font-size: 17px; font-weight: 700; letter-spacing: -0.3px;
}
.header .actions { display: flex; gap: 8px; }
.header .action-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--click-soft); color: var(--click);
  display: flex; align-items: center; justify-content: center;
  border: 0.5px solid var(--click-ring);
}

/* body */
.body { padding: 0 16px 24px; }
.section-title {
  font-size: 11px; letter-spacing: 1.5px; font-weight: 700;
  color: var(--text-dim); text-transform: uppercase;
  margin: 18px 0 10px;
}

/* cards */
.card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
}
.card.elevated {
  background: var(--bg-card);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.card-row {
  display: flex; align-items: center; gap: 12px;
}
.card-row + .card-row { margin-top: 12px; padding-top: 12px; border-top: 0.5px solid var(--border-light); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: 14px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.2px;
  border: none; cursor: pointer; outline: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--click); color: #fff;
  box-shadow: 0 8px 30px rgba(143,127,168,0.25);
  width: 100%;
}
.btn-secondary {
  background: transparent; color: var(--text-sec);
  border: 1px solid var(--border);
  width: 100%;
}
.btn-danger {
  background: var(--danger); color: #fff; width: 100%;
}

/* inputs */
.input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  height: 56px;
  margin-bottom: 14px;
}
.input-wrap.focused { border-color: var(--click); }
.input-wrap input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 15px; font-family: inherit;
}
.input-wrap input::placeholder { color: var(--text-dim); }
.input-wrap .prefix { color: var(--text-sec); display: flex; }
.input-wrap .suffix { color: var(--click); display: flex; }

/* badges & chips */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.3px;
  background: var(--click-soft); color: var(--click);
}
.badge.ai { background: var(--ai-soft); color: var(--ai-text); }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }

/* helpers */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.flex-1 { flex: 1; }
.text-sec { color: var(--text-sec); }
.text-dim { color: var(--text-dim); }
.text-click { color: var(--click); }
.text-ai { color: var(--ai); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 17px; }
.text-xl { font-size: 22px; }
.font-bold { font-weight: 700; }
.font-semi { font-weight: 600; }

/* pet avatar */
.pet-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-card);
  border: 2.5px solid rgba(143,127,168,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--click); flex-shrink: 0;
  overflow: hidden;
}
.pet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pet-avatar.cat { border-color: rgba(143,127,168,0.4); }

/* avatar-photo — replaces lucide SVG inside any avatar container.
 * Uses block + 100% sizing (NOT absolute positioning) so the image
 * fills its parent regardless of whether the parent is positioned.
 * object-position: top — pet photos are usually face/ears in the upper
 * portion of the frame; centering would crop the head off. */
.avatar-photo {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: inherit;
  flex-shrink: 0;
}
/* Keep overlays above the photo within positioned containers */
.cam-pin, .badge-overlay, .pet-mood, .overlay, .corner-badge {
  z-index: 2;
}

/* wordmark / logo */
.wordmark {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.6px; line-height: 1;
  display: inline-flex; align-items: baseline;
}
.wordmark .au { color: #E8813A; font-style: italic; font-weight: 500; }
.wordmark .expert { color: var(--text); font-weight: 600; }

/* bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 70px; padding-bottom: var(--safe-bottom);
  background: rgba(13,14,22,0.92); backdrop-filter: blur(20px);
  border-top: 0.5px solid var(--border);
  display: flex; justify-content: space-around; align-items: center;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-dim); font-size: 10px; font-weight: 600;
}
.bottom-nav-item.active { color: var(--click); }

/* lucide-like inline icons via SVG */
.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; display: inline-block; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 36px; height: 36px; }
.icon-sm { width: 16px; height: 16px; }

/* scrollbar hidden */
::-webkit-scrollbar { display: none; }

/* Foto de pet dentro de avatares redondos (auditoria coerencia 2026-06-27) */
.avatar-circle img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;}
.avatar-circle{overflow:hidden;}
.avatar img,.av img,.pet-avatar img,.pet-names img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;}
.avatar,.av{overflow:hidden;}
.txn-ic img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;}
.txn-ic{overflow:hidden;}
