:root {
    --card-bg: #111111;
    --border: #27272a;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --green: #4ade80;
    --blue: #3b82f6;
    --purple: #a855f7;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ustawienia nawigacji (fix dla znikającego searchbara w menu, jeśli style.css nie działa) */
.nav-icon-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    transition: 0.3s;
}
.nav-icon-btn:hover { color: var(--blue); }

/* Styl dla nowej sekcji ustawień */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-container {
    position: relative;
}

/* Ikona zębatki */
.nav-icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
}

/* Menu zrzutu ekranu */
.settings-dropdown {
    display: none; 
    position: absolute;
    top: 45px;
    right: 0;
    width: 220px;
    background: #0a0a0a; /* Bardzo ciemne tło */
    border: 1px solid #222;
    border-radius: 12px;
    padding: 12px;
    z-index: 9999;
}

.settings-dropdown.active {
    display: block;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

.setting-label {
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
}

.setting-options {
    display: flex;
    gap: 4px;
}

/* Kwadratowe przyciski wewnątrz menu */
.opt-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opt-btn.active {
    background: #3b82f6; /* Niebieski jak na screenie */
    border-color: #3b82f6;
}

.dropdown-separator {
    border-bottom: 1px solid #222;
    margin: 8px 0;
}
.row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.row-icon {
    color: #a1a1aa;
    margin-right: 12px;
    width: 16px;
    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;
}



/* --- UKŁAD PODSTRONY QC --- */

.qc-main-wrapper {
    margin-top: 100px; /* Odstęp od fixed nav */
    padding: 20px;
    flex: 1;
    display: flex;
    justify-content: center;
}

.qc-container {
    max-width: 1100px;
    width: 100%;
}

.qc-header {
    text-align: center;
    margin-bottom: 40px;
}

.qc-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff, #71717a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qc-header p {
    color: var(--zinc-400);
}

/* --- NOWA SEKCJA INPUTA QC --- */
.qc-search-section {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.qc-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    display: flex;
    align-items: center;
}

.qc-input-wrapper input {
    width: 100%;
    background: #111;
    border: 1px solid var(--border);
    padding: 16px 140px 16px 50px; /* Miejsce na ikonę i przycisk */
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.qc-input-wrapper input:focus {
    border-color: var(--blue);
    background: #161616;
}

.qc-input-wrapper .input-icon {
    position: absolute;
    left: 20px;
    color: var(--zinc-500);
    font-size: 1.1rem;
    pointer-events: none;
}

.qc-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    background: white;
    color: black;
    border: none;
    padding: 0 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.qc-btn:hover {
    background: #e4e4e7;
    transform: scale(0.98);
}

/* --- KARTY --- */
.qc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.qc-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    transition: var(--transition);
    cursor: default;
}

.qc-card:hover {
    transform: translateY(-5px);
    background: #161616;
    border-color: #444;
}

.qc-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.blue-icon { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.green-icon { background: rgba(34, 197, 94, 0.1); color: var(--green); }
.purple-icon { background: rgba(168, 85, 247, 0.1); color: var(--purple); }

.qc-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: white;
}

.qc-card p {
    color: var(--zinc-400);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- QC FINDER RESULTS --- */

.qc-results-area {
    margin-bottom: 50px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qc-results-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-left: 10px;
}

.qc-results-header h2 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.qc-count-badge {
    background: var(--blue);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* GRID ZDJĘĆ */
.qc-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.qc-image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* Kwadratowe kafelki */
    background: #1a1a1a;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.qc-image-card:hover {
    transform: scale(1.02);
    border-color: var(--blue);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.qc-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: 0.3s;
}

/* Nakładka z akcjami na zdjęciu */
.qc-img-actions {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    width: 100%;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transition: 0.3s;
}

.qc-image-card:hover .qc-img-actions {
    opacity: 1;
}

.qc-img-actions a {
    color: white;
    background: rgba(255,255,255,0.2);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: 0.2s;
}

.qc-img-actions a:hover {
    background: var(--blue);
}

/* --- LIGHTBOX MODAL --- */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--blue);
    text-decoration: none;
    cursor: pointer;
}

/* --- QC RESULTS (DODANE) --- */

.qc-results-area {
    margin-bottom: 50px;
    animation: fadeIn 0.5s ease-in-out;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qc-results-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.qc-results-header h2 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.qc-count-badge {
    background: var(--blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* Grid zdjęć */
.qc-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.qc-image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #1a1a1a;
    border: 1px solid var(--border);
    cursor: pointer;
}

.qc-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.qc-image-card:hover img {
    transform: scale(1.05);
}

.qc-image-card:hover {
    border-color: var(--blue);
}

.qc-img-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transition: 0.2s;
}

.qc-image-card:hover .qc-img-actions { opacity: 1; }

.qc-img-actions a {
    color: white;
    background: rgba(255,255,255,0.15);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.qc-img-actions a:hover {
    background: var(--blue);
}

/* Modal (Lightbox) */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover { color: var(--blue); }

/* --- SYSTEM POWIADOMIEŃ (TOAST) --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #09090b; /* Bardzo ciemny szary/czarny */
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease-out;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-icon {
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.1); /* Czerwone tło dla błędu */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 0.9rem;
}

.toast-text {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.toast-close {
    color: #52525b;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
    margin-left: 20px;
}

.toast-close:hover {
    color: white;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
    animation: slideOut 0.3s forwards;
}

@keyframes slideOut {
    to { transform: translateX(100%); opacity: 0; }
}

/* --- TOAST & RESULTS STYLES --- */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 10001; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #09090b; border: 1px solid #27272a; border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; min-width: 280px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: slideIn 0.3s ease; }
.toast-icon { width: 32px; height: 32px; background: rgba(239, 68, 68, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #ef4444; }
.toast-text { color: white; font-weight: 600; margin-left: 12px; }
.toast-close { color: #52525b; cursor: pointer; margin-left: 20px; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.fade-out { animation: slideOut 0.3s forwards; }
@keyframes slideOut { to { transform: translateX(100%); opacity: 0; } }

.qc-results-area { margin: 40px 0; border-top: 1px solid var(--border); padding-top: 20px; }
.qc-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.qc-image-card { border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; border: 1px solid var(--border); transition: 0.3s; }
.qc-image-card img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.qc-image-card:hover { border-color: var(--blue); transform: scale(1.02); }

.image-modal { display: none; position: fixed; z-index: 10000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); padding-top: 50px; }
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 80vh; border-radius: 8px; }
.close-modal { position: absolute; top: 20px; right: 35px; color: white; font-size: 40px; cursor: pointer; }

.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;
  }
}
/* Dodaj obsługę wyświetlania dla obu typów dropdownów */
.settings-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Poprawka dla linków wewnątrz dropdownu narzędzi */
#toolsDropdown .settings-row {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: 0.2s;
}

/* Styl dla linków w menu Narzędzia */
#toolsDropdown .settings-row:hover {
    background: #1a1a1a;
    cursor: pointer;
}

/* Styl dla przycisku Narzędzia w nav */
#toolsBtn {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}