* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #09090f;
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  position: relative;
}

/* Fullscreen Proxied Webpage Container (Required by index.js) */
#sj-frame {
  border: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #09090f;
  z-index: 9999;
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 450px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, rgba(37, 99, 235, 0.12) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(13, 13, 23, 0.85);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
}

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

.shortcuts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(167, 139, 250, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
}

.clock {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #c084fc, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.date {
  color: #94a3b8;
  font-size: 14px;
  margin-top: 6px;
  margin-bottom: 28px;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.logo-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.hero-title h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.search-form {
  width: 100%;
  max-width: 580px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(20, 20, 34, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  padding: 8px 10px 8px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2), 0 16px 40px rgba(0, 0, 0, 0.5);
}

.search-icon {
  color: #a855f7;
  flex-shrink: 0;
  margin-right: 12px;
}

#sj-address {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  padding: 8px 0;
}

#sj-address::placeholder {
  color: #64748b;
}

.go-btn {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: 11px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.go-btn:hover {
  opacity: 0.92;
}

.go-btn:active {
  transform: scale(0.97);
}

.error-box {
  margin-top: 16px;
  max-width: 580px;
  text-align: left;
}

#sj-error {
  color: #ff6666 !important;
  font-size: 13px;
  white-space: pre-wrap;
}

#sj-error-code {
  margin-top: 6px;
  font-size: 12px;
  white-space: pre-wrap;
  color: #fecaca;
  font-family: "Courier New", Courier, monospace;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  background: rgba(9, 9, 15, 0.9);
}

.footer a {
  color: #a855f7;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}
