/* PromoBanner — thin strip under header, mobile only, guests only */

.promo-banner-strip {
  display: none;
}

@media (max-width: 1023px) {
  .promo-banner-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-hover) 100%);
    padding: 0 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .promo-banner-content {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1;
  }

  .promo-banner-icon {
    color: var(--text-on-accent);
    flex-shrink: 0;
  }

  .promo-banner-text {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-on-accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .promo-banner-details {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-on-accent);
    opacity: 0.8;
    white-space: nowrap;
    text-decoration: underline;
    flex-shrink: 0;
  }

  .promo-banner-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: var(--text-on-accent);
    opacity: 0.7;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    margin-left: 4px;
    -webkit-tap-highlight-color: transparent;
  }

  .promo-banner-close:active {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   Promo Banner Carousel
   ═══════════════════════════════════════════════════════════ */
.promo-carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  margin: 10px 10px 0;
}

@media (max-width: 1023px) {
  .promo-carousel-wrapper {
    overflow: visible;
  }
  .promo-carousel-track {
    border-radius: 5px;
    overflow-x: auto;
  }
}

/* ─── Mobile: native scroll track ─── */
.promo-carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.promo-carousel-track::-webkit-scrollbar {
  display: none;
}

/* ─── Slide ─── */
.promo-carousel-slide {
  min-width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  opacity: 1;
  background: var(--gradient-banner);
}

/* Desktop-only fade transition */
@media (min-width: 1024px) {
  .promo-carousel-slide {
    transition: opacity 0.2s ease;
  }
}
.promo-carousel-slide.fading {
  opacity: 0;
}

/* ─── Content (overlays image, z-index above) ─── */
.promo-carousel-content {
  position: relative;
  z-index: 2;
  max-width: 70%;
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.promo-carousel-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-carousel-title {
  font-size: 1em;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.promo-carousel-desc {
  font-size: 0.7em;
  color: var(--text-secondary);
  line-height: 1.3;
  font-weight: 600;
}

/* Bottom section */
.promo-carousel-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.promo-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: var(--black-40);
  /* border: 1px solid var(--black-40); */
  border-radius: 5px;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.promo-carousel-btn:hover {
  background: var(--black-60);
}
.promo-carousel-btn:active {
  opacity: 0.8;
}

/* Nav: counter + arrows (desktop only) */
.promo-carousel-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-carousel-counter {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 30px;
}

.promo-carousel-arrow-icon {
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
}
.promo-carousel-arrow-icon:hover {
  color: var(--text-primary);
}

/* ─── Image (absolute, right edge, full height) ─── */
.promo-carousel-image {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 1;
  pointer-events: none;
}
.promo-carousel-image img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* ─── Mobile: progress dots ─── */
.promo-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 2px;
}

.promo-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: width 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.promo-carousel-dot:first-child,
.promo-carousel-dot:last-child {
  width: 4px;
  height: 4px;
  border-radius: 2px;
}

.promo-carousel-dot:first-child.active,
.promo-carousel-dot:last-child.active {
  width: 28px;
  height: 6px;
  border-radius: 3px;
}

.promo-carousel-dot.active {
  width: 28px;
  background: rgba(255,255,255,0.1);
}

.promo-carousel-dot-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: rgba(255,255,255,0.45);
  animation: dotProgress linear forwards;
}

@keyframes dotProgress {
  from { width: 0; }
  to { width: 100%; }
}

@media (min-width: 1024px) {
  .promo-carousel-dots { display: none; }
}

/* ─── Desktop ─── */
@media (min-width: 1024px) {
  .promo-carousel-wrapper {
    margin: 10px 10px 0;
  }
  .promo-carousel-slide {
    height: 300px;
  }
  .promo-carousel-content {
    padding: 28px 32px;
    height: 100%;
    min-height: auto;
    box-sizing: border-box;
  }
  .promo-carousel-top {
    gap: 8px;
  }
  .promo-carousel-title {
    font-size: 2em;
  }
  .promo-carousel-desc {
    font-size: 1em;
  }
  .promo-carousel-bottom {
    gap: 16px;
  }
  .promo-carousel-btn {
    padding: 10px 28px;
    font-size: 0.92rem;
  }
}

/* PasswordSecurityPage.css */
.security-page {
  background: var(--bg-primary);
  padding-bottom: 80px;
}

.security-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.security-back {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-back svg {
  width: 24px;
  height: 24px;
}

.security-header h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.security-content {
  padding: 20px;
  margin: 0 auto;
}

.security-card {
  background: var(--bg-secondary);
  /* border: 1px solid var(--border-color); */
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.security-card-header {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.security-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-card-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.security-card-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.security-card-header p {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
}

.security-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  margin-bottom: 20px;
  color: #22c55e;
  font-size: 14px;
}

.security-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.security-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  margin-bottom: 20px;
  color: #ef4444;
  font-size: 14px;
}

.security-error svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.security-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.security-input-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.security-input-group input {
  background: #0d0d0e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.security-input-group input:focus {
  border-color: var(--accent-green);
}

.security-input-group input::placeholder {
  color: var(--text-quaternary);
}

.security-hint {
  font-size: 12px;
  color: var(--text-quaternary);
}

.security-submit {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 10px;
}

.security-submit:hover:not(:disabled) {
  opacity: 0.9;
}

.security-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.security-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.security-info {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  padding: 20px;
}

.security-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
  margin: 0 0 12px;
}

.security-info ul {
  margin: 0;
  padding-left: 20px;
}

.security-info li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.security-info li:last-child {
  margin-bottom: 0;
}

/* ============ 2FA ============ */
.tfa-icon {
  background: linear-gradient(135deg, #0A84FF 0%, #0066CC 100%) !important;
}

.tfa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Proxima Nova', sans-serif;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  border: none;
}

.tfa-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tfa-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.tfa-btn-primary {
  background: var(--accent-blue);
  color: #fff;
}

.tfa-btn-primary:hover:not(:disabled) {
  opacity: 0.9;
}

.tfa-btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--separator);
}

.tfa-btn-secondary:hover:not(:disabled) {
  background: var(--bg-tertiary);
}

.tfa-btn-danger {
  background: var(--accent-red);
  color: #fff;
}

.tfa-btn-danger:hover:not(:disabled) {
  opacity: 0.9;
}

.tfa-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 16px;
}

/* Setup top: QR + key stacked, left-aligned, capped to QR width */
.tfa-setup-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  max-width: 320px;
}

@media (max-width: 560px) {
  .tfa-setup-top {
    align-items: center;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* QR */
.tfa-qr-wrap {
  flex-shrink: 0;
}

.tfa-qr {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

/* Manual key */
.tfa-manual-key {
  flex: 1 1;
  min-width: 0;
}

.tfa-key-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.tfa-key-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--separator);
  border-radius: 8px;
  padding: 10px 14px;
}

.tfa-key-code {
  flex: 1 1;
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.5;
}

.tfa-copy-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--accent-blue);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Proxima Nova', sans-serif;
  flex-shrink: 0;
  transition: background 0.15s;
}

.tfa-copy-btn:hover {
  background: var(--accent-blue-muted);
}

/* Code input */
.tfa-verify-section {
  border-top: 1px solid var(--separator-light);
  padding-top: 20px;
}

/* Backup codes */
.tfa-backup-warning {
  background: rgba(230, 126, 34, 0.08);
  border: 1px solid rgba(230, 126, 34, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: #e67e22;
  color: var(--accent-orange, #e67e22);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.tfa-codes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: 20px;
}

.tfa-backup-code {
  background: var(--bg-tertiary);
  border: 1px solid var(--separator);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.tfa-backup-actions {
  display: flex;
  gap: 10px;
}

.tfa-backup-actions .tfa-btn {
  flex: 1 1;
}

/* Email fallback */
.tfa-email-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.tfa-cant-access {
  font-size: 13px;
  color: var(--text-tertiary);
}

.tfa-email-btn {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Proxima Nova', sans-serif;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.tfa-email-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}

/* Mobile */
@media (max-width: 480px) {
  .security-content {
    padding: 16px;
  }

  .security-card {
    padding: 20px;
  }

  .security-card-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

