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

body {
  font-family: 'Inter', sans-serif;
  background: #050505;
  color: #f5f5f5;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #111;
}
::-webkit-scrollbar-thumb {
  background: #6b21a5;
  border-radius: 10px;
}

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

.sidebar {
  width: 280px;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(107, 33, 165, 0.3);
  padding: 24px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.logo-icon {
  font-size: 28px;
  color: #a855f7;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; text-shadow: 0 0 0px #a855f7; }
  50% { opacity: 1; text-shadow: 0 0 10px #a855f7; }
}

.logo h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.categories h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
  margin-bottom: 12px;
}

.cat-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 12px;
  color: #aaa;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.cat-btn .btn-icon {
  font-size: 18px;
  width: 28px;
}

.cat-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  color: #fff;
  transform: translateX(4px);
}

.cat-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.05));
  color: #a855f7;
  border-left: 2px solid #a855f7;
}

.filter-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-section h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
  margin-bottom: 10px;
  margin-top: 12px;
}

.filter-section h3:first-of-type {
  margin-top: 0;
}

.filter-select {
  width: 100%;
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
  color: white;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 12px;
}

.filter-select:focus {
  outline: none;
  border-color: #a855f7;
}

.price-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.price-input {
  flex: 1;
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 10px;
  padding: 8px 8px;
  color: white;
  font-size: 12px;
  text-align: center;
  width: 80px;
}

.price-input:focus {
  outline: none;
  border-color: #a855f7;
}

.price-filter span {
  color: #666;
  font-size: 12px;
}

.clear-filter-btn {
  width: 100%;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 10px;
  padding: 8px;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.clear-filter-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
}

.stats {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  background: rgba(168, 85, 247, 0.05);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.title-section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.gradient-text {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-section p {
  color: #666;
  font-size: 13px;
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.search-box input {
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 30px;
  padding: 10px 16px 10px 40px;
  width: 260px;
  color: #fff;
  font-size: 13px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #a855f7;
  background: #111;
  width: 280px;
}

.search-box input::placeholder {
  color: #444;
}

/* KARTY PRODUKTÓW - RÓWNA WYSOKOŚĆ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.card {
  background: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 14px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.4, 1);
  border: 1px solid rgba(168, 85, 247, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.card:hover::before {
  transform: translateX(100%);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 20px 40px -20px rgba(168, 85, 247, 0.3);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.card-img-wrapper img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-img-wrapper:hover img {
  transform: scale(1.05);
}

.zoom-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.zoom-icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
  stroke-width: 2;
}

.card-img-wrapper:hover .zoom-icon {
  opacity: 1;
  transform: scale(1.05);
}

.card h3 {
  margin: 12px 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.card-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0;
  flex-shrink: 0;
}

.card-price-usd {
  font-size: 18px;
  font-weight: 700;
  color: #a855f7;
}

.card-price-pln {
  font-size: 12px;
  color: #888;
}

.rating {
  color: #fbbf24;
  font-size: 12px;
  margin: 8px 0;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.tag {
  display: inline-block;
  background: linear-gradient(135deg, #6b21a5, #a855f7);
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 16px;
  position: absolute;
  top: 18px;
  right: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

button.link {
  width: 100%;
  padding: 10px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  font-size: 13px;
}

button.link:hover {
  background: #a855f7;
  border-color: #a855f7;
  transform: scale(0.98);
}

.loading {
  text-align: center;
  padding: 50px;
  color: #666;
  font-size: 14px;
}

/* PŁYWAJĄCE KOŁO Z LINKAMI */
.floating-circle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.circle-trigger {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #6b21a5, #a855f7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
  transition: all 0.3s ease;
  animation: glow 2s infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.5); }
  50% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.8); }
}

.circle-trigger:hover {
  transform: scale(1.08);
}

.plus-icon {
  font-size: 28px;
  font-weight: 300;
  color: white;
  transition: transform 0.3s ease;
}

.circle-trigger.open .plus-icon {
  transform: rotate(45deg);
}

.circle-links {
  position: absolute;
  bottom: 65px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.circle-links.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(168, 85, 247, 0.4);
  overflow: hidden;
}

.link-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: all 0.25s ease;
}

.link-item:hover {
  transform: scale(1.12) translateX(-4px);
}

.link-item.tiktok:hover {
  background: #000;
  border-color: #25f4ee;
}

.link-item.discord:hover {
  background: #5865f2;
  border-color: #5865f2;
}

.link-item.kakobuy:hover {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-color: #ff6b35;
}

.link-item:hover img {
  transform: scale(1.1);
}

/* LIGHTBOX - POWIĘKSZANIE ZDJĘĆ */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.3);
  animation: zoomIn 0.3s ease;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 48px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3001;
  font-weight: 300;
}

.lightbox-close:hover {
  color: #a855f7;
  transform: rotate(90deg);
}

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

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* POPUP REJESTRACYJNY */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-container {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.98));
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 28px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 25px 50px -12px rgba(168, 85, 247, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}

.popup-overlay.active .popup-container {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-close:hover {
  color: #a855f7;
  transform: rotate(90deg);
}

.popup-icon {
  font-size: 40px;
  margin-bottom: 12px;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.popup-container h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.popup-container p {
  color: #aaa;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.popup-code {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.code-label {
  font-size: 11px;
  color: #888;
}

.code-value {
  font-size: 16px;
  font-weight: 700;
  color: #a855f7;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 1px;
  font-family: monospace;
}

.copy-code {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #a855f7;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.copy-code:hover {
  background: #a855f7;
  color: white;
}

.popup-discount {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.05));
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #fff;
}

.popup-discount strong {
  color: #a855f7;
  font-size: 14px;
}

.popup-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6b21a5, #a855f7);
  color: white;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 12px;
  font-size: 14px;
}

.popup-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.popup-footer {
  font-size: 10px;
  color: #666;
  margin-bottom: 0;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .app {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 16px;
  }
  .main {
    padding: 16px;
  }
  .search-box input {
    width: 100%;
  }
  .search-box input:focus {
    width: 100%;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
  .card {
    min-height: 380px;
  }
  .card-img-wrapper img {
    height: 160px;
  }
  .card h3 {
    font-size: 15px;
    min-height: 40px;
  }
  .floating-circle {
    bottom: 16px;
    right: 16px;
  }
  .circle-trigger {
    width: 44px;
    height: 44px;
  }
  .plus-icon {
    font-size: 24px;
  }
  .link-item {
    width: 40px;
    height: 40px;
  }
  .price-filter {
    gap: 4px;
  }
  .price-input {
    width: 70px;
    font-size: 11px;
    padding: 6px 4px;
  }
  .popup-container {
    padding: 20px;
    max-width: 300px;
  }
  .popup-container h3 {
    font-size: 18px;
  }
  .popup-icon {
    font-size: 36px;
  }
  .lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 36px;
  }
}

/* Bardzo małe ekrany (do 480px) */
@media (max-width: 480px) {
  .sidebar {
    padding: 10px 12px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  
  .card {
    min-height: 290px;
  }
  
  .card-img-wrapper img {
    height: 120px;
  }
  
  .card h3 {
    font-size: 12px;
    min-height: 32px;
  }
  
  .card-price-usd {
    font-size: 14px;
  }
  
  .card-price-pln {
    font-size: 9px;
  }
  
  button.link {
    padding: 6px;
    font-size: 10px;
  }
  
  .tag {
    padding: 2px 6px;
    font-size: 7px;
  }
}

/* Touch-friendly */
@media (hover: none) and (pointer: coarse) {
  .cat-btn, button.link, .clear-filter-btn, .filter-select, .circle-trigger {
    min-height: 44px;
  }
  
  .cat-btn {
    padding: 10px 12px;
  }
  
  button.link {
    padding: 12px;
  }
}