/* Popup Karnety - nowoczesny UI/UX (bez ingerencji w istniejący layout) */

.gk-popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
}

.gk-popup-overlay.is-open {
  display: flex;
}

.gk-popup {
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 18px;
  background: #0b1220;
  color: #eaf0ff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  position: relative;
}

.gk-popup-close {
  position: absolute;
  top: 0;
  right: 12px;
  width: 44px;
  height: 52px;
  border-radius: 0 0 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf0ff;
  font-size: 26px;
  line-height: 52px;
  cursor: pointer;
  z-index: 100;
  border-top: 0;
}

.gk-popup-close:hover {
  background: rgba(255,255,255,0.10);
}

.gk-popup-head {
  padding: 30px 20px 20px 20px;
  background:
    radial-gradient(1200px 400px at 20% 10%, rgba(84, 158, 255, 0.35), rgba(0,0,0,0)),
    radial-gradient(900px 350px at 80% 0%, rgba(255, 92, 165, 0.25), rgba(0,0,0,0));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.gk-popup-head-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  max-height: 100%;
  background-color: white;
}

.gk-popup-head-bg-img {
  position: absolute;
  max-width: 60%;
  max-height: 60%;
  text-align: right;
  right: 0;
  bottom: 15px;
}

.gk-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
}

.gk-popup-head h2 {
  margin: 10px 0 4px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(20px, 2.4vw, 28px);
  color: #ffffff;
}

.gk-subtitle {
  margin: 0;
  color: rgba(234,240,255,0.80);
  font-size: 14px;
}

.gk-countdown {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  font-weight: normal;
  text-align: center;
}

#gkCountdownWrap {
  background: #ffe4e6;
  border-color: #fb7185;
  color: #9f1239;
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.35);
}

#gkCountdown {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.gk-popup-body {
  padding: 18px 22px 22px;
  background: #f7f9fc;
  color: #0f172a;
}

.gk-popup-body .gk-tabs {
  /*background: #ffffff;*/
  /*border-color: rgba(15,23,42,0.12);*/
}

.gk-popup-body .gk-tab {
  background: #f1f5f9;
  border-color: rgba(15,23,42,0.12);
  color: #0f172a;
}

.gk-popup-body .gk-tab.is-active {
  background: linear-gradient(135deg, rgba(84, 158, 255, 0.25), rgba(255, 92, 165, 0.22));
  border-color: #85B9FF;
  box-shadow: 0 0 0 5px rgba(84, 158, 255, 0.18);
  /*border: 0;*/
  color: #0b1220;
}

.gk-popup-body .gk-pass-summary,
.gk-popup-body .gk-ride-card,
.gk-popup-body .gk-pricebox,
.gk-popup-body .gk-form,
.gk-popup-body .gk-faq {
  background: #ffffff;
  border-color: rgba(15,23,42,0.12);
}

.gk-popup-body .gk-ride-title,
.gk-popup-body .gk-price,
.gk-popup-body .gk-price-currency,
.gk-popup-body .gk-price-old,
.gk-popup-body .gk-form-title,
.gk-popup-body .gk-label,
.gk-popup-body .gk-pass-title,
.gk-popup-body .gk-faq-item summary {
  color: #0f172a;
}

.gk-popup-body .gk-price-label,
.gk-popup-body .gk-price-meta,
.gk-popup-body .gk-pass-desc,
/*.gk-popup-body .gk-form-sub,*/
/*.gk-popup-body .gk-note,*/
.gk-popup-body .gk-faq-body,
.gk-popup-body .gk-legal {
  color: #475569 !important;
}

.gk-popup-body .gk-ride-pill {
  background: #e2e8f0;
  border-color: rgba(15,23,42,0.12);
  color: #0f172a;
}

.gk-popup-body .gk-ride-pill--hot {
  background: rgba(255,92,165,0.18);
  border-color: rgba(255,92,165,0.28);
  color: #7a1c42;
}

.gk-popup-body .gk-input {
  background: #ffffff;
  border-color: rgba(15,23,42,0.15);
  color: #0f172a;
}

.gk-popup-body .gk-input:focus {
  /*border-color: rgba(84, 158, 255, 0.65);*/
  /*box-shadow: 0 0 0 3px rgba(84, 158, 255, 0.25);*/
}

.gk-qty {
  margin-top: 12px;
}

.gk-select {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  padding: 0 12px;
  border: 1px solid rgba(15,23,42,0.15);
  background: #ffffff;
  color: #0f172a;
  outline: none;
}

.gk-summary {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.12);
}

.gk-summary-row,
.gk-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gk-summary-row {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

.gk-summary-total {
  margin-top: 6px;
}

.gk-summary-total .gk-summary-label {
  font-weight: 900;
  color: #0f172a;
}

.gk-summary-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.gk-summary-old {
  color: #94a3b8;
}

.gk-summary-old.is-hidden {
  display: none;
}

.gk-summary-price strong {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.gk-payment-alert {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 12px;
  font-weight: 800;
}

.gk-payment-actions {
  margin-top: 6px;
}

.gk-payment-link {
  color: inherit;
  text-decoration: underline;
  font-weight: 900;
}

.gk-end-countdown {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,0.75);
}

.gk-end-countdown strong {
  font-weight: 900;
}

#gkWaitlistForm, #gkPurchaseForm {
  background: #0b1220;
  border-color: rgba(255,255,255,0.18);
  color: #eaf0ff;
}

#gkWaitlistForm .gk-form-title,
#gkWaitlistForm .gk-form-sub,
#gkWaitlistForm .gk-label,
#gkWaitlistForm .gk-note,
#gkWaitlistForm .gk-msg,
#gkPurchaseForm .gk-form-title,
#gkPurchaseForm .gk-form-sub,
#gkPurchaseForm .gk-label,
#gkPurchaseForm .gk-note,
#gkPurchaseForm .gk-msg {
  color: #eaf0ff;
}

#gkWaitlistForm .gk-input, #gkPurchaseForm .gk-input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: #eaf0ff;
}

#gkPurchaseForm .gk-select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: #eaf0ff;
}

#gkPurchaseForm .gk-summary {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}

#gkPurchaseForm .gk-summary-row {
  color: rgba(234,240,255,0.8);
}

#gkPurchaseForm .gk-summary-total .gk-summary-label,
#gkPurchaseForm .gk-summary-price strong {
  color: #eaf0ff;
}

#gkPurchaseForm .gk-summary-old {
  color: rgba(234,240,255,0.6);
}

#gkPurchaseForm .gk-payment-alert {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
  color: #ffe4e6;
}

#gkPurchaseForm .gk-payment-link {
  color: #fff;
}

#gkWaitlistForm .gk-input::placeholder, #gkPurchaseForm .gk-input::placeholder {
  color: rgba(234,240,255,0.65);
}

.gk-cta-sub.is-inactive {
  opacity: 0.45;
  filter: grayscale(1);
}

.gk-tabs {
  display: flex;
  gap: 10px;
  padding: 8px 0 0 0;
  border-radius: 14px;
  /*border: 1px solid rgba(255,255,255,0.10);*/
  /*background: rgba(255,255,255,0.05);*/
}

.gk-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(234,240,255,0.88);
  font-weight: 800;
  cursor: pointer;
  outline: 0 !important;
}

.gk-tab.is-active {
  background: linear-gradient(135deg, rgba(84, 158, 255, 0.35), rgba(255, 92, 165, 0.25));
  border-color: rgba(255,255,255,0.20);
  color: #fff;
}

.gk-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .gk-grid { grid-template-columns: 1fr; }
}

.gk-pass-summary {
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}

.gk-pass-summary .gk-pass-title {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}

.gk-pass-summary .gk-pass-desc {
  font-size: 13px;
  color: rgba(234,240,255,0.80);
  margin: 0;
}

.gk-ride-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .gk-ride-grid { grid-template-columns: 1fr; }
}

.gk-ride-card {
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.gk-ride-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
}

.gk-ride-card.is-active {
  border-color: rgba(84, 158, 255, 0.55);
  box-shadow: 0 0 0 5px rgba(84, 158, 255, 0.18);
}

.gk-ride-media {
  position: relative;
}

.gk-ride-media img {
  width: 80%;
  height: 150px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.gk-ride-speed {
  position: absolute;
  top: 7px;
  left: 11px;
  font-size: 12px;
  color: gray;
}

.gk-ride-content {
  padding: 12px 12px 14px;
}

.gk-ride-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gk-ride-title {
  font-weight: normal;
  font-size: 14px;
  color: #fff;
}

.gk-ride-pill {
  font-size: 11px;
  font-weight: normal;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  white-space: nowrap;
}

.gk-ride-pill--hot {
  background: rgba(255,92,165,0.14);
  border-color: rgba(255,92,165,0.22);
}

.gk-variant {
  margin-top: 10px;
}

.gk-pricebox {
  display: flex;
  justify-content: space-between;
  gap: 0;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.gk-price-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gk-price-compare {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  margin-left: auto;
}

.gk-price-label {
  font-size: 11px;
  font-weight: 900;
  color: rgba(234,240,255,0.72);
}

.gk-price {
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: -0.5px;
  line-height: 1.05;
  color: #fff;
}

.gk-price-save {
  font-size: 12px;
  font-weight: 900;
  color: rgba(114, 117, 131, 0.75);
  margin-top: 2px;
}

.gk-price-currency {
  font-size: 13px;
  font-weight: 900;
  color: rgba(234,240,255,0.85);
}

.gk-price-old {
  font-size: 13px;
  font-weight: 900;
  color: rgba(234,240,255,0.62);
}

.gk-price-old span {
  font-size: 18px;
}

.gk-price-old s {
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255,92,165,0.75);
}

.gk-price-meta {
  font-size: 10px;
  font-weight: 800;
  color: rgba(234,240,255,0.55);
  line-height: 1.2;
}
.gk-form {
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}

.gk-form-title {
  font-weight: 900;
  font-size: 16px;
}

.gk-note, .gk-form-sub {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(234,240,255,0.70) !important;
}

.gk-label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 12px;
  color: rgba(234,240,255,0.88);
}

.gk-input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: #fff;
  outline: none;
}

.gk-input:focus {
  border-color: rgba(84, 158, 255, 0.55);
  box-shadow: 0 0 0 5px rgba(84, 158, 255, 0.18);
}

.gk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 640px) {
  .gk-row { grid-template-columns: 1fr; }
}

.gk-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(234,240,255,0.75);
}

.gk-cta {
  width: 100%;
  margin-top: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(135deg, rgba(84, 158, 255, 0.55), rgba(255, 92, 165, 0.35));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.gk-cta[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.gk-cta-sub {
  display: block;
  font-size: 12px;
  margin-top: 2px;
  opacity: 0.9;
  font-weight: 800;
}

.gk-msg {
  margin-top: 10px;
  font-size: 13px;
}

.gk-msg.is-ok { color: #79ffa6; }
.gk-msg.is-err { color: #ff9bb3; }

.gk-faq {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
}

.gk-faq-item + .gk-faq-item {
  margin-top: 8px;
}

.gk-faq-item summary {
  cursor: pointer;
  font-weight: 900;
  color: rgba(234,240,255,0.90);
}

.gk-faq-body {
  margin-top: 8px;
  color: rgba(234,240,255,0.80);
  font-size: 13px;
}

.gk-faq-body p { margin: 0 0 8px; }
.gk-faq-body p:last-child { margin: 0; }

.gk-legal {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(234,240,255,0.70);
}

.gk-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.gk-blur-text {
  filter: blur(11px);
  -webkit-filter: blur(11px);
}

.gk-confirm {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gk-confirm-card {
  width: min(520px, 100%);
  border-radius: 18px;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  padding: 16px 16px 14px;
}

.gk-confirm-title {
  font-weight: 900;
  font-size: 18px;
}

.gk-confirm-sub {
  margin-top: 6px;
  color: rgba(234,240,255,0.80);
  font-size: 13px;
}

.gk-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.gk-btn {
  flex: 1;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  font-weight: 900;
  cursor: pointer;
}

.gk-btn-ghost {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.gk-btn-danger {
  background: rgba(255,92,165,0.16);
  border-color: rgba(255,92,165,0.26);
  color: #fff;
}

body.gk-popup-open { overflow: hidden; }
