/* ===================================================
   FLARESALE — COMPONENT STYLES
   =================================================== */

/* ─── SECTION DIVIDER ────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-2), transparent);
  margin: 0;
}

/* ─── BADGE ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-primary {
  background: rgba(99,102,241,0.15);
  color: var(--color-primary-h);
  border: 1px solid rgba(99,102,241,0.25);
}

.badge-success {
  background: rgba(16,185,129,0.15);
  color: var(--color-green);
  border: 1px solid rgba(16,185,129,0.25);
}

.badge-accent {
  background: rgba(6,182,212,0.15);
  color: var(--color-accent);
  border: 1px solid rgba(6,182,212,0.25);
}

/* ─── TOOLTIP ────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 100;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ─── INPUT ──────────────────────────────────────── */
.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-base);
}

.input::placeholder { color: var(--text-muted); }

.input:focus {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: rgba(99,102,241,0.04);
}

/* ─── NOTIFICATION PILL ──────────────────────────── */
.notif-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
}

.notif-pill strong { color: var(--text-primary); font-weight: 600; }

.notif-avatar-group {
  display: flex;
}

.notif-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  margin-left: -6px;
  background: rgba(99,102,241,0.3);
  color: var(--color-primary-h);
}

.notif-avatar:first-child { margin-left: 0; }

/* ─── LOGO MARK ──────────────────────────────────── */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--gradient-primary);
  font-size: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(99,102,241,0.5);
}

.logo-mark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: rgba(255,255,255,0.15);
  border-radius: inherit;
}

/* ─── PROGRESS BAR ───────────────────────────────── */
.progress-bar {
  height: 4px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── CHIP ───────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: rgba(99,102,241,0.3);
  color: var(--color-primary-h);
  background: rgba(99,102,241,0.06);
}

/* ─── ICON BUTTON ────────────────────────────────── */
.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
  color: var(--color-primary-h);
}

/* ─── STAT BLOCK ─────────────────────────────────── */
.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.stat-block:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── INTEGRATION ICON ───────────────────────────── */
.integration-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-base);
}

.integration-icon:hover {
  border-color: rgba(99,102,241,0.3);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ─── MOBILE MENU OVERLAY ────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,8,22,0.7);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ─── COOKIE BANNER ──────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 9999;
  background: rgba(8,13,32,0.95);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 560px;
  width: calc(100% - 48px);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
  opacity: 0;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--color-primary-h);
  text-decoration: underline;
  text-decoration-color: rgba(99,102,241,0.4);
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
