/* ── Smart Banner ─────────────────────────────────────────────── */

.smart-banner {
  --sb-bg: var(--gmo-dark, #132830);
  --sb-text: var(--gmo-text, #e0e0e0);
  --sb-muted: var(--gmo-text-muted, #8a9ba8);
  --sb-border: rgba(46, 125, 170, 0.2);

  background: var(--sb-bg);
  border-bottom: 0.5px solid var(--sb-border);
  width: 100%;
  flex-shrink: 0;
}

.smart-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* ── Mobile: info block ───────────────── */

.smart-banner__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  margin: 8px 0;
}

.smart-banner__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--sb-text);
  line-height: 1.2;
}

.smart-banner__tagline {
  font-size: 12px;
  font-style: italic;
  color: var(--sb-muted);
  line-height: 1.3;
}

/* ── Desktop: title ───────────────────── */

.smart-banner__title {
  display: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--sb-text);
  white-space: nowrap;
  margin-left: 100px;
}

/* ── Desktop: selling points (italic) ─── */

.smart-banner__selling {
  display: none;
  font-size: 13px;
  font-style: italic;
  color: var(--sb-muted);
  line-height: 1.4;
}

/* ── CTA buttons ──────────────────────── */

.smart-banner__ctas {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.smart-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  border: none;
  font-family: inherit;
  background: var(--gmo-main, #2e7daa);
  color: #fff;
}

.smart-banner__cta--ios {
  background: transparent;
  border: 1px solid var(--gmo-main, #2e7daa);
  color: var(--gmo-light, #a6e2f7);
}

.smart-banner__cta:hover {
  opacity: 0.85;
}

.smart-banner__cta-icon {
  flex-shrink: 0;
}

/* Mobile: show mobile labels, hide desktop labels */
.smart-banner__cta-desktop {
  display: none;
}

.smart-banner__cta-mobile {
  display: inline;
}

/* ── Desktop layout ───────────────────── */

@media (min-width: 769px) {
  .smart-banner__inner {
    gap: 16px;
    padding: 10px 24px;
  }

  /* Hide mobile info, show desktop title + selling */
  .smart-banner__info {
    display: none;
  }

  .smart-banner__title {
    display: inline;
  }

  .smart-banner__selling {
    display: inline;
    flex: 1;
  }

  /* Desktop labels */
  .smart-banner__cta-mobile {
    display: none;
  }

  .smart-banner__cta-desktop {
    display: inline;
  }

  .smart-banner__cta {
    height: 34px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 13px;
  }
}

/* ── iOS Waitlist Modal ───────────────── */
/* Matches existing GMO dialog style (checkout / newsletter) */

.smart-banner-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.smart-banner-modal[aria-hidden="true"] {
  display: none;
}

.smart-banner-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.smart-banner-modal__panel {
  position: relative;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: linear-gradient(
    160deg,
    rgba(19, 40, 48, 0.95),
    rgba(6, 63, 106, 0.85)
  );
  border: 1px solid rgba(46, 125, 170, 0.25);
  border-radius: 16px;
  padding: 32px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.smart-banner-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--gmo-text-muted, #8a9ba8);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.smart-banner-modal__close:hover {
  color: #fff;
}

.smart-banner-modal__header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.smart-banner-modal__logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.smart-banner-modal__title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gmo-light, #a6e2f7);
  margin: 0 0 12px;
}

.smart-banner-modal__desc {
  font-size: 14px;
  color: var(--gmo-text, #e0e0e0);
  line-height: 1.5;
  margin: 0 0 24px;
}

.smart-banner-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.smart-banner-modal__input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: rgba(46, 125, 170, 0.1);
  border: 1px solid rgba(46, 125, 170, 0.3);
  border-radius: 10px;
  color: var(--gmo-text, #e0e0e0);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.smart-banner-modal__input::placeholder {
  color: var(--gmo-text-muted, #8a9ba8);
}

.smart-banner-modal__input:focus {
  border-color: var(--gmo-main, #2e7daa);
}

.smart-banner-modal__error {
  font-size: 12px;
  color: #f87171;
  min-height: 0;
}

.smart-banner-modal__error:empty {
  display: none;
}

.smart-banner-modal__submit {
  height: 44px;
  background: var(--gmo-main, #2e7daa);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smart-banner-modal__submit:hover {
  opacity: 0.85;
}

.smart-banner-modal__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.smart-banner-modal__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sb-spin 0.6s linear infinite;
}

@keyframes sb-spin {
  to { transform: rotate(360deg); }
}

/* ── Modal success state ──────────────── */

.smart-banner-modal__success-state {
  text-align: center;
  padding: 16px 0;
}

.smart-banner-modal__success-msg {
  font-size: 15px;
  color: var(--gmo-text, #e0e0e0);
  line-height: 1.5;
  margin: 0 0 20px;
}

.smart-banner-modal__ok {
  height: 44px;
  padding: 0 32px;
  background: var(--gmo-main, #2e7daa);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
}

.smart-banner-modal__ok:hover {
  opacity: 0.85;
}
