/* ==========================================================================
   CUSTOMER PANEL — customer-panel.css
   Prefix: cp-
   Akademia LTCA — panel klienta
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
  --cp-primary:        #2c3e50;
  --cp-primary-dark:   #1a252f;
  --cp-primary-light:  #F7F9FB;
  --cp-sidebar-w:      260px;
  --cp-sidebar-mini-w: 60px;
  --cp-bg:             #f4f6f9;
  --cp-surface:        #ffffff;
  --cp-border:         #e2e8f0;
  --cp-border-light:   #f1f5f9;
  --cp-text:           #102A41;
  --cp-text-muted:     #788a9d;
  --cp-text-light:     #a0aec0;
  --cp-radius:         8px;
  --cp-radius-lg:      12px;
  --cp-shadow:         0 2px 8px rgba(0,0,0,0.07);
  --cp-shadow-md:      0 4px 16px rgba(0,0,0,0.1);
  --cp-transition:     0.2s ease;
}

/* --------------------------------------------------------------------------
   2. Layout — Główny kontener dwukolumnowy
   -------------------------------------------------------------------------- */
.cp-layout {
  display: flex;
  gap: 24px;
  padding: 0 0 48px;
  width: 100%;
  min-height: calc(100vh - 200px);
  z-index: 1;
  position: relative;
}

.cp-sidebar-col {
  width: var(--cp-sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cp-sidebar-inner {
  position: sticky;
  top: 20px;
}

.cp-content-col {
  flex: 1;
  min-width: 0;
}

.cp-gradientbg::before{
  content: '';
  display: block;
  position: absolute;
  width: 100vw;
  height: 600px;
  left: 0;
  top: 0;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   3. User Card
   -------------------------------------------------------------------------- */
.cp-user-card {
  background: #EAEFF4;
  background: linear-gradient(186deg, rgba(234, 239, 244, 1) 0%, rgba(234, 239, 244, 1) 50%, rgba(255, 255, 255, 1) 100%);
  border-radius: var(--cp-radius-lg);
  border: 1px solid #e1edf9;
  border-top-color: #ffffff;
  border-right: #ffffff;
  box-shadow: 3px -3px 6px 0px rgba(0, 0, 0, 0.1);
  padding: 20px 16px;
  margin-bottom: 15px;
}

.cp-user-card-info {
  text-align: center;
}

.cp-user-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.cp-user-card-email {
  font-size: 12px;
  color: var(--cp-text-muted);
  margin: 0 0 12px;
  word-break: break-all;
}

.cp-user-card-subs-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cp-text-muted);
  margin: 0 0 6px;
}

.cp-user-card-sub-item {
  font-size: 12px;
  color: var(--cp-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--cp-border-light);
  line-height: 1.4;
}

.cp-user-card-sub-item:last-child {
  border-bottom: none;
}

.cp-user-card-sub-link {
  color: var(--cp-primary);
  font-weight: 600;
  text-decoration: none;
}

.cp-user-card-sub-link:hover {
  text-decoration: underline;
  color: var(--cp-primary-dark);
}

.cp-user-card-sub-expires {
  font-size: 11px;
  color: var(--cp-text-muted);
}

.cp-user-card-sub-expires .days-left {
  color: var(--cp-primary);
  font-weight: 600;
}

.cp-user-card-sub-expires .days-warning {
  color: #e53e3e;
  font-weight: 600;
}

.cp-user-card-show-more {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--cp-primary);
  cursor: pointer;
  text-align: center;
  background: none;
  border: none;
  padding: 4px 0;
  text-decoration: underline;
}

.cp-user-card-sub-scroll {
  max-height: 180px;
  overflow-y: auto;
}

.cp-user-card-divider {
  height: 1px;
  background: var(--cp-border-light);
  margin: 12px 0;
}

.cp-user-card-logout {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--cp-text-muted);
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--cp-transition);
}

.cp-user-card-logout:hover {
  color: #e53e3e;
}

/* --------------------------------------------------------------------------
   4. Sidebar Navigation
   -------------------------------------------------------------------------- */
.cp-nav-card {
  border-radius: var(--cp-radius-lg);
  box-shadow: var(--cp-shadow);
  padding: 8px 0;
}

.cp-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cp-nav-card .cp-nav {
  background: #EAEFF4;
  background: linear-gradient(186deg, rgba(234, 239, 244, 1) 0%, rgba(234, 239, 244, 1) 50%, rgba(255, 255, 255, 1) 100%);
  border-radius: var(--cp-radius-lg);
  border: 1px solid #e1edf9;
  border-top-color: #ffffff;
  border-right: #ffffff;
  box-shadow: 3px -3px 6px 0px rgba(0, 0, 0, 0.1);
  overflow: auto;
}

.cp-nav-item {
  margin: 0;
}

.cp-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--cp-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
  transition: all var(--cp-transition);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.cp-nav-link:hover {
  background: var(--cp-primary-light);
  color: var(--cp-primary);
  text-decoration: none;
}

.cp-nav-link:hover .cp-nav-icon{
  transform: scale(2) translateX(-10px);
}
.cp-nav-link:hover .cp-nav-text{
  transform: translateX(5px);
  font-weight: 800;
}

.cp-nav-link.cp-active {
  background: var(--cp-primary-dark);
  color: var(--cp-surface);
  font-weight: 600;
}

.cp-nav-link.cp-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cp-primary);
  border-radius: 0 2px 2px 0;
}

.cp-nav-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
  color: inherit;
  transition: all var(--cp-transition);
}

.cp-nav-text {
  flex: 1;
  transition: all var(--cp-transition);
}

.cp-nav-separator {
  height: 1px;
  background: var(--cp-border-light);
  margin: 6px 12px;
}

/* --------------------------------------------------------------------------
   5. Page Header & Breadcrumbs
   -------------------------------------------------------------------------- */


.cp-page-my-profile.cp-gradientbg::before {background: linear-gradient(186deg, rgb(203 214 225) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);}
.cp-page-my-profile-courses.cp-gradientbg::before {background: linear-gradient(186deg, rgb(250 206 145) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);}
.cp-page-my-profile-kursy.cp-gradientbg::before {background: linear-gradient(186deg, rgb(251 197 190) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);}
.cp-page-my-profile-resources.cp-gradientbg::before {background: linear-gradient(186deg, rgb(220 228 213) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);}
.cp-page-my-profile-certificates.cp-gradientbg::before {background: linear-gradient(186deg, rgb(203 214 225) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);}
.cp-page-my-profile-doradzai.cp-gradientbg::before {background: linear-gradient(186deg, rgb(215 200 224) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%)}
.cp-page-my-profile-favorites.cp-gradientbg::before {background: linear-gradient(186deg, rgba(248, 202, 173, 1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);}
.cp-page-my-profile-settings.cp-gradientbg::before {background: linear-gradient(186deg, rgba(208, 210, 191, 1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);}
.cp-page-my-profile-subscriptions.cp-gradientbg::before {background: linear-gradient(186deg, rgba(244, 221, 189, 1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);}
.cp-page-my-profile-loyalty.cp-gradientbg::before {background: linear-gradient(186deg, rgba(236, 200, 195, 1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);}
.cp-page-my-profile-orders.cp-gradientbg::before {background: linear-gradient(186deg, rgba(168, 182, 181, 1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);}
.cp-page-my-profile-company.cp-gradientbg::before {background: linear-gradient(186deg, rgba(184, 189, 200, 1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);}
 

/* .cp-page-my-profile .cp-page-intro-bg::before{background-image: url('/assets/panelklienta/bg_dashboard.png');} */
.cp-page-my-profile-courses .cp-page-intro-bg::before{background-image: url('/assets/panelklienta/bg_szkoleniaiwebinary.png');}
.cp-page-my-profile-kursy .cp-page-intro-bg::before{background-image: url('/assets/panelklienta/bg_kursy.png');}
.cp-page-my-profile-resources .cp-page-intro-bg::before{background-image: url('/assets/panelklienta/bg_materialy.png');}
.cp-page-my-profile-certificates .cp-page-intro-bg::before{background-image: url('/assets/panelklienta/bg_certyfikaty.png');}
.cp-page-my-profile-doradzai .cp-page-intro-bg::before{background-image: url('/assets/panelklienta/bg_doradzai.png');}
.cp-page-my-profile-favorites .cp-page-intro-bg::before{background-image: url('/assets/panelklienta/bg_ulubione.png');}
.cp-page-my-profile-settings .cp-page-intro-bg::before{background-image: url('/assets/panelklienta/bg_mojekonto.png');}
.cp-page-my-profile-subscriptions .cp-page-intro-bg::before{background-image: url('/assets/panelklienta/bg_abonamenty.png');}
.cp-page-my-profile-loyalty .cp-page-intro-bg::before{background-image: url('/assets/panelklienta/bg_programlojalnosciowy.png');}
.cp-page-my-profile-orders .cp-page-intro-bg::before{background-image: url('/assets/panelklienta/bg_zamowienia.png');}
.cp-page-my-profile-company .cp-page-intro-bg::before{background-image: url('/assets/panelklienta/bg_pracownicyidostepy.png');}



.cp-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
}
.cp-page-intro-bg{
  position: relative;
  padding-bottom: 20px;
}
.cp-page-intro-bg::before{
  content: '';
  position: absolute;
  width: 400px;
  height: 200px;
  background-position: right bottom;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
  bottom: 0;
  right: 0;
  animation: slideUpOnce 0.8s ease-out forwards;
}

@media (max-width: 968px) {
  .cp-page-intro{
    width: calc(100% - 200px) !important;
  }
  .cp-page-intro-bg::before{
    width: 200px;
  }
}
@media (max-width: 630px) {
  .cp-page-intro{
    width: 100% !important;
  }
  .cp-page-intro-bg::before{
    display: none;
  }
}

@keyframes slideUpOnce {
  from {
    transform: translateY(100%) rotate(-30deg);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cp-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--cp-text);
  margin: 0;
  line-height: 1.2;
}

.cp-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--cp-text-muted);
}

.cp-breadcrumbs li + li::before {
  content: '/';
  margin-right: 4px;
  color: var(--cp-text-light);
}

.cp-breadcrumbs a {
  color: var(--cp-text-muted);
  text-decoration: none;
}

.cp-breadcrumbs a:hover {
  color: var(--cp-primary);
  text-decoration: underline;
}

.cp-breadcrumbs li.cp-active {
  color: var(--cp-text);
  font-weight: 500;
}

.cp-page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.cp-card {
  background: var(--cp-surface);
  border-radius: var(--cp-radius-lg);
  box-shadow: var(--cp-shadow);
  margin-bottom: 24px;
  overflow: hidden;
}

.cp-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--cp-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #eaeff4;
  border: 1px solid #e1edf9;
  border-top-color: #ffffff;
  border-right: #ffffff;
}

.cp-card-header i{
  margin-right: 10px;
}

.cp-card-header-row{
  width: 100%;
}
.cp-filter-bar {
  margin-top: 10px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.cp-filter-bar .cp-filter-search-wrap {
  flex: 1 1 100%;
  min-width: 0;
}

/* Gdy jest więcej pola, zmniejsz szerokość do zwykłej */
@media (min-width: 768px) {
  .cp-filter-bar {
    align-items: center;
  }
  
  .cp-filter-bar.cp-filter-search-wrap {
    flex: 1 1 auto;
    min-width: 250px;
  }
  .cp-filter-bar select{
    width: 50%;
  }
}

.cp-card-header span{
  font-size: 14px;
  font-weight: 300;
  color: var(--cp-primary);
}
.badge.badge-product-type {
    text-transform: uppercase;
    margin-bottom: 1px;
    border-color: #d3dce6;
    color: #6d7987;
    font-size: 10px;
    padding: 0 10.754px;
}
.cp-card-live-badges{
  display: flex;
}
.cp-card-live-date{
    text-wrap-mode: nowrap;
    font-size: 12px;
    width: fit-content;
    height: 17.295px;
    padding: 0 10.754px;
    justify-content: center;
    align-items: center;
    gap: 8.648px;
}
.cp-card-live table tr td:first-child{
    font-size: 12px;
    text-align: center;
    vertical-align: middle;
}
.cp-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-text);
  margin: 0;
}

.cp-card-body {
  padding: 20px;
}

.cp-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--cp-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #EAEFF4;
  background: linear-gradient(180deg, rgba(234, 239, 244, 1) 0%, rgba(255, 255, 255, 1) 100%);
}
.cp-card-footer .cp-btn{
  background: #EAEFF4;
  border: 1px solid #e1edf9;
  border-top-color: #ffffff;
  border-right: #ffffff;
}

/* --------------------------------------------------------------------------
   7. Tile Grid (kafle)
   -------------------------------------------------------------------------- */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cp-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Kwadratowy kafelek z bg-image */
.cp-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: var(--cp-primary-light);
  border-radius: var(--cp-radius-lg);
  box-shadow: var(--cp-shadow);
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Gradient ciemny od dołu — czytelność tytułu */
.cp-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.05) 65%, transparent 100%);
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}

.cp-tile:hover {
  transform: scale(1.05);
  box-shadow: var(--cp-shadow-md);
  text-decoration: none;
}
.cp-tile:hover::after {
  opacity: 0;
}


.cp-tile-label {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 10px 12px 13px;
  font-weight: 400;
  font-size: 14px;
  color: #1a252f;
  text-align: center;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  background: #ffffff85;
  transition: all 0.3s ease-in-out;
}
.cp-tile:hover .cp-tile-label {
  background: #2c3e50;
  color: #ffffff;
  padding-bottom: 30px;
  
}



/* ─── Baner wewnątrz gridu (ostatni element, wypełnia wolne kolumny) ─── */
.cp-grid-banner { /* grid-column ustawiany przez klasy poniżej */ }

/* Domyślny: 3-kolumnowy grid */
.cp-banner-s3-1 { grid-column: span 1; }
.cp-banner-s3-2 { grid-column: span 2; }
.cp-banner-s3-3 { grid-column: span 3; }

.cp-banner-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  height: 100%;
  align-content: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Banner tile */
.cp-banner-tile {
  flex: 1 1 160px;
  background: var(--cp-surface);
  border-radius: var(--cp-radius-lg);
  box-shadow: var(--cp-shadow);
  padding: 7px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  color: var(--cp-text);
  transition: box-shadow var(--cp-transition);
  border-left: 4px solid var(--cp-primary);
}


.cp-banner-tile:hover {
  box-shadow: var(--cp-shadow-md);
  text-decoration: none;
  color: var(--cp-text);
}

.cp-banner-icon {
  font-size: 24px;
  color: var(--cp-primary);
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.cp-banner-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-text);
  margin-bottom: 2px;
}

.cp-banner-text span {
  font-size: 12px;
  color: var(--cp-text-muted);
}

.cp-banner-label {
  display: flex;
  gap: 10px;
}
.cp-banner-btn {
  margin: 0 auto;
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  display: block;
  width: calc(50% - 5px);
background: var(--cp-surface);
  color: var(--cp-primary);
  border: 1px solid var(--cp-primary);
  text-shadow: none;
}
.cp-banner-btn:hover {
  
   background: var(--cp-primary);
  color: #fff;
  border: 1px solid var(--cp-primary);
  text-shadow: none;
}

/* --------------------------------------------------------------------------
   8. Tables
   -------------------------------------------------------------------------- */
.cp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0;
}

.cp-table thead th {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cp-text-muted);
  border-bottom: 2px solid var(--cp-border);
  white-space: nowrap;
  background: #fafafa;
}

.cp-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--cp-border-light);
  color: var(--cp-text);
  vertical-align: top;
}

.cp-table tbody tr:last-child td {
  border-bottom: none;
}

.cp-table tbody tr:hover td {
  background: var(--cp-bg);
}

.cp-table .cp-col-actions {
  text-align: right;
  white-space: nowrap;
}

.cp-table .cp-col-center {
  text-align: center;
}

.cp-table .cp-col-narrow {
  width: 1px;
  white-space: nowrap;
}

/* Mobile table — stack */
.cp-table-stack {
  display: none;
}

/* --------------------------------------------------------------------------
   9. Filters
   -------------------------------------------------------------------------- */
.cp-filter {
  background: var(--cp-surface);
  border-radius: var(--cp-radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: var(--cp-shadow);
}

.cp-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cp-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}

.cp-filter-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cp-text-muted);
}

.cp-filter-control {
  padding: 8px 12px;
  border: 1px solid var(--cp-border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--cp-text);
  background: #fff;
  transition: border-color var(--cp-transition);
  width: 100%;
}

.cp-filter-control:focus {
  outline: none;
  border-color: var(--cp-primary);
}

.cp-filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding-bottom: 1px;
}

/* --------------------------------------------------------------------------
   10. Buttons
   -------------------------------------------------------------------------- */
.cp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background var(--cp-transition), color var(--cp-transition), border-color var(--cp-transition);
  line-height: 1;
  white-space: nowrap;
}

.cp-btn:hover {
  text-decoration: none;
}

.cp-btn-primary {
  background: var(--cp-primary);
  color: #fff;
  border-color: var(--cp-primary);
}

.cp-btn-primary:hover {
  background: var(--cp-primary-dark);
  border-color: var(--cp-primary-dark);
  color: #fff;
}

.cp-btn-secondary {
  background: transparent;
  color: var(--cp-primary);
  border-color: var(--cp-primary);
}

.cp-btn-secondary:hover {
  background: var(--cp-primary);
  color: #fff;
}

.cp-btn-ghost {
  background: transparent;
  color: var(--cp-text-muted);
  border-color: var(--cp-border);
}

.cp-btn-ghost:hover {
  background: var(--cp-bg);
  color: var(--cp-text);
}

.cp-btn-danger {
  background: transparent;
  color: #e53e3e;
  border-color: #e53e3e;
}

.cp-btn-danger:hover {
  background: #e53e3e;
  color: #fff;
}

.cp-btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.cp-btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

.cp-btn-block {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   11. Badges / Tags
   -------------------------------------------------------------------------- */
.cp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.cp-badge-primary   { background: var(--cp-primary-light); color: var(--cp-primary-dark); }
.cp-badge-success   { background: #d1fae5; color: #065f46; }
.cp-badge-warning   { background: #fef3c7; color: #92400e; }
.cp-badge-danger    { background: #fee2e2; color: #991b1b; }
.cp-badge-info      { background: #dbeafe; color: #1e40af; }
.cp-badge-secondary { background: #f1f5f9; color: #475569; }
.cp-badge-dark      { background: #343741; color: #fff; }

/* --------------------------------------------------------------------------
   12. Pagination
   -------------------------------------------------------------------------- */
.cp-pagination-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0 8px;
}

.cp-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cp-pagination li a,
.cp-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--cp-border);
  font-size: 13px;
  text-decoration: none;
  color: var(--cp-text);
  background: #fff;
  transition: background var(--cp-transition), color var(--cp-transition), border-color var(--cp-transition);
}

.cp-pagination li a:hover {
  border-color: var(--cp-primary);
  color: var(--cp-primary);
  background: var(--cp-primary-light);
}

.cp-pagination li.active span,
.cp-pagination li.active a {
  background: var(--cp-primary);
  border-color: var(--cp-primary);
  color: #fff;
}

.cp-pagination li.disabled span {
  color: var(--cp-text-light);
  cursor: default;
  background: #fafafa;
}

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.cp-form-section {
  margin-bottom: 32px;
}

.cp-form-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cp-primary-light);
}

.cp-form-group {
  margin-bottom: 16px;
}

.cp-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-text);
}

.cp-form-label .cp-required {
  color: #e53e3e;
  margin-left: 2px;
}

.cp-form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--cp-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--cp-text);
  background: #fff;
  transition: border-color var(--cp-transition), box-shadow var(--cp-transition);
}

.cp-form-control:focus {
  outline: none;
  border-color: var(--cp-primary);
  box-shadow: 0 0 0 3px rgba(191,132,77,0.15);
}

.cp-form-control.is-invalid {
  border-color: #e53e3e;
}

.cp-form-error {
  margin-top: 4px;
  font-size: 12px;
  color: #e53e3e;
}

.cp-form-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--cp-text-muted);
}

.cp-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
}

/* Password strength */
.cp-password-strength {
  margin-top: 8px;
}

.cp-password-strength-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--cp-border);
  margin-bottom: 4px;
  overflow: hidden;
}

.cp-password-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}

.cp-password-strength-fill.strength-weak    { width: 25%; background: #e53e3e; }
.cp-password-strength-fill.strength-fair    { width: 50%; background: #dd6b20; }
.cp-password-strength-fill.strength-good    { width: 75%; background: #d69e2e; }
.cp-password-strength-fill.strength-strong  { width: 100%; background: #38a169; }

.cp-password-strength-label {
  font-size: 11px;
  color: var(--cp-text-muted);
}

/* --------------------------------------------------------------------------
   14. Empty State
   -------------------------------------------------------------------------- */
.cp-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--cp-text-muted);
}

.cp-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
  display: block;
}

.cp-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--cp-text);
  margin: 0 0 6px;
}

.cp-empty-text {
  font-size: 14px;
  color: var(--cp-text-muted);
  margin: 0 0 20px;
}

/* --------------------------------------------------------------------------
   15. Section Header
   -------------------------------------------------------------------------- */
.cp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cp-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cp-text);
  margin: 0;
}

.cp-section-divider {
  height: 1px;
  background: var(--cp-border-light);
  margin: 20px 0;
}

/* --------------------------------------------------------------------------
   16. Event / Course List Item
   -------------------------------------------------------------------------- */
.cp-event-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cp-border-light);
  align-items: flex-start;
}

.cp-event-item:last-child {
  border-bottom: none;
}

.cp-event-date-badge {
  background: var(--cp-primary);
  color: #fff;
  border-radius: var(--cp-radius);
  padding: 6px 10px;
  text-align: center;
  min-width: 52px;
  flex-shrink: 0;
}

.cp-event-date-day {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.cp-event-date-month {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.cp-event-body {
  flex: 1;
  min-width: 0;
}

.cp-event-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cp-primary);
  margin-bottom: 2px;
}

.cp-event-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cp-text);
  margin: 0 0 4px;
  line-height: 1.4;
}

.cp-event-title a {
  color: inherit;
  text-decoration: none;
}

.cp-event-title a:hover {
  color: var(--cp-primary);
}

.cp-event-meta {
  font-size: 12px;
  color: var(--cp-text-muted);
}

/* --------------------------------------------------------------------------
   17. Sidebar Mobile Toggle Button
   -------------------------------------------------------------------------- */
.cp-sidebar-toggle-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 16px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cp-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--cp-shadow-md);
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background var(--cp-transition);
}

.cp-sidebar-toggle-btn:hover {
  background: var(--cp-primary-dark);
}

.cp-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1001;
}

/* --------------------------------------------------------------------------
   18. Loading State
   -------------------------------------------------------------------------- */
.cp-loading-overlay {
  position: relative;
}

.cp-loading-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  z-index: 10;
  border-radius: var(--cp-radius);
}

/* --------------------------------------------------------------------------
   19. Product Card (Abonamenty + Kursy — kafle)
   -------------------------------------------------------------------------- */
.cp-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cp-product-card {
  background: var(--cp-surface);
  border-radius: var(--cp-radius-lg);
  box-shadow: var(--cp-shadow);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 3px solid var(--cp-primary);
  transition: box-shadow var(--cp-transition), transform var(--cp-transition);
}

.cp-product-card:hover {
  box-shadow: var(--cp-shadow-md);
  transform: translateY(-2px);
}

.cp-product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cp-product-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-text);
  line-height: 1.35;
  flex: 1;
}

.cp-product-card-assigned {
  font-size: 11px;
  color: var(--cp-text-muted);
  background: var(--cp-bg);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
  margin-top: 2px;
}

.cp-product-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.cp-product-card-meta-item {
  font-size: 12px;
  line-height: 1.4;
}

.cp-product-card-meta-item .cp-meta-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cp-text-muted);
  margin-bottom: 1px;
}

.cp-product-card-meta-item strong {
  color: var(--cp-text);
  font-weight: 600;
}

.cp-product-card-meta-item .cp-days-left {
  font-size: 11px;
  color: var(--cp-text-muted);
}

.cp-product-card-meta-item .cp-days-left.urgent {
  color: #dc2626;
}

.cp-product-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

/* Dla prostszych kafli (Kursy — kategorie) */
.cp-product-card.cp-product-card-simple {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  border-top: none;
  border-left: 3px solid var(--cp-primary);
  padding: 14px 16px;
}

.cp-product-card.cp-product-card-simple .cp-product-card-title {
  font-size: 14px;
}

/* --- stare cp-sub-tile zachowane dla kompatybilności --- */
.cp-sub-tile {
  background: var(--cp-surface);
  border-radius: var(--cp-radius-lg);
  box-shadow: var(--cp-shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--cp-text);
  transition: box-shadow var(--cp-transition), transform var(--cp-transition);
  border-top: 4px solid var(--cp-primary);
}

.cp-sub-tile:hover {
  box-shadow: var(--cp-shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--cp-text);
}

.cp-sub-tile-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-text);
  line-height: 1.3;
}

.cp-sub-tile-meta {
  font-size: 12px;
  color: var(--cp-text-muted);
  line-height: 1.5;
}

.cp-sub-tile-status {
  margin-top: auto;
}

.cp-sub-tile-no-link {
  opacity: 0.6;
  cursor: default;
}

.cp-sub-tile-no-link:hover {
  transform: none;
  box-shadow: var(--cp-shadow);
}

/* --------------------------------------------------------------------------
   20. Flash Messages
   -------------------------------------------------------------------------- */
.cp-alert {
  padding: 12px 16px;
  border-radius: var(--cp-radius);
  margin-bottom: 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.cp-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.cp-alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.cp-alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* --------------------------------------------------------------------------
   20b. Responsive — Wide Desktop (≥ 1200px) — 4-kolumnowy grid
   -------------------------------------------------------------------------- */
@media (min-width: 1400px) {
  .cp-grid { grid-template-columns: repeat(4, 1fr); }
  /* Banner span override dla 4 kolumn (pojawia się po cp-banner-s3-X w cascade) */
  .cp-banner-s4-1 { grid-column: span 1; }
  .cp-banner-s4-2 { grid-column: span 2; }
  .cp-banner-s4-3 { grid-column: span 3; }
  .cp-banner-s4-4 { grid-column: span 4; }
  /* Resetuj cp-banner-s3 które mogą dawać inny span */
  .cp-banner-s3-1, .cp-banner-s3-2, .cp-banner-s3-3 { grid-column: unset; }
}

/* --------------------------------------------------------------------------
   21. Responsive — Tablet (≤ 1199px)
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .cp-sidebar-col {
    width: 220px;
  }

  .cp-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   22. Responsive — Mobile (≤ 991px) — Mini Sidebar
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .cp-layout {
    gap: 0;
    padding: 16px 0 40px;
    position: relative;
  }

  .cp-sidebar-col {
    width: var(--cp-sidebar-mini-w);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: fit-content;
    gap: 0;
    z-index: 100;
  }

  .cp-sidebar-inner {
    position: sticky;
    top: 0;
  }

  /* Hide user card in mini mode */
  .cp-user-card { display: none; }

  /* Mini nav */
  .cp-nav-card {
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0;
    min-height: calc(100vh - 60px);
  }

  .cp-nav-link {
    padding: 12px 0;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    font-size: 9px;
  }

  .cp-nav-icon {
    font-size: 18px;
    width: auto;
  }

  .cp-nav-text {
    font-size: 9px;
    line-height: 1.1;
    text-align: center;
    max-width: 52px;
    white-space: normal;
    overflow: hidden;
  }

  .cp-nav-separator {
    margin: 4px 8px;
  }

  /* Expanded state (overlay) */
  .cp-sidebar-col.cp-sidebar-expanded {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--cp-sidebar-w);
    height: 100vh;
    z-index: 1002;
    overflow-y: auto;
    background: var(--cp-surface);
  }

  .cp-sidebar-col.cp-sidebar-expanded .cp-user-card {
    display: block;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--cp-border-light);
  }

  .cp-sidebar-col.cp-sidebar-expanded .cp-nav-card {
    border-radius: 0;
    border-right: none;
    min-height: unset;
  }

  .cp-sidebar-col.cp-sidebar-expanded .cp-nav-link {
    padding: 10px 16px;
    flex-direction: row;
    gap: 12px;
    font-size: 14px;
    justify-content: flex-start;
  }

  .cp-sidebar-col.cp-sidebar-expanded .cp-nav-icon {
    font-size: 14px;
    width: 18px;
  }

  .cp-sidebar-col.cp-sidebar-expanded .cp-nav-text {
    font-size: 14px;
    white-space: nowrap;
    max-width: none;
  }

  .cp-sidebar-col.cp-sidebar-expanded .cp-nav-separator {
    margin: 6px 12px;
  }

  /* Show overlay */
  .cp-sidebar-col.cp-sidebar-expanded ~ .cp-sidebar-overlay,
  body.cp-sidebar-open .cp-sidebar-overlay {
    display: block;
  }

  /* Mobile toggle button */
  .cp-sidebar-toggle-btn {
    display: flex;
  }

  /* Content */
  .cp-content-col {
    padding-left: 12px;
  }

  .cp-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-grid-2 { grid-template-columns: 1fr; }
  .cp-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* Banner span override dla 2 kolumn */
  .cp-banner-s3-1, .cp-banner-s3-2, .cp-banner-s3-3 { grid-column: unset; }
  .cp-banner-s2-1 { grid-column: span 1; }
  .cp-banner-s2-2 { grid-column: span 2; }

  .cp-favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   23. Responsive — Small Mobile (≤ 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .cp-sidebar-col {
    width: 50px;
    margin-left: -20px;
    margin-right: 10px;
  }

  .cp-nav-text { display: none; }

  .cp-content-col {
    padding-left: 8px;
  }

  .cp-page-title {
    font-size: 18px;
  }

  .cp-filter-row {
    flex-direction: column;
  }

  .cp-filter-group {
    min-width: 100%;
  }

  .cp-grid-3, .cp-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cp-grid { grid-template-columns: repeat(2, 1fr); }

  .cp-card-body {
    padding: 14px;
  }

  .cp-page-intro {
    grid-template-columns: 1fr;
  }

  .cp-page-intro-actions {
    justify-content: flex-start;
  }

  .cp-event-item {
    gap: 10px;
  }

  .cp-favorites-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}

/* --------------------------------------------------------------------------
   24. Responsive — Extra Small (≤ 576px)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .cp-layout {
    padding: 8px 0 32px;
  }

  .cp-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-banner-s3-1, .cp-banner-s3-2, .cp-banner-s3-3 { grid-column: unset; }
  .cp-banner-s2-1 { grid-column: span 1; }
  .cp-banner-s2-2 { grid-column: span 2; }

  .cp-table thead { display: none; }
  .cp-table tbody tr {
    display: block;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    margin-bottom: 10px;
    padding: 2px 0;
  }
  .cp-table tbody td {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--cp-border-light);
    font-size: 13px;
  }
  .cp-table tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cp-text-muted);
    min-width: 90px;
    flex-shrink: 0;
  }
  .cp-table tbody tr:hover td {
    background: transparent;
  }

  .cp-page-header {
    flex-direction: column;
    gap: 6px;
  }

  .cp-sub-tile { padding: 14px; }
  .cp-product-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   25. Utilities
   -------------------------------------------------------------------------- */
.cp-section-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--cp-text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cp-border-light);
}

.cp-text-muted { color: var(--cp-text-muted); }
.cp-text-primary { color: var(--cp-primary); }
.cp-text-sm { font-size: 12px; }
.cp-text-xs { font-size: 11px; }
.cp-fw-bold { font-weight: 700; }
.cp-mt-0 { margin-top: 0; }
.cp-mb-0 { margin-bottom: 0; }

.cp-d-flex { display: flex; }
.cp-align-center { align-items: center; }

.cp-page-intro {
  display: grid;
  gap: 10px;
  align-items: center;
  
  margin-bottom: 0;
  width: calc(100% - 400px);
  grid-auto-flow: row;
}

.cp-page-intro-text {
  font-size: 13px;
  color: #8392a1;
  line-height: 1.45;
}

.cp-page-intro-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-resource-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-resource-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--cp-border-light);
  border-radius: var(--cp-radius);
  padding: 8px 10px;
}

.cp-resource-file-name {
  font-size: 13px;
  color: var(--cp-text);
  word-break: break-word;
}
.cp-justify-between { justify-content: space-between; }
.cp-gap-8 { gap: 8px; }
.cp-gap-12 { gap: 12px; }
.cp-gap-16 { gap: 16px; }

/* --------------------------------------------------------------------------
   26. Favorites
   -------------------------------------------------------------------------- */
.cp-fav-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cp-border);
}
.cp-fav-item:last-child { border-bottom: none; }
.cp-fav-info { flex: 1; min-width: 0; }
.cp-fav-title {
  display: block;
  font-weight: 600;
  color: var(--cp-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.cp-fav-title:hover { color: var(--cp-primary); }
.cp-fav-meta { color: var(--cp-text-muted); font-size: 12px; }

.cp-favorites-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.cp-favorites-card {
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 126px;
}

.cp-favorites-card .cp-fav-title {
  white-space: normal;
  overflow: hidden;
  text-overflow: unset;
}

.cp-favorites-card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   27. Orders
   -------------------------------------------------------------------------- */
.cp-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cp-border);
  flex-wrap: wrap;
}
.cp-order-row:last-child { border-bottom: none; }
.cp-order-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cp-order-number { font-weight: 600; color: var(--cp-text); }
.cp-order-date   { color: var(--cp-text-muted); font-size: 13px; }
.cp-order-right  {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cp-order-total { font-weight: 700; color: var(--cp-primary); }
.cp-order-invoices { display: flex; gap: 6px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   28. Tab navigation (settings)
   -------------------------------------------------------------------------- */
.cp-tab-nav {
  border-bottom: 2px solid var(--cp-border);
  gap: 4px;
}
.cp-tab-nav .nav-link {
  color: var(--cp-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 8px 16px;
  border-radius: 0;
  font-size: 14px;
  transition: color .15s, border-color .15s;
}
.cp-tab-nav .nav-link:hover { color: var(--cp-primary); }
.cp-tab-nav .nav-link.active {
  color: var(--cp-primary);
  border-bottom-color: var(--cp-primary);
  background: transparent;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   29. Responsive — Extra Extra Small (≤ 399px) — 1 kolumna
   -------------------------------------------------------------------------- */
@media (max-width: 399px) {
  .cp-grid { grid-template-columns: 1fr !important; }
  .cp-grid-banner { grid-column: span 1 !important; }
  .cp-banner-row { flex-direction: column; }
}
