/* Custom fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-main: #090a0f;
  --bg-card: rgba(20, 22, 33, 0.6);
  --bg-card-hover: rgba(28, 31, 46, 0.85);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;
  
  --primary: #8b5cf6; /* violet-500 */
  --primary-glow: rgba(139, 92, 246, 0.3);
  --secondary: #10b981; /* emerald-500 */
  --secondary-glow: rgba(16, 185, 129, 0.2);
  --danger: #ef4444; /* red-500 */
  --danger-glow: rgba(239, 68, 68, 0.2);
  
  /* Rarity Colors */
  --rarity-gold: #e5c158;
  --rarity-gold-glow: rgba(229, 193, 88, 0.25);
  
  --rarity-holo-gradient: linear-gradient(135deg, #ff007f 0%, #7f00ff 50%, #00f0ff 100%);
  --rarity-holo-glow: rgba(127, 0, 255, 0.25);
  
  --rarity-glitter: #00d2ff;
  --rarity-glitter-glow: rgba(0, 210, 255, 0.25);
  
  --rarity-paper: #9ca3af;
  --rarity-paper-glow: rgba(156, 163, 175, 0.15);
  
  /* Layout */
  --header-height: 70px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-col: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Header */
header {
  height: var(--header-height);
  background: rgba(9, 10, 15, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo svg {
  color: var(--primary);
  fill: none;
  stroke: url(#logo-grad);
  filter: drop-shadow(0 0 8px var(--primary));
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
  padding: 5px 0;
}

nav a:hover {
  color: #fff;
}

nav a.active {
  color: var(--primary);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  border-radius: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tg-connect-btn {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.tg-connect-btn:hover {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.tg-connect-btn.connected {
  border-color: var(--secondary);
  background: rgba(16, 185, 129, 0.1);
}

.tg-connect-btn.connected:hover {
  background: var(--secondary);
  box-shadow: 0 0 15px var(--secondary-glow);
}

/* Main Area */
main {
  flex: 1;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Glassmorphism Containers */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--border-hover);
}

/* Dashboard Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.metric-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

.change-up {
  color: var(--secondary);
}

.change-down {
  color: var(--danger);
}

/* Sticker Display Cards Grid */
.stickers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Sticker card premium styles */
.sticker-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 310px;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.sticker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: all 0.3s ease;
}

.sticker-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px rgba(0,0,0,0.5);
}

/* Neon glows for specific rarities */
.sticker-card.rarity-gold::before {
  background: var(--rarity-gold);
}
.sticker-card.rarity-gold:hover {
  border-color: rgba(229, 193, 88, 0.4);
  box-shadow: 0 0 20px var(--rarity-gold-glow);
}

.sticker-card.rarity-holo::before {
  background: var(--rarity-holo-gradient);
}
.sticker-card.rarity-holo:hover {
  border-color: rgba(127, 0, 255, 0.4);
  box-shadow: 0 0 20px var(--rarity-holo-glow);
}

.sticker-card.rarity-foil::before,
.sticker-card.rarity-glitter::before {
  background: var(--rarity-glitter);
}
.sticker-card.rarity-foil:hover,
.sticker-card.rarity-glitter:hover {
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 20px var(--rarity-glitter-glow);
}

.sticker-card.rarity-paper::before {
  background: var(--rarity-paper);
}
.sticker-card.rarity-paper:hover {
  border-color: rgba(156, 163, 175, 0.3);
  box-shadow: 0 0 15px var(--rarity-paper-glow);
}

/* Sticker image container */
.sticker-image-wrapper {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
  margin-top: 15px;
}

/* Dynamically styled SVG representations for stickers */
.sticker-svg-icon {
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticker-card:hover .sticker-svg-icon {
  transform: scale(1.1) rotate(5deg);
}

.sticker-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sticker-rank {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.sticker-name {
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.sticker-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sticker-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
}

.sticker-price {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.sticker-prev {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Controls Panel (Search/Filters) */
.controls-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-end;
  background: rgba(15, 17, 26, 0.4);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: 12px;
}

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

.filter-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.segmented-control {
  display: flex;
  background: rgba(10, 11, 18, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  padding: 2px;
  height: 34px;
  align-items: center;
}

.control-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 14px;
  height: 28px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.control-btn:hover {
  color: #fff;
}

.control-btn.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.filter-select-custom,
.filter-select {
  background: rgba(10, 11, 18, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 12px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 34px;
}

.filter-select-custom:focus {
  border-color: var(--primary);
}

.filter-input-custom {
  background: rgba(10, 11, 18, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0 12px;
  outline: none;
  transition: all 0.2s ease;
  height: 34px;
  width: 100%;
}

.filter-input-custom:focus {
  border-color: var(--primary);
}

/* Data View Table */
.data-table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 18px 20px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tr {
  transition: background-color 0.2s ease;
}

.data-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.row-sticker-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.row-sticker-icon {
  width: 40px;
  height: 40px;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-gold { background: rgba(229, 193, 88, 0.15); color: var(--rarity-gold); border: 1px solid rgba(229, 193, 88, 0.3); }
.badge-holo { background: rgba(127, 0, 255, 0.15); color: #c084fc; border: 1px solid rgba(127, 0, 255, 0.3); }
.badge-foil { background: rgba(0, 210, 255, 0.15); color: var(--rarity-glitter); border: 1px solid rgba(0, 210, 255, 0.3); }
.badge-glitter { background: rgba(0, 210, 255, 0.15); color: var(--rarity-glitter); border: 1px solid rgba(0, 210, 255, 0.3); }
.badge-paper { background: rgba(156, 163, 175, 0.15); color: var(--rarity-paper); border: 1px solid rgba(156, 163, 175, 0.3); }

.table-btn {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.table-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Compare view structures */
.compare-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

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

.compare-selector {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sticker-select-btn {
  width: 100%;
  background: rgba(15, 17, 26, 0.8);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.remove-btn:hover {
  color: var(--danger);
}

/* Sticker Detail View Layout */
.sticker-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

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

.sticker-hero {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.sticker-hero-icon {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 0 15px var(--glow-color, rgba(255,255,255,0.1)));
}

.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.detail-stat-card {
  background: rgba(15, 17, 26, 0.6);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 10px;
}

/* Alert Form Styles */
.alert-form-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
}

.form-input {
  background: rgba(15, 17, 26, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 15px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
}

.submit-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover {
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-1px);
}

/* Telegram Connect Wizard modal style panel */
.tg-wizard {
  text-align: center;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
}

.pin-display {
  background: rgba(15, 17, 26, 0.8);
  border: 2px dashed var(--primary);
  font-size: 2.5rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.2em;
  padding: 15px;
  border-radius: 12px;
  margin: 25px 0;
  color: #fff;
  font-weight: 700;
  text-indent: 0.1em;
}

.wizard-steps {
  text-align: left;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wizard-step {
  display: flex;
  gap: 15px;
}

.step-num {
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-text code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: #c084fc;
}

/* Alert list */
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.alert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 17, 26, 0.5);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 10px;
}

.alert-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-item-sticker {
  font-weight: 600;
  font-size: 0.95rem;
}

.alert-item-rule {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.alert-item-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active { color: var(--secondary); }
.status-triggered { color: var(--text-dark); }

/* FLOATING TELEGRAM SIMULATOR WIDGET */
.tg-simulator-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 360px;
  height: 500px;
  background: #17212b; /* Telegram dark mode color */
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
  transform-origin: bottom right;
}

.tg-simulator-widget.minimized {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transform: scale(0.9);
}

.tg-header {
  background: #242f3d;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
}

.tg-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0088cc, #005580);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.tg-name-container {
  display: flex;
  flex-direction: column;
}

.tg-bot-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.tg-bot-status {
  font-size: 0.75rem;
  color: #64b5f6; /* blue-300 */
}

.tg-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-btn {
  background: transparent;
  border: none;
  color: #7f91a4;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.tg-btn:hover {
  color: #fff;
}

/* Minimized Floating Action Button */
.tg-fab {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0088cc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 1001;
}

.tg-simulator-widget.minimized .tg-fab {
  opacity: 1;
  pointer-events: auto;
}

.tg-simulator-widget.minimized .tg-header,
.tg-simulator-widget.minimized .tg-chat-body,
.tg-simulator-widget.minimized .tg-input-area {
  display: none !important;
}

/* Chat Body */
.tg-chat-body {
  flex: 1;
  background-color: #0e1621;
  background-image: radial-gradient(rgba(0,0,0,0.15) 15%, transparent 16%), radial-gradient(rgba(0,0,0,0.15) 15%, transparent 16%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-message {
  max-width: 80%;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-line;
}

.tg-message a {
  color: #64b5f6;
  text-decoration: underline;
}

.tg-message.bot {
  background: #182533;
  color: #f5f6f7;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.tg-message.user {
  background: #2b5278;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.tg-msg-time {
  display: block;
  font-size: 0.65rem;
  text-align: right;
  margin-top: 4px;
  color: rgba(255,255,255,0.4);
}

/* Input Area */
.tg-input-area {
  background: #17212b;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(0,0,0,0.15);
}

.tg-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.9rem;
}

.tg-chat-input::placeholder {
  color: #7f91a4;
}

.tg-send-btn {
  background: transparent;
  border: none;
  color: #2f8cc9;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.tg-send-btn:hover {
  color: #64b5f6;
}

/* Alert dialog helper */
.toast {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: #1f2937;
  border-left: 4px solid var(--primary);
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1100;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* REAL CS2 CDN STICKER IMAGES */
.sticker-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticker-card:hover .sticker-img {
  transform: scale(1.1) rotate(5deg);
}

.row-sticker-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

@media (max-width: 640px) {
  header {
    padding: 0 20px;
  }
  main {
    padding: 20px;
  }
  nav {
    display: none;
  }
  footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Premium Table Row Rarity Styling */
.data-table tr {
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}

.data-table tr.rarity-gold {
  border-left-color: var(--rarity-gold);
}
.data-table tr.rarity-holo {
  border-left-color: #c084fc;
}
.data-table tr.rarity-foil,
.data-table tr.rarity-glitter {
  border-left-color: var(--rarity-glitter);
}
.data-table tr.rarity-paper {
  border-left-color: var(--rarity-paper);
}

.data-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

.data-table tr.rarity-gold:hover td {
  background-color: rgba(229, 193, 88, 0.04) !important;
}
.data-table tr.rarity-holo:hover td {
  background-color: rgba(127, 0, 255, 0.04) !important;
}
.data-table tr.rarity-foil:hover td,
.data-table tr.rarity-glitter:hover td {
  background-color: rgba(0, 210, 255, 0.04) !important;
}
.data-table tr.rarity-paper:hover td {
  background-color: rgba(156, 163, 175, 0.03) !important;
}

/* Compare Page Cards & Grid Selection */
.compare-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 135px;
  text-align: center;
  user-select: none;
}

.compare-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.compare-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.compare-card.rarity-gold::before { background: var(--rarity-gold); }
.compare-card.rarity-holo::before { background: var(--rarity-holo-gradient); }
.compare-card.rarity-foil::before,
.compare-card.rarity-glitter::before { background: var(--rarity-glitter); }
.compare-card.rarity-paper::before { background: var(--rarity-paper); }

.compare-card.selected {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 15px var(--primary-glow);
}

.select-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  border: 1.5px solid #fff;
  z-index: 5;
  transition: all 0.2s ease;
}

.compare-card-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.compare-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding: 0 5px;
}

.compare-card-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
}

/* Horizontal Selected Badges Bar */
.compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 22, 33, 0.8);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.compare-badge:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(28, 31, 46, 0.95);
}

.compare-badge-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.compare-badge-remove:hover {
  color: var(--danger);
}

