/* TWOJE ORYGINALNE STYLE (ZACHOWANE) */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --brand-blue:#0e3466;
  --brand-red:#E53935;
  --gold:#FFD200;
  --gold-dark:#e6be00;
  --form-bg:#fbf8f0;
  --text:#111;
  --nav-bg:#E53935;
  --nav-hover-gradient:linear-gradient(120deg,#ff0000,#ff6a00,#ffb347);
  --transition:200ms ease;
  --max-width:1100px;
}

body{
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  min-height:100vh;
  background:linear-gradient(120deg,#440064,#270e61,#0205b8,#0050e4,#c905db,#f80d5b,#fd0303,#f87f0d,#f86b0d,#f30410,#083ce6,#7008e6,#440064);
  background-size:300% 300%;
  animation:bgMove 20s ease infinite;
  overflow-x: hidden;
}
@keyframes bgMove{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

header{background:#fff;padding:14px 0;border-bottom:1px solid rgba(0,0,0,0.06)}
.header-inner{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
}

.logo-wrap{display:flex;align-items:center;gap:12px}
.logo-icon-img{
  height:56px;width:auto;display:block;
  border-radius:50%;
  box-shadow:0 6px 18px rgba(0,0,0,0.12);
  object-fit:cover;
}
.logo-text{
  font-weight:800;font-size:28px;
  display:flex;align-items:center;gap:6px;line-height:1;
}
.logo-text .twoja{color:var(--brand-blue)}
.logo-text .pensja{color:var(--brand-red)}
.logo-text .pl{color:var(--brand-blue)}

.nav-links{display:flex;gap:14px;align-items:center}

/* POPRAWIONE PRZYCISKI MENU - Dłuższa animacja gradientu */
.nav-item{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size: 13px;
  background:var(--nav-bg);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: box-shadow 0.8s ease, color 0.8s ease; 
}
.nav-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--nav-hover-gradient);
  opacity: 0;
  transition: opacity 0.8s ease; 
  z-index: -1;
}
.nav-item:hover {
  color:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,0.12);
}
.nav-item:hover::before {
  opacity: 1;
}

/* --- MOBILE NAV --- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2100;
}
.hamburger-btn span {
  width: 100%;
  height: 3px;
  background: var(--brand-blue);
  border-radius: 4px;
  transition: var(--transition);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 260px;
  height: auto;
  background: var(--brand-blue);
  z-index: 2050;
  padding: 20px 15px 30px 15px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-bottom-left-radius: 20px;
  box-shadow: -10px 10px 30px rgba(0,0,0,0.25);
}
.mobile-nav.active { right: 0; }
.mobile-nav-links { display: flex; flex-direction: column; align-items: center; }
.mobile-nav-links a {
  color: #fff; text-decoration: none; font-size: 18px; font-weight: 700;
  padding: 15px 0; width: 100%; text-align: center;
}
.menu-sep { width: 70%; height: 1px; background: var(--brand-red); margin: 2px auto; opacity: 0.6; }
.mobile-nav-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); display: none; z-index: 2040; backdrop-filter: blur(2px);
}
.mobile-nav-overlay.active { display: block; }

/* --- SEKCJA WYNIKÓW (Ogólna) --- */
.results-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 20px; 
  margin-top: 60px; 
}

.result-card {
  background: var(--form-bg); 
  padding: 16px;
  border-radius: 12px; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  min-height: 200px; 
  display: flex;
  flex-direction: column;
}

/* --- ELEMENTY KART PENSJOMETRU --- */
.flex-card {
  justify-content: space-between;
}

.counter-wrap {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.bottom-group {
  margin-top: 10px;
}
.counter-num { font-size: 32px; font-weight: 900; color: var(--brand-red); }

#top3-list { 
  list-style: none; padding: 0; 
  display: flex; 
  flex-direction: column; 
  flex-grow: 1; 
  justify-content: space-between; 
}
#top3-list li { 
  display: flex; justify-content: space-between; padding: 12px 0; 
  border-bottom: 1px dashed #ddd; font-weight: 600; 
  align-items: center;
}
#top3-list li:last-child { border-bottom: none; }
#top3-list .rank { color: var(--gold-dark); font-weight: 900; width: 20px; }
#top3-list .name { flex-grow: 1; margin-left: 5px; }

/* MAPY I LEGENDA */
.map-layout {
  display: flex;
  align-items: center;
  height: 100%;
}
.map-legend-side {
  width: 35%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 10px;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
}
.dot { width: 12px; height: 12px; display: block; border-radius: 2px; }
.dot.green { background-color: #00a651; }
.dot.yellow { background-color: #fff200; }
.dot.red { background-color: #ed1c24; }

.map-img-container {
  width: 65%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.map-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
}

.result-title{font-weight:800;color:var(--brand-blue);margin-bottom:8px}
.result-value{font-size:28px;font-weight:900;color:var(--brand-red)}
.result-sub{color:#333;margin-bottom:10px}
.result-bar-wrap{ background:#eee; height:10px; border-radius:6px; overflow:hidden; }
.result-bar{ height:10px; background:var(--gold); width:0%; transition:width .6s ease; }

.gauge-wrapper {
  flex: 1 1 300px; display: flex; align-items: center; justify-content: center;
  padding-top: 40px; min-height: 250px;
}
.gauge-container {
  position: relative; width: 300px; height: 150px;
  transform-origin: center center; transition: transform 0.3s ease;
}
canvas { width: 300px; height: 150px; display: block; margin: 0 auto; }
.gauge-labels {
  position: absolute; top: -14px; left: -14px; right: -7px; bottom: 0; pointer-events: none;
}
.g-label {
  position: absolute; font-size: 10px; font-weight: 800; color: var(--brand-blue);
  text-align: center; line-height: 1.1; transform: translate(-50%, -50%); width: 100px;
}
.p0 { left: 10%; top: 92%; text-align: left; }
.p25 { left: 15%; top: 38%; }
.p50 { left: 50%; top: 5%; }
.p75 { left: 85%; top: 38%; }
.p100 { left: 90%; top: 92%; text-align: right; }

footer{ background:var(--brand-blue); color:#fff; padding:18px 0; margin-top:40px; }
.footer-inner{
  max-width:var(--max-width); margin:0 auto; display:flex;
  justify-content:space-between; align-items:center; padding:0 16px;
}
.footer-links a{ color:var(--gold); text-decoration:none; margin-left:18px; font-weight:700; }

/* ========================================= */
/* BANER COOKIES I MODAL USTAWIEN RODO       */
/* ========================================= */

/* WYŚRODKOWANY BANER COOKIES */
.cookie-banner{
  position:fixed; 
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%); /* To odpowiada za idealne wyśrodkowanie */
  width: 90%; 
  max-width: 650px; /* Maksymalna szerokość by nie był "jamnikiem" */
  background:#fff; 
  padding:25px; 
  border-radius:12px;
  box-shadow:0 15px 50px rgba(0,0,0,0.25);
  display:flex; 
  flex-direction: column; /* Ułożenie elementów jeden pod drugim */
  justify-content:center; 
  align-items:center; 
  gap:15px; 
  z-index:9999;
}
.cookie-inner{
  display:flex;
  flex-direction: column;
  align-items:center;
  text-align: center;
}
.cookie-text {
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}
.cookie-actions{
  display:flex;
  gap:15px; 
  justify-content: center;
}
.btn{padding:10px 16px;border-radius:8px;border:0;cursor:pointer;font-weight:700; font-size: 14px; transition: 0.2s;}
.btn:hover{opacity: 0.9; transform: translateY(-1px);}
.btn-primary{background:var(--brand-blue);color:#fff}
.btn-link{background:transparent;color:var(--brand-blue)}

/* Modal z ustawieniami cookies */
.cookie-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); z-index: 10000;
  display: flex; justify-content: center; align-items: center;
  backdrop-filter: blur(3px);
}
.cookie-modal-box {
  background: #fff; padding: 25px 30px; border-radius: 12px;
  width: 90%; max-width: 500px; box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.cookie-option-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 0; border-bottom: 1px solid #eee;
}
.cookie-option-row:last-of-type { border-bottom: none; }

/* Przełączniki (Toggle Switches) */
.switch {
  position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; margin-left: 15px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; transition: .4s;
}
.slider:before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: white; transition: .4s;
}
input:checked + .slider { background-color: var(--brand-blue); }
input:focus + .slider { box-shadow: 0 0 1px var(--brand-blue); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }
input:disabled + .slider { opacity: 0.6; cursor: not-allowed; }

/* --- ANKIETA I ŚCIANA WSTYDU --- */
.survey-intro { font-size: 18px; font-weight: 700; color: var(--brand-blue); margin-bottom: 20px; }
.survey-options { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  margin-bottom: 20px;
}
.survey-option {
  display: flex;
  align-items: center; 
  gap: 12px;
  padding: 8px 12px; 
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.2s;
  font-weight: 600;
  color: #444;
  font-size: 14px; 
}
.survey-option:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }

.survey-option input { display: none; }
.checkmark {
  width: 20px; height: 20px; 
  border: 2px solid var(--brand-blue);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.checkmark:after {
  content: "✔"; color: #fff; font-size: 14px; display: none;
}
.survey-option input:checked ~ .checkmark { background: var(--brand-blue); }
.survey-option input:checked ~ .checkmark:after { display: block; }

.survey-results { margin-top: 30px; }
.survey-result-row { margin-bottom: 12px; }
.s-bar-bg { background: #eee; height: 12px; border-radius: 6px; position: relative; overflow: hidden; }
.s-bar-fill { background: var(--brand-red); height: 100%; width: 0%; transition: width 2s ease-out; }
.s-label { font-size: 13px; font-weight: 700; margin-bottom: 4px; display: flex; justify-content: space-between; }

/* ŚCIANA WSTYDU - CENTRALIZACJA IDEALNA */
.wall-input-area {
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center; 
  gap: 15px;
  max-width: 800px;
  margin: 0 auto 30px auto; 
  width: 100%; 
}

/* Ustawienie formularzy jeden pod drugim (kolumnowo) */
.wall-inputs-wrapper {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  justify-content: center; 
  gap: 15px;
  width: 100%;
}

.wall-input-group {
    position: relative;
    width: 100%;
    max-width: 300px;
    text-align: left; 
}

.wall-container { 
  display: flex; 
  gap: 20px; 
  margin: 0 auto; 
  max-width: 800px; 
  justify-content: center;
}

.wall-side { 
  flex: 1; 
  min-height: 80px; 
  padding: 15px; 
  border-radius: 12px; 
  background: rgba(255,255,255,0.1); 
  border: 2px dashed #fff;
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center; 
}

.wall-header {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 15px;
  letter-spacing: 1px;
  width: 100%;
  display: flex;
  justify-content: center; 
  align-items: center;
}

@keyframes pulseGreen {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes pulseRed {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.wall-side.good .wall-header { color: #2ecc71; animation: pulseGreen 2s infinite ease-in-out; }
.wall-side.bad .wall-header { color: #e74c3c; animation: pulseRed 2s infinite ease-in-out; }

.wall-note { 
  background: #fff; padding: 5px 10px; margin: 5px; border-radius: 4px; 
  font-size: 12px; display: inline-block; box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

#flying-text {
  position: fixed; z-index: 9999; pointer-events: none;
  font-weight: 900; color: var(--gold); text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  transition: all 2.1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: none; white-space: nowrap;
}

/* --- RESZTA STYLÓW --- */
.section{ max-width:var(--max-width); margin:48px auto; padding:0 16px; }
.section-inner{ max-width:var(--max-width); margin:0 auto; padding:0 16px; }
.section-title{ font-size:30px; font-weight:800; margin-bottom:20px; color:#fff; text-align:center; }
.section-subtitle { font-size: 20px; font-weight: 800; color: var(--brand-blue); margin-bottom: 15px; }

.full-bleed{
  width:100vw; position:relative; left:50%; right:50%;
  margin-left:-50vw; margin-right:-50vw; padding:48px 0; background:#fff;
}
.tyralomat-inner{ max-width:var(--max-width); margin:0 auto; padding:0 16px; }
.full-bleed .section-title{ color:var(--brand-blue); }

.two-columns{ display:flex; gap:28px; align-items:stretch; flex-wrap:wrap; }

.form-container{
  flex:1 1 500px; background:var(--form-bg); padding:22px;
  border-radius:12px; box-shadow:0 8px 30px rgba(0,0,0,0.08);
}
.form-title{ font-size:18px; font-weight:800; color:var(--brand-blue); margin-bottom:14px; }
.form-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.form-row{display:flex;flex-direction:column;gap:6px;position:relative}

/* Wymuszenie szerokości na wszystkich inputach */
.form-label{font-size:13px;color:var(--brand-blue);font-weight:700}
.form-input,.form-select{
  width: 100%;
  padding:10px; border-radius:8px; border:1px solid rgba(0,0,0,0.08);
  background:#fff; font-size:15px; box-shadow:0 6px 18px rgba(0,0,0,0.04);
}

.form-submit{
  margin-top:12px; padding:10px 14px; border-radius:30px;
  background:var(--gold); border:none; color:#000; font-weight:800;
  font-size:14px; cursor:pointer;
  position: relative; z-index: 1; overflow: hidden;
  transition: box-shadow 0.8s ease, color 0.8s ease; 
}
.form-submit::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--nav-hover-gradient);
  opacity: 0; transition: opacity 0.8s ease; z-index: -1;
}
.form-submit:hover { color:#fff; box-shadow:0 10px 30px rgba(0,0,0,0.12); }
.form-submit:hover::before { opacity: 1; }
.form-submit:disabled{ background: #ccc; cursor: not-allowed; color: #666; box-shadow: none; }
.form-submit:disabled::before { display: none; }

.autocomplete-list{
  position:absolute; left:0;right:0;top:100%;
  background:#fff; border:1px solid rgba(0,0,0,0.08);
  z-index:9999; display:none; max-height:220px; overflow:auto;
  border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,0.08);
  text-align: left; 
}
.autocomplete-list div{ padding:8px 10px; cursor:pointer; }
.autocomplete-list div:hover{ background:#f5f5f5; }

/* --- RESPONSIVE --- */
@media (max-width:1100px){
  .header-inner, .section, .footer-inner, .tyralomat-inner { max-width: 100%; padding: 0 20px; }
}

@media (max-width:1000px){
  .nav-links { display: none; }
  .hamburger-btn { display: flex; }
  .form-grid{grid-template-columns:1fr}
  .results-grid { grid-template-columns: 1fr; }
  .result-card{flex:1 1 100%}
  .logo-text{font-size:22px}
  .logo-icon-img{height:48px}
  .wall-container { flex-direction: column; margin: 30px 0 0 0; max-width: 100%; }
}

@media (max-width:600px){
  .header-inner{padding:0 12px}
  .logo-text{font-size:20px}
  .logo-icon-img{height:40px}
  /* Na mobile ukrywamy tagi <br>, żeby tekst nie łamał się sztucznie w połowie zdania */
  .cookie-text br { display: none; }
  .cookie-actions{flex-direction: column; width: 100%;}
  .cookie-actions .btn{width: 100%;}
  .two-columns { align-items: flex-start; }
  .gauge-container { transform: scale(0.8); margin: 0 auto; }
  .gauge-wrapper { padding-top: 10px; min-height: 200px; }
  .survey-option { flex-direction: column; text-align: center; gap: 8px; padding: 10px; }
}

@media (max-width:400px){
  .gauge-container { transform: scale(0.7); }
  .logo-text { font-size: 18px; }
}

a{outline:none}
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

/* ========================================= */
/* TYRAŁOMAT (8 KAFELKÓW)                    */
/* ========================================= */
.results-grid.tyra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.tyra-grid .small-card {
  height: 90px;         
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px;
}
.result-title-small { font-size: 12px; font-weight: 700; color: var(--brand-blue); margin-bottom: 4px; text-transform: uppercase; }
.result-value-small { font-size: 22px; font-weight: 900; color: var(--brand-red); line-height: 1.1; }
.result-sub { font-size: 10px; margin-bottom: 0; }

@media (max-width: 1000px) {
  .results-grid.tyra-grid { grid-template-columns: 1fr 1fr; }
  .tyra-grid .small-card { height: 120px; }
}
@media (max-width: 600px) {
  .results-grid.tyra-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tyra-grid .small-card { height: 110px; padding: 8px; }
  .result-value-small { font-size: 20px; }
}

/* ========================================= */
/* DZIENNE WYDATKI (BUDŻET)                  */
/* ========================================= */
.w-bar-bg {
  background: #eee;
  height: 20px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.w-bar-fill {
  height: 100%;
  width: 0%; 
  background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71);
  border-radius: 10px;
  transition: width 1.5s ease-out;
}

.w-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-blue);
  text-transform: uppercase;
}
/* ========================================= */
/* MODUŁ PORTFELA I PŁYWAJĄCY PRZYCISK (+)   */
/* ========================================= */

.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--brand-red);
  color: white;
  border-radius: 50%;
  border: none;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(229, 57, 53, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 15px 35px rgba(229, 57, 53, 0.6);
  background: var(--nav-hover-gradient);
}

#wallet-history li {
  font-size: 14px;
}
#wallet-history small {
  font-size: 12px;
  color: #777;
  display: block;
}

@media (max-width: 600px) {
  .floating-btn {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 28px;
  }
}

/* --- NOWE STYLE: PENSJOMETR GLOW I BIAŁE NAPISY --- */

/* Zmiana koloru cyferek i napisów w Pensjometrze na biały */
#pensjometr .g-label {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(0,0,0,0.8); /* Cień, żeby biały był czytelny na jasnym tle łuku */
    font-weight: 700;
}

/* Upewniamy się, że Tyrałomat pozostaje bez zmian (czarny/szary) */
#tyralomat .g-label {
    color: inherit;
    text-shadow: none;
}

/* --- NOWE STYLE DLA SEKCJI WYNIKÓW --- */
.results-grid-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.full-width-grid {
  grid-template-columns: 1fr; 
}

@media (max-width: 768px) {
  .results-grid-new {
    grid-template-columns: 1fr;
  }
}

/* KAFELEK: GLOBAL WEALTH */
.global-list { list-style: none; padding: 0; font-size: 13px; }
.global-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee; }
.global-item:last-child { border-bottom: none; }
.flag-icon { margin-right: 8px; font-size: 16px; }

/* KAFELEK: APOKALIPSA */
.apo-days { font-size: 36px; font-weight: 900; color: var(--brand-red); text-align: center; margin: 10px 0; }
.apo-sub { text-align: center; font-size: 12px; color: #777; margin-bottom: 15px; }
.apo-items { display: flex; justify-content: space-between; text-align: center; gap: 5px; }
.apo-box { background: #f9f9f9; padding: 8px; border-radius: 8px; flex: 1; }
.apo-icon { font-size: 20px; display: block; margin-bottom: 4px; }
.apo-val { font-weight: bold; color: #333; font-size: 14px; }
.apo-label { font-size: 10px; color: #888; }

/* ANKIETA ZADOWOLENIA (GWIAZDKI) */
.survey-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.survey-label { font-size: 13px; font-weight: 600; color: #444; width: 40%; }
.star-rating { display: flex; gap: 5px; direction: rtl; /* RTL dla łatwiejszego hover w CSS */ }
.star-rating input { display: none; }
.star-rating label { 
  font-size: 24px; /* Duże dla mobile */
  color: #ddd; 
  cursor: pointer; 
  padding: 5px; /* Obszar kliknięcia */
  transition: color 0.2s;
}
/* Magia CSS: zaznaczamy gwiazdki */
.star-rating input:checked ~ label { color: #FFD200; }
.star-rating label:hover, .star-rating label:hover ~ label { color: #FFD700; }

.survey-btn-wrap { text-align: center; margin-top: 20px; }
.survey-result-bar { height: 18px; background: #eee; border-radius: 9px; overflow: hidden; margin-top: 4px; }
.survey-result-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #ff9966, #ff5e62); transition: width 1s ease; }
.survey-res-label { display: flex; justify-content: space-between; font-size: 11px; margin-top: 8px; }

/* --- NOWY UKŁAD 2x2 --- */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Zawsze 2 kolumny na desktopie */
  gap: 20px;
  margin-top: 30px;
  align-items: start; /* Żeby kafelki nie rozciągały się na siłę */
}

/* Na mobilkach jeden pod drugim */
@media (max-width: 900px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

/* Nowe karty mają stałą min-wysokość, żeby było równo */
.result-card-new {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  padding: 20px;
  min-height: 420px; /* Stała wysokość dla równych rzędów */
  display: flex;
  flex-direction: column;
}

/* --- APOKALIPSA --- */
.apo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}
.apo-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px 5px;
  text-align: center;
}
.apo-emoji { font-size: 18px; display: block; margin-bottom: 2px; }
.apo-val { font-weight: 800; font-size: 13px; color: #333; }
.apo-lbl { font-size: 10px; color: #777; }

/* --- WYKRES KOŁOWY (CSS Pie Chart) --- */
.pie-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}
.pie-chart {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    #3498db 0% 35%, 
    #e74c3c 35% 60%, 
    #f1c40f 60% 80%, 
    #2ecc71 80% 95%, 
    #9b59b6 95% 100%
  );
  position: relative;
}
/* Dziura w środku (Donut) */
.pie-chart::after {
  content: "";
  position: absolute;
  top: 35px; left: 35px; right: 35px; bottom: 35px;
  background: #fff;
  border-radius: 50%;
}
.pie-legend {
  font-size: 12px;
}
.pie-legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.pie-dot {
  width: 10px; height: 10px; border-radius: 50%; margin-right: 8px;
}

/* --- ANKIETA (Cieńsze paski, widoczne tło) --- */
.survey-mini-row {
  margin-bottom: 8px;
}
.survey-mini-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #555;
  margin-bottom: 2px;
}
.survey-mini-track {
  height: 6px; /* Bardzo cienkie */
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}
.survey-mini-fill {
  height: 100%;
  width: 0%; /* Na start 0, potem animacja */
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  background: var(--brand-blue);
}
/* Kolory pasków */
.fill-1 { background: #e74c3c; }
.fill-2 { background: #f1c40f; }
.fill-3 { background: #3498db; }
.fill-4 { background: #9b59b6; }
.fill-5 { background: #2ecc71; }

.star-rating label { font-size: 20px; padding: 0 2px; } /* Mniejsze odstępy */

/* POPRAWKA POZYCJI NAPISÓW W ZEGARACH NA STRONIE GŁÓWNEJ */
#pensjometr .gauge-labels,
#tyralomat .gauge-labels {
    top: -14px !important;
    left: -39px !important;
    right: -45px !important;
}

/* ========================================= */
/* POPRAWKI 2026: TABELE, KALKULATOR EMERYTURY I CIEKAWOSTKI MOBILE */
/* ========================================= */

/* TABELE W ARTYKUŁACH (Zajęcie komornicze, Brutto-Netto) */
.section-inner table, .article-content table {
    width: 100%;
    border-collapse: collapse;
}
.section-inner table td, .section-inner table th,
.article-content table td, .article-content table th {
    word-wrap: break-word;
}

@media (max-width: 600px) {
    /* Zawijanie w przewijalny kontener dla małych ekranów, żeby nie rwać liczb i długich tekstów */
    .section-inner table, .article-content table {
        display: block;
        overflow-x: auto; 
        white-space: nowrap; 
    }
    .section-inner table th, .section-inner table td,
    .article-content table th, .article-content table td {
        font-size: 11px !important; 
        padding: 6px !important;
    }
}

/* KALKULATOR EMERYTURY - WYŚRODKOWANIE I CZCIONKI */
.two-columns .calc-card:nth-child(2) {
    margin: 0 auto !important; 
}

/* Powiększenie 3 napisów: Głodowa, Średnia, Godna */
#retirement-gauge ~ .gauge-labels .g-label {
    font-size: 14px !important; 
    font-weight: 900 !important;
}

/* CIEKAWOSTKI - WYŚRODKOWANIE KAFELKÓW NA MOBILE */
@media (max-width: 900px) {
    .articles-grid, .news-grid { 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    .article-card, .news-card {
        margin: 0 auto 20px auto !important;
        width: 100% !important;
        max-width: 400px !important;
    }
}

/* --- IDEALNE WYŚRODKOWANIE KAFLA Z ZEGAREM NA TELEFONACH --- */
@media (max-width: 768px) {
    .two-columns {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* To centruje wszystko w pionie */
        justify-content: center !important;
    }
    .two-columns > div {
        margin: 0 auto 20px auto !important; /* Wymuszone marginesy z lewej i prawej */
        width: 100% !important;
        max-width: 500px !important;
    }
}

/* === WYŚRODKOWANIE ZEGARA TYLKO W KALKULATORZE EMERYTURY === */
/* Izolujemy poprawkę, by nie psuła Pensjometru i Tyrałomatu */

.gauge-wrapper:has(#retirement-gauge) {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    text-align: center !important;
    overflow: hidden !important; 
}

@media (max-width: 600px) {
    .gauge-container:has(#retirement-gauge) {
        margin: 0 !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-38%) scale(0.8) !important;
    }
}

@media (max-width: 400px) {
    .gauge-container:has(#retirement-gauge) {
        transform: translateX(-38%) scale(0.7) !important;
    }
}

/* ========================================= */
/* POPRAWKI: STOPKA I ZEGAR EMERYTURY MOBILE */
/* ========================================= */

/* 1. Poprawa stopki na telefonach (Regulamin i Polityka pod spodem) */
@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    .footer-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .footer-links a {
        margin-left: 0 !important;
        display: block !important;
    }
}

header .header-inner { max-width: 1300px !important; }
.nav-item { white-space: nowrap !important; }
.nav-links { flex-wrap: nowrap !important; }