/* Feature gates — upgrade & permission placeholders */

#st0rm-app-connecting {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 32, 48, 0.72);
  color: var(--textfield-textcolor, #fff);
  font-family: Lato, sans-serif;
  backdrop-filter: blur(4px);
}

#st0rm-app-connecting[hidden] {
  display: none !important;
}

.st0rm-connecting-card {
  text-align: center;
  padding: 28px 36px;
  border-radius: 18px;
  background: var(--color-primary, #222f45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.st0rm-connecting-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--color-active, #ffa23a);
  border-radius: 50%;
  animation: st0rm-gate-spin 0.9s linear infinite;
}

@keyframes st0rm-gate-spin {
  to { transform: rotate(360deg); }
}

.st0rm-feature-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--menu-top-height) - 24px);
  padding: 32px 24px;
  text-align: center;
  color: var(--textfield-textcolor, #fff);
  font-family: Lato, sans-serif;
  box-sizing: border-box;
}

.st0rm-feature-gate-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.9;
}

.st0rm-feature-gate-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 600;
}

.st0rm-feature-gate-text {
  margin: 0 0 8px;
  max-width: 420px;
  line-height: 1.5;
  opacity: 0.88;
}

.st0rm-feature-gate-tier {
  margin: 0 0 20px;
  font-size: 0.9rem;
  opacity: 0.65;
}

.st0rm-feature-gate-cta {
  display: inline-block;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: var(--color-active, #ffa23a);
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.st0rm-feature-gate-cta:hover {
  background: var(--color-active-hover, #ffae15);
}

.st0rm-feature-gate-cta:focus-visible {
  outline: 2px solid var(--color-active, #ffa23a);
  outline-offset: 3px;
}

.menu-tile-feature-hidden {
  display: none !important;
}
