/* FOCUS custom utilities */
:root {
  --focus-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html,
body {
  overflow-x: hidden;
}

.card-soft {
  box-shadow: var(--focus-shadow);
}

.bg-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.15) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Splash loader on first paint */
.focus-splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(16, 185, 129, 0.15), rgba(15, 23, 42, 0.85));
  backdrop-filter: blur(6px);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.focus-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.focus-splash-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 28px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
}

.focus-splash-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #10b981;
  color: #0f172a;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  animation: focus-pulse 1.4s ease-in-out infinite;
}

.reels-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reels-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Global click loading indicator */
.focus-loading {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  pointer-events: none;
}

@media (max-width: 767px) {
  .focus-loading {
    right: auto;
    bottom: 4.5rem;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

.focus-loading-logo {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #10b981;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  animation: focus-pulse 1.2s ease-in-out infinite;
}

.focus-loading-text {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
}

@keyframes focus-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

/* Dark mode form legibility (public app only). */
body[data-focus-ui] input,
body[data-focus-ui] select,
body[data-focus-ui] textarea {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

body[data-focus-ui] input::placeholder,
body[data-focus-ui] textarea::placeholder {
  color: #94a3b8;
}

body[data-focus-ui] input[type="password"] {
  -webkit-text-fill-color: currentColor;
}

body[data-focus-ui] select option {
  color: #0f172a;
}

.dark body[data-focus-ui] input,
.dark body[data-focus-ui] select,
.dark body[data-focus-ui] textarea {
  background-color: #0b1220 !important;
  border-color: #1f2a44 !important;
  color: #e2e8f0 !important;
}

.dark body[data-focus-ui] input::placeholder,
.dark body[data-focus-ui] textarea::placeholder {
  color: #94a3b8;
}

.dark body[data-focus-ui] input[type="file"] {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
}

.dark body[data-focus-ui] select option {
  background-color: #0b1220;
  color: #e2e8f0;
}

.dark body[data-focus-ui] input[type="password"] {
  -webkit-text-fill-color: #e2e8f0;
}

.dark body[data-focus-ui] label {
  color: #e2e8f0;
}