:root {
    --bg: #0A0A0A;
    --card-bg: #111111;
    --border: #27272a;
    --zinc-400: #a1a1aa;
    --green: #4ade80;
    --transition: 0.3s ease;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    line-height: 1.6;
}

/* Tło z siatką */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, #ffffff05 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

/* Nawigacja */
nav {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo { font-weight: 900; font-size: 1.5rem; letter-spacing: -1px; }

.search-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    width: 300px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--zinc-400);
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    margin-left: 10px;
    width: 100%;
}

/* --- STYLE DLA MENU USTAWIEŃ --- */
.nav-icons {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.discord-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.fa-discord {
    font-size: 1.5rem; /* Powiększona, by pasowała do zębatki */
    color: var(--zinc-400);
    transition: var(--transition);
}

.discord-link:hover .fa-discord {
    color: #5865F2;
    transform: translateY(-2px);
}

.fa-cog {
    font-size: 1.5rem; /* Powiększona z 1.2rem */
    cursor: pointer;
    transition: var(--transition);
    color: var(--zinc-400);
    display: flex;
    align-items: center;
}
.fa-cog:hover { color: white; transform: rotate(90deg); }

.settings-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    width: 260px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1100;
    backdrop-filter: blur(10px);
}

.settings-dropdown.active { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-group { border-bottom: 1px solid #222; margin-bottom: 8px; padding-bottom: 8px; }

.settings-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px; border-radius: 8px; cursor: pointer; transition: 0.2s;
}

.settings-row:hover {
    background: #1a1a1a;
}

.row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.row-icon {
    color: var(--zinc-400);
    width: 20px;
    text-align: center;
}

.row-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--zinc-400);
    font-size: 0.9rem;
}

.arrow-icon {
    font-size: 0.7rem;
    transition: 0.3s;
}

.arrow-icon.rotate {
    transform: rotate(90deg);
}

/* Lista Walut */
.currency-list {
    display: none;
    margin-top: 5px;
    padding-left: 10px;
}

.currency-list.show {
    display: block;
}

.curr-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--zinc-400);
    transition: 0.2s;
    font-size: 0.9rem;
}

.curr-option:hover {
    background: #1a1a1a;
    color: white;
}

.curr-option.selected {
    color: white;
    font-weight: 700;
}

.curr-option i {
    width: 20px;
    text-align: center;
}

/* Flagi */
.flags-container {
    display: flex;
    gap: 10px;
}

.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.5;
    transition: 0.2s;
    border: 2px solid transparent;
}

.flag-icon:hover {
    opacity: 0.8;
}

.flag-icon.active {
    opacity: 1;
    border-color: white;
}

/* Hero */
.hero {
    padding: 140px 20px 60px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin: 0;
    background: linear-gradient(to right, #fff, #555, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200%;
    animation: flow 5s linear infinite;
    
}

@keyframes flow { to { background-position: 200%; } }

/* Filtry */
.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--zinc-400);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    border-color: white;
    color: white;
}

/* Grid Produktów */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #555;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.image-box {
    width: 100%;
    height: 240px;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.image-box img { width: 100%; height: 100%; object-fit: cover; }

.product-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    font-size: 1.1rem;
    font-weight: 800;
    white-space: nowrap;
    color: #ffffff;
    margin-left: 10px;
}

.category-text {
    color: var(--zinc-400);
    font-size: 0.8rem;
    margin: 8px 0;
}

/* Przycisk KAKOBUY */
.buy-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    transition: 0.2s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.buy-btn:hover {
    background: #e5e5e5;
    transform: scale(1.02);
}

.kako-logo-icon {
    background: #000;
    color: #fff;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
}

/* Modal */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #111;
    border: 1px solid #27272a;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    color: white;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #555;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 600px) {
    .modal-body { grid-template-columns: 1fr; }
}

.modal-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #27272a;
}

.modal-price {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    margin: 10px 0;
}

.modal-tag {
    background: #27272a;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.buy-btn.large {
    margin-top: 20px;
    padding: 18px;
    font-size: 1.1rem;
}

footer {
    margin-top: 100px;
    padding: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--zinc-400);
}

.quality {
    display: none;
}

.promo-banner {
  margin: 60px auto;
  padding: 0 20px;
}

.promo-content {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1b1b1b, #121212);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.promo-text h3 {
  color: #ff2d55; /* różowy jak KakoBuy */
  font-size: 22px;
  margin: 0 0 6px;
}

.promo-text p {
  color: #bdbdbd;
  margin: 0;
  font-size: 15px;
}

.promo-btn {
  background: #ffffff;
  color: #000;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.promo-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 640px) {
  .promo-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-btn {
    width: 100%;
    text-align: center;
  }
}

