/* ================================================================== */
/* FLASH SALE — flashsale.css                                         */
/* ================================================================== */

:root {
  --fsc-blue:      #00a0e3;
  --fsc-blue-dark: #0080b8;
  --fsc-green:     #1db954;
  --fsc-red:       #e63946;
  --fsc-dark:      #1a1a2e;
}

/* ================================================================== */
/* OUTER                                                               */
/* ================================================================== */

.flashsale-outer {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  overflow: hidden;
  max-width: 1550px;
  margin: 0 auto;
}

/* ================================================================== */
/* WRAPPER                                                             */
/* ================================================================== */

.flashsale-wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 1530px;
  max-width: 100%;
  overflow: visible;
  border-radius: 10px;
  border: 2px solid var(--fsc-blue);
  box-shadow: 0 8px 32px rgba(0, 160, 227, 0.10);
  background: #f5fbff;
  box-sizing: border-box;
  margin: 24px auto;
}

.flashsale-wrapper--ended {
  border-color: #ddd;
  box-shadow: none;
  opacity: 0.9;
}

/* ================================================================== */
/* LEWA — karta produktu                                              */
/* ================================================================== */

.flashsale-product-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 28px 28px;
  width: 380px;
  min-width: 340px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #d6eef9;
  border-radius: 10px 0 0 10px;
  gap: 12px;
  box-shadow: 2px 0 12px rgba(0,160,227,0.06);
  box-sizing: border-box;
}

.flashsale-badge {
  position: absolute;
  top: -14px;
  left: 20px;
  z-index: 9999;
}

.flashsale-badge__label {
  display: inline-block;
  background: white;
  color: black;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  text-transform: uppercase;
}

.flashsale-card__image-link {
  display: block;
  width: 100%;
  text-align: center;
}

.flashsale-card__image {
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
}

.flashsale-card__name {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}

.flashsale-card__name:hover { color: var(--fsc-blue); }

.flashsale-card__prices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.flashsale-card__price-30days {
  font-size: 12px;
  color: #888;
  text-align: center;
}

.flashsale-card__price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.flashsale-card__price-promo {
  font-size: 32px;
  font-weight: 800;
  color: var(--fsc-green);
  line-height: 1;
}

.flashsale-card__savings {
  display: inline-block;
  background: var(--fsc-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.flashsale-card__stock { width: 100%; }

.flashsale-stock-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 16px;
  color: #777;
  margin-bottom: 6px;
}

.flashsale-stock-labels__remaining { color: var(--fsc-blue-dark); }
.flashsale-stock-labels__sold { color: #888; }

.flashsale-stock-bar {
  width: 100%;
  height: 18px;
  background: #ddd;
  border-radius: 9px;
  overflow: hidden;
}

.flashsale-stock-bar__fill {
  height: 100%;
  background: var(--fsc-blue);
  border-radius: 9px;
  transition: width 0.4s ease;
  min-width: 6px;
}

.flashsale-card__countdown {
  width: 100%;
  text-align: center;
}

.flashsale-countdown__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid #dbeef9;
  border-bottom: 1px solid #dbeef9;
  margin-bottom: 10px;
}

.flashsale-countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}

.flashsale-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.flashsale-countdown__value {
  display: inline-block;
  background: #fff;
  color: var(--fsc-dark);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid #00a0e3;
  min-width: 54px;
  text-align: center;
  line-height: 1;
}

.flashsale-countdown__unit .flashsale-countdown__label {
  font-size: 11px;
  margin-top: 4px;
  margin-bottom: 0;
  letter-spacing: 0;
  text-transform: lowercase;
}

.flashsale-countdown__sep {
  font-size: 24px;
  font-weight: 800;
  color: var(--fsc-blue);
  line-height: 1;
  padding-top: 8px;
}

.flashsale-countdown--expired .flashsale-countdown__value { background: #aaa; }

.flashsale-card__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  background: var(--fsc-blue);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.flashsale-card__btn:hover { background: var(--fsc-blue-dark); color: #fff; }
.flashsale-card__btn:disabled,
.flashsale-card__btn--loading { opacity: 0.7; pointer-events: none; }

.flashsale-card__ended-msg {
  font-size: 20px;
  color: black;
  font-weight: 700;
  text-align: center;
  padding: 8px 0;
}

/* ================================================================== */
/* PRAWA — marketing                                                  */
/* ================================================================== */

.flashsale-marketing-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 36px 52px 36px 44px;
  background: #E6F5FD;
  border-radius: 0 10px 10px 0;
  box-sizing: border-box;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.flashsale-marketing__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--fsc-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
}

.flashsale-marketing__eyebrow svg { stroke: var(--fsc-blue); }

.flashsale-marketing__headline {
  font-size: 38px;
  font-weight: 800;
  color: var(--fsc-dark);
  line-height: 1.15;
  margin: 12px 0 16px;
}

.flashsale-marketing__benefits {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.flashsale-marketing__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #dbeef9;
}

.flashsale-marketing__benefits li:first-child {
  border-top: 1px solid #dbeef9;
}

.flashsale-marketing__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #e8f5fc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flashsale-marketing__icon svg { stroke: var(--fsc-blue); display: block; }

.flashsale-marketing__benefits strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--fsc-dark);
  margin-bottom: 3px;
}

.flashsale-marketing__benefits p {
  font-size: 18px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.flashsale-marketing__urgency {
  font-size: 14px;
  color: var(--fsc-red);
  font-weight: 700;
  padding: 12px 16px;
  background: rgba(230, 57, 70, 0.06);
  border-radius: 8px;
  border-left: 3px solid var(--fsc-red);
  margin-top: 4px;
  display: none;
}

.flashsale-marketing__bg-svg {
  position: absolute;
  right: -40px;
  top: 30px;
  pointer-events: none;
  opacity: 0.58;
  z-index: 0;
}

.flashsale-marketing__bg-svg svg { display: block; }

.flashsale-marketing-side > *:not(.flashsale-marketing__bg-svg) {
  position: relative;
  z-index: 1;
}

/* ================================================================== */
/* BADGE NA STRONIE PRODUKTU                                          */
/* ================================================================== */

.flashsale-badge-product {
  border: 2px solid var(--fsc-blue);
  border-radius: 10px;
  padding: 14px 16px;
  background: #f0faff;
  margin: 12px 0;
}

.flashsale-badge-product__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.flashsale-badge-product__icon { font-size: 20px; line-height: 1; }

.flashsale-badge-product__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--fsc-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flashsale-badge-product__prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.flashsale-badge-product__price-30days { font-size: 11px; color: #888; }

.flashsale-badge-product__price-promo {
  font-size: 28px;
  font-weight: 800;
  color: var(--fsc-green);
  line-height: 1;
}

.flashsale-badge-product__savings {
  display: inline-block;
  background: var(--fsc-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  width: fit-content;
}

.flashsale-badge-product__countdown { margin-top: 10px; }

.flashsale-badge-product__last-chance {
  display: block;
  background: var(--fsc-blue);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 0;
  border-radius: 0 0 8px 8px;
  margin: 14px -16px -16px;
}

/* ================================================================== */
/* ADMIN                                                              */
/* ================================================================== */

.flashsale-admin .panel { margin-bottom: 20px; }
.flashsale-admin .form-wrapper { padding: 10px 20px; }

.flashsale-admin .form-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  width: 100%;
}

.flashsale-admin .form-group .control-label {
  width: 260px;
  min-width: 260px;
  padding-top: 7px;
  font-weight: 600;
  font-size: 13px;
  color: #555;
}

.flashsale-admin .form-group .control-label.required::before {
  content: '* ';
  color: var(--fsc-red);
}

.flashsale-admin .form-group > div { flex: 1; position: relative; }
.flashsale-admin .form-group .form-control { width: 100%; max-width: 400px; }
.flashsale-admin .form-group .input-group { max-width: 200px; }
.flashsale-admin .form-group .input-group .form-control { max-width: 100%; }

.flashsale-admin .panel-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  flex-direction: row-reverse;
}

#product-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  min-width: 400px;
  max-width: 600px;
}

#product-search-results li {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#product-search-results li:hover,
#product-search-results li.active { background: #e8f4ff; }
#product-search-results li small { color: #aaa; font-size: 11px; }
#product-search-results li.no-results { color: #aaa; font-style: italic; cursor: default; }
#product-search.product-selected { border-color: #28a745; background: #f0fff4; }
.fsa-product-name { font-weight: 600; color: #333; }
#product-search-results li:hover .fsa-product-name { color: var(--fsc-blue-dark); }

.flashsale-discount-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.fsa-discount-btn {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
}

.fsa-discount-btn:hover:not(:disabled) { background: #e8f4ff; border-color: var(--fsc-blue); color: var(--fsc-blue-dark); }
.fsa-discount-btn.active { background: var(--fsc-blue); border-color: var(--fsc-blue-dark); color: #fff; font-weight: 600; }
.fsa-discount-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.flashsale-custom-price { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
#savings-preview { margin-top: 5px; font-size: 12px; font-weight: 600; }

.flashsale-duration-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.flashsale-duration-btns .btn {
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
  background: #f0faff; border: 1px solid var(--fsc-blue); color: var(--fsc-blue-dark);
}
.flashsale-duration-btns .btn:hover { background: var(--fsc-blue); color: #fff; }

.flashsale-table th { background: #f5f5f5; font-weight: 600; }
.flashsale-table .badge-success { background: #28a745; }
.flashsale-table .badge-info { background: #17a2b8; }
.flashsale-table .badge-default { background: #aaa; }
.flashsale-actions { white-space: nowrap; }
.flashsale-progress-mini { width: 80px; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; margin-bottom: 3px; }
.flashsale-progress-bar-mini { height: 100%; background: var(--fsc-blue); border-radius: 3px; min-width: 2px; }

/* ================================================================== */
/* RESPONSIVE                                                         */
/* ================================================================== */

@media (max-width: 800px) {
  .flashsale-wrapper {
    flex-direction: column;
    max-width: 100%;
  }

  .flashsale-product-side {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid #d6eef9;
    border-radius: 10px 10px 0 0;
    box-shadow: none;
  }

  .flashsale-marketing-side {
    padding: 24px 20px 28px;
    border-radius: 0 0 10px 10px;
  }

  .flashsale-marketing__headline { font-size: 24px; }
  .flashsale-marketing__benefits strong { font-size: 14px; }
  .flashsale-marketing__bg-svg { display: none; }
}

@media (max-width: 480px) {
  .flashsale-product-side { padding: 28px 16px 16px; }
  .flashsale-marketing-side { padding: 20px 16px 24px; }
  .flashsale-marketing__headline { font-size: 20px; }
  .flashsale-countdown__value { font-size: 18px; min-width: 40px; padding: 5px 8px; }
  .flashsale-countdown__unit { min-width: 40px; }
}

/* ================================================================== */
/* MOBILE — zwijane benefity                                          */
/* ================================================================== */

.flashsale-benefits-toggle { display: none; }

@media (max-width: 800px) {
  .flashsale-benefits-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    border-top: 1px solid #dbeef9;
    border-bottom: 1px solid #dbeef9;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--fsc-blue);
    cursor: pointer;
    margin-bottom: 0;
  }

  .flashsale-benefits-toggle svg {
    stroke: var(--fsc-blue);
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }

  .flashsale-benefits-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .flashsale-marketing__benefits {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-bottom: 0;
  }

  .flashsale-marketing__benefits.is-open {
    max-height: 600px;
    margin-bottom: 16px;
  }

  .flashsale-marketing__benefits li:first-child { border-top: none; }
}

/* ================================================================== */
/* SOLD OUT OVERLAY                                                    */
/* ================================================================== */

.flashsale-soldout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(240, 240, 240, 0.2);
  border-radius: 10px 0 0 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flashsale-wrapper--ended .flashsale-product-side > *:not(.flashsale-soldout-overlay):not(.flashsale-badge) {
  filter: grayscale(40%);
  opacity: 0.45;
}


.flashsale-soldout-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.flashsale-soldout-badge svg {
  fill: black;
  display: block;
  width: 240px;
  height: 240px;
  transform: rotate(-20deg);
  opacity: 0.25;
}

.flashsale-soldout-badge span {
  font-size: 11px;
  font-weight: 800;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ================================================================== */
/* STRONA PRODUKTU — info box przy przycisku                          */
/* ================================================================== */

.fsc-product-info {
  border: 2px solid var(--fsc-blue);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f8fcff;
  width: 100%;
}

.fsc-product-info__header {
  color: black;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fsc-product-info__header svg { stroke: #00a0e3; }

.fsc-product-info__stock-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 4px;
  font-size: 17px;
  font-weight: 600;
}

.fsc-product-info__stock-row .fsc-remaining { color: #00a0e3; }
.fsc-product-info__stock-row .fsc-sold { color: #888; }

.fsc-remaining { color: var(--fsc-blue-dark); }
.fsc-sold { color: #888; }

.fsc-product-info__bar {
  height: 12px;
  background: #ddd;
  margin: 2px 14px 10px;
  border-radius: 6px;
  overflow: hidden;
}

.fsc-product-info__bar-fill {
  height: 100%;
  background: var(--fsc-blue);
  border-radius: 6px;
  min-width: 4px;
}

.fsc-product-info__countdown-wrap {
  border-top: 1px solid #d6eef9;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.fsc-product-info__countdown-label {
  font-size: 15px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.fsc-product-info__countdown {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.fsc-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fsc-cd-unit span {
  color: black;
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 5px 10px;
  border-radius: 6px;
  min-width: 44px;
  text-align: center;
  line-height: 1;
  border: 2px solid #00a0e3;
}

.fsc-cd-unit small {
  font-size: 10px;
  color: #888;
  margin-top: 3px;
  text-transform: lowercase;
}

.fsc-cd-sep {
  font-size: 20px;
  font-weight: 800;
  color: var(--fsc-blue);
  padding-top: 5px;
  line-height: 1;
}

.fsc-details-active {
  /* outline: 2px solid var(--fsc-blue); */
  outline-offset: 4px;
  border-radius: 10px;
}

/* ================================================================== */
/* ANIMACJA RAMKI — tylko homepage (.flashsale-wrapper)               */
/* ================================================================== */

@property --fsc-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes fsc-rotate {
  0%   { --fsc-angle: 0deg; }
  100% { --fsc-angle: 360deg; }
}

.flashsale-wrapper {
  border: none !important;
  isolation: isolate;
}

.flashsale-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: conic-gradient(
    from var(--fsc-angle),
    #f5fbff, #00a0e3, #00e5ff, #ffffff, #00e5ff, #00a0e3, #f5fbff
  );
  animation: fsc-rotate 3s linear infinite;
  z-index: -1;
}




/* ================================================================== */
/* ADMIN STATS DASHBOARD                                               */
/* ================================================================== */

.fss-wrap {
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 0 0 40px;
  max-width: 100%;
}

/* Tabs */
.fss-tabs {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  border-bottom: 3px solid #00a0e3;
}

.fss-tabs li { margin-bottom: -3px; }

.fss-tabs li a {
  display: block;
  padding: 10px 24px;
  color: #777;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  transition: all 0.15s;
}

.fss-tabs li a:hover { color: #00a0e3; background: #fff; }

.fss-tabs li.active a {
  background: #fff;
  color: #00a0e3;
  border-color: #00a0e3;
  border-bottom: 3px solid #fff;
  font-weight: 700;
}

/* Filter bar */
.fss-filter {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.fss-filter__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .fss-filter__row { flex-direction: column; align-items: flex-start; }
  .fss-filter__row label { width: 100%; }
  .fss-filter__row input[type="date"] { width: 100%; box-sizing: border-box; }
}

.fss-filter__row label {
  font-size: 13px;
  color: #555;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fss-filter__row input[type="date"] {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 13px;
  color: #333;
  background: #fafafa;
}

/* KPI grid */
.fss-kpi-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

@media (max-width: 1400px) { .fss-kpi-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1000px) { .fss-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .fss-kpi-grid { grid-template-columns: repeat(2, 1fr); } }

.fss-kpi {
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  position: relative;
  overflow: hidden;
}

.fss-kpi::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.fss-kpi__val {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.fss-kpi__label {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.88;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  position: relative;
  z-index: 1;
}

.fss-kpi--blue   { background: linear-gradient(135deg, #00a0e3, #0080b8); }
.fss-kpi--green  { background: linear-gradient(135deg, #1db954, #158a3e); }
.fss-kpi--teal   { background: linear-gradient(135deg, #00b894, #00897b); }
.fss-kpi--orange { background: linear-gradient(135deg, #ff6b35, #e55b2a); }
.fss-kpi--purple { background: linear-gradient(135deg, #9b59b6, #7d3c98); }
.fss-kpi--gray   { background: linear-gradient(135deg, #636e72, #4a5568); }
.fss-kpi--red    { background: linear-gradient(135deg, #e63946, #c0392b); }
.fss-kpi--dark   { background: linear-gradient(135deg, #2d3436, #1a1a2e); }

/* Charts grid */
.fss-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 28px;
}

/* Duży wykres zawsze na całą szerokość */
.fss-charts-grid .fss-chart-box:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .fss-charts-grid {
    grid-template-columns: 1fr;
  }
}

.fss-chart-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  min-width: 0;
}

.fss-chart-box__title {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

/* Sections */
.fss-section {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  overflow-x: auto;
}

.fss-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fss-section__title {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

/* Tables */
.fss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.fss-table th {
  background: #f7f8fa;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: #555;
  border-bottom: 2px solid #e8e8e8;
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.fss-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f2f2f2;
  vertical-align: middle;
  color: #444;
}

.fss-table tbody tr:hover td { background: #f8fbff; }
.fss-row-active td { background: #f0fff4 !important; }

/* Mini bar */
.fss-mini-bar {
  width: 56px;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}
.fss-mini-bar__fill { height: 100%; background: #00a0e3; border-radius: 3px; }

/* Badges */
.fss-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.fss-badge--green  { background: #1db954; }
.fss-badge--gray   { background: #aaa; }
.fss-badge--blue   { background: #00a0e3; }
.fss-badge--red    { background: #e63946; }

/* Profit */
.fss-profit-pos { color: #1db954; font-weight: 700; }
.fss-profit-neg { color: #e63946; font-weight: 700; }

.fss-empty {
  color: #bbb;
  font-style: italic;
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
}