:root {
  /* CZYSTE, NEUTRALNE SZARE TŁA */
  --bg: #161618;
  --bg-2: #1e1e1e;
  --bg-3: #262626;
  
  /* Szklane, ciemne panele */
  --panel: rgba(30, 30, 30, 0.65);
  --panel-2: rgba(40, 40, 40, 0.8);
  
  /* Obramowania */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  
  /* Tekst */
  --text: #9e9e9e;
  --text-strong: #ffffff;
  --muted: #757575;
  --muted-2: #525252;
  
  /* Cienie */
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-button: 0 10px 20px rgba(0, 0, 0, 0.25);
  
  /* Przyciski i akcenty */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --primary: #ffffff;
  --primary-2: #e0e0e0;
  --success: #22c55e;
  --danger: #ef4444;

  /* NEON BIAŁY DLA KART I AGENTÓW */
  --neon-glow-color: #ffffff;
  --neon-glow-shadow: rgba(255, 255, 255, 0.7);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(circle at top, var(--bg-3) 0%, var(--bg) 85%);
  overflow-x: hidden !important;
  width: 100vw;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 34%,
    rgba(255, 255, 255, 0.02) 43%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.02) 57%,
    rgba(255, 255, 255, 0) 66%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: globalWave 14s linear infinite;
}

@keyframes globalWave {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes spin { 100% { transform: rotate(360deg); } }

button, input, textarea, select, a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ==================== STRUKTURA ==================== */
.main-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 130px;
}

.page-section {
  display: none;
  width: 100%;
}

.page-section.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-container {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.narrow-section { max-width: 860px; }

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: var(--text-strong);
}

.section-head p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

/* ==================== NAVBAR ==================== */
.header-container { position: absolute; top: 20px; left: 0; right: 0; display: flex; justify-content: center; z-index: 10000; pointer-events: none; width: 100%; }
.floating-nav { pointer-events: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: rgba(22, 22, 22, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 100px; padding: 8px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); width: 95vw; max-width: 1000px; }
.nav-left { display: flex; justify-content: flex-start; align-items: center; }
.nav-brand-pill { padding: 0 15px; font-weight: 900; font-size: 19px; color: #fff; text-decoration: none; cursor: pointer; letter-spacing: -1px; background: none; border: none; }
.nav-center { display: flex; justify-content: center; align-items: center; gap: 5px; }
.nav-link-pill { background: none; border: none; color: #888; padding: 12px 24px; border-radius: 100px; font-weight: 800; font-size: 15px; cursor: pointer; transition: 0.3s; text-decoration: none; white-space: nowrap; }
.nav-link-pill:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-link-pill.active { background: #fff !important; color: #000 !important; box-shadow: 0 4px 15px rgba(255,255,255,0.2); }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.nav-settings-btn-pill { width: 42px !important; height: 42px !important; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; cursor: pointer; transition: 0.2s; color: #888; padding: 0 !important; }
.nav-settings-btn-pill:hover { color: #fff; background: rgba(255, 255, 255, 0.1); transform: rotate(30deg); }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 130%; right: 0; background: #161616; border: 1px solid #222; border-radius: 16px; padding: 10px; width: 160px; z-index: 2100; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.dropdown-menu.show { display: block; }
.dropdown-item { width: 100%; text-align: left; background: none; border: none; color: #888; padding: 12px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 14px; display: block; text-decoration: none; }
.dropdown-item:hover { background: #222; color: #fff; }

/* ==================== HERO ==================== */
#home {
  min-height: calc(100vh - 80px);
}

.hero-block {
  min-height: calc(100vh - 80px);
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 80px;
}

.hero-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(48px, 13vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.07em;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(110deg, #ffffff 0%, #9e9e9e 50%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: heroTextSweep 6s linear infinite;
}

@keyframes heroTextSweep {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-subtitle {
  margin: 20px 0 0;
  max-width: 420px;
  font-size: clamp(15px, 4vw, 20px);
  color: var(--text);
  font-weight: 600;
  line-height: 1.58;
}

.hero-cta-btn {
  margin-top: 32px;
  width: 100%;
  max-width: 340px;
  height: 68px;
  padding: 0 24px;
  border-radius: 26px;
  background: var(--primary);
  color: #000;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(255,255,255,0.15);
  transition: transform 0.18s ease;
  display: flex; align-items: center; justify-content: center;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
}

/* ==================== FILTRY (Wyszukiwarka) ==================== */
.search-filter-row { display: flex; gap: 15px; margin-bottom: 30px; width: 100%; }
.search-box-wrap { flex: 1; position: relative; display: flex; align-items: center; min-width: 0; }
.search-icon { position: absolute; left: 16px; color: #888; }
.search-box-wrap input { width: 100%; background: #1a1a1a; border: 1px solid rgba(255,255,255,0.08); color: #fff; padding: 18px 20px 18px 45px; border-radius: 16px; font-size: 15px; outline: none; transition: 0.2s; }
.search-box-wrap input:focus { border-color: #ffffff; }
.btn-filters-open { background: #1a1a1a; border: 1px solid rgba(255,255,255,0.08); color: #fff; padding: 0 30px; border-radius: 16px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s; font-size: 15px; flex-shrink: 0;}
.btn-filters-open:hover { background: #222; color: #fff; }

/* ==================== PRODUKTY I MODAL ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
}

/* Animacja dla produktów */
@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.product-card-new {
  background-color: #1a1a1a !important; 
  border-radius: 16px !important;
  padding: 14px !important;
  display: flex;
  flex-direction: column;
  border: 1px solid #2a2a2a !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  overflow: hidden;
  
  /* Animacja wjazdu dla karty */
  opacity: 0;
  animation: cardAppear 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.product-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
}

.product-card-new img.main-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  background-color: #1a1a1a;
}

.card-name { font-size: 18px !important; font-weight: 800 !important; color: #fff !important; margin: 10px 0 8px 0 !important; line-height: 1.25 !important; }
.card-price { font-size: 22px !important; font-weight: 900 !important; color: #fff !important; }
.tag-blue { color: #3b82f6; font-size: 12.5px !important; font-weight: 900 !important; text-transform: uppercase; letter-spacing: 0.5px; }
.tag-red { color: #ef4444; font-size: 12.5px !important; font-weight: 900 !important; text-transform: uppercase; letter-spacing: 0.5px; }
.card-price { font-size: 22px !important; font-weight: 900 !important; text-align: center; margin-top: 5px !important; }

.btn-view-agents { 
  background: #111 !important; 
  border: 1px solid #333 !important; 
  color: #fff !important; 
  padding: 10px 14px !important; 
  border-radius: 10px !important; 
  font-weight: 800 !important; 
  font-size: 12px !important; 
  cursor: pointer !important; 
  transition: 0.2s !important; 
  white-space: nowrap !important; 
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important; 
  flex: 1; 
}
.btn-view-agents:hover { background: #222 !important; }

.btn-icon-pill-square { 
  width: 38px !important; 
  height: 38px !important; 
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important; 
  background: #111 !important; 
  border: 1px solid #333 !important; 
  border-radius: 10px !important; 
  cursor: pointer !important; 
  transition: 0.2s !important; 
  padding: 0 !important; 
  flex-shrink: 0 !important; 
  position: relative; 
}
.btn-icon-pill-square:hover { background: #222 !important; }

.copied { border-color: #22c55e !important; }
.copied .copy-icon { display: none !important; }
.copied .success-icon { display: block !important; font-weight: bold; }
.copy-icon { display: block; }
.success-icon { display: none; }

.load-more-container { text-align: center; margin-top: 40px; width: 100%; display: none; }

/* GŁÓWNY BOX - dodane width: 100% żeby go rozciągnąć */
.tracker-wrapper-white { 
    background: var(--panel); 
    border: 1px solid var(--line); 
    border-radius: 30px; 
    padding: 50px 40px; 
    margin: 20px auto; 
    width: 100%; 
    max-width: 900px; 
    box-shadow: var(--shadow-soft); 
}

/* SIATKA KART - zwiększony gap (odstęp) między kurierami */
.tracker-grid-clean { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    width: 100%;
}

/* KARTY KURIERÓW - trochę więcej miejsca w środku */
.tracker-card-clean { 
    background: var(--bg-3); 
    border: 1px solid var(--line); 
    border-radius: 20px; 
    padding: 35px 20px; 
    text-align: center; 
    cursor: pointer; 
    transition: 0.3s;
}

/* ==================== TUTORIALS ==================== */
.tutorials-overview { width: 100%; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 20px; align-items: stretch; justify-content: center; }
.tutorial-card-large, .tutorial-small-card { background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.tutorial-card-large { min-height: 360px; padding: 40px; border-radius: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.tutorial-small-card { padding: 40px; border-radius: 28px; display: flex; flex-direction: column; justify-content: flex-start; }
.tut-overview-circle { position: absolute; bottom: -50px; right: -50px; width: 300px; height: 300px; background: var(--bg-3); border-radius: 50%; z-index: 0; }
.tutorial-card-large > * { position: relative; z-index: 1; }

/* ==================== CONVERTER ==================== */
.converter-dropdown-menu { display: none !important; position: absolute !important; top: 110% !important; left: 50% !important; transform: translateX(-50%); background: #1a1a1a !important; border: 1px solid #333 !important; border-radius: 16px !important; padding: 8px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important; flex-direction: column !important; gap: 4px !important; z-index: 2000 !important; min-width: 160px; backdrop-filter: blur(12px);}
.converter-dropdown-wrapper.open .converter-dropdown-menu { display: flex !important; }

.converter-dropdown-item { width: 100% !important; text-align: left !important; background: none !important; border: none !important; color: #ccc !important; padding: 10px 15px !important; border-radius: 8px !important; font-weight: 700 !important; font-size: 13px !important; cursor: pointer !important; display: flex !important; align-items: center !important; gap: 10px !important; margin-bottom: 4px !important; transition: 0.2s !important;}
.converter-dropdown-item:hover { background: #222 !important; color: #fff !important; }
.converter-dropdown-item.active { background: rgba(255, 255, 255, 0.1) !important; color: #fff !important; }

.platform-pill { font-size: 10px; font-weight: 900; padding: 6px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; border: 1px solid #333; }
.platform-pill-weidian, .platform-pill-taobao, .platform-pill-1688, .platform-pill-tmall { background: rgba(255,255,255,0.05); color: #fff; }
.platform-pill-kakobuy, .platform-pill-usfans, .platform-pill-litbuy, .platform-pill-allchinabuy { background: #fff; color: #000; border-color: #fff; }
.platform-pill-neutral { background: transparent; color: #888; border-color: #333; }

/* ==================== MODAL USTAWIEŃ I AGENTÓW ==================== */
.settings-modal, .filter-modal, .agents-modal, #adminLoginModal, .item-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85) !important; z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(5px); padding: 15px; }
.settings-modal.show, .filter-modal.show, .agents-modal.show, #adminLoginModal.show, .item-modal.show { display: flex; animation: fadeIn 0.2s ease-out; }
.filter-content, .agents-modal-content, .item-modal-content { width: 100%; max-width: 440px; border-radius: 24px !important; padding: 30px !important; box-shadow: 0 25px 50px rgba(0,0,0,0.8) !important; background: #161616 !important; color: #fff !important; border: 1px solid #2a2a2a !important; }
.settings-content { width: 100%; max-width: 460px; background: #161616 !important; border: 1px solid #2a2a2a !important; border-radius: 24px !important; padding: 30px !important; box-shadow: 0 25px 50px rgba(0,0,0,0.8) !important; }

.settings-header, .filter-header, .modal-header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.settings-header h3, .filter-header h3 { font-size: 24px; font-weight: 900; margin: 0; color: #fff !important; }

.settings-close-btn, .close-filter-btn { background: #222 !important; border: 1px solid #333 !important; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: #888 !important; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: 0.2s;}
.settings-close-btn:hover, .close-filter-btn:hover { background: #333 !important; color: #fff !important; }
.agents-modal-close { background: #222 !important; border: 1px solid #333 !important; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: #888 !important; display: flex; align-items: center; justify-content: center;}

/* FILTRY MODAL */
.filter-section-label { font-size: 12px; font-weight: 800; color: #888 !important; text-transform: uppercase; margin-bottom: 12px; display: block; letter-spacing: 0.5px; }
.cat-scroll-box { display: flex !important; flex-direction: column !important; gap: 8px !important; margin-bottom: 25px; max-height: 200px !important; overflow-y: auto !important; padding-right: 8px !important; }
.cat-scroll-box::-webkit-scrollbar { width: 4px; }
.cat-scroll-box::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.filter-btn-opt { background: #111 !important; border: 1px solid #222 !important; border-radius: 8px !important; padding: 12px 16px !important; color: #fff !important; font-weight: 700 !important; text-align: left !important; cursor: pointer; transition: 0.2s; font-size: 14px !important; width: 100% !important;}
.filter-btn-opt:hover { background: #222 !important; border-color: #333 !important; }
.filter-btn-opt.active { background: rgba(254, 254, 255, 0.445) !important; border-color: #ffffff !important; color: #ffffff !important; }

.tags-grid-filter { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; margin-bottom: 25px;}
.tag-opt { background: #111 !important; border: 1px solid #222 !important; border-radius: 8px !important; padding: 12px 18px !important; color: #fff !important; font-weight: 700 !important; text-align: center !important; cursor: pointer; transition: 0.2s; font-size: 14px !important;}
.tag-opt:hover { background: #222 !important; border-color: #333 !important; }
.tag-opt.active { background: rgba(254, 254, 255, 0.445) !important; border-color: #ffffff !important; color: #ffffff !important; }

.filter-footer-btns { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important; border-top: 1px solid #2a2a2a !important; padding-top: 20px !important; margin-top: 0 !important;}
.btn-filter-clear { background: #111 !important; color: #fff !important; border: 1px solid #222 !important; padding: 14px !important; border-radius: 12px !important; font-weight: 800 !important; cursor: pointer; font-size: 14px !important; transition: 0.2s; height: auto !important;}
.btn-filter-clear:hover { background: #222 !important; }
.btn-filter-apply { background: #fff !important; color: #000 !important; border: none !important; padding: 14px !important; border-radius: 12px !important; font-weight: 900 !important; cursor: pointer; font-size: 14px !important; transition: 0.2s; height: auto !important;}
.btn-filter-apply:hover { background: #e5e5e5 !important; }

/* USTAWIENIA MODAL */
.settings-lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 25px; }
.lang-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: row; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.lang-card:hover { border-color: var(--line-strong); background: var(--panel-2); }
.lang-card.active { border-color: #ffffff; background: rgba(59, 130, 246, 0.1); }
.lang-card.active .lang-text-main { color: #ffffff; }
.lang-icon { width: 24px; height: auto; display: block; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.5); flex-shrink: 0; }
.lang-card-separator { width: 1px; height: 32px; background-color: var(--line); margin: 0 10px; flex-shrink: 0; }
.lang-text-group { display: flex; flex-direction: column; gap: 2px; }
.lang-text-main { color: #fff; font-weight: 800; font-size: 13px; transition: 0.2s; white-space: nowrap; }
.lang-text-sub { color: var(--muted); font-weight: 600; font-size: 11px; white-space: nowrap;}

.settings-agent-wrap { position: relative; margin-bottom: 30px; }
.settings-agent-btn { width: 100%; background: #111; border: 1px solid #2a2a2a; padding: 16px 20px; border-radius: 16px; font-weight: 800; font-size: 15px; color: #fff; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.2s; }
.settings-agent-btn:hover { border-color: #444; }
.settings-agent-btn-left { display: flex; align-items: center; gap: 12px; }
.settings-agent-menu { display: none; position: absolute; top: 105%; left: 0; right: 0; background: #161616; border: 1px solid #333; border-radius: 16px; padding: 8px; z-index: 100; box-shadow: 0 15px 40px rgba(0,0,0,0.6); flex-direction: column; gap: 4px; }
.settings-agent-wrap.open .settings-agent-menu { display: flex; }
.settings-agent-item { width: 100%; text-align: left; background: none; border: none; color: #aaa; padding: 12px 16px; border-radius: 10px; font-weight: 800; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: 0.2s;}
.settings-agent-item:hover { background: #222; color: #fff; }
.settings-agent-item.active { background: rgba(59, 130, 246, 0.15); color: #ffffff; }
.settings-save-btn { width: 100%; background: #fff; color: #000; border: none; padding: 16px; border-radius: 14px; font-weight: 900; font-size: 16px; cursor: pointer; transition: 0.2s;}
.settings-save-btn:hover { background: #e5e5e5; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.1);}

/* =====================================================================
           AGENTS MODAL (Niezwykle Clean & Minimalist)
           ===================================================================== */
        .agents-modal-content {
            background: #161616 !important;
            border: 1px solid #2a2a2a !important;
            border-radius: 20px !important;
            padding: 24px 20px !important;
            box-shadow: 0 25px 50px rgba(0,0,0,0.8) !important;
        }
        
        .modal-header-top h3 {
            font-size: 18px !important;
            font-weight: 700 !important;
            color: #fff !important;
            margin: 0 !important;
        }

        .agent-row { 
            display: flex !important; 
            flex-wrap: nowrap !important; 
            align-items: stretch !important; /* Guziki mają idealnie równą wysokość */
            gap: 12px !important; 
            margin-bottom: 12px !important; 
            width: 100% !important; 
        }

        .agent-row:last-child {
            margin-bottom: 0 !important;
        }

        .agent-direct-btn { 
            flex: 1 !important; 
            min-width: 0 !important; 
            display: flex !important; 
            justify-content: space-between !important; 
            align-items: center !important; 
            padding: 12px 16px !important; 
            border: 1px solid #2a2a2a !important; 
            border-radius: 14px !important; 
            background: rgba(255, 255, 255, 0.03) !important; /* Bardzo subtelne tło */
            text-decoration: none !important; 
            color: #fff !important; 
            transition: 0.2s !important; 
        }

        .agent-direct-btn:hover { 
            background: rgba(255, 255, 255, 0.06) !important; 
            border-color: #3a3a3a !important; 
        }

        .agent-info-left {
            display: flex !important;
            align-items: center !important;
            gap: 12px !important;
            font-weight: 500 !important; /* Czysty, nie pogrubiony tekst */
            font-size: 15px !important;
        }

        .agent-info-left img { 
            width: 24px !important; 
            height: 24px !important; 
            border-radius: 50% !important; 
            object-fit: contain !important; 
        }

        .agent-copy-btn { 
            width: 52px !important; 
            flex-shrink: 0 !important; 
            display: flex !important; 
            align-items: center !important; 
            justify-content: center !important; 
            background: rgba(255, 255, 255, 0.03) !important; 
            border: 1px solid #2a2a2a !important; 
            border-radius: 14px !important; 
            cursor: pointer !important; 
            color: #aaa !important; 
            transition: 0.2s !important; 
            padding: 0 !important; 
        }

        .agent-copy-btn:hover { 
            background: rgba(255, 255, 255, 0.06) !important; 
            color: #fff !important; 
            border-color: #3a3a3a !important; 
        }

        .agent-copy-btn svg {
            width: 16px !important; /* Minimalistyczna wielkość ikonki kopiowania */
            height: 16px !important;
        }
        
/* CONFETTI Z PINIATY */
.page-confetti-overlay { pointer-events: none; position: fixed; inset: 0; overflow: hidden; z-index: 9999; }
.confetti-piece { position: absolute; top: -24px; border-radius: 3px; opacity: 0.95; animation: confettiFallPage 2300ms linear forwards; }
@keyframes confettiFallPage {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate3d(var(--drift, 0px), 110vh, 0) rotate(720deg) scale(0.94); opacity: 0; }
}

/* ==================== POPUP REPFINDER (SZARO-BIAŁY) ==================== */
.promo-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100000;
  display: none; 
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.promo-overlay.active { display: flex; opacity: 1; }

.promo-box {
  background: #161618; 
  border: 1px solid #333; 
  border-radius: 20px;
  padding: 40px 30px; 
  width: 90%;
  max-width: 480px; 
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.promo-overlay.active .promo-box { transform: scale(1); }

.close-promo {
  position: absolute;
  top: 15px; right: 15px;
  background: #222;
  border: 1px solid #333;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.close-promo:hover { background: #333; color: #fff; }

.promo-title {
  text-transform: uppercase; 
  font-size: clamp(32px, 5vw, 42px); 
  font-weight: 800; 
  letter-spacing: 1.5px; 
  margin: 0 0 15px 0; 
  color: #fff; 
  background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  background: #1e1e1e;
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 20px;
  border: 1px solid #333;
}

.promo-text-main {
  font-size: 17px; 
  font-weight: 600;
  color: #ccc;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.highlight-text {
  color: #fff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

.promo-text-sub {
  color: #777;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 25px 0;
  font-weight: 500;
}

.promo-btn-action {
  background: #fff;
  color: #000;
  border: none;
  padding: 16px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 14px;
  cursor: pointer;
  width: 100%;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.promo-btn-action:hover {
  background: #e5e5e5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

/* ==================== ROZWIĄZANIE NA TELEFONY (MOBILE FIRST FIXES) ==================== */
@media (max-width: 768px) {
  html, body, .site-shell { width: 100vw; overflow-x: hidden; }
  .main-content { padding-top: 150px; } 
  .section-container { padding: 20px 15px; }
  .hero-inner { padding: 60px 15px 40px; }
  .hero-title { font-size: 48px; letter-spacing: -2px; }

  .header-container { padding: 0 12px; top: 12px; }
  .floating-nav { grid-template-columns: 1fr; background: rgba(20, 20, 20, 0.95); padding: 12px; border-radius: 20px; gap: 10px; }
  
  .nav-left { justify-content: space-between; width: 100%; display: flex; }
  .nav-brand-pill { padding: 0; }
  .nav-right { flex: none; display: flex; gap: 8px; }
  .nav-settings-btn-pill { width: 40px !important; height: 40px !important; }

  .nav-center { width: 100%; display: flex; overflow-x: auto; justify-content: flex-start; padding-top: 5px; border-top: 1px solid rgba(255,255,255,0.08); gap: 5px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-center::-webkit-scrollbar { display: none; }
  .nav-link-pill { padding: 8px 16px; font-size: 13px; flex-shrink: 0; background: rgba(255,255,255,0.03); }

  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .product-card-new { padding: 10px !important; border-radius: 14px !important; }
  
  .card-name { font-size: 12px; }
  .card-price { font-size: 18px !important; text-align: center; margin-top: 5px !important; }
  .card-actions-row { flex-wrap: wrap; justify-content: center; gap: 6px !important; padding-top: 8px; }
  .btn-view-agents { font-size: 11px !important; padding: 8px 12px !important; width: 100%; text-align: center; }
  .btn-icon-pill-square { width: 34px !important; height: 34px !important; }
  
  .search-filter-row { flex-direction: column; gap: 10px; }
  .btn-filters-open { width: 100%; justify-content: center; padding: 16px; }
  
  .tracker-grid-clean { grid-template-columns: minmax(0, 1fr); }
  
  .tutorials-overview { grid-template-columns: 1fr !important; }
  .tutorial-card-large { min-height: 250px; padding: 25px; }
  .tutorial-small-card { padding: 25px; }

  .settings-lang-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 560px) {
  .site-header { padding: max(10px, env(safe-area-inset-top)) 10px 0; }
  .hero-block { padding: 40px 0 70px; min-height: auto; }
  .hero-title { font-size: clamp(36px, 12vw, 52px); }
  .hero-cta-btn { max-width: 100%; height: 64px; font-size: 17px; border-radius: 24px; }

  .filter-bar { margin: 20px auto; }
  .filter-container { flex-direction: column; border-radius: 20px; padding: 12px; gap: 10px; }
  .filter-container::before { display: none; }
  .search-input { width: 100%; font-size: 16px; }
  .filter-bar .filter-actions { width: 100%; grid-template-columns: 1fr 1fr; }
  .filter-btn, .search-bar-btn { width: 100%; justify-content: center; }

  .filter-modal { align-items: flex-end; padding: 0; }
  .filter-modal-content { margin: 0; max-width: 100%; border-radius: 32px 32px 0 0 !important; padding: 24px 24px max(24px, env(safe-area-inset-bottom)) 24px; animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .filter-modal-header h2 { font-size: 20px; }
  .filter-section-label { font-size: 11px; }
  .filter-pill { padding: 12px 14px; font-size: 14px; }
  .filter-options { max-height: 240px; }
  .filter-actions { gap: 10px; }
  .clear-all-btn, .show-results-btn { height: 50px; font-size: 15px; }

  /* PRODUKTY - SIATKA 2 KOLUMNOWA NA TELEFONACH */
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .product-card-new { padding: 12px !important; border-radius: 20px !important; }
  .product-card-new img { height: auto !important; border-radius: 14px !important; margin-bottom: 12px !important; }
  .card-name { font-size: 14px !important; min-height: 38px; margin-bottom: 4px !important; } 
  .card-price { font-size: 18px !important; margin-bottom: 15px !important; }
  .card-tags span { font-size: 10px !important; padding: 4px 8px !important; }
  .card-actions { flex-direction: row !important; gap: 8px !important; }
  .btn-view-agents { padding: 10px 0 !important; font-size: 13px !important; }
  .btn-icon-square { width: 44px !important; height: 44px !important; }
}