/* Game Scrape - Mint Green Theme
 * Fresh mint colors, rounded shapes, sophisticated design
 * Built on Bootstrap 5.3 with custom overrides
 */

/* ========================================
   CSS VARIABLES - DESIGN SYSTEM
   ======================================== */

:root {
  /* minty green color palette - fresh & vibrant */
  --gs-mint-light: #e6fff4;
  --gs-mint: #7dffc4;
  --gs-mint-deep: #20C073;
  --gs-mint-darker: #18a562;
  --gs-mint-darkest: #128a51;
  --gs-teal-soft: #4dd9a0;
  --gs-blue-soft: #a3e4d7;
  --gs-sage: #b8e6d4;
  --gs-seafoam: #d0ffe8;

  /* backgrounds */
  --gs-bg-primary: #fafffe;
  --gs-bg-secondary: #f0faf6;
  --gs-bg-card: #ffffff;
  --gs-bg-hover: #f5fffa;

  /* text colors */
  --gs-text-primary: #1a2f26;
  --gs-text-secondary: #3d5a4d;
  --gs-text-muted: #6b8f7d;
  --gs-text-light: #9bb5a8;

  /* accent colors */
  --gs-accent-primary: #20C073;
  --gs-accent-secondary: #18a562;
  --gs-accent-success: #20C073;
  --gs-accent-warning: #ffbe5c;
  --gs-accent-danger: #ff7b7b;

  /* borders & shadows */
  --gs-border: #d4ebe2;
  --gs-border-light: #e8f5f0;
  --gs-shadow-sm: 0 2px 8px rgba(32, 192, 115, 0.06);
  --gs-shadow-md: 0 4px 16px rgba(32, 192, 115, 0.10);
  --gs-shadow-lg: 0 8px 32px rgba(32, 192, 115, 0.12);
  --gs-shadow-hover: 0 8px 28px rgba(32, 192, 115, 0.22);

  /* gradients - fresh mint vibes */
  --gs-gradient-primary: linear-gradient(135deg, #e6fff4 0%, #20C073 100%);
  --gs-gradient-accent: linear-gradient(135deg, #7dffc4 0%, #18a562 100%);
  --gs-gradient-surface: linear-gradient(180deg, #ffffff 0%, #f5fffa 100%);

  /* spacing & sizing - generous and rounded */
  --gs-radius-sm: 12px;
  --gs-radius-md: 16px;
  --gs-radius-lg: 24px;
  --gs-radius-xl: 32px;
  --gs-radius-full: 9999px;

  /* viewport-based sizing */
  --gs-navbar-height: 5vh;
  --gs-icon-sm: 3vmin;
  --gs-icon-md: 4vmin;
  --gs-icon-lg: 6vmin;
  --gs-scrollbar-width: 0.5vw;
  --gs-button-size: 2.5vmin;

  /* transitions */
  --gs-transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --gs-transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --gs-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* bootstrap overrides */
  --bs-body-bg: var(--gs-bg-primary);
  --bs-body-color: var(--gs-text-primary);
  --bs-border-color: var(--gs-border);
  --bs-border-radius: var(--gs-radius-md);
  --bs-link-color: var(--gs-accent-primary);
  --bs-link-hover-color: var(--gs-teal-soft);
}

/* ========================================
   DARK MODE OVERRIDES
   ======================================== */

[data-bs-theme="dark"] {
  /* backgrounds - dark with mint tint */
  --gs-bg-primary: #0d1a14;
  --gs-bg-secondary: #142620;
  --gs-bg-card: #1a2f26;
  --gs-bg-hover: #1f3a2e;

  /* text colors - lighter for dark bg */
  --gs-text-primary: #e8f5f0;
  --gs-text-secondary: #b8d4c8;
  --gs-text-muted: #7a9f8e;
  --gs-text-light: #5a7d6d;

  /* mint colors stay vibrant */
  --gs-mint-light: #1a3d2e;
  --gs-seafoam: #1f4a38;

  /* borders & shadows - darker */
  --gs-border: #2d4a3d;
  --gs-border-light: #243d32;
  --gs-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --gs-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --gs-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --gs-shadow-hover: 0 8px 28px rgba(32, 192, 115, 0.25);

  /* gradients - dark adapted */
  --gs-gradient-primary: linear-gradient(135deg, #1a3d2e 0%, #20C073 100%);
  --gs-gradient-surface: linear-gradient(180deg, #1a2f26 0%, #142620 100%);

  /* bootstrap dark overrides */
  --bs-body-bg: var(--gs-bg-primary);
  --bs-body-color: var(--gs-text-primary);
  --bs-border-color: var(--gs-border);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gs-bg-primary);
  color: var(--gs-text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}


.highlight {
  background: linear-gradient(90deg, rgba(32, 192, 115, 0.12) 0%, rgba(125, 255, 196, 0.08) 100%) !important;
  border-left: 4px solid var(--gs-accent-primary) !important;
  transition: background var(--gs-transition-base), box-shadow var(--gs-transition-base);
}

.highlight td {
  font-weight: 500;
  color: var(--gs-text-primary);
}

.highlight:hover {
  background: linear-gradient(90deg, rgba(32, 192, 115, 0.20) 0%, rgba(125, 255, 196, 0.12) 100%) !important;
  box-shadow: var(--gs-shadow-md);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gs-text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1, .h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #20C073 0%, #18a562 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

h2, .h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
}

h3, .h3 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
}

h4, .h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5, .h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

.text-muted {
  color: var(--gs-text-muted) !important;
}

/* monospace for data */
.mono, .price, .data {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ========================================
   LAYOUT - FULL WIDTH
   ======================================== */

.container-fluid {
  max-width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
/* typewriter effect */
.typewriter-text {
  color: var(--gs-accent-primary);
}

.typewriter-cursor {
  color: var(--gs-accent-primary);
  animation: blink 0.7s infinite;
  font-weight: 300;
}

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

.cursor-pointer {
  cursor: pointer;
}

.gradient-text {
  background: var(--gs-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text {
  color: var(--gs-accent-primary);
}

/* profit/loss text colors */
.text-profit-positive {
  color: var(--gs-accent-success);
  font-weight: 600;
}

.text-profit-neutral {
  color: var(--gs-accent-warning);
}

.text-profit-negative {
  color: var(--gs-accent-danger);
}

/* icon button - small square buttons for actions */
.btn-icon {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1;
  min-width: auto;
}

.btn-icon-sm {
  padding: 0.15rem 0.35rem;
  font-size: 0.75rem;
  line-height: 1;
  min-width: auto;
}

/* product selector card */
.product-selector-item {
  margin: 0.5rem 0;
  padding: 0.75rem;
  cursor: pointer;
  border-radius: var(--gs-radius-md);
  border: 1px solid var(--gs-border);
  background: var(--gs-bg-card);
  transition: all var(--gs-transition-fast);
}

.product-selector-item:hover {
  background: var(--gs-bg-hover);
  border-color: var(--gs-accent-primary);
  box-shadow: var(--gs-shadow-sm);
}

/* product list scrollable container */
.product-list-scroll {
  max-height: 30vh;
  min-height: 12.5rem;
  overflow-y: auto;
}

/* product option hover */
.product-option {
  transition: all var(--gs-transition-fast);
}

.product-option:hover {
  border-color: var(--gs-accent-primary) !important;
  background-color: var(--gs-bg-hover);
}

/* actions column - responsive width */
.col-actions {
  text-align: right;
  width: 5vw;
  min-width: 5rem;
}

/* listing image - viewport relative */
.listing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-sm);
}

.listing-image-sm {
  width: 6vmin;
  height: 6vmin;
  min-width: 5rem;
  min-height: 5rem;
  object-fit: cover;
}

/* opacity utility */
.opacity-90 {
  opacity: 0.9;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-60 {
  opacity: 0.6;
}

/* waitlist form styling */
.waitlist-form .form-control {
  border-radius: var(--gs-radius-full);
  border: 2px solid var(--gs-border);
}

.waitlist-form .input-wrapper {
  max-width: 20rem;
}

/* max width utilities */
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }

/* responsive container widths with vw and min-width */
.container-auth {
  max-width: 30vw;
  min-width: 20rem;
}

.container-card {
  max-width: 35vw;
  min-width: 20rem;
}

.container-wide {
  max-width: 80vw;
}

.container-medium {
  max-width: 50vw;
  min-width: 20vw;
}

.container-pricing {
  max-width: 60vw;
  min-width: 37.5rem;
}

/* badge variants */
.badge-success {
  background: var(--gs-accent-success);
  color: white;
}

.badge-danger {
  background: var(--gs-accent-danger);
  color: white;
}

/* progress bar sizing */
.progress-sm {
  height: 0.25rem;
}

.progress-md {
  height: 0.5rem;
}

/* form card background */
.form-card-bg {
  background: var(--gs-bg-secondary);
}

/* fixed position z-index */
.z-toast {
  z-index: 1000;
}

/* search input width */
.search-input {
  width: 15.625rem;
}

/* table column small width */
.col-w-narrow {
  width: 3.125rem;
}

/* success state background */
.bg-success-gradient {
  background: linear-gradient(135deg, rgba(32, 192, 115, 0.12) 0%, rgba(32, 192, 115, 0.04) 100%);
  border: 1px solid var(--gs-accent-success);
}

/* profit summary card */
.profit-summary-card {
  border-radius: var(--gs-radius-lg);
}

.profit-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--gs-radius-lg);
}

.profit-badge-positive {
  background: var(--gs-accent-success);
  color: white;
}

.profit-badge-negative {
  background: var(--gs-accent-danger);
  color: white;
}

/* profit summary backgrounds */
.profit-summary-positive {
  background: linear-gradient(135deg, rgba(32, 192, 115, 0.1) 0%, rgba(32, 192, 115, 0.05) 100%);
  border: 1px solid var(--gs-accent-success);
}

.profit-summary-negative {
  background: linear-gradient(135deg, rgba(255, 123, 123, 0.1) 0%, rgba(255, 123, 123, 0.05) 100%);
  border: 1px solid var(--gs-accent-danger);
}

/* table column widths - percentage based */
.col-w-5 { width: 5%; }
.col-w-10 { width: 10%; }
.col-w-15 { width: 15%; }
.col-w-20 { width: 20%; }
.col-w-25 { width: 25%; }
.col-w-30 { width: 30%; }
.col-w-35 { width: 35%; }

/* badge action icons */
.badge-action-icon {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--gs-transition-fast);
}

.badge-action-icon:hover {
  opacity: 1;
}

/* ========================================
   CARDS & SURFACES
   ======================================== */

.card {
  background: var(--gs-bg-card);
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-lg);
  box-shadow: var(--gs-shadow-sm);
  transition: all var(--gs-transition-base);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--gs-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--gs-mint-deep);
}

.card-header {
  background: var(--gs-gradient-surface);
  border-bottom: 1px solid var(--gs-border-light);
  padding: 1.5rem 2rem;
  border-radius: var(--gs-radius-lg) var(--gs-radius-lg) 0 0;
}

.card-body {
  padding: 2rem;
}

.card-footer {
  background: var(--gs-bg-secondary);
  border-top: 1px solid var(--gs-border-light);
  padding: 1.5rem 2rem;
  border-radius: 0 0 var(--gs-radius-lg) var(--gs-radius-lg);
}

/* special card variant with gradient */
.card-accent {
  background: var(--gs-gradient-primary);
  border: none;
  color: white;
}

.card-accent h1, .card-accent h2, .card-accent h3,
.card-accent h4, .card-accent h5, .card-accent h6,
.card-accent p, .card-accent span {
  color: white;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--gs-radius-full);
  transition: all var(--gs-transition-base);
  border: none;
  padding: 0.625rem 1.5rem;
  box-shadow: var(--gs-shadow-sm);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--gs-shadow-md);
}

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

.btn-primary {
  background: linear-gradient(135deg, #20C073 0%, #18a562 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 12px rgba(32, 192, 115, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #18a562 0%, #128a51 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(32, 192, 115, 0.45);
}

.btn-outline-primary {
  border: 2px solid #20C073;
  color: #20C073;
  background: transparent;
  box-shadow: none;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #20C073 0%, #18a562 100%);
  color: white;
  border-color: #20C073;
}

.btn-outline-secondary {
  border: 2px solid #18a562;
  color: #18a562;
  background: transparent;
  box-shadow: none;
}

.btn-outline-secondary:hover {
  background: #18a562;
  color: white;
  border-color: #18a562;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

/* refresh button with smooth rotation */
.btn-refresh {
  transition: all var(--gs-transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-refresh i {
  transition: transform var(--gs-transition-slow);
  display: inline-block;
}

.btn-refresh:hover i {
  transform: rotate(180deg);
}

.btn-refresh:active i {
  transform: rotate(180deg) scale(0.9);
}

/* when button is being clicked (htmx request in progress) */
.btn-refresh.htmx-request i {
  animation: continuous-spin 1s linear infinite;
}

@keyframes continuous-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================
   FORMS & INPUTS
   ======================================== */

.form-control,
.form-select {
  background: var(--gs-bg-card);
  border: 2px solid var(--gs-border);
  color: var(--gs-text-primary);
  border-radius: var(--gs-radius-md);
  transition: all var(--gs-transition-base);
  font-family: 'Inter', sans-serif;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  background: var(--gs-bg-card);
  border-color: var(--gs-accent-primary);
  box-shadow: 0 0 0 4px rgba(32, 192, 115, 0.18);
  color: var(--gs-text-primary);
  outline: none;
}

.form-control::placeholder {
  color: var(--gs-text-light);
}

.form-control-lg {
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  border-radius: var(--gs-radius-lg);
}

input[type="search"] {
  background: var(--gs-bg-card);
  border: 2px solid var(--gs-border);
}

input[type="search"]:focus {
  border-color: var(--gs-accent-primary);
  box-shadow: 0 0 0 4px rgba(32, 192, 115, 0.18);
}

/* ========================================
   TABLES
   ======================================== */

.table {
  color: var(--gs-text-primary);
  --bs-table-bg: transparent;
  --bs-table-striped-bg: var(--gs-bg-secondary);
  --bs-table-hover-bg: var(--gs-bg-hover);
  --bs-table-border-color: var(--gs-border-light);
}

.table thead {
  background: var(--gs-bg-secondary);
  border-bottom: 2px solid var(--gs-border);
}

.table thead th {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gs-text-secondary);
  padding: 1rem 1rem;
  border: none;
}

.table tbody tr {
  border-bottom: 1px solid var(--gs-border-light);
  transition: all var(--gs-transition-fast);
}

.table tbody tr:hover {
  background: var(--gs-bg-hover);
}

.table td {
  padding: 1rem 1rem;
  vertical-align: middle;
}

/* clickable rows */
.clickable {
  cursor: pointer;
  transition: all var(--gs-transition-base);
}

.clickable:hover {
  background: var(--gs-bg-hover) !important;
  transform: scale(1.002);
  box-shadow: var(--gs-shadow-sm);
}

.clickable:active {
  transform: scale(1);
}

/* scrollable tables */
.scrollable-table-container {
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-lg);
  background: var(--gs-bg-card);
  box-shadow: var(--gs-shadow-sm);
}

.scrollable-table-container::-webkit-scrollbar {
  width: var(--gs-scrollbar-width);
}

.scrollable-table-container::-webkit-scrollbar-track {
  background: var(--gs-bg-secondary);
  border-radius: var(--gs-radius-md);
}

.scrollable-table-container::-webkit-scrollbar-thumb {
  background: var(--gs-mint-deep);
  border-radius: var(--gs-radius-md);
}

.scrollable-table-container::-webkit-scrollbar-thumb:hover {
  background: var(--gs-teal-soft);
}

/* ========================================
   NAVBAR
   ======================================== */

nav {
  background: var(--gs-bg-card);
  border: 1px solid var(--gs-border);
  box-shadow: var(--gs-shadow-sm);
  border-radius: var(--gs-radius-lg);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}

@media (min-width: 576px) {
  nav {
    padding: 0.875rem 1.25rem;
    margin: 1rem 0;
  }
}

/* nav brand logo */
.nav-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #20C073 0%, #18a562 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity var(--gs-transition-fast);
}

.nav-brand:hover {
  opacity: 0.85;
}

@media (min-width: 576px) {
  .nav-brand {
    font-size: 1.25rem;
  }
}

/* nav controls (right side) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 576px) {
  .nav-controls {
    gap: 0.75rem;
  }
}

.nav-username {
  display: none;
  font-size: 0.85rem;
  color: var(--gs-text-muted);
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: var(--gs-radius-md);
  transition: all var(--gs-transition-base);
}

.nav-username:hover {
  color: var(--gs-text-primary);
  background: var(--gs-bg-secondary);
}

.nav-username:active {
  transform: scale(0.98);
}

@media (min-width: 576px) {
  .nav-username {
    display: inline;
  }
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: var(--gs-bg-secondary);
  border-radius: var(--gs-radius-full);
  color: var(--gs-text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--gs-transition-fast);
}

.nav-icon-btn:hover {
  background: var(--gs-bg-hover);
  color: var(--gs-accent-primary);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav ul li a,
nav ul li span {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--gs-text-secondary);
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--gs-radius-full);
  transition: all var(--gs-transition-base);
  display: inline-block;
}

nav ul li a {
  cursor: pointer;
}

nav ul li a:hover {
  background: var(--gs-bg-secondary);
  color: var(--gs-accent-primary);
}

nav ul li strong a {
  color: var(--gs-accent-primary);
  font-weight: 600;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.35em 0.75em;
  border-radius: var(--gs-radius-full);
  letter-spacing: 0.01em;
}

.bg-secondary {
  background: var(--gs-bg-secondary) !important;
  color: var(--gs-text-secondary);
  border: 1px solid var(--gs-border);
}

.bg-success {
  background: var(--gs-accent-success) !important;
  color: white;
}

.bg-danger {
  background: var(--gs-accent-danger) !important;
  color: white;
}

.bg-warning {
  background: var(--gs-accent-warning) !important;
  color: white;
}

/* ========================================
   LOADING & INDICATORS
   ======================================== */

.htmx-indicator {
  opacity: 0;
  transition: opacity var(--gs-transition-slow);
}

.htmx-request .htmx-indicator {
  opacity: 1;
}

#loading-indicator {
  text-align: center;
  padding: 2rem;
  color: var(--gs-accent-primary);
}

#loading-indicator i {
  font-size: 2rem;
  color: var(--gs-accent-primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* refresh icon rotation */
.refresh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--gs-transition-base);
  color: var(--gs-text-muted);
}

.refresh-icon:hover {
  color: var(--gs-accent-primary);
  transform: rotate(180deg);
}

.refresh-icon:active {
  transform: rotate(180deg) scale(0.95);
}

/* ========================================
   NOTIFICATIONS
   ======================================== */

#notification-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 100%;
  max-width: 600px;
  pointer-events: none;
}

#notification-container .notification {
  pointer-events: all;
  border-radius: var(--gs-radius-lg);
  box-shadow: var(--gs-shadow-lg);
  border: none;
  backdrop-filter: blur(10px);
  animation: slideDown var(--gs-transition-base);
  width: 100% !important;
}

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

/* notification types with soft modern colors */
#notification-container .alert-success {
  background: rgba(32, 192, 115, 0.95);
  color: white;
  border-left: 4px solid var(--gs-accent-success);
}

#notification-container .alert-danger {
  background: rgba(255, 153, 153, 0.95);
  color: white;
  border-left: 4px solid var(--gs-accent-danger);
}

#notification-container .alert-warning {
  background: rgba(255, 197, 112, 0.95);
  color: white;
  border-left: 4px solid var(--gs-accent-warning);
}

#notification-container .alert-info {
  background: rgba(163, 196, 232, 0.95);
  color: white;
  border-left: 4px solid var(--gs-accent-secondary);
}

#notification-container .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

#notification-container .btn-close:hover {
  opacity: 1;
}

/* responsive notifications */
@media (max-width: 768px) {
  #notification-container {
    max-width: 90vw;
    padding: 0 1rem;
  }
}

/* ========================================
   SIDE PANEL SYSTEM
   ======================================== */

#sidePaneContainer {
  overflow-y: auto;
  height: 80vh;
  width: 45%;
  flex: 0 0 auto;
  background: var(--gs-bg-card);
  border-left: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-lg) 0 0 var(--gs-radius-lg);
  box-shadow: var(--gs-shadow-lg);
  transition: all var(--gs-transition-slow);
  padding: 1.5rem;
}

#sidePaneContainer.active {
  animation: slideIn var(--gs-transition-slow);
}

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

#sidePaneContainer::-webkit-scrollbar {
  width: var(--gs-scrollbar-width);
}

#sidePaneContainer::-webkit-scrollbar-track {
  background: var(--gs-bg-secondary);
  border-radius: var(--gs-radius-md);
}

#sidePaneContainer::-webkit-scrollbar-thumb {
  background: var(--gs-mint-deep);
  border-radius: var(--gs-radius-md);
}

#sidePaneCloseButton {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gs-bg-secondary);
  border: none;
  border-radius: var(--gs-radius-full);
  width: var(--gs-button-size);
  height: var(--gs-button-size);
  min-width: 36px;
  min-height: 36px;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  color: var(--gs-text-secondary);
  transition: all var(--gs-transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--gs-shadow-sm);
}

#sidePaneCloseButton:hover {
  color: var(--gs-accent-danger);
  background: var(--gs-bg-card);
  transform: scale(1.05);
  box-shadow: var(--gs-shadow-md);
}

/* ========================================
   CONTENT LAYOUT
   ======================================== */

.content-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.main-content {
  flex: 1 1 auto;
  min-width: 0;
}

#contentContainer {
  padding: 0;
}

#contentContainer.shrink {
  overflow: auto;
  height: calc(100vh - var(--gs-navbar-height) - 2rem);
  width: 55%;
}

#contentContainer::-webkit-scrollbar {
  width: var(--gs-scrollbar-width);
}

#contentContainer::-webkit-scrollbar-track {
  background: var(--gs-bg-secondary);
}

#contentContainer::-webkit-scrollbar-thumb {
  background: var(--gs-mint-deep);
  border-radius: var(--gs-radius-md);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--gs-bg-card);
  color: var(--gs-text-muted);
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-lg);
  margin: 2rem 0 1rem;
  font-size: 0.875rem;
}

@media (min-width: 576px) {
  footer {
    padding: 1.25rem 2rem;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  :root {
    /* adjust viewport-based sizing for mobile */
    --gs-scrollbar-width: 8px;
    --gs-icon-sm: 2.5rem;
    --gs-icon-md: 3rem;
    --gs-icon-lg: 4rem;
    --gs-button-size: 2.5rem;
  }

  .container-fluid,
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .content-row {
    flex-direction: column;
  }

  #sidePaneContainer {
    height: auto;
    max-height: 60vh;
    width: 100% !important;
    border-left: none;
    border-top: 1px solid var(--gs-border);
    border-radius: var(--gs-radius-lg) var(--gs-radius-lg) 0 0;
  }

  #contentContainer.shrink {
    width: 100%;
  }

  h1, .h1 {
    font-size: 2rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  nav ul li a,
  nav ul li span {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .card-body {
    padding: 1.5rem;
  }
}

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */

/* view transitions for htmx */
::view-transition-old(body-transition) {
  animation: fadeOut 0.2s ease-out forwards;
}

::view-transition-new(body-transition) {
  animation: fadeIn 0.3s ease-in forwards;
}

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

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

/* focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--gs-accent-primary);
  outline-offset: 2px;
  border-radius: var(--gs-radius-sm);
}

/* ========================================
   SPECIAL COMPONENTS
   ======================================== */

/* pill-shaped status indicators */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--gs-radius-full);
  background: var(--gs-bg-secondary);
  border: 1px solid var(--gs-border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gs-text-secondary);
}

.status-pill.active {
  background: var(--gs-gradient-primary);
  color: white;
  border: none;
}

/* icon containers */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--gs-icon-lg);
  height: var(--gs-icon-lg);
  min-width: 60px;
  min-height: 60px;
  border-radius: var(--gs-radius-full);
  background: var(--gs-gradient-primary);
  color: white;
}

.icon-circle i {
  font-size: 2rem;
}

/* divider */
.divider {
  height: 1px;
  background: var(--gs-border);
  margin: 2rem 0;
}

/* subtle gradient backgrounds */
.bg-gradient-soft {
  background: var(--gs-gradient-surface);
}

/* ========================================
   SEARCH CARDS GRID
   ======================================== */

/* auto-filling grid that reflows when items are removed */
.search-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* smooth removal animation */
.search-card-wrapper {
  animation: fadeIn var(--gs-transition-base);
  transition: all var(--gs-transition-base);
}

.search-card-wrapper.htmx-swapping {
  opacity: 0;
  transform: scale(0.95);
  transition: all var(--gs-transition-base);
}

/* responsive breakpoints */
@media (max-width: 768px) {
  .search-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .search-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* ========================================
   HIGHLIGHT GLOW EFFECT
   ======================================== */

/* aesthetic glow animation for highlighted elements */
@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(32, 192, 115, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 8px rgba(32, 192, 115, 0.5),
                0 0 40px 16px rgba(125, 255, 196, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(32, 192, 115, 0);
  }
}

.highlight-glow {
  animation: highlight-pulse 2s ease-in-out;
  border-radius: 24px;
  transition: all 0.3s ease;
}

/* specific override for table rows with highlight class */
/* ensures bootstrap table styles don't override */
table.table tbody tr.highlight,
table.table-striped tbody tr.highlight,
table.table-hover tbody tr.highlight {
  background: linear-gradient(90deg, rgba(32, 192, 115, 0.15) 0%, rgba(125, 255, 196, 0.10) 100%) !important;
  border-left: 4px solid var(--gs-accent-primary) !important;
  position: relative;
}

table.table tbody tr.highlight:hover,
table.table-striped tbody tr.highlight:hover,
table.table-hover tbody tr.highlight:hover {
  background: linear-gradient(90deg, rgba(32, 192, 115, 0.25) 0%, rgba(125, 255, 196, 0.15) 100%) !important;
}

/* override bootstrap's striping specifically for highlighted rows */
table.table-striped tbody tr.highlight:nth-of-type(odd),
table.table-striped tbody tr.highlight:nth-of-type(even) {
  background: linear-gradient(90deg, rgba(32, 192, 115, 0.15) 0%, rgba(125, 255, 196, 0.10) 100%) !important;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* success gradient background */
.bg-success-gradient {
  background: linear-gradient(135deg, rgba(32, 192, 115, 0.12) 0%, rgba(32, 192, 115, 0.04) 100%);
  border: 1px solid var(--gs-accent-success);
}

/* text color utilities using design system */
.text-gs-success {
  color: var(--gs-accent-success);
}

.text-gs-danger {
  color: var(--gs-accent-danger);
}

/* responsive container widths */
.container-search {
  max-width: 50vw;
  min-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

.container-sessions {
  max-width: 80vw;
  margin-left: auto;
  margin-right: auto;
}

.container-empty-state {
  max-width: 35vw;
  min-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.container-auth {
  max-width: 30vw;
  min-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.container-auth-lg {
  max-width: 35vw;
  min-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.container-upgrade {
  max-width: 60vw;
  min-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* fixed position widget */
.fixed-widget {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 1rem;
  z-index: 1000;
}

/* subscription widget styling */
.subscription-widget {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

/* filter input */
.input-filter {
  width: 15vw;
  min-width: 12rem;
  max-width: 250px;
}

/* small action column */
.col-action-sm {
  width: 3rem;
}

/* progress bar heights */
.progress-sm {
  height: 0.5rem;
}

.progress-xs {
  height: 0.25rem;
}

/* limit reached alert styling */
.alert-limit-reached {
  padding: 2rem;
  border: 1px solid var(--gs-accent-danger);
  border-radius: var(--gs-radius-md);
  text-align: center;
}

.alert-limit-reached h4 {
  color: var(--gs-accent-danger);
}

/* responsive adjustments */
@media (max-width: 768px) {
  .container-search {
    max-width: 90vw;
    min-width: auto;
  }

  .container-sessions {
    max-width: 95vw;
  }

  .container-empty-state {
    max-width: 90vw;
    min-width: auto;
  }

  .container-auth,
  .container-auth-lg {
    max-width: 90vw;
    min-width: auto;
  }

  .container-upgrade {
    max-width: 95vw;
    min-width: auto;
  }

  .input-filter {
    width: 100%;
    max-width: none;
  }
}

/* ========================================
   STAT CARDS (HOME PAGE)
   ======================================== */

.container-stats {
  max-width: 50vw;
  min-width: 20rem;
  margin: 0 auto;
}

.stat-card {
  background: var(--gs-bg-card);
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-lg);
  padding: clamp(0.75rem, 3vw, 1.5rem);
  text-align: center;
  transition: all var(--gs-transition-base);
}

.stat-card:hover {
  box-shadow: var(--gs-shadow-hover);
  transform: translateY(-2px);
}

.stat-icon {
  color: var(--gs-accent-primary);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.25rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--gs-text-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gs-text-muted);
  text-transform: lowercase;
}

@media (max-width: 768px) {
  .container-stats {
    max-width: 95vw;
  }
}

/* ========================================
   ONBOARDING TIPS
   ======================================== */

.onboarding-tips {
  max-width: 24rem;
  margin: 0 auto;
  text-align: left;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gs-border-light);
  font-size: 0.9rem;
  color: var(--gs-text-secondary);
}

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

.tip-item i {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* inline tips (below search) */
.onboarding-tips-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.tip-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gs-text-muted);
}

.tip-inline i {
  color: var(--gs-accent-primary);
  font-size: 0.75rem;
}

.tip-inline strong {
  color: var(--gs-text-secondary);
}

/* ========================================
   LISTING CARDS GRID
   ======================================== */

.listing-cards-grid {
  display: grid;
  /* responsive grid: min 280px or 85vw (whichever is smaller), max 1fr */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(18rem, 28vw)), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

/* mobile: single column */
@media (max-width: 576px) {
  .listing-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* tablet: 2 columns */
@media (min-width: 577px) and (max-width: 992px) {
  .listing-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* desktop: 3 columns */
@media (min-width: 993px) {
  .listing-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   LISTING CARD
   ======================================== */

.listing-card {
  position: relative;
  background: var(--gs-bg-card);
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-lg);
  box-shadow: var(--gs-shadow-sm);
  overflow: hidden;
  transition: all var(--gs-transition-base);
}

.listing-card:hover {
  box-shadow: 0 8px 24px rgba(32, 192, 115, 0.12), var(--gs-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--gs-mint);
  background: linear-gradient(135deg, rgba(32, 192, 115, 0.03) 0%, var(--gs-bg-card) 100%);
}

.listing-card.expanded {
  grid-column: 1 / -1; /* span full width when expanded */
}


.listing-card-skipped {
  opacity: 0.55;
  background: var(--gs-bg-secondary);
}

.listing-card-skipped:hover {
  transform: none;
  box-shadow: var(--gs-shadow-sm);
}

/* profit badge corner */
.profit-badge-corner {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border-radius: 0 var(--gs-radius-lg) 0 var(--gs-radius-md);
  z-index: 2;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .profit-badge-corner {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }
}

.profit-badge-corner.profit-positive {
  background: var(--gs-mint-darker);
  color: white;
}

.profit-badge-corner.profit-negative {
  background: var(--gs-accent-danger);
  color: white;
}

/* checkbox wrapper */
.card-checkbox-wrapper {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
}

.card-checkbox-wrapper .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  border: 2px solid var(--gs-border);
  background: var(--gs-bg-card);
}

.card-checkbox-wrapper .form-check-input:checked {
  background-color: var(--gs-accent-primary);
  border-color: var(--gs-accent-primary);
}

/* card header */
.listing-card-header {
  padding: 1rem;
  padding-left: 2.75rem; /* space for checkbox */
  cursor: pointer;
  transition: background var(--gs-transition-fast);
}

.listing-card-header:hover {
  background: var(--gs-bg-hover);
}

.listing-card-skipped .listing-card-header {
  padding-left: 1rem;
}

/* thumbnail */
.listing-thumbnail-wrapper {
  flex-shrink: 0;
  /* mobile: smaller thumbnail */
  width: 3.5rem;
  height: 3.5rem;
}

@media (min-width: 400px) {
  .listing-thumbnail-wrapper {
    width: 4rem;
    height: 4rem;
  }
}

@media (min-width: 576px) {
  .listing-thumbnail-wrapper {
    /* responsive thumbnail: scales with viewport, clamped between 4rem and 6rem */
    width: clamp(4rem, 12vw, 6rem);
    height: clamp(4rem, 12vw, 6rem);
  }
}

.listing-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--gs-radius-sm);
  border: 1px solid var(--gs-border);
}

.listing-thumbnail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gs-bg-secondary);
}

/* listing info */
.listing-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gs-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.listing-price {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gs-accent-primary);
}

/* expand indicator */
.expand-indicator {
  display: flex;
  align-items: center;
  color: var(--gs-text-muted);
  transition: transform var(--gs-transition-base);
}

.listing-card.expanded .expand-indicator {
  transform: rotate(180deg);
}

/* card detail section */
.listing-card-detail {
  border-top: 1px solid var(--gs-border-light);
  background: var(--gs-bg-secondary);
  padding: 1rem;
  animation: cardSlideDown var(--gs-transition-base);
}

@keyframes cardSlideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 50vh; /* viewport-relative max height */
  }
}

/* card actions */
.listing-card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--gs-border-light);
  background: var(--gs-bg-card);
}

/* card content */
.listing-card-content {
  padding: 0.75rem;
  cursor: pointer;
  transition: background var(--gs-transition-fast);
}

@media (min-width: 576px) {
  .listing-card-content {
    padding: 1rem;
  }
}

/* card row - thumbnail + info layout */
.listing-card-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

@media (min-width: 576px) {
  .listing-card-row {
    gap: 1rem;
  }
}

.listing-card-content:hover {
  background: rgba(32, 192, 115, 0.04);
}

.listing-card-skipped .listing-card-content {
  cursor: default;
}

.listing-card-skipped .listing-card-content:hover {
  background: transparent;
}

/* card info */
.listing-card-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gs-text-primary);
  line-height: 1.3;
  margin-bottom: 0.25rem;
  /* text truncation for long titles */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  /* leave room for profit badge on mobile */
  padding-right: 3.5rem;
}

@media (min-width: 576px) {
  .listing-card-title {
    font-size: 1rem;
    padding-right: 4rem;
  }
}

.listing-card-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.listing-card-meta {
  font-size: 0.75rem;
  color: var(--gs-text-muted);
}

@media (min-width: 576px) {
  .listing-card-meta {
    font-size: 0.85rem;
  }
}

.listing-card-price {
  font-weight: 600;
  color: var(--gs-text-primary);
}

/* game pills preview */
.game-pills-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  /* limit height on mobile to prevent overflow */
  max-height: 3.5rem;
  overflow: hidden;
}

@media (min-width: 576px) {
  .game-pills-preview {
    gap: 0.35rem;
    max-height: none;
  }
}

.game-pill-more {
  background: var(--gs-bg-secondary);
  color: var(--gs-text-muted);
  font-size: 0.75rem;
}

/* expanded game pills list */
.game-pills-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.game-pill-expanded {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: var(--gs-radius-md);
  background: var(--gs-bg-card);
  border: 1px solid var(--gs-border);
}

.game-pill-expanded.game-pill-confirmed {
  background: rgba(32, 192, 115, 0.1);
  border-color: var(--gs-accent-success);
}

.game-pill-expanded.game-pill-needs-selection {
  background: rgba(255, 197, 112, 0.1);
  border-color: var(--gs-accent-warning);
}

.game-pill-expanded.game-pill-needs-analysis {
  background: var(--gs-bg-secondary);
}

.game-pill-expanded .game-pill-name {
  font-weight: 500;
  flex: 1;
}

.game-pill-expanded .game-pill-console {
  font-size: 0.75rem;
  color: var(--gs-text-muted);
  margin-left: 0.5rem;
}

.game-pill-expanded .game-pill-price {
  font-weight: 600;
  color: var(--gs-accent-success);
  margin-left: auto;
}

.game-pill-expanded .game-pill-status {
  font-size: 0.75rem;
  color: var(--gs-text-muted);
  margin-left: auto;
}

/* profit summary in card detail */
.profit-summary-card {
  background: var(--gs-bg-card);
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-md);
  padding: 1rem;
}

.profit-summary-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gs-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.profit-summary-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gs-text-primary);
}

/* larger thumbnail for expanded cards */
.listing-thumbnail-lg {
  /* responsive larger thumbnail: scales with viewport */
  width: clamp(5rem, 15vw, 8rem);
  height: clamp(5rem, 15vw, 8rem);
}

.listing-thumbnail-lg .listing-thumbnail {
  width: 100%;
  height: 100%;
}

/* ========================================
   BATCH ACTIONS BAR
   ======================================== */

.batch-actions-bar {
  background: linear-gradient(135deg, #20C073 0%, #18a562 100%);
  border-radius: var(--gs-radius-lg);
  padding: 0.75rem 1rem;
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.batch-actions-bar .selected-count {
  font-size: 0.9rem;
}

.batch-actions-bar .btn {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  background: transparent;
}

.batch-actions-bar .btn:hover {
  background: white;
  color: #20C073;
  border-color: white;
}

/* ========================================
   GAME PILLS
   ======================================== */

.game-pills-container {
  padding: 0.5rem 0;
}

.game-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--gs-radius-full);
  font-size: 0.7rem;
  background: var(--gs-bg-card);
  border: 1px solid var(--gs-border);
  transition: all var(--gs-transition-fast);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .game-pill {
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }
}

.game-pill:hover {
  box-shadow: var(--gs-shadow-sm);
}

.game-pill-confirmed {
  background: rgba(32, 192, 115, 0.12);
  border-color: var(--gs-accent-success);
}

.game-pill-needs-selection {
  background: rgba(255, 197, 112, 0.15);
  border-color: var(--gs-accent-warning);
}

.game-pill-needs-analysis {
  background: var(--gs-bg-secondary);
}

.game-pill-name {
  font-weight: 500;
  color: var(--gs-text-primary);
}

.game-pill-console {
  font-size: 0.7rem;
  color: var(--gs-text-muted);
  text-transform: uppercase;
}

.game-pill-price {
  font-family: 'SF Mono', monospace;
  font-weight: 600;
  color: var(--gs-accent-success);
}

/* ========================================
   CARD PROFIT SUMMARY
   ======================================== */

.card-profit-summary {
  border-radius: var(--gs-radius-md);
}

.card-profit-summary.profit-summary-positive {
  background: linear-gradient(135deg, rgba(32, 192, 115, 0.12) 0%, rgba(32, 192, 115, 0.04) 100%);
  border: 1px solid var(--gs-accent-success);
}

.card-profit-summary.profit-summary-negative {
  background: linear-gradient(135deg, rgba(255, 123, 123, 0.12) 0%, rgba(255, 123, 123, 0.04) 100%);
  border: 1px solid var(--gs-accent-danger);
}

/* ========================================
   FILTER BUTTONS
   ======================================== */

.filter-btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

.filter-btn.active {
  background: var(--gs-accent-primary);
  border-color: var(--gs-accent-primary);
  color: white;
}

.filter-btn.active:hover {
  background: var(--gs-mint-deep);
  border-color: var(--gs-mint-deep);
}
