/* =====================================================
   Onde Coloquei Isso? — Design System
   Paleta: Deep Navy (#1a1a2e) · Indigo (#16213e) · Teal (#0f3460)
   Accent: Amber (#e94560) → soft coral-red
   Surface: #0d1117 | Cards: #161b22 | Border: #30363d
   ===================================================== */

:root {
  --oci-bg:        #0d1117;
  --oci-surface:   #161b22;
  --oci-surface-2: #1c2128;
  --oci-border:    #30363d;
  --oci-text:      #e6edf3;
  --oci-muted:     #b1bac4;
  --oci-accent:    #e94560;
  --oci-accent-2:  #ff6b8a;
  --oci-teal:      #58a6ff;
  --oci-green:     #3fb950;
  --oci-amber:     #d29922;
  --oci-muted-hi:  #b1bac4;
  --oci-radius:    12px;
  --oci-radius-sm: 8px;
  --oci-shadow:    0 4px 24px rgba(0,0,0,.4);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--oci-bg);
  color: var(--oci-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--oci-teal); text-decoration: none; }
a:hover { color: var(--oci-accent-2); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--oci-bg); }
::-webkit-scrollbar-thumb { background: var(--oci-border); border-radius: 3px; }

/* ── Navbar ── */
.oci-navbar {
  background: var(--oci-surface) !important;
  border-bottom: 1px solid var(--oci-border);
  position: sticky;
  top: 0;
  z-index: 1030;
  height: 56px;
}

.oci-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--oci-text) !important;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.3px;
}
.oci-brand-icon { font-size: 1.3rem; }
.oci-brand-text { color: var(--oci-text); }

.btn-ghost-nav {
  background: transparent;
  color: var(--oci-muted);
  border: none;
  padding: 6px 10px;
  border-radius: var(--oci-radius-sm);
  transition: color .15s, background .15s;
}
.btn-ghost-nav:hover { background: var(--oci-surface-2); color: var(--oci-text); }

.btn-accent-nav {
  background: var(--oci-accent);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--oci-radius-sm);
  font-weight: 600;
  transition: background .15s;
}
.btn-accent-nav:hover { background: var(--oci-accent-2); color: #fff; }
.no-caret::after { display: none !important; }

/* ── Dropdown ── */
.oci-dropdown {
  background: var(--oci-surface);
  border: 1px solid var(--oci-border);
  border-radius: var(--oci-radius);
  box-shadow: var(--oci-shadow);
  min-width: 200px;
}
.oci-dropdown .dropdown-item {
  color: var(--oci-text);
  padding: 8px 16px;
  font-size: .9rem;
}
.oci-dropdown .dropdown-item:hover { background: var(--oci-surface-2); }
.oci-dropdown .dropdown-divider { border-color: var(--oci-border); }
.oci-dropdown .dropdown-header { color: var(--oci-muted); font-size: .8rem; }

/* ── Main Content ── */
.main-content {
  padding-bottom: 80px; /* espaço para bottom nav mobile */
}

/* ── Cards ── */
.oci-card {
  background: var(--oci-surface);
  border: 1px solid var(--oci-border);
  border-radius: var(--oci-radius);
  transition: border-color .2s, box-shadow .2s;
}
.oci-card:hover { border-color: var(--oci-teal); }
.oci-card-body { padding: 1.25rem; }

/* ── Buttons ── */
.btn-accent {
  background: var(--oci-accent);
  color: #fff;
  border: none;
  border-radius: var(--oci-radius-sm);
  font-weight: 600;
  padding: .5rem 1.25rem;
  transition: background .15s, transform .1s;
}
.btn-accent:hover { background: var(--oci-accent-2); color: #fff; transform: translateY(-1px); }

.btn-outline-oci {
  background: transparent;
  color: var(--oci-teal);
  border: 1px solid var(--oci-teal);
  border-radius: var(--oci-radius-sm);
  font-weight: 500;
  padding: .45rem 1rem;
  transition: all .15s;
}
.btn-outline-oci:hover { background: var(--oci-teal); color: #000; }

.btn-ghost {
  background: transparent;
  color: var(--oci-muted);
  border: 1px solid var(--oci-border);
  border-radius: var(--oci-radius-sm);
  padding: .45rem 1rem;
  transition: all .15s;
}
.btn-ghost:hover { background: var(--oci-surface-2); color: var(--oci-text); }

/* ── Forms ── */
.form-control, .form-select {
  background: var(--oci-surface-2);
  border: 1px solid var(--oci-border);
  color: var(--oci-text);
  border-radius: var(--oci-radius-sm);
  padding: .6rem .9rem;
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  background: var(--oci-surface-2);
  border-color: var(--oci-teal);
  box-shadow: 0 0 0 3px rgba(88,166,255,.15);
  color: var(--oci-text);
  outline: none;
}
.form-control::placeholder { color: var(--oci-muted); }
.form-select option { background: var(--oci-surface); }
.form-label { color: var(--oci-muted); font-size: .85rem; font-weight: 500; margin-bottom: .35rem; }
.form-check-input {
  background-color: var(--oci-surface-2);
  border-color: var(--oci-border);
}
.form-check-input:checked { background-color: var(--oci-accent); border-color: var(--oci-accent); }

/* ── Search Bar ── */
.oci-search-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.oci-search-input {
  background: var(--oci-surface-2);
  border: 2px solid var(--oci-border);
  color: var(--oci-text);
  border-radius: 50px;
  padding: .8rem 1.2rem .8rem 3rem;
  font-size: 1.05rem;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.oci-search-input:focus {
  border-color: var(--oci-teal);
  box-shadow: 0 0 0 4px rgba(88,166,255,.12);
  background: var(--oci-surface);
  outline: none;
}
.oci-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--oci-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

/* ── Item Card ── */
.item-card {
  background: var(--oci-surface);
  border: 1px solid var(--oci-border);
  border-radius: var(--oci-radius);
  padding: 1rem;
  transition: border-color .2s, transform .15s;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}
.item-card:hover {
  border-color: var(--oci-teal);
  transform: translateY(-2px);
  color: inherit;
}
.item-card-img {
  width: 56px;
  height: 56px;
  border-radius: var(--oci-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.item-card-no-img {
  width: 56px;
  height: 56px;
  border-radius: var(--oci-radius-sm);
  background: var(--oci-surface-2);
  border: 1px solid var(--oci-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.item-name { font-weight: 600; font-size: 1rem; color: var(--oci-text); }
.item-path {
  color: var(--oci-muted);
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.item-path i { color: var(--oci-accent); font-size: .85rem; }
.item-cat {
  font-size: .75rem;
  background: var(--oci-surface-2);
  border: 1px solid var(--oci-border);
  border-radius: 20px;
  padding: 2px 10px;
  color: var(--oci-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.item-fav { color: var(--oci-border); font-size: 1.1rem; cursor: pointer; transition: color .15s; }
.item-fav.active { color: var(--oci-amber); }

/* ── Location Card ── */
.location-card {
  background: var(--oci-surface);
  border: 1px solid var(--oci-border);
  border-radius: var(--oci-radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color .2s, transform .15s;
}
.location-card:hover {
  border-color: var(--oci-teal);
  transform: translateY(-2px);
  color: inherit;
}
.location-icon { font-size: 1.8rem; }

/* ── Breadcrumb / Path ── */
.oci-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: .85rem;
  color: var(--oci-muted);
}
.oci-path-sep { color: var(--oci-border); }
.oci-path-item { color: var(--oci-teal); }
.oci-path-item:last-child { color: var(--oci-text); }

/* ── Stats ── */
.stat-card {
  background: var(--oci-surface);
  border: 1px solid var(--oci-border);
  border-radius: var(--oci-radius);
  padding: 1.25rem;
  text-align: center;
}
.stat-num { font-size: 2rem; font-weight: 700; color: var(--oci-teal); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--oci-muted); margin-top: .25rem; }

/* ── Section Headers ── */
.oci-section-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--oci-muted);
  margin-bottom: .75rem;
}

/* ── Quick Actions ── */
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--oci-surface);
  border: 1px solid var(--oci-border);
  border-radius: var(--oci-radius);
  padding: 1rem .5rem;
  text-decoration: none;
  color: var(--oci-text);
  font-size: .8rem;
  font-weight: 500;
  transition: border-color .2s, background .15s;
  min-height: 80px;
}
.quick-action:hover { border-color: var(--oci-teal); background: var(--oci-surface-2); color: var(--oci-text); }
.quick-action-icon { font-size: 1.5rem; }

/* ── Alert / Flash ── */
.alert { border-radius: var(--oci-radius-sm); border: none; font-size: .9rem; }
.alert-success { background: rgba(63,185,80,.15); color: var(--oci-green); }
.alert-danger  { background: rgba(233,69,96,.15);  color: var(--oci-accent-2); }
.alert-info    { background: rgba(88,166,255,.12); color: var(--oci-teal); }
.alert-warning { background: rgba(210,153,34,.15); color: var(--oci-amber); }
.btn-close { filter: invert(1) opacity(.6); }

/* ── History ── */
.history-item {
  display: flex;
  gap: 10px;
  padding: .6rem 0;
  border-bottom: 1px solid var(--oci-border);
  font-size: .85rem;
  color: var(--oci-muted);
}
.history-item:last-child { border-bottom: none; }
.history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oci-teal);
  margin-top: .4rem;
  flex-shrink: 0;
}

/* ── Upload preview ── */
.oci-upload-area {
  border: 2px dashed var(--oci-border);
  border-radius: var(--oci-radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  color: var(--oci-muted);
  transition: border-color .2s;
  position: relative;
}
.oci-upload-area:hover, .oci-upload-area.drag-over {
  border-color: var(--oci-teal);
  color: var(--oci-teal);
}
.oci-upload-area input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.oci-upload-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--oci-radius-sm);
  margin-top: .75rem;
  display: none;
}

/* ── Page titles ── */
.oci-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--oci-text);
  margin: 0;
}

/* ── Tags / Badges ── */
.oci-badge {
  background: var(--oci-surface-2);
  border: 1px solid var(--oci-border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .75rem;
  color: var(--oci-muted);
}
.oci-badge-accent { background: rgba(233,69,96,.15); color: var(--oci-accent-2); border-color: var(--oci-accent); }
.oci-badge-teal   { background: rgba(88,166,255,.12); color: var(--oci-teal); border-color: var(--oci-teal); }

/* ── Empty state ── */
.oci-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--oci-muted);
}
.oci-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }

/* ── Landing Page ── */
.landing-hero {
  background: linear-gradient(135deg, #0d1117 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.landing-nav {
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.landing-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -.4px;
}
.landing-brand span { color: var(--oci-accent); }
.hero-tag {
  display: inline-block;
  background: rgba(233,69,96,.12);
  border: 1px solid rgba(233,69,96,.3);
  color: var(--oci-accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: #fff;
}
.hero-title .accent { color: var(--oci-accent); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.6);
  max-width: 480px;
  line-height: 1.7;
}
.hero-cta {
  background: var(--oci-accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .85rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: background .15s, transform .1s;
  display: inline-block;
}
.hero-cta:hover { background: var(--oci-accent-2); color: #fff; transform: translateY(-2px); }
.hero-demo {
  background: var(--oci-surface);
  border: 1px solid var(--oci-border);
  border-radius: var(--oci-radius);
  padding: 1.25rem;
  max-width: 360px;
}
.feature-icon-wrap {
  width: 48px; height: 48px;
  background: rgba(88,166,255,.1);
  border: 1px solid rgba(88,166,255,.2);
  border-radius: var(--oci-radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.step-num {
  width: 32px; height: 32px;
  background: var(--oci-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
}
.landing-section {
  background: var(--oci-bg);
  padding: 5rem 0;
  border-top: 1px solid var(--oci-border);
}
.landing-footer {
  background: var(--oci-surface);
  border-top: 1px solid var(--oci-border);
  padding: 2rem;
  text-align: center;
  color: var(--oci-muted);
  font-size: .85rem;
}

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  background: var(--oci-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--oci-surface);
  border: 1px solid var(--oci-border);
  border-radius: var(--oci-radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}
.auth-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--oci-text);
  letter-spacing: -.05em;
  text-align: center;
  margin-bottom: .25rem;
}
.auth-logo span { color: var(--oci-accent); }

/* ── Bottom Nav Mobile ── */
.oci-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--oci-surface);
  border-top: 1px solid var(--oci-border);
  height: 64px;
  align-items: center;
  justify-content: space-around;
  z-index: 1020;
  padding: 0 .5rem;
}
.oci-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--oci-muted);
  font-size: .65rem;
  font-weight: 500;
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: var(--oci-radius-sm);
  transition: color .15s;
  min-width: 52px;
  text-align: center;
}
.oci-bottom-item i { font-size: 1.3rem; }
.oci-bottom-item.active { color: var(--oci-accent); }
.oci-bottom-item:hover { color: var(--oci-text); }
.oci-bottom-item.oci-fab {
  background: var(--oci-accent);
  color: #fff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -10px;
  box-shadow: 0 4px 16px rgba(233,69,96,.4);
}
.oci-bottom-item.oci-fab i { font-size: 1.5rem; }
.oci-bottom-item.oci-fab:hover { background: var(--oci-accent-2); color: #fff; }

/* ── QR Code page ── */
.qr-box {
  background: #fff;
  border-radius: var(--oci-radius);
  padding: 1rem;
  display: inline-block;
}
.qr-box img { display: block; }

/* ── Responsive tweaks ── */
@media (max-width: 767px) {
  .oci-page-title { font-size: 1.15rem; }
  .hero-title { font-size: 2.2rem; }
  .auth-card { padding: 1.5rem; }
  .main-content { padding-bottom: 72px; }
}

/* ── Divider tree / Location tree ── */
.loc-tree { list-style: none; padding: 0; margin: 0; }
.loc-tree-item { padding: .4rem 0; border-bottom: 1px solid var(--oci-border); }
.loc-tree-item:last-child { border-bottom: none; }
.loc-tree-sub { padding-left: 1.5rem; border-left: 2px solid var(--oci-border); margin-left: .5rem; margin-top: .25rem; }

/* ── Spinner ── */
.oci-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--oci-border);
  border-top-color: var(--oci-teal);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Photo view ── */
.item-photo-full {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--oci-radius);
}

/* ═══════════════════════════════════════════════════════════
   PWA / APP NATIVO
   ═══════════════════════════════════════════════════════════ */

/* Remove rubber-band scroll e comportamentos de browser */
html, body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

/* Safe areas para notch / Dynamic Island / barra home */
body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Navbar respeita o notch */
.oci-navbar {
  padding-top: calc(0.5rem + env(safe-area-inset-top));
}

/* Bottom nav respeita a barra home do iPhone */
.oci-bottom-nav {
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  height: calc(60px + env(safe-area-inset-bottom));
}

/* Desabilita seleção de texto em elementos de UI (app-like) */
.oci-bottom-nav, .oci-navbar, .btn, .oci-bottom-item {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Cursor pointer no toque (remove o delay de 300ms) */
* { touch-action: manipulation; }

/* Quando em modo standalone (instalado como app) */
@media (display-mode: standalone) {
  /* Esconde elementos que fazem sentido só no browser */
  .hide-in-app { display: none !important; }

  /* Navbar mais alta para cobrir status bar no Android */
  .oci-navbar {
    padding-top: calc(0.75rem + env(safe-area-inset-top));
  }
}

/* ── Banner de instalação iOS ─────────────────────────────── */
.ios-install-banner {
  position: fixed;
  bottom: calc(70px + env(safe-area-inset-bottom));
  left: 1rem;
  right: 1rem;
  background: #1c2128;
  border: 1px solid var(--oci-border);
  border-radius: 16px;
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  animation: slideUp .35s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.ios-banner-close {
  position: absolute;
  top: .5rem; right: .75rem;
  background: none; border: none;
  color: var(--oci-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.ios-banner-icon {
  border-radius: 12px;
  flex-shrink: 0;
}

.ios-banner-content {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
}

.ios-banner-content strong {
  display: block;
  color: var(--oci-text);
  font-size: .95rem;
  margin-bottom: .2rem;
}

.ios-banner-content p {
  color: var(--oci-muted);
  font-size: .82rem;
  margin: 0;
  line-height: 1.4;
}

.ios-share-icon {
  display: inline-block;
  background: #2d7ff9;
  color: white;
  border-radius: 5px;
  padding: 0 4px;
  font-size: .75rem;
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════
   CONTRASTE — correções para legibilidade no dark theme
   ═══════════════════════════════════════════════════════════ */

/* Sobrescreve text-muted do Bootstrap — contraste mínimo WCAG AA */
.text-muted {
  color: #b1bac4 !important;
}

/* Textos secundários em cards */
.oci-card .text-muted,
.oci-card p.text-muted,
.oci-card [style*="color:var(--oci-muted)"] {
  color: #b1bac4 !important;
}

/* oci-section-title: letras maiúsculas pequenas precisam de mais contraste */
.oci-section-title {
  color: #8b949e;
  letter-spacing: .08em;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* URL do QR Code e textos técnicos */
.oci-url-text {
  color: #8b949e;
  font-size: .78rem;
  word-break: break-all;
  font-family: monospace;
}

/* Placeholder com contraste suficiente */
.form-control::placeholder {
  color: #8b949e !important;
  opacity: 1;
}

/* Labels de formulário mais legíveis */
.form-label {
  color: #c9d1d9 !important;
}

/* Textos de ajuda/hint em formulários */
.form-text, .form-hint {
  color: #b1bac4 !important;
}

/* Dropdown items */
.oci-dropdown .dropdown-item {
  color: #c9d1d9;
}
.oci-dropdown .dropdown-header {
  color: #8b949e;
}

/* Badges e tags secundárias */
.oci-badge {
  color: #c9d1d9;
}

/* Textos dentro de stat-cards */
.stat-label {
  color: #b1bac4;
}

/* Path / breadcrumb */
.oci-path-item {
  color: #b1bac4;
}
.oci-path-sep {
  color: #8b949e;
}

/* Histórico e metadados de itens */
.oci-history-date,
.item-meta,
.oci-meta {
  color: #b1bac4;
}

/* Notas/observações */
.item-notes {
  color: #c9d1d9;
}

/* ═══════════════════════════════════════════════════════════
   CONTRASTE GLOBAL — corrige todos os textos secundários
   Alvo: mínimo WCAG AA (4.5:1) sobre fundos #161b22 e #1c2128
   ═══════════════════════════════════════════════════════════ */

/* Redefine a variável muted para contraste adequado */
:root {
  --oci-muted: #b1bac4;
}

/* Bootstrap text-muted sobrescrito globalmente */
.text-muted {
  color: #b1bac4 !important;
}

/* Qualquer inline style color:var(--oci-muted) herda o novo valor automaticamente */

/* Textos com font-size pequeno precisam de contraste ainda maior (WCAG exige mais para texto pequeno) */
[style*="font-size:.7"],
[style*="font-size:.72"],
[style*="font-size:.78"],
[style*="font-size:.8"] {
  color: #c9d1d9 !important;
}

/* Links secundários (ex: "Esqueci minha senha", "Já tenho conta") */
a.text-muted {
  color: #b1bac4 !important;
}
a.text-muted:hover {
  color: #e6edf3 !important;
}

/* Ícones chevron e decorativos */
.bi.text-muted,
i.text-muted {
  color: #8b949e !important; /* ícones podem ter contraste menor */
}

/* Labels de formulário */
.form-label {
  color: #c9d1d9 !important;
}

/* Textos de suporte/hint em formulários */
.form-text {
  color: #b1bac4 !important;
}

/* Timestamps e metadados */
.oci-meta,
[style*="timeAgo"],
span[style*=".72rem"],
span[style*=".78rem"] {
  color: #b1bac4 !important;
}

/* Notas de objetos no dashboard e listagens */
[style*="notes"],
.item-notes {
  color: #c9d1d9 !important;
}

/* Subtítulos de cards de localização */
.location-card [style*="muted"],
.oci-card [style*="muted"] {
  color: #b1bac4 !important;
}

/* Textos de estado vazio ("Nenhum objeto...") */
.oci-empty,
.text-muted.text-center {
  color: #b1bac4 !important;
}

/* Landing page — parágrafos de feature */
.feature-desc,
[style*="var(--oci-muted)"][style*=".85rem"],
[style*="var(--oci-muted)"][style*=".9rem"] {
  color: #b1bac4 !important;
}

/* ═══════════════════════════════════════════════════════════
   GOOGLE AUTH
   ═══════════════════════════════════════════════════════════ */

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .7rem 1rem;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: var(--oci-radius-sm);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  color: #3c4043;
  text-decoration: none;
}
.btn-google:active {
  background: #f0f0f0;
}

.oci-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--oci-muted);
  font-size: .8rem;
}
.oci-divider::before,
.oci-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--oci-border);
}

/* ═══════════════════════════════════════════════════════════
   PLANOS / ASSINATURA
   ═══════════════════════════════════════════════════════════ */

.plan-card {
  border: 2px solid var(--oci-border);
  transition: border-color .2s, box-shadow .2s;
}
.plan-card-active {
  box-shadow: 0 0 0 3px rgba(233,69,96,.15);
}

.plan-badge-current {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  color: var(--oci-green);
  background: rgba(63,185,80,.1);
  border-radius: 20px;
  padding: .1rem .5rem;
}

.plan-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.plan-perks li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .87rem;
  color: var(--oci-muted-hi);
}

.plan-current-tag {
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--oci-green);
  padding: .6rem;
  background: rgba(63,185,80,.08);
  border-radius: var(--oci-radius-sm);
}

.plan-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: .75rem;
  border-radius: var(--oci-radius-sm);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: none;
  transition: opacity .15s;
}
.plan-btn:hover { opacity: .88; color: #fff; text-decoration: none; }

/* Badge de plano no perfil/nav */
.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .15rem .45rem;
  border-radius: 20px;
  vertical-align: middle;
}
.plan-pill-plus { background: rgba(88,166,255,.15); color: var(--oci-teal); }
.plan-pill-pro  { background: rgba(233,69,96,.15);  color: var(--oci-accent); }

/* Banner de upgrade (quando atinge limite) */
.upgrade-banner {
  background: rgba(233,69,96,.07);
  border: 1.5px solid rgba(233,69,96,.3);
  border-radius: var(--oci-radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.upgrade-banner p  { margin: 0; font-size: .88rem; color: var(--oci-muted-hi); }
.upgrade-banner .btn-upgrade {
  flex-shrink: 0;
  background: var(--oci-accent);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: .45rem .9rem;
  border-radius: var(--oci-radius-sm);
  text-decoration: none;
  white-space: nowrap;
}
