/* FEIN Auth Prompt — styles for the unauthenticated popup */
:root { color-scheme: light dark; }

.fein-auth-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.45);
  display: none;
}
.fein-auth-overlay[open] { display: block; }

.fein-auth-modal {
  position: fixed; z-index: 10000;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(680px, 92vw);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(17,24,39,.96); /* gray-900 with alpha */
  color: #fff;
  box-shadow: 0 30px 120px rgba(0,0,0,.45);
  padding: 18px 18px 14px;
}

.fein-auth-hd {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 0 8px;
}
.fein-auth-hd h2 {
  font: 700 18px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
}
.fein-auth-close {
  margin-left: auto; border: 0; background: transparent; color: inherit;
  font: 700 20px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  cursor: pointer; padding: 6px; border-radius: 8px;
}
.fein-auth-close:hover { background: rgba(255,255,255,.08); }

.fein-auth-body {
  display: grid; gap: 10px; margin-bottom: 10px;
}
.fein-auth-steps {
  font: 500 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #d6e0ff;
}
.fein-auth-steps b { color: #fff; }

.fein-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

a.fein-bookmarklet {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .62rem 1rem; border-radius: 10px; text-decoration: none;
  background: #2563eb; color: #fff; font-weight: 800; letter-spacing: .2px;
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
  cursor: grab; user-select: none;
}
a.fein-bookmarklet:active { cursor: grabbing; transform: translateY(1px); }

.fein-copy, .fein-howto, .fein-paste {
  padding: .55rem .9rem; border: 0; border-radius: 10px;
  background: #111827; color: #fff; font-weight: 700; cursor: pointer;
}
.fein-howto { background: #374151; }
.fein-paste { background: #065f46; } /* emerald-800-ish */
.fein-copy:hover, .fein-howto:hover, .fein-paste:hover { filter: brightness(1.08); }

.fein-inline-tip {
  font: 500 13px/1.35 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #cbd5e1;
}

.fein-toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  max-width: 92vw; padding: 10px 14px; border-radius: 10px;
  background: rgba(17,24,39,.96); color: #fff;
  font: 700 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity: 0; transition: opacity .2s ease; z-index: 10001;
}

/* Desktop-only tooltip (do NOT rely on it; content is duplicated inline) */
@media (hover:hover) and (pointer:fine) {
  [data-tip] {
    position: relative;
  }
  [data-tip]::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    white-space: nowrap; pointer-events: none;
    background: rgba(17,24,39,.96); color: #fff; font: 600 12px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    padding: 6px 8px; border-radius: 8px; opacity: 0; transition: opacity .15s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
  }
  [data-tip]:hover::after { opacity: 1; }
}

/* Small screens */
@media (max-width: 480px) {
  .fein-auth-modal { padding: 16px 14px; }
  .fein-row { gap: 8px; }
}
.btn-logout {
  background: #b91c1c; /* red */
  color: #fff;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: filter .2s ease, transform .1s ease;
}
.btn-logout:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
