* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #020617;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #0f172a;
  border-bottom: 1px solid #1f2937;
}

#logo {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1d283a;
}

#urlbar {
  flex: 1;
  padding: 7px 9px;
  border-radius: 999px;
  border: none;
  outline: none;
  font-size: 0.9rem;
  background: #020617;
  color: #e5e7eb;
}

#urlbar::placeholder {
  color: #6b7280;
}

#goBtn {
  padding: 7px 12px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
}

#goBtn:hover {
  background: #1d4ed8;
}

#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#frame-container {
  position: relative;
  flex: 1;
  min-height: 0;
}

#view {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 0, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
  z-index: 5;
}

.overlay.hidden {
  display: none;
}

.overlay-card {
  max-width: 420px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #020617;
  border: 1px solid #1f2937;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  font-size: 0.9rem;
}

.overlay-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.overlay-body {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 10px;
}

.overlay-actions {
  display: flex;
  justify-content: flex-end;
}

#openDirectBtn {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: #22c55e;
  color: #022c22;
  font-size: 0.82rem;
  cursor: pointer;
}

#openDirectBtn:hover {
  background: #16a34a;
}
