/* ============================================
   KanXing Component Library
   Reusable UI Components
   ============================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-default);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow-sm);
}
.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--color-bg-glass);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--color-bg-glass-hover);
  border-color: var(--color-border-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.btn-ghost:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-glass);
}

.btn-cta {
  background: var(--gradient-gold);
  color: #1a1a1a;
  font-weight: var(--fw-bold);
  box-shadow: var(--shadow-gold);
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-base);
  border-radius: var(--radius-full);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
}

.btn-danger {
  background: var(--color-error);
  color: #fff;
}
.btn-danger:hover {
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-light);
  border: 1px solid var(--color-primary);
}
.btn-outline:hover {
  background: rgba(124, 58, 237, 0.1);
}

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--fs-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--fs-md); }
.btn-xl { padding: var(--space-5) var(--space-10); font-size: var(--fs-lg); }
.btn-block { width: 100%; }
.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}
.btn-icon-sm { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); }
.btn-icon-lg { width: 52px; height: 52px; padding: 0; border-radius: var(--radius-lg); }
.btn-round { border-radius: var(--radius-full); }

/* Ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple-effect 0.6s ease-out;
  pointer-events: none;
}
@keyframes ripple-effect {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  backdrop-filter: blur(20px);
  transition: all var(--duration-normal) var(--ease-default);
}
.card:hover {
  border-color: var(--color-border-hover);
}

.card-glass {
  background: var(--gradient-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card-interactive {
  cursor: pointer;
}
.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-sm);
  border-color: rgba(124, 58, 237, 0.3);
}

.card-gradient {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.card-featured {
  background: var(--gradient-card);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-glow-sm);
  position: relative;
  overflow: hidden;
}
.card-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.card-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}
.card-body { }
.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

/* ---------- Navigation: Bottom Tab Bar ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-height);
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--space-2);
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: var(--z-fixed);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
  color: var(--color-text-tertiary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  transition: all var(--duration-fast) var(--ease-default);
  position: relative;
  text-decoration: none;
  min-width: 60px;
}
.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--color-primary-light);
}
.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}
.bottom-nav-icon {
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.bottom-nav-label {
  font-size: 10px;
  letter-spacing: 0.02em;
}
.nav-scan-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -20px;
  box-shadow: var(--shadow-glow);
  font-size: 24px;
  color: #fff;
  transition: all var(--duration-normal) var(--ease-default);
}
.nav-scan-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px var(--color-primary-glow);
}

@media (min-width: 1024px) {
  .bottom-nav { display: none; }
}

/* ---------- Navigation: Desktop Sidebar ---------- */
.sidebar {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--color-border);
  z-index: var(--z-fixed);
  flex-direction: column;
  padding: var(--space-6) 0;
  overflow-y: auto;
}
@media (min-width: 1024px) {
  .sidebar { display: flex; }
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-6);
  margin-bottom: var(--space-8);
}
.sidebar-logo-icon {
  width: 40px; height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sidebar-logo-text {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0 var(--space-3);
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: all var(--duration-fast) var(--ease-default);
  text-decoration: none;
}
.sidebar-nav-item:hover {
  background: var(--color-bg-glass);
  color: var(--color-text-primary);
}
.sidebar-nav-item.active {
  background: rgba(124, 58, 237, 0.15);
  color: var(--color-primary-light);
}
.sidebar-nav-item .nav-icon {
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sidebar-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-divider);
  margin-top: auto;
}

/* ---------- Page Header ---------- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-4);
}
.page-header-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
}
.page-header-subtitle {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}

/* ---------- Modal / Dialog ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-default);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--duration-normal) var(--ease-spring);
}
.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.modal-close {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}
.modal-close:hover {
  background: var(--color-bg-glass);
  color: var(--color-text-primary);
}

/* ---------- Toast Notification ---------- */
.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 400px;
  animation: slide-in-right var(--duration-normal) var(--ease-spring) both;
}
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-message { font-size: var(--fs-sm); flex: 1; }
.toast-success { border-left: 3px solid var(--color-success); }
.toast-error   { border-left: 3px solid var(--color-error); }
.toast-warning { border-left: 3px solid var(--color-warning); }
.toast-info    { border-left: 3px solid var(--color-info); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  line-height: 1;
}
.badge-primary {
  background: rgba(124, 58, 237, 0.2);
  color: var(--color-primary-light);
}
.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-success);
}
.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--color-warning);
}
.badge-info {
  background: rgba(6, 182, 212, 0.2);
  color: var(--color-accent-cyan);
}
.badge-gold {
  background: var(--gradient-gold);
  color: #1a1a1a;
}
.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: 11px;
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
  background: var(--color-bg-glass);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

/* ---------- Avatar ---------- */
.avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: var(--fs-xs); }
.avatar-lg { width: 56px; height: 56px; font-size: var(--fs-lg); }
.avatar-xl { width: 80px; height: 80px; font-size: var(--fs-2xl); }

.avatar-group {
  display: flex;
}
.avatar-group .avatar {
  border: 2px solid var(--color-bg-primary);
  margin-left: -8px;
}
.avatar-group .avatar:first-child { margin-left: 0; }

/* ---------- Progress Bar ---------- */
.progress {
  width: 100%;
  height: 6px;
  background: var(--color-bg-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-default);
}
.progress-sm { height: 4px; }
.progress-lg { height: 10px; }

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-5);
}
.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}
.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--fs-sm);
  transition: all var(--duration-fast) var(--ease-default);
}
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--fs-sm);
  appearance: none;
  cursor: pointer;
}

.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--fs-sm);
  resize: vertical;
  min-height: 100px;
}
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 48px; height: 26px;
  cursor: pointer;
}
.toggle input { display: none; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-default);
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--color-text-secondary);
  border-radius: 50%;
  transition: all var(--duration-normal) var(--ease-spring);
}
.toggle input:checked + .toggle-slider {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.toggle input:checked + .toggle-slider::after {
  transform: translateX(22px);
  background: #fff;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--color-bg-glass);
  border-radius: var(--radius-md);
  padding: var(--space-1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-item {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}
.tab-item:hover { color: var(--color-text-primary); }
.tab-item.active {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- Stat Card ---------- */
.stat-card {
  text-align: center;
  padding: var(--space-4);
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
}
.stat-label {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}

/* ---------- Score Ring ---------- */
.score-ring {
  position: relative;
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-ring svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.score-ring circle {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}
.score-ring .ring-bg {
  stroke: var(--color-bg-glass);
}
.score-ring .ring-fill {
  stroke: var(--color-primary-light);
  transition: stroke-dashoffset 1s var(--ease-default);
}
.score-ring-value {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}
.score-ring-sm { width: 56px; height: 56px; }
.score-ring-sm .score-ring-value { font-size: var(--fs-sm); }

/* ---------- Skeleton Loading ---------- */
.skeleton {
  background: linear-gradient(90deg,
    var(--color-bg-glass) 25%,
    rgba(255,255,255,0.06) 50%,
    var(--color-bg-glass) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text { height: 14px; margin-bottom: var(--space-2); }
.skeleton-title { height: 24px; width: 60%; margin-bottom: var(--space-3); }
.skeleton-circle { border-radius: 50%; }
.skeleton-card { height: 120px; border-radius: var(--radius-lg); }

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-divider);
  margin: var(--space-4) 0;
}
.divider-with-text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-tertiary);
  font-size: var(--fs-xs);
}
.divider-with-text::before,
.divider-with-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}

/* ---------- Empty State ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  text-align: center;
}
.empty-state-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}
.empty-state-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  max-width: 320px;
}

/* ---------- List Item ---------- */
.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-default);
  cursor: pointer;
}
.list-item:hover {
  background: var(--color-bg-glass);
}
.list-item-content { flex: 1; min-width: 0; }
.list-item-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-item-subtitle {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  margin-top: 2px;
}
.list-item-action {
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

/* ---------- Chip / Pill ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 6px var(--space-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-full);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}
.chip:hover {
  background: var(--color-bg-glass-hover);
  border-color: var(--color-border-hover);
}
.chip.active {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--color-primary);
  color: var(--color-primary-light);
}

/* ---------- Countdown Timer ---------- */
.countdown {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.countdown-block {
  text-align: center;
  background: var(--color-bg-glass);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  min-width: 48px;
}
.countdown-value {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: 1;
}
.countdown-label {
  font-size: 9px;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.countdown-sep {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text-tertiary);
  animation: breathing 1s ease-in-out infinite;
}

/* ---------- Rating Stars ---------- */
.rating {
  display: flex;
  gap: 2px;
  color: var(--color-accent-gold);
  font-size: var(--fs-sm);
}
.rating-empty { color: var(--color-text-muted); }

/* ---------- Section Header ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}
.section-action {
  font-size: var(--fs-xs);
  color: var(--color-primary-light);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-default);
}
.section-action:hover { color: var(--color-accent-cyan); }

/* ---------- Horizontal Scroll ---------- */
.h-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }

/* ---------- Price Tag ---------- */
.price {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
}
.price-original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
}
.price-discount {
  color: var(--color-accent-gold);
}

/* ---------- Blur Paywall ---------- */
.paywall-blur {
  position: relative;
}
.paywall-blur-content {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}
.paywall-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background: rgba(10, 10, 26, 0.5);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(2px);
}
.paywall-lock-icon {
  width: 56px; height: 56px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-glow);
}

/* ---------- Radar Chart Container ---------- */
.radar-chart {
  width: 200px;
  height: 200px;
  position: relative;
}

/* ---------- Floating Action Button ---------- */
.fab {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--space-6));
  right: var(--space-6);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: var(--shadow-glow);
  z-index: var(--z-sticky);
  transition: all var(--duration-normal) var(--ease-default);
}
.fab:hover {
  transform: scale(1.1);
}
@media (min-width: 1024px) {
  .fab { bottom: var(--space-8); right: var(--space-8); }
}

/* ---------- Notification Dot ---------- */
.notification-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  background: var(--color-error);
  border-radius: 50%;
  border: 2px solid var(--color-bg-primary);
}

/* ---------- Swipe Carousel Indicators ---------- */
.carousel-dots {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  padding: var(--space-4) 0;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}
.carousel-dot.active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
}
