/* ============================================
   Casino Lobby Manager – Design System
   ============================================ */

/* ============================================
   Casino Lobby login View Styles
   ============================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #161233 0%, #060814 100%);
  font-family: 'Inter', sans-serif;
  color: var(--text-primary, #ffffff);
  padding: var(--space-md, 16px);
  box-sizing: border-box;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(15, 18, 36, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg, 12px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 
              0 0 30px rgba(245, 158, 11, 0.05);
  animation: loginFadeIn 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 16px);
  box-sizing: border-box;
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-sm, 8px);
}

.login-logo {
  font-size: 3rem;
  margin-bottom: var(--space-xs, 4px);
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
  animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.6)); }
}

.login-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
}

.login-header h1 span {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-header p {
  font-size: 13px;
  color: var(--text-muted, #8a8f9d);
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 16px);
}

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-input-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, #b3b8c3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-field {
  width: 100%;
  padding: 12px 16px;
  background: rgba(10, 12, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 8px);
  color: #ffffff;
  font-size: 14px;
  transition: all 200ms ease;
  box-sizing: border-box;
}

.login-field:focus {
  border-color: var(--accent-gold, #f59e0b);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.15);
  background: rgba(10, 12, 22, 0.95);
  outline: none;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary, #b3b8c3);
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  cursor: pointer;
  accent-color: var(--accent-gold, #f59e0b);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md, 8px);
  color: #060814;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 250ms ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.login-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.login-btn:active {
  transform: translateY(0);
}

.login-error {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-md, 8px);
  color: var(--accent-rose, #f43f5e);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: shakeError 400ms ease;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.login-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted, #8a8f9d);
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: var(--space-md, 16px);
  margin-top: 4px;
}

/* ==========================================================================
   Lobby Position Map — Styles
   ========================================================================== */

/* ---------- Header & Controls ---------- */

.lobby-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.lobby-header .lobby-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary, #f1f5f9);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.lobby-header .lobby-title .title-icon {
  font-size: 1.5rem;
}

.lobby-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Week selector custom dropdown */

.lobby-controls .week-selector {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-glass, rgba(17, 24, 39, 0.7));
  color: var(--text-primary, #f1f5f9);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 10px;
  padding: 0.55rem 2.2rem 0.55rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6' stroke='%2394a3b8' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 12px;
  min-width: 140px;
}

.lobby-controls .week-selector:hover,
.lobby-controls .week-selector:focus {
  border-color: var(--accent-gold, #f59e0b);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
  outline: none;
}

.lobby-controls .week-selector option {
  background: var(--bg-secondary, #111827);
  color: var(--text-primary, #f1f5f9);
}

/* Control buttons (view toggle, upload, scan) */

.lobby-controls .control-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--bg-glass, rgba(17, 24, 39, 0.7));
  color: var(--text-secondary, #94a3b8);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.lobby-controls .control-btn:hover {
  color: var(--text-primary, #f1f5f9);
  border-color: var(--accent-gold, #f59e0b);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.lobby-controls .control-btn.active {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold, #f59e0b);
  border-color: rgba(245, 158, 11, 0.3);
}

.lobby-controls .control-btn .btn-icon {
  font-size: 1rem;
}

.lobby-controls .control-btn.primary-btn {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold, #f59e0b);
  border-color: rgba(245, 158, 11, 0.25);
}

.lobby-controls .control-btn.primary-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

/* ---------- Category Section ---------- */

.category-section {
  margin-bottom: 2rem;
  background: var(--bg-glass, rgba(17, 24, 39, 0.7));
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease;
}

.category-section:hover {
  border-color: rgba(148, 163, 184, 0.18);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  transition: border-color 0.3s ease;
}

.category-header:hover {
  border-bottom-color: rgba(245, 158, 11, 0.2);
}

.category-header .category-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.category-header .category-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.category-header .category-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  margin: 0;
  transition: color 0.25s ease;
}

.category-header:hover .category-name {
  color: var(--accent-gold, #f59e0b);
}

.category-header .category-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  background: rgba(148, 163, 184, 0.08);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
}

.category-header .category-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-header .summary-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-secondary, #94a3b8);
}

.category-header .summary-stat .stat-label {
  color: var(--text-muted, #64748b);
}

.category-header .summary-stat .stat-value {
  font-weight: 500;
  color: var(--text-primary, #f1f5f9);
}

.category-header .summary-stat .trend-up {
  color: var(--accent-emerald, #10b981);
}

.category-header .summary-stat .trend-down {
  color: var(--accent-rose, #f43f5e);
}

.category-header .collapse-toggle {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-secondary, #94a3b8);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.category-header .collapse-toggle:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold, #f59e0b);
}

.category-header .collapse-toggle .toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.category-section.collapsed .collapse-toggle .toggle-icon {
  transform: rotate(-90deg);
}

/* ---------- Positions Grid ---------- */

.positions-grid-wrapper {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 1;
}

.category-section.collapsed .positions-grid-wrapper {
  max-height: 0 !important;
  opacity: 0;
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
}

@media (max-width: 1280px) {
  .positions-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1024px) {
  .positions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .positions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lobby-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-header .category-summary {
    display: none;
  }
}

@media (max-width: 560px) {
  .positions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Position Card ---------- */

.position-card {
  background: var(--bg-glass, rgba(17, 24, 39, 0.7));
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.position-card:hover {
  transform: scale(1.03);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.12), 0 0 0 1px rgba(245, 158, 11, 0.1);
}

.position-card .card-thumbnail {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.position-card .card-thumbnail .thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.position-card .card-thumbnail .position-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(245, 158, 11, 0.9);
  color: #0a0e1a;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.position-card .card-thumbnail .change-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}

.position-card .card-thumbnail .change-badge.positive {
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
}

.position-card .card-thumbnail .change-badge.negative {
  background: rgba(244, 63, 94, 0.85);
  color: #fff;
}

.position-card .card-thumbnail .change-badge.neutral {
  background: rgba(148, 163, 184, 0.6);
  color: #fff;
}

.position-card .card-thumbnail .new-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  animation: pulse-new 2s ease-in-out infinite;
}

.position-card .card-body {
  padding: 0.75rem;
}

.position-card .game-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary, #f1f5f9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.3;
}

.position-card .game-provider {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-secondary, #94a3b8);
  margin: 0.15rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.position-card .card-stats {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 0.5rem;
  gap: 0.4rem;
}

.position-card .stat-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.position-card .stat-item .stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
}

.position-card .stat-item .stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary, #f1f5f9);
  margin-top: 0.15rem;
  line-height: 1.2;
}

/* Empty slot card */

.position-card.empty-slot {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.15);
  cursor: default;
}

.position-card.empty-slot:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.15);
}

.position-card.empty-slot .card-thumbnail {
  background: rgba(30, 41, 59, 0.4);
}

.position-card.empty-slot .empty-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  flex-direction: column;
  gap: 0.3rem;
}

.position-card.empty-slot .empty-label .empty-icon {
  font-size: 1.3rem;
  opacity: 0.5;
}

/* New game animated border */

.position-card.is-new {
  animation: border-pulse-purple 2.5s ease-in-out infinite;
}

@keyframes border-pulse-purple {
  0%, 100% {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
  50% {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
  }
}

@keyframes pulse-new {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ---------- Position History Timeline ---------- */

.position-history-timeline {
  position: relative;
  padding-left: 1.5rem;
}

.position-history-timeline::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-gold, #f59e0b) 0%, var(--accent-purple, #8b5cf6) 100%);
  border-radius: 1px;
  opacity: 0.5;
}

.position-history-timeline .timeline-item {
  position: relative;
  padding: 0.6rem 0;
}

.position-history-timeline .timeline-item::before {
  content: '';
  position: absolute;
  left: -1.18rem;
  top: 0.9rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-secondary, #111827);
  border: 2px solid var(--accent-gold, #f59e0b);
  z-index: 1;
}

.position-history-timeline .timeline-item.current::before {
  background: var(--accent-gold, #f59e0b);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.position-history-timeline .timeline-week {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 0.2rem;
}

.position-history-timeline .timeline-game {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary, #f1f5f9);
}

.position-history-timeline .timeline-stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--text-secondary, #94a3b8);
}

.position-history-timeline .timeline-item.empty-week .timeline-game {
  color: var(--text-muted, #64748b);
  font-style: italic;
  font-weight: 400;
}

/* ---------- Empty State ---------- */

.lobby-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.lobby-empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.lobby-empty-state .empty-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  margin: 0 0 0.5rem;
}

.lobby-empty-state .empty-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary, #94a3b8);
  max-width: 400px;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.lobby-empty-state .empty-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(139, 92, 246, 0.15));
  color: var(--accent-gold, #f59e0b);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lobby-empty-state .empty-action-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(139, 92, 246, 0.25));
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
  transform: translateY(-2px);
}

/* ---------- Modal Position Details ---------- */

.position-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
}

.position-detail-header .detail-thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.position-detail-header .detail-info {
  min-width: 0;
}

.position-detail-header .detail-info .detail-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  margin: 0;
}

.position-detail-header .detail-info .detail-provider {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-secondary, #94a3b8);
  margin-top: 0.15rem;
}

.position-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.position-detail-stats .detail-stat-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}

.position-detail-stats .detail-stat-card .detail-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.position-detail-stats .detail-stat-card .detail-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  margin-top: 0.25rem;
}

.position-detail-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.position-chart-container {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  height: 180px;
  position: relative;
}

/* ---------- List View ---------- */

.positions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.25rem;
}

.position-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.position-list-item:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(245, 158, 11, 0.3);
}

.position-list-item .list-position-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold, #f59e0b);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  min-width: 36px;
  text-align: center;
  letter-spacing: 0.3px;
}

.position-list-item .list-thumbnail {
  width: 44px;
  height: 33px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.position-list-item .list-game-info {
  flex: 1;
  min-width: 0;
}

.position-list-item .list-game-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-primary, #f1f5f9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.position-list-item .list-game-provider {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--text-secondary, #94a3b8);
}

.position-list-item .list-stat {
  text-align: right;
  min-width: 60px;
}

.position-list-item .list-stat .list-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary, #f1f5f9);
}

.position-list-item .list-stat .list-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.63rem;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.position-list-item .list-change {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 52px;
  text-align: right;
}

.position-list-item .list-change.positive {
  color: var(--accent-emerald, #10b981);
}

.position-list-item .list-change.negative {
  color: var(--accent-rose, #f43f5e);
}

.position-list-item .list-change.neutral {
  color: var(--text-muted, #64748b);
}

.position-list-item.empty-slot {
  opacity: 0.45;
  cursor: default;
  border-style: dashed;
}

.position-list-item.empty-slot:hover {
  background: rgba(30, 41, 59, 0.3);
  border-color: var(--border-subtle, rgba(148, 163, 184, 0.1));
}

/* ============================================
   SEO Optimizer Styles
   ============================================ */

.seo-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.seo-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 1024px) {
  .seo-grid {
    grid-template-columns: 1fr;
  }
}

/* Game List Sidebar */

.seo-sidebar-card {
  display: flex;
  flex-direction: column;
  max-height: 700px;
  overflow: hidden;
}

.seo-search-box {
  position: relative;
  margin-bottom: var(--space-md);
}

.seo-search-input {
  width: 100%;
  padding: 10px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color var(--transition-fast);
}

.seo-search-input:focus {
  border-color: var(--accent-gold);
}

.seo-game-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-right: 4px;
}

.seo-game-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.seo-game-item:hover {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.1);
}

.seo-game-item.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
}

.seo-game-icon {
  font-size: 16px;
  opacity: 0.8;
}

.seo-game-name-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.seo-game-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-game-provider {
  font-size: 11px;
  color: var(--text-muted);
}

/* Generation Panel */

.seo-main-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: 500px;
}

.seo-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .seo-inputs-row {
    grid-template-columns: 1fr;
  }
}

.seo-tweak-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
}

.seo-tweak-link {
  font-size: 12px;
  color: var(--accent-purple);
  cursor: pointer;
  text-decoration: underline;
}

.seo-tweak-link:hover {
  color: var(--text-primary);
}

.seo-output-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
  animation: fadeIn var(--transition-base);
}

.seo-output-block {
  background: rgba(10, 14, 26, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.seo-output-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: var(--space-xs);
}

.seo-output-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--accent-gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seo-copy-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.seo-copy-btn:hover {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
}

.seo-output-content {
  color: var(--text-primary);
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.seo-output-editable {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  line-height: 1.6;
  padding: 4px 0;
}

.seo-output-editable:focus {
  border-bottom-color: var(--accent-gold);
  outline: none;
}

.seo-save-tweak-btn {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.seo-save-tweak-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  color: var(--text-primary);
}

/* Brand Replacer Panel */

.replacer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .replacer-layout {
    grid-template-columns: 1fr;
  }
}

.replacer-rules-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.replacer-rule-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.replacer-arrow {
  color: var(--text-muted);
  font-weight: bold;
}

.replacer-rule-remove {
  background: transparent;
  color: var(--accent-rose);
  font-size: 16px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.replacer-rule-remove:hover {
  background: rgba(244, 63, 94, 0.1);
}

.replacer-text-areas {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.replacer-textarea {
  width: 100%;
  height: 180px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  padding: 10px;
  resize: vertical;
  line-height: 1.5;
}

.replacer-textarea:focus {
  border-color: var(--accent-gold);
}

.visual-article-preview h1 {
  font-family: 'Outfit', sans-serif;
  color: var(--accent-gold);
  font-size: 20px;
  margin: 12px 0 6px 0;
}

.visual-article-preview h2 {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 16px;
  margin: 12px 0 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

.visual-article-preview h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-secondary);
  font-size: 14px;
  margin: 10px 0 4px 0;
}

.visual-article-preview a {
  color: var(--accent-gold);
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.2s;
}

.visual-article-preview a:hover {
  opacity: 0.8;
}

.visual-article-preview strong {
  color: #ffffff;
}

.visual-article-preview ul, .visual-article-preview ol {
  padding-left: 20px;
  margin: 8px 0;
}

.visual-article-preview li {
  margin-bottom: 4px;
}

/* Campaign Panel (Game/Provider of the Week) */

.campaign-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .campaign-layout {
    grid-template-columns: 1fr;
  }
}

.campaign-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sentence-count-badge {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.sentence-count-badge.error {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
}

/* Spreadsheet Automator Panel Styles */

.spreadsheet-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.excel-dropzone {
  border: 2px dashed rgba(245, 158, 11, 0.3);
  background: rgba(10, 14, 26, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.excel-dropzone:hover, .excel-dropzone.dragover {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.05);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.excel-dropzone-icon {
  font-size: 3rem;
  margin-bottom: var(--space-xs);
}

.excel-dropzone-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.excel-dropzone-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

.excel-config-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .excel-config-card {
    grid-template-columns: 1fr;
  }
}

.excel-mapping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.excel-mapping-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.excel-mapping-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.excel-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.excel-preview-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(10, 14, 26, 0.3);
}

.excel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.excel-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px var(--space-sm);
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  font-family: 'Outfit', sans-serif;
  position: sticky;
  top: 0;
  z-index: 10;
}

.excel-table td {
  padding: 10px var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.excel-table tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.row-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
}

.row-status-badge.missing {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-gold);
}

.row-status-badge.exists {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
}

.row-status-badge.processing {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.row-status-badge.success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.row-status-badge.error {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.excel-console-panel {
  background: #05070f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: #c4c9d4;
  height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.excel-console-log {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.4;
}

.excel-console-log.info {
  color: #c4c9d4;
}

.excel-console-log.success {
  color: var(--accent-emerald);
}

.excel-console-log.warn {
  color: var(--accent-gold);
}

.excel-console-log.error {
  color: var(--accent-rose);
}

.excel-console-log.api {
  color: var(--accent-purple);
}

.excel-actions-bar {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  margin-top: var(--space-sm);
}

.excel-progress-container {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
  height: 6px;
  overflow: hidden;
  margin-top: var(--space-xs);
  display: none;
}

.excel-progress-bar {
  background: var(--accent-gold);
  height: 100%;
  width: 0%;
  transition: width 300ms ease;
}

/* ============================================================
   AI Thumbnail Studio & Settings — Casino Glassmorphism Theme
   ============================================================ */

/* ---------- Studio Header ---------- */

.thumb-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.thumb-studio-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary, #f1f5f9);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.thumb-studio-header h2 .icon {
  color: var(--accent-gold, #f59e0b);
}

.thumb-studio-header .header-actions {
  display: flex;
  gap: 0.75rem;
}

/* ---------- Scanner Section ---------- */

.thumb-scanner-section {
  background: var(--bg-glass, rgba(17, 24, 39, 0.7));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.thumb-scanner-section h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  margin: 0;
  font-size: 1.1rem;
}

.thumb-scanner-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.thumb-scanner-input {
  flex: 1;
  background: var(--bg-primary, #0a0e1a);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary, #f1f5f9);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.thumb-scanner-input::placeholder {
  color: var(--text-muted, #64748b);
}

.thumb-scanner-input:focus {
  border-color: var(--accent-gold, #f59e0b);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.thumb-scan-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-gold, #f59e0b), #d97706);
  color: #0a0e1a;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.thumb-scan-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.thumb-scan-btn:active {
  transform: translateY(0);
}

.thumb-scan-btn .scan-icon::before {
  content: '🔍';
  margin-right: 0.25rem;
}

/* ---------- Upload Area ---------- */

.thumb-upload-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.06);
  border: 1px dashed rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  flex-wrap: wrap;
}

.thumb-upload-area label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary, #94a3b8);
}

.thumb-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple, #8b5cf6);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.thumb-upload-btn:hover {
  background: rgba(139, 92, 246, 0.25);
}

.thumb-upload-title-input {
  background: var(--bg-primary, #0a0e1a);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: var(--text-primary, #f1f5f9);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.25s ease;
  min-width: 180px;
}

.thumb-upload-title-input:focus {
  border-color: var(--accent-gold, #f59e0b);
}

/* ---------- Gallery Grid ---------- */

.thumb-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .thumb-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .thumb-gallery {
    grid-template-columns: 1fr;
  }
}

/* ---------- Thumbnail Card ---------- */

.thumb-card {
  background: var(--bg-glass, rgba(17, 24, 39, 0.7));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.thumb-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12), 0 0 0 1px rgba(245, 158, 11, 0.15);
}

.thumb-card .thumb-image-container {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary, #0a0e1a);
}

.thumb-card .thumb-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.thumb-card:hover .thumb-image-container img {
  transform: scale(1.05);
}

.thumb-card .thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.thumb-card:hover .thumb-overlay {
  opacity: 1;
}

.thumb-card .thumb-info {
  padding: 1rem;
}

.thumb-card .thumb-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary, #f1f5f9);
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-card .thumb-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  margin: 0 0 0.75rem;
}

.thumb-card .thumb-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* ---------- Action Buttons ---------- */

.thumb-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.thumb-action-btn:hover {
  transform: translateY(-1px);
}

.thumb-action-btn:active {
  transform: translateY(0);
}

.thumb-action-btn.analyze {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple, #8b5cf6);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.thumb-action-btn.analyze:hover {
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}

.thumb-action-btn.enhance {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold, #f59e0b);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.thumb-action-btn.enhance:hover {
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.25);
}

.thumb-action-btn.animate {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.thumb-action-btn.animate:hover {
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.25);
}

.thumb-action-btn.ab-test {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose, #f43f5e);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.thumb-action-btn.ab-test:hover {
  box-shadow: 0 2px 12px rgba(244, 63, 94, 0.25);
}

/* ---------- Comparison Panel ---------- */

.thumb-comparison {
  display: flex;
  align-items: stretch;
  background: var(--bg-glass, rgba(17, 24, 39, 0.7));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.thumb-comparison .comparison-side {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.thumb-comparison .comparison-side .comparison-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  text-align: center;
  color: var(--text-secondary, #94a3b8);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
}

.thumb-comparison .comparison-side img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.thumb-comparison .comparison-side .comparison-details {
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.5;
}

.thumb-comparison .vs-divider {
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--accent-gold, #f59e0b), transparent);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.thumb-comparison .vs-divider .vs-badge {
  position: absolute;
  background: var(--accent-gold, #f59e0b);
  color: #0a0e1a;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  z-index: 1;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .thumb-comparison {
    flex-direction: column;
  }

  .thumb-comparison .vs-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent-gold, #f59e0b), transparent);
  }

  .thumb-comparison .vs-divider .vs-badge {
    position: relative;
  }
}

/* ---------- A/B Test Panel ---------- */

.ab-test-panel {
  background: var(--bg-glass, rgba(17, 24, 39, 0.7));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.ab-test-panel h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  margin: 0 0 1rem;
}

.ab-test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .ab-test-grid {
    grid-template-columns: 1fr;
  }
}

.ab-variant-card {
  background: var(--bg-secondary, #111827);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ab-variant-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}

.ab-variant-card .variant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
}

.ab-variant-card .variant-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-gold, #f59e0b);
}

.ab-variant-card .variant-improvement {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald, #10b981);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.ab-variant-card .variant-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-primary, #0a0e1a);
}

.ab-variant-card .variant-body {
  padding: 1rem;
}

.ab-variant-card .variant-description {
  font-size: 0.85rem;
  color: var(--text-primary, #f1f5f9);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.ab-variant-card .variant-hypothesis {
  font-size: 0.8rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.5;
  font-style: italic;
}

.ab-variant-card .variant-actions {
  padding: 0 1rem 1rem;
}

.ab-variant-card .generate-variant-btn {
  width: 100%;
  padding: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold, #f59e0b);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ab-variant-card .generate-variant-btn:hover {
  background: rgba(245, 158, 11, 0.2);
}

/* ---------- Animation Preview ---------- */

.animation-preview {
  position: relative;
  background: var(--bg-glass, rgba(17, 24, 39, 0.7));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.animation-preview .preview-area {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary, #0a0e1a);
}

.animation-preview .preview-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.animation-preview .shimmer-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.animation-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
}

.animation-controls .play-pause-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold, #f59e0b), #d97706);
  color: #0a0e1a;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.animation-controls .play-pause-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.35);
}

.animation-type-selector {
  display: flex;
  gap: 0;
  background: var(--bg-primary, #0a0e1a);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
}

.animation-type-selector .anim-tab {
  padding: 0.4rem 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.animation-type-selector .anim-tab:hover {
  color: var(--text-primary, #f1f5f9);
}

.animation-type-selector .anim-tab.active {
  background: var(--accent-gold, #f59e0b);
  color: #0a0e1a;
  font-weight: 600;
}

.animation-controls .speed-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.animation-controls .speed-label {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}

.animation-controls .speed-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: var(--bg-tertiary, #1e293b);
  border-radius: 2px;
  outline: none;
}

.animation-controls .speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gold, #f59e0b);
  cursor: pointer;
}

.animation-controls .speed-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gold, #f59e0b);
  border: none;
  cursor: pointer;
}

.animation-controls .export-btns {
  display: flex;
  gap: 0.5rem;
}

.animation-controls .export-btn {
  padding: 0.4rem 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  background: var(--bg-secondary, #111827);
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.animation-controls .export-btn:hover {
  border-color: var(--accent-gold, #f59e0b);
  color: var(--accent-gold, #f59e0b);
}

/* ---------- Animation Keyframes ---------- */

@keyframes thumb-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes thumb-shimmer {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(200%) rotate(25deg); }
}

@keyframes thumb-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.5), 0 0 60px rgba(245, 158, 11, 0.2); }
}

@keyframes thumb-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

@keyframes thumb-rotate {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1.5deg); }
  75% { transform: rotate(-1.5deg); }
}

@keyframes thumb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.anim-pulse img { animation: thumb-pulse var(--anim-speed, 2s) ease-in-out infinite; }

.anim-shimmer .shimmer-overlay {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 158, 11, 0.15) 40%,
    rgba(245, 158, 11, 0.3) 50%,
    rgba(245, 158, 11, 0.15) 60%,
    transparent 100%
  );
  animation: thumb-shimmer var(--anim-speed, 2s) ease-in-out infinite;
}

.anim-glow .preview-area { animation: thumb-glow var(--anim-speed, 2s) ease-in-out infinite; }

.anim-zoom img { animation: thumb-zoom var(--anim-speed, 4s) ease-in-out infinite alternate; }

.anim-rotate img { animation: thumb-rotate var(--anim-speed, 3s) ease-in-out infinite; }

.anim-float img { animation: thumb-float var(--anim-speed, 2.5s) ease-in-out infinite; }

@keyframes thumb-ken-burns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1.5%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}

@keyframes thumb-char-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.03); }
}

.anim-ken-burns img { animation: thumb-ken-burns var(--anim-speed, 3.5s) ease-in-out infinite; }

.anim-char-float img { animation: thumb-char-float var(--anim-speed, 2.5s) ease-in-out infinite; }

.anim-paused img,
.anim-paused .shimmer-overlay,
.anim-paused .preview-area {
  animation-play-state: paused !important;
}

/* ---------- AI Prompt / Chat ---------- */

.ai-prompt-area {
  position: relative;
  margin-bottom: 1rem;
}

.ai-prompt-area textarea {
  width: 100%;
  min-height: 80px;
  background: var(--bg-primary, #0a0e1a);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 12px;
  padding: 0.85rem 3.5rem 0.85rem 1rem;
  color: var(--text-primary, #f1f5f9);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  line-height: 1.5;
}

.ai-prompt-area textarea::placeholder {
  color: var(--text-muted, #64748b);
}

.ai-prompt-area textarea:focus {
  border-color: var(--accent-gold, #f59e0b);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.ai-prompt-area .send-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-gold, #f59e0b), #d97706);
  color: #0a0e1a;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.ai-prompt-area .send-btn:hover {
  transform: scale(1.08);
}

.ai-response-area {
  background: var(--bg-glass, rgba(17, 24, 39, 0.7));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 12px;
  padding: 1.25rem;
  min-height: 60px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-response-area .typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent-gold, #f59e0b);
  animation: blink-cursor 0.8s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- Loading Skeleton ---------- */

.thumb-loading {
  background: var(--bg-glass, rgba(17, 24, 39, 0.7));
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 16px;
  overflow: hidden;
}

.thumb-loading .skeleton-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    90deg,
    var(--bg-secondary, #111827) 25%,
    var(--bg-tertiary, #1e293b) 50%,
    var(--bg-secondary, #111827) 75%
  );
  background-size: 200% 100%;
  animation: shimmer-loading 1.5s infinite;
}

.thumb-loading .skeleton-info {
  padding: 1rem;
}

.thumb-loading .skeleton-title {
  height: 14px;
  width: 70%;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--bg-secondary, #111827) 25%,
    var(--bg-tertiary, #1e293b) 50%,
    var(--bg-secondary, #111827) 75%
  );
  background-size: 200% 100%;
  animation: shimmer-loading 1.5s infinite;
  margin-bottom: 0.75rem;
}

.thumb-loading .skeleton-actions {
  display: flex;
  gap: 0.5rem;
}

.thumb-loading .skeleton-btn {
  height: 24px;
  width: 60px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--bg-secondary, #111827) 25%,
    var(--bg-tertiary, #1e293b) 50%,
    var(--bg-secondary, #111827) 75%
  );
  background-size: 200% 100%;
  animation: shimmer-loading 1.5s infinite;
}

@keyframes shimmer-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Settings Section ---------- */

.settings-section {
  background: var(--bg-glass, rgba(17, 24, 39, 0.7));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.settings-section h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent-gold, #f59e0b);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.settings-input-group label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 0.4rem;
}

.settings-input {
  background: var(--bg-primary, #0a0e1a);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  color: var(--text-primary, #f1f5f9);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.settings-input:focus {
  border-color: var(--accent-gold, #f59e0b);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.settings-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-primary, #0a0e1a);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 10px;
  padding: 0.7rem 2.5rem 0.7rem 0.85rem;
  color: var(--text-primary, #f1f5f9);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.25s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' fill='none' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}

.settings-select:focus {
  border-color: var(--accent-gold, #f59e0b);
}

/* ---------- Toggle Switch ---------- */

.settings-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

.settings-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-toggle .toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--bg-tertiary, #1e293b);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.settings-toggle .toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted, #64748b);
  transition: transform 0.25s ease, background 0.25s ease;
}

.settings-toggle input:checked + .toggle-track {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-gold, #f59e0b);
}

.settings-toggle input:checked + .toggle-track::after {
  transform: translateX(20px);
  background: var(--accent-gold, #f59e0b);
}

.settings-toggle .toggle-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary, #94a3b8);
}

/* ---------- API Key Input ---------- */

.api-key-input {
  position: relative;
  display: flex;
  align-items: stretch;
}

.api-key-input input {
  flex: 1;
  background: var(--bg-primary, #0a0e1a);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 10px 0 0 10px;
  padding: 0.7rem 0.85rem;
  color: var(--text-primary, #f1f5f9);
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.25s ease;
  letter-spacing: 1px;
}

.api-key-input input:focus {
  border-color: var(--accent-gold, #f59e0b);
}

.api-key-input .toggle-visibility {
  background: var(--bg-tertiary, #1e293b);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-left: none;
  border-radius: 0 10px 10px 0;
  padding: 0 0.75rem;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.api-key-input .toggle-visibility:hover {
  color: var(--text-primary, #f1f5f9);
}

/* ---------- Connection Status ---------- */

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.connection-status.connected {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.connection-status.not-configured {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose, #f43f5e);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.connection-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.connection-status.connected .status-dot {
  background: var(--accent-emerald, #10b981);
}

.connection-status.not-configured .status-dot {
  background: var(--accent-rose, #f43f5e);
}

/* ---------- Settings Buttons ---------- */

.settings-btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.settings-btn:hover {
  transform: translateY(-1px);
}

.settings-btn:active {
  transform: translateY(0);
}

.settings-btn.primary {
  background: linear-gradient(135deg, var(--accent-gold, #f59e0b), #d97706);
  color: #0a0e1a;
  font-weight: 600;
}

.settings-btn.primary:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.settings-btn.secondary {
  background: var(--bg-tertiary, #1e293b);
  color: var(--text-secondary, #94a3b8);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
}

.settings-btn.secondary:hover {
  color: var(--text-primary, #f1f5f9);
}

.settings-btn.danger {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose, #f43f5e);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.settings-btn.danger:hover {
  background: rgba(244, 63, 94, 0.2);
}

/* ---------- Provider Selector ---------- */

.provider-selector {
  display: flex;
  gap: 0;
  background: var(--bg-primary, #0a0e1a);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  margin-bottom: 1.25rem;
}

.provider-selector .provider-option {
  flex: 1;
  padding: 0.65rem 1rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.provider-selector .provider-option:hover {
  color: var(--text-primary, #f1f5f9);
}

.provider-selector .provider-option.active {
  background: linear-gradient(135deg, var(--accent-gold, #f59e0b), #d97706);
  color: #0a0e1a;
  font-weight: 600;
}

/* ---------- Category Manager ---------- */

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-primary, #0a0e1a);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.category-item:hover {
  border-color: rgba(148, 163, 184, 0.2);
}

.category-item .cat-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
}

.category-item .cat-name {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary, #f1f5f9);
}

.category-item .cat-count {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

.category-item .cat-actions {
  display: flex;
  gap: 0.25rem;
}

.category-item .cat-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.category-item .cat-action-btn:hover {
  color: var(--text-primary, #f1f5f9);
  border-color: var(--border-subtle, rgba(148, 163, 184, 0.1));
}

/* ---------- Emoji Picker ---------- */

.emoji-picker {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 0.5rem;
  background: var(--bg-primary, #0a0e1a);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 10px;
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

.emoji-picker button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-picker button:hover {
  background: var(--bg-tertiary, #1e293b);
}

.emoji-picker button.selected {
  background: rgba(245, 158, 11, 0.2);
  outline: 2px solid var(--accent-gold, #f59e0b);
}

/* ---------- Analysis Panel ---------- */

.analysis-panel {
  background: var(--bg-glass, rgba(17, 24, 39, 0.7));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.analysis-panel .analysis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.analysis-panel .analysis-header h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  margin: 0;
}

.analysis-panel .analysis-header .close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  color: var(--text-muted, #64748b);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.analysis-panel .analysis-header .close-btn:hover {
  color: var(--accent-rose, #f43f5e);
  border-color: var(--accent-rose, #f43f5e);
}

.analysis-panel .analysis-image {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
}

.analysis-panel .suggestions-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.analysis-panel .suggestions-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.5;
  border-bottom: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
}

.analysis-panel .suggestions-list li:last-child {
  border-bottom: none;
}

.analysis-panel .suggestions-list li .suggestion-bullet {
  color: var(--accent-gold, #f59e0b);
  font-size: 0.75rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---------- Confirmation Modal ---------- */

.confirm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.confirm-modal {
  background: var(--bg-secondary, #111827);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.confirm-modal h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--text-primary, #f1f5f9);
  margin: 0 0 0.75rem;
}

.confirm-modal p {
  font-size: 0.9rem;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.confirm-modal .modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Toast Notification ---------- */

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary, #111827);
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.1));
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-primary, #f1f5f9);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  max-width: 320px;
}

.toast.success { border-left: 3px solid var(--accent-emerald, #10b981); }

.toast.error { border-left: 3px solid var(--accent-rose, #f43f5e); }

.toast.info { border-left: 3px solid var(--accent-purple, #8b5cf6); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ---------- Not Configured Banner ---------- */

.not-configured-banner {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.not-configured-banner .banner-icon {
  font-size: 1.5rem;
}

.not-configured-banner .banner-text {
  flex: 1;
}

.not-configured-banner .banner-text h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  margin: 0 0 0.25rem;
}

.not-configured-banner .banner-text p {
  font-size: 0.85rem;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
}

.not-configured-banner .configure-btn {
  padding: 0.5rem 1rem;
  background: var(--accent-rose, #f43f5e);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.not-configured-banner .configure-btn:hover {
  opacity: 0.85;
}

/* ---------- Data Usage Bar ---------- */

.data-usage-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-primary, #0a0e1a);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.data-usage-bar .usage-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-emerald, #10b981), var(--accent-gold, #f59e0b));
  transition: width 0.5s ease;
}

.data-usage-text {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

/* ============================================
   Analytics Module Styles
   Casino Lobby Management — Dark Glass Theme
   ============================================ */

/* ---------- Data Tabs ---------- */

.data-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.data-tabs .tab-btn {
  flex: 1;
  padding: 0.65rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.data-tabs .tab-btn:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.06);
}

.data-tabs .tab-btn.active {
  background: var(--bg-glass);
  color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.tab-content {
  display: none;
  animation: tabFadeIn 0.35s ease forwards;
}

.tab-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Analytics Header ---------- */

.analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.analytics-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.analytics-header .controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ---------- Upload Zone ---------- */

.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 2.5rem 2rem;
  border: 2px dashed rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-zone:hover {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.04);
}

.upload-zone.drag-over {
  border-style: solid;
  border-color: var(--accent-gold);
  transform: scale(1.015);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.1);
}

.upload-zone.has-file {
  border-style: solid;
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.05);
}

.upload-zone .upload-icon {
  font-size: 3.25rem;
  margin-bottom: 1rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.upload-zone .upload-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 360px;
}

.upload-zone .upload-text .upload-highlight {
  color: var(--accent-gold);
  font-weight: 600;
  cursor: pointer;
}

.upload-zone .file-info {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.upload-zone input[type="file"] {
  display: none;
}

/* ---------- Template Download Button ---------- */

.template-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.6rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.template-download-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.06);
}

.template-download-btn .btn-icon {
  font-size: 1rem;
}

/* ---------- CSV Preview Table ---------- */

.csv-preview-wrapper {
  margin-top: 1.25rem;
  max-height: 420px;
  overflow: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
}

.csv-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 0.825rem;
}

.csv-preview-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.csv-preview-table th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.csv-preview-table td {
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.csv-preview-table tbody tr:nth-child(odd) {
  background: var(--bg-secondary);
}

.csv-preview-table tbody tr:nth-child(even) {
  background: var(--bg-tertiary);
}

.csv-preview-table tbody tr:hover {
  background: rgba(148, 163, 184, 0.07);
}

/* ---------- Validation Messages ---------- */

.validation-messages {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.validation-msg {
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.validation-msg.error {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.validation-msg.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.validation-msg.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

/* ---------- Import Button ---------- */

.import-btn {
  margin-top: 1rem;
  padding: 0.7rem 1.75rem;
  border: none;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: #0a0e1a;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.import-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.import-btn:active {
  transform: translateY(0);
}

/* ---------- Stats Grid ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-card .stat-label {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card .stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}

.stat-card .stat-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  width: fit-content;
}

.stat-change.positive {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

.stat-change.negative {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
}

.stat-change.neutral {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
}

/* Color variants */

.stat-card.gold .stat-value    { color: var(--accent-gold); }

.stat-card.purple .stat-value  { color: var(--accent-purple); }

.stat-card.emerald .stat-value { color: var(--accent-emerald); }

.stat-card.rose .stat-value    { color: var(--accent-rose); }

/* ---------- Chart Container ---------- */

.charts-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
}

.chart-container {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  padding: 1.25rem;
  position: relative;
  min-height: 300px;
}

.chart-container h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.chart-container canvas {
  width: 100% !important;
  max-height: 280px;
}

/* ---------- Heatmap Grid ---------- */

.heatmap-section {
  margin-bottom: 1.5rem;
}

.heatmap-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: 140px repeat(auto-fill, minmax(70px, 1fr));
  gap: 3px;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  padding: 1rem;
  overflow-x: auto;
}

.heatmap-label {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.4rem 0.5rem;
  text-transform: capitalize;
}

.heatmap-cell {
  padding: 0.55rem 0.4rem;
  text-align: center;
  border-radius: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background-color 0.3s ease, transform 0.15s ease;
  cursor: default;
  position: relative;
}

.heatmap-cell:hover {
  transform: scale(1.08);
  z-index: 1;
}

.heatmap-cell.perf-high    { background: rgba(16, 185, 129, 0.55); }

.heatmap-cell.perf-mid     { background: rgba(245, 158, 11, 0.4); }

.heatmap-cell.perf-low     { background: rgba(244, 63, 94, 0.45); }

.heatmap-cell.perf-empty   { background: rgba(148, 163, 184, 0.07); color: var(--text-muted); }

.heatmap-header {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  padding: 0.35rem;
}

/* ---------- Week Comparison Table ---------- */

.week-comparison-wrapper {
  margin-bottom: 1.5rem;
  max-height: 500px;
  overflow: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
}

.week-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
}

.week-comparison-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.week-comparison-table th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.7rem 0.85rem;
  text-align: left;
  white-space: nowrap;
}

.week-comparison-table td {
  padding: 0.6rem 0.85rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.week-comparison-table tbody tr:nth-child(odd) {
  background: var(--bg-secondary);
}

.week-comparison-table tbody tr:nth-child(even) {
  background: var(--bg-tertiary);
}

.week-comparison-table tbody tr:hover {
  background: rgba(148, 163, 184, 0.07);
}

.change-positive {
  color: var(--accent-emerald);
  font-weight: 600;
}

.change-negative {
  color: var(--accent-rose);
  font-weight: 600;
}

.change-neutral {
  color: var(--text-muted);
}

.title-changed-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  font-weight: 600;
  margin-left: 0.35rem;
}

/* ---------- Insights Panel ---------- */

.insights-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.insights-panel h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  border-left: 3px solid transparent;
  border-radius: 0 0.3rem 0.3rem 0;
  transition: background 0.2s ease;
  opacity: 0;
  animation: insightFadeIn 0.4s ease forwards;
}

.insight-item:last-child {
  border-bottom: none;
}

.insight-item:hover {
  background: rgba(148, 163, 184, 0.04);
}

.insight-item.positive {
  border-left-color: var(--accent-emerald);
}

.insight-item.negative {
  border-left-color: var(--accent-rose);
}

.insight-item.neutral {
  border-left-color: var(--accent-gold);
}

.insight-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.insight-message {
  color: var(--text-primary);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* Staggered animation */

@keyframes insightFadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.insight-item:nth-child(1)  { animation-delay: 0.04s; }

.insight-item:nth-child(2)  { animation-delay: 0.08s; }

.insight-item:nth-child(3)  { animation-delay: 0.12s; }

.insight-item:nth-child(4)  { animation-delay: 0.16s; }

.insight-item:nth-child(5)  { animation-delay: 0.20s; }

.insight-item:nth-child(6)  { animation-delay: 0.24s; }

.insight-item:nth-child(7)  { animation-delay: 0.28s; }

.insight-item:nth-child(8)  { animation-delay: 0.32s; }

.insight-item:nth-child(9)  { animation-delay: 0.36s; }

.insight-item:nth-child(10) { animation-delay: 0.40s; }

.insight-item:nth-child(11) { animation-delay: 0.44s; }

.insight-item:nth-child(12) { animation-delay: 0.48s; }

.insight-item:nth-child(13) { animation-delay: 0.52s; }

.insight-item:nth-child(14) { animation-delay: 0.56s; }

.insight-item:nth-child(15) { animation-delay: 0.60s; }

/* ---------- Empty State ---------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 2rem;
  min-height: 340px;
}

.empty-state .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-state .empty-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state .empty-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  max-width: 380px;
  line-height: 1.5;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.65rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  z-index: 9999;
  animation: toastIn 0.35s ease forwards;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.3);
}

.toast.error {
  border-color: rgba(244, 63, 94, 0.3);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(12px) scale(0.96); }
}

/* ---------- Section Title ---------- */

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Putki.com SEO Site Tab Styles - Green, Yellow/Gold, Black, White Brand Theme */

.putki-seo-site-root {
  --putki-bg-dark: #070a0f;
  --putki-bg-card: #0e141f;
  --putki-bg-card-hover: #141d2d;
  --putki-bg-panel: #0a0e17;
  
  --putki-green-primary: #16a34a;
  --putki-green-glow: #22c55e;
  --putki-green-dark: #15803d;
  
  --putki-yellow-gold: #facc15;
  --putki-gold-glow: #fde047;
  --putki-gold-dark: #eab308;
  
  --putki-text-main: #ffffff;
  --putki-text-muted: #cbd5e1;
  --putki-text-dim: #94a3b8;
  
  --putki-border-green: rgba(34, 197, 94, 0.3);
  --putki-border-gold: rgba(250, 204, 21, 0.4);
  --putki-shadow-glow: 0 0 30px rgba(34, 197, 94, 0.2);
  --putki-shadow-gold: 0 0 25px rgba(250, 204, 21, 0.25);
  
  background-color: var(--putki-bg-dark);
  color: var(--putki-text-main);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100%;
  padding-bottom: 60px;
  border-radius: 12px;
  overflow: hidden;
}

.putki-seo-site-root h1, 
.putki-seo-site-root h2, 
.putki-seo-site-root h3, 
.putki-seo-site-root h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  color: #ffffff;
}

/* Header */

.putki-site-header {
  background: rgba(7, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--putki-border-green);
  padding: 12px 24px;
}

.putki-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.putki-brand-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.putki-brand-logo-img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.4));
  transition: transform 0.3s ease;
}

.putki-brand-logo-wrapper:hover .putki-brand-logo-img {
  transform: scale(1.06) rotate(3deg);
}

.putki-brand-badge {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(250, 204, 21, 0.15));
  border: 1px solid var(--putki-green-glow);
  color: var(--putki-gold-glow);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.putki-btn-cta {
  background: linear-gradient(135deg, var(--putki-green-primary), var(--putki-green-dark));
  border: 1px solid var(--putki-gold-glow);
  color: #ffffff;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9rem;
}

.putki-btn-cta:hover {
  background: linear-gradient(135deg, var(--putki-yellow-gold), var(--putki-gold-dark));
  color: #05070a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(250, 204, 21, 0.6);
}

.putki-btn-cta-gold {
  background: linear-gradient(135deg, var(--putki-yellow-gold), var(--putki-gold-dark));
  color: #05070a;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 8px;
  border: 1px solid var(--putki-green-glow);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-transform: uppercase;
  text-decoration: none;
}

.putki-btn-cta-gold:hover {
  background: linear-gradient(135deg, var(--putki-green-glow), var(--putki-green-dark));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.5);
}

/* Hero Section */

.putki-hero-section {
  position: relative;
  padding: 40px 24px;
  background: radial-gradient(circle at top center, rgba(34, 197, 94, 0.12) 0%, rgba(250, 204, 21, 0.05) 50%, transparent 80%);
}

.putki-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 900px) {
  .putki-hero-grid {
    grid-template-columns: 1fr;
  }
}

.putki-hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.putki-green-text {
  color: var(--putki-green-glow);
  text-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.putki-gold-text {
  color: var(--putki-yellow-gold);
  text-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}

.putki-worker-quote {
  background: linear-gradient(135deg, rgba(14, 20, 31, 0.95), rgba(10, 14, 23, 0.95));
  border-left: 4px solid var(--putki-green-glow);
  border-right: 1px solid var(--putki-border-gold);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 20px 0;
  font-style: italic;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.putki-worker-quote::before {
  content: '🔧 Putkimies sanoo:';
  display: block;
  font-style: normal;
  font-weight: 800;
  color: var(--putki-yellow-gold);
  font-size: 0.9rem;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.putki-hero-banner-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--putki-green-glow);
  box-shadow: var(--putki-shadow-glow);
}

.putki-hero-banner-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.putki-hero-banner-wrapper:hover img {
  transform: scale(1.02);
}

/* Category Pills Bar */

.putki-category-section {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.putki-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.putki-category-btn {
  background: var(--putki-bg-card);
  border: 1px solid var(--putki-border-green);
  color: var(--putki-text-muted);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.putki-category-btn:hover, .putki-category-btn.active {
  background: linear-gradient(135deg, var(--putki-green-primary), var(--putki-green-dark));
  color: #ffffff;
  border-color: var(--putki-gold-glow);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* Search Bar */

.putki-search-wrapper {
  margin: 20px 24px;
  position: relative;
}

.putki-search-input {
  width: 100%;
  background: var(--putki-bg-card);
  border: 2px solid var(--putki-border-green);
  border-radius: 10px;
  padding: 14px 20px 14px 44px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}

.putki-search-input:focus {
  border-color: var(--putki-gold-glow);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.putki-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--putki-green-glow);
  font-size: 1.1rem;
}

/* Articles Grid */

.putki-articles-container {
  padding: 0 24px;
}

.putki-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 20px 0 40px;
}

.putki-article-card {
  background: var(--putki-bg-card);
  border: 1px solid var(--putki-border-green);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  cursor: pointer;
}

.putki-article-card:hover {
  background: var(--putki-bg-card-hover);
  border-color: var(--putki-gold-glow);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.putki-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--putki-text-dim);
}

.putki-keyword-chip {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--putki-gold-glow);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Full Article Reader */

.putki-article-full-view {
  background: var(--putki-bg-card);
  border: 2px solid var(--putki-border-green);
  border-radius: 16px;
  padding: 30px;
  margin: 20px 24px;
  box-shadow: var(--putki-shadow-glow);
}

/* Add Article Modal Overlay */

.putki-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.putki-modal-content {
  background: var(--putki-bg-card);
  border: 2px solid var(--putki-border-green);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--putki-shadow-glow);
}

.putki-form-input {
  width: 100%;
  background: var(--putki-bg-panel);
  border: 1px solid var(--putki-border-green);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.putki-form-input:focus {
  border-color: var(--putki-gold-glow);
}

/* Comparison Section */

.putki-comparison-section {
  margin: 40px 24px;
  background: var(--putki-bg-panel);
  border: 2px solid var(--putki-border-green);
  border-radius: 16px;
  padding: 26px;
}

.putki-seo-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.92rem;
}

.putki-seo-table th {
  background: rgba(34, 197, 94, 0.15);
  color: var(--putki-gold-glow);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--putki-green-glow);
}

.putki-seo-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

/* SEO Footer */

.putki-site-footer {
  background: #04060a;
  border-top: 2px solid var(--putki-border-green);
  padding: 40px 24px 20px;
  margin-top: 40px;
}

.putki-keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 30px;
}

.putki-keyword-tag-link {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--putki-text-muted);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.putki-keyword-tag-link:hover {
  background: linear-gradient(135deg, var(--putki-green-primary), var(--putki-green-dark));
  color: #ffffff;
  font-weight: 700;
  border-color: var(--putki-gold-glow);
}

/* ============================================
   Putki Affiliates (Blixx Style) Design System
   ============================================ */

:root {
  --putki-green: #22c55e;
  --putki-green-bright: #4ade80;
  --putki-green-glow: rgba(34, 197, 94, 0.25);
  --putki-dark-bg: #090d16;
  --putki-card-bg: rgba(15, 23, 42, 0.75);
  --putki-card-border: rgba(34, 197, 94, 0.2);
  --putki-gold: #fbbf24;
  --putki-gold-glow: rgba(251, 191, 36, 0.3);
}

.view-putki-affiliates {
  color: #f8fafc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 1400px;
  margin: 0 auto;
}

/* Public Header Nav Items */

.public-nav-item {
  transition: all 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.public-nav-item:hover,
.public-nav-item.active {
  color: var(--putki-green-bright) !important;
}

.public-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--putki-green-bright);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--putki-green-bright);
}

@media (max-width: 860px) {
  .public-nav-links {
    display: none !important;
  }
}

/* Header Banner & Hero */

.aff-hero {
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(34, 197, 94, 0.15), transparent 70%),
              linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(9, 13, 22, 0.95) 100%);
  border: 1px solid var(--putki-card-border);
  border-radius: 20px;
  padding: 40px 32px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(34, 197, 94, 0.1);
}

.aff-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.aff-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 992px) {
  .aff-hero-grid {
    grid-template-columns: 1fr;
  }
}

.aff-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--putki-green-bright);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.aff-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--putki-green-bright);
  box-shadow: 0 0 8px var(--putki-green-bright);
  animation: pulse 1.5s infinite;
}

.aff-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aff-hero-title span {
  background: linear-gradient(135deg, var(--putki-green-bright), #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aff-hero-desc {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 640px;
}

.aff-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-aff-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #042f2e;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
  transition: all 0.25s ease;
}

.btn-aff-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

.btn-aff-outline {
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-aff-outline:hover {
  border-color: var(--putki-green);
  color: var(--putki-green-bright);
  background: rgba(34, 197, 94, 0.1);
}

/* Stats ticker grid */

.aff-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .aff-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.aff-stat-card {
  background: rgba(15, 23, 42, 0.6);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.aff-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
}

.aff-stat-val.green {
  color: var(--putki-green-bright);
}

.aff-stat-val.gold {
  color: var(--putki-gold);
}

.aff-stat-lbl {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.aff-hero-media {
  position: relative;
  text-align: center;
}

.aff-hero-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.aff-hero-img:hover {
  transform: scale(1.02);
}

/* Navigation Tabs */

.aff-nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
  position: sticky;
  top: 10px;
  z-index: 90;
}

.aff-tab-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aff-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.aff-tab-btn.active {
  background: var(--putki-green);
  color: #042f2e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
}

/* Glass Section Container */

.aff-section {
  background: var(--putki-card-bg);
  border: 1px solid var(--putki-card-border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.aff-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.aff-sec-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.aff-sec-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
}

/* Brand Story Section (Blixx + Putki Mascot) */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

.story-card {
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 16px;
  padding: 28px;
  position: relative;
}

.story-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.story-quote strong {
  color: var(--putki-green-bright);
}

.story-bullets {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.story-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.story-bullets li::before {
  content: '⚡';
  color: var(--putki-gold);
}

/* Casino Brands Grid */

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.brand-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: var(--putki-green);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.15);
}

.brand-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.brand-logo-badge {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-revshare-chip {
  background: rgba(34, 197, 94, 0.15);
  color: var(--putki-green-bright);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.85rem;
}

.brand-bonus {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--putki-gold);
  margin-bottom: 12px;
}

.brand-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.brand-meta-item {
  display: flex;
  justify-content: space-between;
}

.brand-geo-chips {
  display: flex;
  gap: 6px;
}

.geo-flag {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Revenue Streams Platform Connection Section */

.conn-box {
  background: rgba(9, 13, 22, 0.9);
  border: 1px dashed var(--putki-green);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.conn-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 16px;
  align-items: center;
}

@media (max-width: 900px) {
  .conn-form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group-aff {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-aff label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
}

.input-aff {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.95rem;
  width: 100%;
}

.input-aff:focus {
  border-color: var(--putki-green-bright);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

/* Sync status log panel */

.log-panel-aff {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
  font-family: monospace;
  font-size: 0.82rem;
  color: #4ade80;
  max-height: 140px;
  overflow-y: auto;
  margin-top: 14px;
}

/* Interactive Calculator */

.calc-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .calc-container {
    grid-template-columns: 1fr;
  }
}

.slider-group {
  margin-bottom: 24px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
}

.range-slider-aff {
  width: 100%;
  accent-color: var(--putki-green-bright);
  height: 8px;
  border-radius: 4px;
  cursor: pointer;
}

.calc-result-box {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--putki-green);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.calc-est-title {
  font-size: 0.9rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.calc-est-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--putki-green-bright);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 12px;
}

/* Modals & Links Generator */

.aff-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.aff-modal-content {
  background: #0f172a;
  border: 1px solid var(--putki-green);
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.3s ease;
}

.link-out-box {
  background: #020617;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 12px 16px;
  border-radius: 10px;
  color: #4ade80;
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

/* Table styling for revenue data */

.revenue-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.revenue-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.revenue-table th {
  background: rgba(15, 23, 42, 0.95);
  color: #94a3b8;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.revenue-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}

.revenue-table tbody tr:hover {
  background: rgba(34, 197, 94, 0.05);
}

.status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-tag.approved {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.status-tag.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.status-tag.paid {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* ---------- Custom Properties ---------- */

:root {
  /* Colors – Backgrounds */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;
  --bg-glass: rgba(17, 24, 39, 0.7);

  /* Colors – Accents */
  --accent-gold: #f59e0b;
  --accent-gold-dim: #b45309;
  --accent-purple: #8b5cf6;
  --accent-purple-dim: #6d28d9;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  /* Colors – Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Colors – Borders */
  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-glow: rgba(245, 158, 11, 0.3);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-gold: 0 0 20px rgba(245, 158, 11, 0.15);
  --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --sidebar-width: 260px;
  --header-height: 64px;
}

/* ---------- Global Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ---------- Scrollbar Styling ---------- */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Firefox */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-tertiary) var(--bg-primary);
}

/* ---------- Selection Styling ---------- */

::selection {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

::-moz-selection {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

/* ---------- Keyframe Animations ---------- */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  }
}

/* ---------- Utility Classes ---------- */

/* Glass Panel */

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.badge-up {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.badge-down {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
}

.badge-new {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
}

/* Buttons */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-glow-gold);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  border-color: var(--border-glow);
  background: rgba(17, 24, 39, 0.9);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  font-size: 18px;
}

.btn-icon:hover {
  color: var(--accent-gold);
  border-color: var(--border-glow);
  background: rgba(17, 24, 39, 0.9);
}

/* Shimmer Loading */

.shimmer-loading {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 25%,
    rgba(30, 41, 59, 0.6) 50%,
    var(--bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* ---------- App Layout ---------- */

.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: var(--space-xl);
}

/* ---------- Responsive Breakpoints ---------- */

/* Tablet */

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 220px;
  }

  .app-main {
    padding: var(--space-lg);
  }
}

/* Mobile */

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }

  .app-sidebar {
    width: 100%;
    height: 64px;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .app-main {
    margin-left: 0;
    padding: var(--space-md);
    padding-bottom: 80px;
  }
}

/* Small Mobile */

@media (max-width: 480px) {
  .app-main {
    padding: var(--space-sm);
    padding-bottom: 80px;
  }
}
/* Putki.com SEO Site Tab Styles - Green, Yellow/Gold, Black, White Brand Theme */

.putki-seo-site-root {
  --putki-bg-dark: #070a0f;
  --putki-bg-card: #0e141f;
  --putki-bg-card-hover: #141d2d;
  --putki-bg-panel: #0a0e17;
  
  --putki-green-primary: #16a34a;
  --putki-green-glow: #22c55e;
  --putki-green-dark: #15803d;
  
  --putki-yellow-gold: #facc15;
  --putki-gold-glow: #fde047;
  --putki-gold-dark: #eab308;
  
  --putki-text-main: #ffffff;
  --putki-text-muted: #cbd5e1;
  --putki-text-dim: #94a3b8;
  
  --putki-border-green: rgba(34, 197, 94, 0.3);
  --putki-border-gold: rgba(250, 204, 21, 0.4);
  --putki-shadow-glow: 0 0 30px rgba(34, 197, 94, 0.2);
  --putki-shadow-gold: 0 0 25px rgba(250, 204, 21, 0.25);
  
  background-color: var(--putki-bg-dark);
  color: var(--putki-text-main);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100%;
  padding-bottom: 60px;
  border-radius: 12px;
  overflow: hidden;
}

.putki-seo-site-root h1, 
.putki-seo-site-root h2, 
.putki-seo-site-root h3, 
.putki-seo-site-root h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  color: #ffffff;
}

/* Header */
.putki-site-header {
  background: rgba(7, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--putki-border-green);
  padding: 12px 24px;
}

.putki-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.putki-brand-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.putki-brand-logo-img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.4));
  transition: transform 0.3s ease;
}

.putki-brand-logo-wrapper:hover .putki-brand-logo-img {
  transform: scale(1.06) rotate(3deg);
}

.putki-brand-badge {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(250, 204, 21, 0.15));
  border: 1px solid var(--putki-green-glow);
  color: var(--putki-gold-glow);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.putki-btn-cta {
  background: linear-gradient(135deg, var(--putki-green-primary), var(--putki-green-dark));
  border: 1px solid var(--putki-gold-glow);
  color: #ffffff;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9rem;
}

.putki-btn-cta:hover {
  background: linear-gradient(135deg, var(--putki-yellow-gold), var(--putki-gold-dark));
  color: #05070a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(250, 204, 21, 0.6);
}

.putki-btn-cta-gold {
  background: linear-gradient(135deg, var(--putki-yellow-gold), var(--putki-gold-dark));
  color: #05070a;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 8px;
  border: 1px solid var(--putki-green-glow);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-transform: uppercase;
  text-decoration: none;
}

.putki-btn-cta-gold:hover {
  background: linear-gradient(135deg, var(--putki-green-glow), var(--putki-green-dark));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.5);
}

/* Hero Section */
.putki-hero-section {
  position: relative;
  padding: 40px 24px;
  background: radial-gradient(circle at top center, rgba(34, 197, 94, 0.12) 0%, rgba(250, 204, 21, 0.05) 50%, transparent 80%);
}

.putki-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 900px) {
  .putki-hero-grid {
    grid-template-columns: 1fr;
  }
}

.putki-hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.putki-green-text {
  color: var(--putki-green-glow);
  text-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.putki-gold-text {
  color: var(--putki-yellow-gold);
  text-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}

.putki-worker-quote {
  background: linear-gradient(135deg, rgba(14, 20, 31, 0.95), rgba(10, 14, 23, 0.95));
  border-left: 4px solid var(--putki-green-glow);
  border-right: 1px solid var(--putki-border-gold);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 20px 0;
  font-style: italic;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.putki-worker-quote::before {
  content: '🔧 Putkimies sanoo:';
  display: block;
  font-style: normal;
  font-weight: 800;
  color: var(--putki-yellow-gold);
  font-size: 0.9rem;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.putki-hero-banner-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--putki-green-glow);
  box-shadow: var(--putki-shadow-glow);
}

.putki-hero-banner-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.putki-hero-banner-wrapper:hover img {
  transform: scale(1.02);
}

/* Category Pills Bar */
.putki-category-section {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.putki-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.putki-category-btn {
  background: var(--putki-bg-card);
  border: 1px solid var(--putki-border-green);
  color: var(--putki-text-muted);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.putki-category-btn:hover, .putki-category-btn.active {
  background: linear-gradient(135deg, var(--putki-green-primary), var(--putki-green-dark));
  color: #ffffff;
  border-color: var(--putki-gold-glow);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* Search Bar */
.putki-search-wrapper {
  margin: 20px 24px;
  position: relative;
}

.putki-search-input {
  width: 100%;
  background: var(--putki-bg-card);
  border: 2px solid var(--putki-border-green);
  border-radius: 10px;
  padding: 14px 20px 14px 44px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}

.putki-search-input:focus {
  border-color: var(--putki-gold-glow);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.putki-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--putki-green-glow);
  font-size: 1.1rem;
}

/* Articles Grid */
.putki-articles-container {
  padding: 0 24px;
}

.putki-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 20px 0 40px;
}

.putki-article-card {
  background: var(--putki-bg-card);
  border: 1px solid var(--putki-border-green);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  cursor: pointer;
}

.putki-article-card:hover {
  background: var(--putki-bg-card-hover);
  border-color: var(--putki-gold-glow);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.putki-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--putki-text-dim);
}

.putki-keyword-chip {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--putki-gold-glow);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Full Article Reader */
.putki-article-full-view {
  background: var(--putki-bg-card);
  border: 2px solid var(--putki-border-green);
  border-radius: 16px;
  padding: 30px;
  margin: 20px 24px;
  box-shadow: var(--putki-shadow-glow);
}

/* Add Article Modal Overlay */
.putki-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.putki-modal-content {
  background: var(--putki-bg-card);
  border: 2px solid var(--putki-border-green);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--putki-shadow-glow);
}

.putki-form-input {
  width: 100%;
  background: var(--putki-bg-panel);
  border: 1px solid var(--putki-border-green);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.putki-form-input:focus {
  border-color: var(--putki-gold-glow);
}

/* Comparison Section */
.putki-comparison-section {
  margin: 40px 24px;
  background: var(--putki-bg-panel);
  border: 2px solid var(--putki-border-green);
  border-radius: 16px;
  padding: 26px;
}

.putki-seo-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.92rem;
}

.putki-seo-table th {
  background: rgba(34, 197, 94, 0.15);
  color: var(--putki-gold-glow);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--putki-green-glow);
}

.putki-seo-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

/* SEO Footer */
.putki-site-footer {
  background: #04060a;
  border-top: 2px solid var(--putki-border-green);
  padding: 40px 24px 20px;
  margin-top: 40px;
}

.putki-keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 30px;
}

.putki-keyword-tag-link {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--putki-text-muted);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.putki-keyword-tag-link:hover {
  background: linear-gradient(135deg, var(--putki-green-primary), var(--putki-green-dark));
  color: #ffffff;
  font-weight: 700;
  border-color: var(--putki-gold-glow);
}
