.header--compact .header__collapsible {
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
}

.header--compact .header__collapsible-inner {
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
}

:root {
    --color-primary: #DC143C;
    --color-primary-dark: #A50E2D;
    --color-primary-light: #F07185;
    --color-primary-bg: #fff0f2;
    --color-surface: #fff8f9;
    --color-surface-muted: rgba(255, 240, 242, 0.92);
    --color-surface-tint: rgba(255, 242, 245, 0.76);
    --color-glow: rgba(240, 113, 133, 0.45);
    --section-gradient: #ffffff;
    --shadow-focus: 0 0 0 3px rgba(220, 20, 60, 0.12);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.1);
}

/* Global fixes for cursor and hover bugs */
* {
    box-sizing: border-box;
}

button, 
input[type="button"], 
input[type="submit"], 
input[type="reset"],
a {
    cursor: pointer;
}

button:disabled,
input:disabled {
    cursor: not-allowed;
}

/* Prevent cursor flickering */
button, 
input, 
a, 
.nav__link {
    cursor: pointer !important;
}

/* Fix hover jumping */
button:hover,
input:hover,
a:hover,
.nav__link:hover {
    cursor: pointer !important;
}

/* Simple animations without complex optimizations */

/* Main styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

/* Top announcement bar */
#top-bar-placeholder {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1315;
    width: 100%;
    overflow: visible;
}

.top-bar {
    background: #ececee;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    line-height: 1.4;
    color: #1d1d1f;
    width: 100%;
    overflow: visible;
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 40px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.top-bar__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.top-bar__item--right {
    margin-left: auto;
}

.top-bar__text {
    font-weight: 400;
    white-space: nowrap;
}

.top-bar__highlight {
    color: #DC143C;
    font-weight: 600;
}

.top-bar__flag {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: column;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    overflow: hidden;
    line-height: 0;
    align-self: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.top-bar__flag-stripe {
    flex: 1 1 50%;
    width: 100%;
    min-height: 0;
}

.top-bar__flag-stripe--white {
    background: #ffffff;
}

.top-bar__flag-stripe--red {
    background: #DC143C;
}

.top-bar__heart {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    line-height: 0;
}

@media (max-width: 640px) {
    .top-bar__inner {
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        min-height: auto;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .top-bar__item--right {
        margin-left: 0;
    }

    .top-bar__text {
        white-space: normal;
        text-align: center;
        font-size: 0.8125rem;
    }
}

/* iOS-Style Header */
.header {
    --header-top-height: 88px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1300;
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: var(--shadow-sm);
    left: 0;
    right: 0;
    width: 100%;
    overflow: visible;
}

#header-placeholder {
    position: -webkit-sticky;
    position: sticky;
    top: var(--top-bar-height, 0px);
    z-index: 1300;
    background: #ffffff;
}

.header__top {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    position: relative;
    z-index: 1310;
    background: linear-gradient(180deg, rgba(255, 246, 248, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.header__container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__auth-bar {
    display: flex;
}

.header__auth-bar .auth__buttons {
    display: flex;
    gap: 0.75rem;
}

.header__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__toggle {
    position: relative;
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    z-index: 1;
}

.header__toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(226, 232, 255, 0.9));
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
    border: 1.5px solid rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.header__toggle::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(226, 232, 255, 0.55));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: opacity 0.25s ease;
}

.header__toggle:hover::before {
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
    border-color: rgba(220, 20, 60, 0.35);
    transform: translateY(-1px);
}

.header__toggle:active::before {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    transform: translateY(0);
}

.header__toggle-bar {
    display: block;
    position: relative;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f172a, #1f2937);
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 2;
    transform-origin: center;
}

.header--mobile-open .header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header--mobile-open .header__toggle-bar:nth-child(2) {
    opacity: 0;
}

.header--mobile-open .header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header__mobile-search {
    display: none;
    padding: 0 1.5rem;
}

.search__container--mobile .search__input {
    border-radius: 20px;
}

.search__container--mobile .search__button {
    right: 0.6rem;
}

.header__mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(10px);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.header--mobile-open .header__mobile-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

body.header-mobile-open {
    overflow: hidden;
}

/* Logo — SkillBay */
.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header__logo:hover {
    opacity: 0.88;
}

.brand-logo__text {
    display: inline-flex;
    align-items: baseline;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
}

.brand-logo__skill {
    color: #081226;
}

.brand-logo__bay {
    color: #d62027;
}

.brand-logo--footer .brand-logo__skill {
    color: #ffffff;
}

.brand-logo--footer .brand-logo__bay {
    color: #d62027;
}

.brand-logo--footer {
    text-decoration: none;
    color: inherit;
}

.brand-logo--footer:hover {
    opacity: 0.9;
}

/* Search */
.search__container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search__input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
    position: relative;
}

.search__input:focus {
    border-color: #DC143C;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
    transform: translateY(-1px);
}

.search__input:focus::before {
    opacity: 1;
    transform: translateY(-1px);
}

.search__input::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #DC143C, #A50E2D);
    border-radius: 27px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}

.search__input:focus::before {
    opacity: 1;
}

.search__button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
}

.search__button:hover {
    background: rgba(220, 20, 60, 0.1);
    color: #DC143C;
    transform: translateY(-50%) scale(1.1);
}

.search__button:active {
    transform: translateY(-50%) scale(0.95);
}

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* Fix hover jumping between buttons */
.header__actions > * {
    position: relative;
    z-index: 1;
}

.header__actions > *:hover {
    z-index: 2;
}

.cart__button,
.wishlist__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
    text-decoration: none;
    width: 40px;
    height: 40px;
}

.cart__button:hover,
.wishlist__button:hover {
    background: rgba(220, 20, 60, 0.08);
    color: #DC143C;
    transform: scale(1.1);
}

.cart__button:active,
.wishlist__button:active {
    transform: scale(0.95);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cart__count,
.wishlist__count {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: #ff3b30;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    min-width: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

.wishlist__button {
    position: relative;
}

.netflix-card__action-btn--active svg {
    fill: #ff3b30;
    stroke: #ff3b30;
}

.auth__buttons {
    display: flex;
    gap: 0.75rem;
    position: relative;
}

/* Prevent hover jumping between auth buttons */
.auth__buttons > * {
    position: relative;
    z-index: 1;
}

.auth__buttons > *:hover {
    z-index: 2;
}

.auth__button {
    padding: 0.75rem 2.4rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    user-select: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth__button--register {
    background: #ffffff;
    color: #111111;
    border: 1px solid #111111;
}

.auth__button--register:hover {
    background: #111111;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.auth__button--register:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.auth__button--login {
    background: #111111;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.auth__button--login:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.auth__button--login:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.auth__user-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth__user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

.auth__button--logout {
    background: #111111;
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.auth__button--logout:hover {
    background: #333333;
    transform: translateY(-2px);
}

/* Navigation */
.nav {
    background: rgba(248, 250, 252, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header__collapsible {
    overflow: visible;
    transition: max-height 0.56s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 960px;
    pointer-events: auto;
}

.header__collapsible-inner {
    transform: translateY(0);
    opacity: 1;
    transition:
        transform 0.56s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.nav__container {
    display: flex;
    justify-content: center;
    padding: 0.75rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav__menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Prevent hover jumping between nav links */
.nav__menu > * {
    position: relative;
    z-index: 1;
}

.nav__menu > *:hover {
    z-index: 2;
}

.nav__link {
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

.nav__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.nav__link:hover::before {
    left: 100%;
}

.nav__link:hover,
.nav__link--active {
    background: rgba(15, 23, 42, 0.06);
    color: #1d1d1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.nav__link--active {
    font-weight: 600;
}

.nav__link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #DC143C 0%, #A50E2D 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero__description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Homepage hero — Wawel layout */
.page-home .breadcrumbs {
    display: none;
}

.hero--home {
    position: relative;
    color: #081226;
    text-align: left;
    padding: 0;
    background: #ffffff;
    overflow: hidden;
}

.hero--home .hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero--home .hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
}

.hero--home .hero__bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            105deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.92) 34%,
            rgba(255, 255, 255, 0.72) 50%,
            rgba(255, 255, 255, 0.35) 65%,
            rgba(255, 255, 255, 0.08) 82%,
            transparent 100%
        ),
        linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0.28) 12%,
            rgba(255, 255, 255, 0.08) 28%,
            transparent 48%
        );
}

.hero--home .hero__layout {
    position: relative;
    z-index: 1;
    min-height: clamp(460px, 62vh, 600px);
    padding: clamp(2rem, 4vw, 3.5rem) 0 4.5rem;
}

.hero--home .hero__main {
    max-width: 640px;
    padding-top: clamp(0.5rem, 2vw, 1.5rem);
}

.hero--home .hero__headline {
    margin: 0 0 1.25rem;
    font-size: clamp(2.1rem, 4.8vw, 3.65rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero--home .hero__headline-line {
    display: block;
    color: #081226;
}

.hero--home .hero__headline-line--accent {
    color: #d62027;
}

.hero--home .hero__subtitle {
    margin: 0 0 1.75rem;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.55;
    color: rgba(8, 18, 38, 0.78);
    max-width: 520px;
    opacity: 1;
}

.hero--home .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.55rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__btn:hover {
    transform: translateY(-2px);
}

.hero__btn--primary {
    background: #d62027;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(214, 32, 39, 0.22);
}

.hero__btn--primary:hover {
    box-shadow: 0 6px 16px rgba(214, 32, 39, 0.28);
}

.hero__btn--secondary {
    background: #ffffff;
    color: #081226;
    border: 1px solid rgba(8, 18, 38, 0.12);
    box-shadow: var(--shadow-sm);
}

.hero--home .hero__features-bar {
    position: relative;
    z-index: 2;
    margin-top: clamp(-4.5rem, -8vw, -3.25rem);
    background: #ffffff;
    padding: 1.15rem 0 1.35rem;
}

.hero--home .hero__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.hero__feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero__feature-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #081226;
    line-height: 1.25;
}

.hero__feature-text span {
    display: block;
    font-size: 0.8rem;
    color: rgba(8, 18, 38, 0.62);
    line-height: 1.3;
}

@media (max-width: 960px) {
    .hero--home .hero__bg img {
        object-position: 80% center;
    }

    .hero--home .hero__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.25rem;
    }

    .hero--home .hero__features-bar {
        margin-top: -2.5rem;
    }
}

@media (max-width: 560px) {
    .hero--home .hero__layout {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero--home .hero__actions {
        flex-direction: column;
    }

    .hero__btn {
        width: 100%;
    }

    .hero--home .hero__features {
        grid-template-columns: 1fr;
    }

    .hero--home .hero__features-bar {
        margin-top: -1.5rem;
        padding: 1rem 0 1.15rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn--primary {
    background-color: #DC143C;
    color: white;
}

.btn--primary:hover {
    background-color: #A50E2D;
    transform: translateY(-1px);
}

.btn--secondary {
    background-color: #6c757d;
    color: white;
}

.btn--secondary:hover {
    background-color: #545b62;
}

.btn--full {
    width: 100%;
}

/* Sections */
.section__title {
    position: relative;
    font-size: clamp(2.2rem, 2.8vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 0 0 1.25rem;
    background: linear-gradient(120deg, #111827 0%, #1f2937 35%, #DC143C 70%, #F07185 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 30px rgba(165, 14, 45, 0.18));
}

.section__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.55rem;
    width: 72px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(220, 20, 60, 0.9) 0%, rgba(240, 113, 133, 0.75) 100%);
    box-shadow: 0 8px 18px rgba(220, 20, 60, 0.25);
}

.page__title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

/* Courses grid */
.courses-grid {
    display: grid;
    gap: clamp(1.75rem, 4vw, 2.4rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-card {
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(209, 213, 219, 0.45);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 113, 133, 0.45);
    box-shadow: var(--shadow-md);
}

.course-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card__content {
    padding: 1.5rem;
}

.course-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.course-card__description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.course-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #DC143C;
}

.course-instructor {
    color: #666;
    font-size: 0.9rem;
}

/* Netflix-style featured courses */
.netflix-section {
    position: relative;
    padding: 4rem 0 5rem;
    background: var(--section-gradient);
    color: #1d1d1f;
    overflow: visible;
}

.netflix-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.35) 35%, rgba(255, 255, 255, 0) 70%);
}

.netflix-section .container {
    position: relative;
    z-index: 2;
}

/* Polecane kursy — bez cieni */
.netflix-section .netflix-card,
.netflix-section .netflix-card:hover {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: none;
    filter: none;
    backdrop-filter: none;
}

.netflix-section .netflix-card:hover {
    border-color: rgba(203, 213, 225, 0.95);
    transform: scale(1.01) translateY(-1px);
}

.netflix-section .netflix-card::after,
.netflix-section .netflix-card:hover::after {
    opacity: 0;
}

.netflix-section .netflix-nav,
.netflix-section .netflix-nav:hover {
    box-shadow: none;
}

.netflix-section .section__title,
.recommended-grid-section .section__title,
.partner-program .section__title,
.partner-program__title,
.partner-products-section .section__title {
    filter: none;
}

.netflix-section .section__title::after,
.recommended-grid-section .section__title::after,
.partner-program .section__title::after,
.partner-program__title::after,
.partner-products-section .section__title::after {
    box-shadow: none;
}

.netflix-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.netflix-header .section__title {
    margin-bottom: 0.5rem;
    text-align: left;
}

.netflix-header .section__title::after {
    bottom: -0.6rem;
}

.netflix-subtitle {
    color: rgba(60, 72, 88, 0.7);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-left: 2px;
}

.netflix-slider {
    position: relative;
    overflow: visible;
    --netflix-gap: 1.5rem;
}

.netflix-viewport {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 1.5rem 1rem 2.5rem;
    padding-bottom: 3rem;
}

.netflix-viewport::-webkit-scrollbar {
    display: none;
}

.netflix-track {
    display: flex;
    gap: var(--netflix-gap);
    overflow: visible;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.netflix-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 242, 245, 0.76) 100%);
    border-radius: 18px;
    overflow: hidden;
    min-height: 260px;
    border: 1px solid rgba(209, 213, 219, 0.4);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease, border-color 0.35s ease;
    scroll-snap-align: start;
    transform-origin: center;
    isolation: isolate;
    margin-bottom: 1.5rem;
}

.netflix-track .netflix-card {
    flex: 0 0 calc((100% - (3 * var(--netflix-gap))) / 4);
}

.netflix-card__actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding-right: 0.25rem;
}

.netflix-card__action-btn {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(255, 240, 242, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.netflix-card__action-btn--favorite:hover {
    border-color: rgba(236, 72, 153, 0.55);
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
    transform: translateY(-2px);
    box-shadow: none;
}

.netflix-card__action-btn--cart:hover {
    border-color: rgba(220, 20, 60, 0.55);
    background: rgba(220, 20, 60, 0.12);
    color: #DC143C;
    transform: translateY(-2px);
    box-shadow: none;
}

.netflix-card__action-btn:hover {
    border-color: rgba(220, 20, 60, 0.5);
    background: rgba(220, 20, 60, 0.12);
    color: #DC143C;
    transform: translateY(-2px);
    box-shadow: none;
}

.netflix-card__action-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.netflix-card__action-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.netflix-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(210deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 236, 240, 0.25) 70%, rgba(255, 236, 240, 0) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.netflix-card:hover {
    transform: scale(1.02) translateY(-2px);
    border-color: rgba(240, 113, 133, 0.45);
    box-shadow: var(--shadow-md);
    filter: brightness(1.01);
}

.netflix-card:hover::after {
    opacity: 1;
}

.netflix-card__thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.netflix-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.netflix-card:hover .netflix-card__thumbnail img {
    transform: scale(1.08);
}

.netflix-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.95), rgba(240, 113, 133, 0.9));
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: none;
}

.netflix-card__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(220, 20, 60, 0.18), rgba(220, 20, 60, 0));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.netflix-card:hover .netflix-card__overlay {
    opacity: 1;
}

.netflix-card__info {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.netflix-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1d1d1f;
    margin: 0;
}

.netflix-card__description {
    font-size: 0.9rem;
    color: rgba(60, 72, 88, 0.75);
    line-height: 1.5;
    margin: 0;
}

.netflix-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(88, 102, 122, 0.85);
}

.netflix-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.netflix-card__price {
    margin-left: auto;
    font-size: 0.95rem;
    font-weight: 700;
    color: #DC143C;
}

.netflix-card__link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}

.netflix-card__actions,
.netflix-card__badge {
    position: relative;
    z-index: 4;
}

.netflix-card__overlay,
.netflix-card__thumbnail,
.netflix-card__info {
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.netflix-card__actions,
.netflix-card__action-btn {
    pointer-events: auto;
}

.netflix-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: white;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(209, 213, 219, 0.5);
    transition: all 0.3s ease;
    z-index: 5;
    opacity: 1;
    pointer-events: auto;
}

.netflix-nav:hover {
    color: #DC143C;
    border-color: #DC143C;
    background: #f8f9fa;
    transform: translateY(-50%) scale(1.05);
}

.netflix-nav:active {
    transform: translateY(-50%) scale(0.95);
    opacity: 0.92;
}

.netflix-nav--prev {
    left: -1.75rem;
}

.netflix-nav--next {
    right: -1.75rem;
}

.netflix-nav.is-disabled,
.netflix-nav:disabled {
    opacity: 0.2;
    pointer-events: none;
}

.netflix-empty {
    min-height: 220px;
    border-radius: 18px;
    background: rgba(255, 244, 246, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(78, 86, 104, 0.75);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.netflix-slider.is-empty .netflix-nav {
    display: none;
}

/* Partner program invitation */
.partner-program {
    position: relative;
    padding: 6rem 0;
    overflow: visible;
    background: var(--section-gradient);
}

.partner-program__background {
    display: none;
}

.partner-program__container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
}

.partner-program__content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.partner-program__eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(220, 20, 60, 0.12);
    color: #DC143C;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    width: fit-content;
    top: -2.75rem;
    margin-bottom: -1.3rem;
    box-shadow: none;
}

.partner-program__title {
    font-size: clamp(2.3rem, 2.7vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #111827;
    margin: 0;
}

.partner-program__subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(55, 65, 81, 0.8);
    margin: 0;
}

.partner-program__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.partner-program__card {
    position: relative;
    padding: 1.6rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.partner-program__card:hover {
    transform: translateY(-2px);
    border-color: rgba(203, 213, 225, 0.95);
    box-shadow: none;
}

.partner-program__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(165, 14, 45, 0.18), rgba(240, 113, 133, 0.18));
    color: #DC143C;
    display: grid;
    place-items: center;
}

.partner-program__card h3 {
    font-size: 1.05rem;
    margin: 0;
    color: #111827;
}

.partner-program__card p {
    margin: 0;
    color: rgba(55, 65, 81, 0.75);
    line-height: 1.6;
    font-size: 0.95rem;
}

.partner-program__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn--large {
    padding: 0.95rem 2.3rem;
    font-size: 0.95rem;
    border-radius: 999px;
    font-weight: 600;
}

.btn--ghost {
    background: transparent;
    border: 1px solid rgba(165, 14, 45, 0.2);
    color: #DC143C;
    transition: border 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.btn--ghost:hover {
    border-color: rgba(165, 14, 45, 0.5);
    color: #A50E2D;
    background: rgba(165, 14, 45, 0.08);
}

.partner-program__visual {
    position: relative;
    display: grid;
    place-items: center;
}

.partner-program__glow {
    display: none;
}

.partner-program__card--highlight {
    position: relative;
    padding: 2rem;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: none;
    border: 1px solid rgba(226, 232, 240, 0.95);
    max-width: 360px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 1;
}

.partner-program__badge {
    align-self: flex-start;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(165, 14, 45, 0.95), rgba(220, 20, 60, 0.85));
    color: white;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.partner-program__card--highlight h3 {
    font-size: 1.35rem;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.partner-program__card--highlight ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: rgba(30, 41, 59, 0.85);
    font-size: 0.95rem;
}

.partner-program__card--highlight li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.partner-program__bullet-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(165, 14, 45, 0.12);
    color: #DC143C;
    display: grid;
    place-items: center;
}

.partner-program__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    align-self: flex-start;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    background: rgba(165, 14, 45, 0.1);
    color: #A50E2D;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.partner-program__circle {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1px solid rgba(220, 20, 60, 0.15);
    z-index: 0;
}

@media (max-width: 1024px) {
    .partner-program__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .partner-program__visual {
        justify-items: start;
    }
}

@media (max-width: 768px) {
    .partner-program {
        padding: 5rem 0;
    }

    .partner-program__grid {
        grid-template-columns: 1fr;
    }

    .partner-program__actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .btn--ghost {
        text-align: center;
    }

    .partner-program__card--highlight {
        margin: 0 auto;
    }

    .partner-program__circle,
    .partner-program__glow {
        width: 360px;
        height: 360px;
    }

    .partner-program__eyebrow {
        top: -2.4rem;
        margin-bottom: -1.1rem;
    }
}

@media (max-width: 480px) {
    .partner-program {
        padding: 4rem 0;
    }

    .partner-program__title {
        font-size: 2.1rem;
    }

    .partner-program__subtitle {
        font-size: 1rem;
    }

    .partner-program__eyebrow {
        top: -2.1rem;
        margin-bottom: -0.9rem;
    }
}

/* Cart */
.cart-main {
    min-height: calc(100vh - 220px);
    padding: clamp(4rem, 6vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.cart-section {
    width: 100%;
}

.cart-container {
    width: min(100%, 1080px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 3rem);
}

.cart-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.cart-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(220, 20, 60, 0.8);
    font-weight: 600;
}

.cart-title {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    letter-spacing: -0.03em;
    margin: 0;
    font-weight: 800;
    color: #0f172a;
}

.cart-subtitle {
    margin: 0;
    max-width: 560px;
    color: rgba(30, 41, 59, 0.72);
    font-size: 1rem;
    line-height: 1.65;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(320px, 1.4fr);
    gap: clamp(1.75rem, 5vw, 2.5rem);
}

.cart-sidebar {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2rem);
}

.card-surface {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(203, 213, 225, 0.45);
    border-radius: 26px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(26px);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.cart-items:empty::after {
    content: 'Twój koszyk jest pusty.';
    color: rgba(30, 41, 59, 0.65);
    text-align: center;
    font-size: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(209, 213, 219, 0.4);
    background: rgba(255, 240, 242, 0.9);
    box-shadow: var(--shadow-sm);
}

.cart-item__image {
    width: 120px;
    height: 88px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: none;
}

.cart-item__info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cart-item__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.cart-item__instructor {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.6);
}

.cart-item__price {
    font-size: 1.05rem;
    font-weight: 600;
    color: #DC143C;
}

.cart-item .btn {
    padding: 0.65rem 1.25rem;
    border-radius: 16px;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.cart-summary__label {
    font-size: 1rem;
    color: rgba(30, 41, 59, 0.7);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.cart-summary__value {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #0f172a;
}

.cart-summary__hint {
    margin: 0;
    color: rgba(30, 41, 59, 0.55);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cart-summary__cta {
    margin-top: 0.5rem;
    font-size: 1.05rem;
    padding: 0.85rem 1.2rem;
    border-radius: 18px;
}


@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .cart-item {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .cart-item__image {
        justify-self: center;
    }

    .cart-item__meta {
        align-items: center;
    }

    .cart-item .btn,
    .cart-item__remove {
        width: 100%;
    }
}

/* Forms */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.auth-main {
    min-height: calc(100vh - 200px);
    padding: 6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-login {
    width: min(100%, 520px);
}

.auth-login__container {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: min(100%, 420px);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    border: 1px solid rgba(203, 213, 225, 0.6);
    padding: 2.75rem 2.5rem 2.5rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(22px);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), transparent 55%);
    opacity: 0.4;
    pointer-events: none;
}

.auth-card__title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    color: #0b1324;
    margin: 0;
    text-align: center;
}

.auth-card__subtitle {
    margin: 0;
    text-align: center;
    color: rgba(55, 65, 81, 0.7);
    font-size: 0.95rem;
    line-height: 1.55;
}

.auth-card__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-card__group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-card__label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(30, 41, 59, 0.7);
}

.auth-card__input {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: rgba(255, 240, 242, 0.85);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-card__input:focus {
    outline: none;
    border-color: rgba(220, 20, 60, 0.8);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.15);
}

.auth-card__actions {
    display: flex;
    justify-content: flex-end;
}

.auth-card__link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #DC143C;
    text-decoration: none;
    position: relative;
}

.auth-card__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.auth-card__link:hover::after {
    opacity: 1;
}

.auth-card__submit {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 16px 30px rgba(165, 14, 45, 0.25);
}

.auth-card__social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.auth-card__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card__social-btn:hover {
    transform: translateY(-1px);
}

.auth-card__social-btn:active {
    transform: translateY(0);
}

.auth-card__social-btn--google {
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: #ffffff;
    color: #1f2937;
    box-shadow: var(--shadow-sm);
}

.auth-card__social-btn--google:hover {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.6);
}

.auth-card__social-btn--facebook {
    border: 1px solid #1877f2;
    background: #1877f2;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.28);
}

.auth-card__social-btn--facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
}

.auth-card__social-icon {
    flex-shrink: 0;
}

.auth-card__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
    color: rgba(100, 116, 139, 0.85);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-card__divider::before,
.auth-card__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(203, 213, 225, 0.85);
}

/* Rejestracja — dwie kolumny */
.auth-login--register {
    width: min(100%, 920px);
}

.auth-card--register {
    width: 100%;
    max-width: 920px;
}

.hidden {
    display: none !important;
}

.auth-card__notice {
    text-align: center;
    padding: 2rem 1rem;
}

.auth-card__invite-badge {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(220, 20, 60, 0.12);
    color: #A50E2D;
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-card__columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 2rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.auth-card__col--form {
    min-width: 0;
}

.auth-card__col--social {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    min-width: 0;
}

.auth-card__divider--vertical {
    flex-direction: column;
    align-self: stretch;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.auth-card__divider--vertical::before,
.auth-card__divider--vertical::after {
    width: 1px;
    height: auto;
    flex: 1;
}

.auth-card__social-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
}

.auth-card__col--social .auth-card__benefits {
    margin-top: 0.25rem;
}

.auth-card__col--social .auth-card__login-link {
    text-align: center;
    margin: 0;
}

.auth-card__social-heading {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b1324;
}

.auth-card__social-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(55, 65, 81, 0.72);
}

.auth-card--register .auth-card__title,
.auth-card--register .auth-card__subtitle {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .auth-card__columns {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .auth-card__col--social {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-card__divider--vertical {
        flex-direction: row;
        width: 100%;
    }

    .auth-card__divider--vertical::before,
    .auth-card__divider--vertical::after {
        width: auto;
        height: 1px;
    }

    .auth-card__social-panel {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .auth-main {
        padding: 4rem 1.25rem;
    }

    .auth-card {
        padding: 2.25rem 1.75rem 2rem;
        border-radius: 22px;
    }

    .auth-card--register {
        padding: 2.25rem 1.5rem 2rem;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #DC143C;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Tabs */
.account-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
    color: #DC143C;
    border-bottom-color: #DC143C;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Footer */
.footer {
    margin-top: 6rem;
    background: linear-gradient(180deg, rgba(12, 18, 31, 0.92) 0%, rgba(9, 12, 20, 0.98) 100%);
    color: rgba(232, 241, 255, 0.84);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(220, 20, 60, 0.18), transparent 55%),
                radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.15), transparent 50%);
    opacity: 0.9;
    pointer-events: none;
}

.footer__top {
    position: relative;
    padding: 4.5rem 0 3.5rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 4rem;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.footer__description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(224, 231, 255, 0.7);
    max-width: 320px;
}

.footer__stats {
    display: flex;
    gap: 1.5rem;
}

.footer__stats div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer__stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
}

.footer__stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(224, 231, 255, 0.55);
}

.footer__newsletter h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: white;
}

.footer__newsletter p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: rgba(224, 231, 255, 0.65);
}

.footer__newsletter-form {
    display: flex;
    gap: 0.75rem;
}

.footer__newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.65);
    color: rgba(255, 240, 242, 0.9);
    outline: none;
    transition: all 0.3s ease;
}

.footer__newsletter-form input:focus {
    border-color: rgba(220, 20, 60, 0.7);
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.2);
}

.footer__newsletter-form button {
    padding: 0.75rem 1.75rem;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.95), rgba(165, 14, 45, 1));
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 32px rgba(165, 14, 45, 0.3);
}

.footer__newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(165, 14, 45, 0.4);
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2.5rem;
}

.footer__column h4 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer__column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.footer__column a {
    color: rgba(224, 231, 255, 0.65);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer__column a:hover {
    color: rgba(255, 240, 242, 0.95);
    transform: translateX(4px);
}

.footer__bottom {
    position: relative;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(9, 12, 20, 0.85);
    backdrop-filter: blur(16px);
}

.footer__bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: rgba(224, 231, 255, 0.6);
}

.footer__legal a {
    color: rgba(224, 231, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__legal a:hover {
    color: white;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: rgba(224, 231, 255, 0.85);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.footer__social a:hover {
    transform: translateY(-2px);
    background: rgba(220, 20, 60, 0.18);
    box-shadow: 0 12px 24px rgba(165, 14, 45, 0.25);
}

@media (max-width: 1200px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer__links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .footer__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .footer__bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 540px) {
    .footer__stat-value {
        font-size: 1.2rem;
    }

    .footer__links {
        grid-template-columns: 1fr;
    }

    .footer__newsletter-form {
        flex-direction: column;
    }

    .footer__newsletter-form button {
        width: 100%;
    }

    .footer__social {
        align-self: stretch;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav__container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav__menu {
        gap: 1rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .account-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: none;
        border-left: 2px solid transparent;
    }
    
    .tab-btn.active {
        border-left-color: #DC143C;
        border-bottom-color: transparent;
    }
}

/* Content Menu Section Styles */

.content-menu-section {
    position: relative;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
    padding: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 0;
    right: 0;
}

.menu-tabs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(248, 250, 252, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.75rem 0;
    position: relative;
    z-index: 1010;
}

.menu-tabs-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 18px;
    pointer-events: none;
}

.content-menu-section .container {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
}

.content-menu {
    padding: 0;
    position: relative;
    width: 100%;
    margin: 0;
}

.menu-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(18px);
}

.menu-tab {
    border: none;
    background: transparent;
    font: inherit;
    padding: 0;
    cursor: pointer;
}

.menu-tab:focus {
    outline: none;
}

.menu-tab.nav__link {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.menu-tab.nav__link::before {
    top: 0;
    left: -100%;
}

.menu-tab.nav__link--menu {
    border-radius: 20px;
}

.menu-tab.nav__link--menu.nav__link--active {
    background: rgba(15, 23, 42, 0.06);
    color: #1d1d1f;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
.menu-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, -16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.38s ease, transform 0.38s ease;
    z-index: 1301;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(32px);
    width: min(1180px, calc(100vw - 48px));
    border: 1px solid rgba(148, 163, 184, 0.24);
    overflow: hidden;
    padding: 2.5rem;
    display: block;
    visibility: hidden;
}

.menu-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 241, 243, 0.4));
    pointer-events: none;
    opacity: 0.9;
}

.menu-content.show {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
    visibility: visible;
}

.tab-content {
    overflow: hidden;
}

.mega-menu-layout {
    position: relative;
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    gap: 2.5rem;
    min-height: 420px;
    background: transparent;
}

.mega-column {
    position: relative;
    overflow: visible;
}

.main-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.subcategories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.featured-course {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mega-column__header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mega-column__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(71, 85, 105, 0.65);
    font-weight: 600;
}

.mega-column__title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mega-column__title::after {
    content: '';
    width: 24px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(220, 20, 60, 0.75), rgba(240, 113, 133, 0.55));
    box-shadow: 0 6px 16px rgba(165, 14, 45, 0.22);
}

.mega-column__description {
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.7);
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.category-item {
    position: relative;
    padding: 1.1rem 1.2rem;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 22px;
    border: 1px solid rgba(209, 213, 219, 0.35);
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #111827;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.category-item::before {
    content: '';
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.18), rgba(240, 113, 133, 0.22));
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
}

.category-item:hover {
    background: rgba(255, 241, 243, 0.95);
    color: #A50E2D;
    transform: translateX(6px);
    box-shadow: 0 22px 38px rgba(165, 14, 45, 0.18);
    border-color: rgba(220, 20, 60, 0.4);
}

.category-item.active {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.92), rgba(240, 113, 133, 0.88));
    color: white;
    border-color: rgba(165, 14, 45, 0.85);
    font-weight: 600;
    box-shadow: 0 24px 40px rgba(165, 14, 45, 0.28);
}

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem;
}

.subcategory-item {
    padding: 0.55rem 0.85rem;
    background: rgba(255, 240, 242, 0.82);
    border-radius: 999px;
    border: 1px solid rgba(209, 213, 219, 0.28);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.82rem;
    text-align: center;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgba(30, 41, 59, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    letter-spacing: 0.01em;
}

.subcategory-item:hover {
    background: rgba(220, 20, 60, 0.12);
    color: #A50E2D;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(165, 14, 45, 0.14);
    border-color: rgba(220, 20, 60, 0.35);
}

.subcategory-item:nth-child(n+2) {
    margin-left: 0;
}

.subcategory-name {
    font-weight: 600;
    color: inherit;
    font-size: 0.82rem;
}

.placeholder-text {
    text-align: center;
    color: rgba(55, 65, 81, 0.6);
    font-style: italic;
    padding: 2rem 1.5rem;
    background: rgba(255, 240, 242, 0.78);
    border-radius: 20px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(12px);
}

.featured-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.75rem;
    padding: 2.25rem;
    background: linear-gradient(160deg, rgba(165, 14, 45, 0.12), rgba(220, 20, 60, 0.1), rgba(15, 23, 42, 0.08));
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 26px 44px rgba(15, 23, 42, 0.18);
    min-height: 100%;
    overflow: hidden;
}

.featured-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.55), transparent 55%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.featured-image {
    position: relative;
    flex-shrink: 0;
    width: 168px;
    height: 168px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.22);
}

.featured-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 241, 243, 0.9), rgba(254, 205, 211, 0.75));
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: rgba(165, 14, 45, 0.75);
}

.featured-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: flex-start;
    color: rgba(15, 23, 42, 0.9);
}

.featured-info h4 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
    color: #0f172a;
}

.featured-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(30, 41, 59, 0.75);
    margin: 0;
}

.featured-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #A50E2D;
    letter-spacing: 0.02em;
}

/* iOS-Style Header Responsive */
@media (max-width: 1024px) {
    .header__container {
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
        padding: 0 clamp(1rem, 4vw, 1.5rem);
    }

    .header__left {
        gap: 0.75rem;
    }

    .header__center {
        display: none;
    }

    .header__right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .header__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .auth__buttons {
        display: flex;
        width: 100%;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .auth__buttons .auth__button {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header__mobile-search {
        display: block;
    }

    .header__toggle {
        display: inline-flex;
    }

    .header__collapsible {
        position: fixed;
        inset: auto 0 0;
        top: var(--header-top-height);
        height: calc(100vh - var(--header-top-height));
        max-height: none;
        overflow-y: auto;
        padding-bottom: 3.5rem;
        background: rgba(255, 240, 242, 0.98);
        box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.22);
        border-top: 1px solid rgba(148, 163, 184, 0.25);
        transform: translateY(-8%) scale(0.98);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
        z-index: 1302;
    }

    .header__collapsible-inner {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.4rem 1.4rem 1.85rem;
    }

    .header__mobile-search {
        order: 1;
        margin-bottom: 0.25rem;
    }

    .nav {
        order: 2;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .content-menu-section {
        order: 3;
        margin-top: 0.35rem;
    }

    .header--mobile-open .header__collapsible {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav__container {
        justify-content: flex-start;
        padding: 0;
    }
    
    .nav__menu {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        background: rgba(255, 255, 255, 0.82);
        border-radius: 16px;
        padding: 0.25rem;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    }
    
    .nav__link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.9rem 1.25rem;
        border-radius: 16px;
        font-size: 1rem;
        box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
    }
    
    .nav__link::after {
        content: '';
        width: 16px;
        height: 16px;
        mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="black" stroke-width="1.5" viewBox="0 0 24 24"><path d="m9 6 6 6-6 6"/></svg>') center / contain no-repeat;
        -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="black" stroke-width="1.5" viewBox="0 0 24 24"><path d="m9 6 6 6-6 6"/></svg>') center / contain no-repeat;
        background: currentColor;
        opacity: 0.5;
    }
    
    .nav__link:hover::after {
        opacity: 0.8;
    }
    
    .content-menu-section {
        position: static;
    }
    
    .menu-tabs-container {
        padding: 0;
        display: flex;
        justify-content: center;
    }
    
    .menu-tabs {
        width: auto;
        min-width: 0;
        justify-content: center;
        background: rgba(226, 232, 240, 0.44);
        padding: 0.35rem;
        border-radius: 16px;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    }
    
    .menu-tab {
        font-size: 0.95rem;
        padding: 0.6rem 0.75rem;
    }
    
    .menu-content {
        position: static;
        transform: none;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        width: min(100%, 640px);
        margin: 1.35rem auto 0;
        border-radius: 22px;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
        border: 1px solid rgba(148, 163, 184, 0.22);
        padding: 1.85rem 1.5rem;
    }
    
    .menu-content::before {
        border-radius: 22px;
    }
    
    .menu-content.show {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: none;
    }
    
    .mega-menu-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
    }
    
    .mega-column {
        border: none;
        padding: 0;
        gap: 1rem;
        box-shadow: none;
        max-height: none;
    }
    
    .mega-column:last-child {
        border-bottom: none;
    }
    
    .subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .featured-content {
        flex-direction: column;
        text-align: left;
        gap: 1.5rem;
        padding: 1.75rem;
    }
    
    .featured-image {
        width: 140px;
        height: 140px;
    }
    
    .featured-info h4 {
        font-size: 1.2rem;
    }
    
    .featured-info p {
        font-size: 0.9rem;
    }
    
    .featured-price {
        font-size: 1.2rem;
    }
}

@media (min-width: 1025px) {
    .header__toggle {
        display: none !important;
    }

    .header__container {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 0 2rem;
    }

    .header__auth-bar {
        display: contents;
    }

    .header__auth-bar .auth__buttons {
        display: contents;
    }

    .header__auth-bar .auth__button {
        flex: none;
    }
}

@media (max-width: 768px) {
    .header__container {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "left actions"
            "auth auth";
        gap: 0.5rem;
        padding: 0 clamp(1rem, 4vw, 1.5rem);
        align-items: center;
    }

    .header__left {
        grid-area: left;
        justify-self: start;
        align-items: center;
    }

    .header__right {
        display: contents;
    }

    .header__actions {
        grid-area: actions;
        justify-self: end;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: auto;
    }

    .header__auth-bar {
        grid-area: auth;
        width: 100%;
    }

    .header__auth-bar .auth__buttons {
        display: flex;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .header__auth-bar .auth__button {
        flex: 1 1 50%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .header__container {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "left actions"
            "auth auth";
        justify-items: stretch;
    }

    .header__actions {
        justify-self: end;
    }

    .header__auth-bar .auth__buttons {
        flex-direction: row;
    }

    .header__auth-bar .auth__button {
        flex: 1 1 50%;
    }
}

/* Mobile responsive for mega menu */
@media (max-width: 768px) {
    .menu-tabs-container {
        padding: 0.5rem 1rem 0.75rem;
    }

    .menu-tabs {
        width: 100%;
        justify-content: space-between;
        padding: 0.25rem;
    }

    .menu-tab {
        flex: 1;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }

    .menu-content {
        width: calc(100% - 2rem);
        padding: 1.75rem 1.5rem;
        border-radius: 24px;
    }

    .mega-menu-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 1.75rem;
    }
    
    .mega-column {
        border: none;
        max-height: none;
        padding: 0;
        gap: 1rem;
    }
    
    .mega-column:last-child {
        border-bottom: none;
    }
    
    .subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .featured-content {
        flex-direction: column;
        text-align: left;
        gap: 1.5rem;
        padding: 1.75rem;
    }
    
    .featured-image {
        width: 140px;
        height: 140px;
    }
    
    .featured-info h4 {
        font-size: 1.2rem;
    }
    
    .featured-info p {
        font-size: 0.9rem;
    }
    
    .featured-price {
        font-size: 1.2rem;
    }

    .mega-column__title::after {
        display: none;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .mega-menu-layout {
        grid-template-columns: 220px 1fr 280px;
        gap: 2rem;
    }
    
    .featured-course {
        min-width: auto;
    }

    .menu-content {
        padding: 2.25rem;
    }
}

@media (max-width: 1200px) {
    .netflix-slider,
    .partner-products__slider {
        --netflix-gap: 1.25rem;
    }
    .netflix-nav--prev {
        left: -1.4rem;
    }

    .netflix-nav--next {
        right: -1.4rem;
    }

    .netflix-card {
        flex: 0 0 calc((100% - (2 * var(--netflix-gap))) / 3);
    }
}

@media (max-width: 992px) {
    .netflix-section {
        padding: 3.5rem 0 4rem;
    }

    .netflix-section .section__title {
        font-size: 2rem;
    }

    .netflix-slider,
    .partner-products__slider {
        --netflix-gap: 1.2rem;
    }

    .netflix-card {
        flex: 0 0 calc((100% - var(--netflix-gap)) / 2);
    }
}

@media (max-width: 640px) {
    .netflix-section {
        padding: 3rem 0;
    }

    .netflix-slider,
    .partner-products__slider {
        --netflix-gap: 1rem;
    }

    .netflix-slider .netflix-nav {
        display: none;
    }

    .partner-products__slider .netflix-nav {
        display: none;
    }

    .netflix-viewport {
        padding: 1.25rem 0 2.25rem;
        scroll-padding: 0 1.25rem;
    }

    .netflix-track {
        padding: 0 1.25rem;
    }

    .netflix-card__info {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .netflix-card__meta {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .netflix-track .netflix-card {
        flex: 0 0 88%;
    }

    .netflix-card {
        min-height: 0;
        padding-bottom: 1.25rem;
        gap: 1rem;
    }

    .netflix-card__thumbnail {
        height: 180px;
        border-radius: 18px;
    }

    .netflix-card__title {
        font-size: 1.2rem;
    }

    .netflix-card__description {
        font-size: 0.9rem;
        color: rgba(55, 65, 81, 0.8);
    }

    .netflix-card__meta,
    .netflix-card__price {
        font-size: 0.85rem;
    }

    .netflix-card__actions {
        justify-content: flex-start;
        padding-right: 0;
    }

    .netflix-card__action-btn {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 600px) {
    .netflix-slider,
    .partner-products__slider {
        --netflix-gap: 0.8rem;
    }
    .netflix-track .netflix-card {
        flex: 0 0 92%;
    }
}

.recommended-grid-section {
    position: relative;
    padding: 5rem 0 4rem;
    background: var(--section-gradient);
}

.recommended-grid-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recommended-grid__header,
.recommended-grid,
.recommended-grid__load-more {
    width: 100%;
}

.recommended-grid__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
    text-align: left;
}

.recommended-grid__subtitle {
    font-size: 1.05rem;
    color: rgba(55, 65, 81, 0.75);
    margin: 0;
    max-width: 620px;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
}

/* Siatka polecanych — bez cieni */
.recommended-grid-section .netflix-card,
.recommended-grid-section .netflix-card:hover {
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: none;
    filter: none;
    backdrop-filter: none;
}

.recommended-grid-section .netflix-card:hover {
    border-color: rgba(203, 213, 225, 0.95);
    transform: translateY(-2px);
}

.recommended-grid-section .netflix-card::after,
.recommended-grid-section .netflix-card:hover::after {
    opacity: 0;
}

.recommended-grid .netflix-card__thumbnail {
    border-radius: 12px;
}

.recommended-grid .netflix-card__info {
    padding: 0;
}

.recommended-grid .netflix-card__title {
    font-size: 1.2rem;
}

.recommended-grid .netflix-card__description {
    font-size: 0.95rem;
    color: rgba(55, 65, 81, 0.75);
}

.recommended-grid .netflix-card__meta {
    font-size: 0.9rem;
    color: rgba(75, 85, 99, 0.85);
}

.recommended-grid .netflix-card__price {
    font-size: 1.1rem;
}

.recommended-grid__load-more {
    margin: 3rem auto 0;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(220, 20, 60, 0.25);
    background: white;
    color: #DC143C;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    width: auto;
}

.recommended-grid__load-more:hover {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.45);
    transform: translateY(-2px);
    box-shadow: none;
}

.recommended-grid__load-more:active {
    transform: translateY(0);
    opacity: 0.9;
}

.recommended-grid__load-more-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommended-grid__load-more-icon svg {
    stroke: currentColor;
}

.recommended-grid__load-more[disabled] {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

@media (max-width: 1200px) {
    .recommended-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .recommended-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .recommended-grid-section {
        padding: 3.75rem 0 3.25rem;
    }

    .recommended-grid-section .container {
        gap: 2rem;
        padding: 0 1.25rem;
    }

    .recommended-grid__header {
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .recommended-grid__subtitle {
        font-size: 0.95rem;
        color: rgba(55, 65, 81, 0.7);
    }

    .recommended-grid {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .recommended-grid-section .netflix-card {
        padding: 1.35rem;
        border-radius: 18px;
        gap: 1rem;
        box-shadow: none;
    }

    .recommended-grid .netflix-card__thumbnail {
        height: 180px;
        margin-bottom: 0.75rem;
        border-radius: 16px;
    }

    .recommended-grid .netflix-card__title {
        font-size: 1.15rem;
    }

    .recommended-grid .netflix-card__description {
        font-size: 0.9rem;
        line-height: 1.55;
        color: rgba(55, 65, 81, 0.78);
    }

    .recommended-grid .netflix-card__meta {
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .recommended-grid .netflix-card__price {
        font-size: 1rem;
    }

    .recommended-grid .netflix-card__actions {
        justify-content: flex-start;
        padding-right: 0;
        gap: 0.5rem;
    }

    .recommended-grid .netflix-card__action-btn {
        width: 34px;
        height: 34px;
    }

    .recommended-grid__load-more {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1rem;
    }
}

.partner-products-section {
    position: relative;
    padding: 5rem 0;
    background: var(--section-gradient);
    --netflix-layout-width: min(1200px, 100vw);
    --netflix-content-width: calc(var(--netflix-layout-width) - 40px);
    --netflix-track-inset-x: 5rem;
}

.partner-products-section .container {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.partner-profile {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.82);
    color: #f8fafc;
    box-shadow: none;
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(18px);
}

/* Produkty partnera — bez cieni */
.partner-products-section .netflix-card,
.partner-products-section .netflix-card:hover {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: none;
    filter: none;
    backdrop-filter: none;
}

.partner-products-section .netflix-card:hover {
    border-color: rgba(203, 213, 225, 0.95);
    transform: translateY(-2px);
}

.partner-products-section .netflix-card::after,
.partner-products-section .netflix-card:hover::after {
    opacity: 0;
}

.partner-profile__avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(240, 113, 133, 0.9), rgba(220, 20, 60, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: none;
}

.partner-profile__info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.partner-profile__name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.partner-profile__description {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.85);
    margin: 0;
    line-height: 1.6;
}

.partner-profile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(252, 211, 218, 0.92);
}

.partner-products__header {
    margin-bottom: 1.5rem;
}

.partner-products__subtitle {
    font-size: 1rem;
    color: rgba(55, 65, 81, 0.7);
    margin: 0.5rem 0 0;
}

.partner-products {
    min-width: 0;
    overflow: visible;
}

.partner-products__slider {
    position: relative;
    padding: 0 3rem;
    --netflix-gap: 1.5rem;
    overflow: visible;
}

.partner-products__slider .netflix-nav--prev {
    left: 0;
}

.partner-products__slider .netflix-nav--next {
    right: 0;
}

.partner-products__slider .netflix-nav,
.partner-products__slider .netflix-nav:hover {
    box-shadow: none;
}

.partner-products__viewport {
    padding: 0;
    overflow-x: auto;
    overflow-y: visible;
}

.partner-products__track {
    gap: var(--netflix-gap);
    padding: 0;
}

.partner-products__track .netflix-card {
    margin-bottom: 0;
}

/* Ta sama szerokość kafelka co w „Polecane kursy” (pełny kontener, nie wąska kolumna) */
@media (min-width: 993px) {
    .partner-products__track .netflix-card {
        flex: 0 0 calc(
            (var(--netflix-content-width) - var(--netflix-track-inset-x) - 3 * var(--netflix-gap)) / 4
        );
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .partner-products__track .netflix-card {
        flex: 0 0 calc(
            (var(--netflix-content-width) - var(--netflix-track-inset-x) - 2 * var(--netflix-gap)) / 3
        );
    }
}

.partner-products__track .netflix-card__info {
    padding: 1.5rem;
}

.partner-products__track .netflix-card__title {
    font-size: 1.1rem;
}

.partner-products__track .netflix-card__description {
    font-size: 0.9rem;
    color: rgba(55, 65, 81, 0.75);
}

.partner-products__track .netflix-card__meta {
    font-size: 0.85rem;
    color: rgba(75, 85, 99, 0.8);
}

.partner-products__track .netflix-card__price {
    font-size: 1rem;
}

.partner-products__more {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #DC143C;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.partner-products__more:hover {
    color: #A50E2D;
    transform: translateX(4px);
}

.partner-products__more svg {
    stroke: currentColor;
}

@media (max-width: 1200px) {
    .partner-products-section .container {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 992px) {
    .partner-products-section .container {
        grid-template-columns: 1fr;
    }

    .partner-profile {
        position: static;
    }

    .partner-products__slider {
        margin-top: 1rem;
        padding: 0 1.75rem;
    }
}

@media (max-width: 768px) {
    .partner-products-section .container {
        padding: 0 clamp(1rem, 5vw, 1.75rem);
        width: min(92vw, 520px);
        max-width: none;
        gap: clamp(1rem, 4vw, 1.75rem);
        margin: 0 auto;
        box-sizing: border-box;
    }

    .partner-profile,
    .partner-products__slider,
    .partner-products__track {
        width: min(92vw, 520px);
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

}

@media (max-width: 640px) {
    .partner-products-section {
        padding: 3.25rem 0;
    }

    .partner-products-section .container {
        gap: 1.2rem;
        padding: 0 clamp(1rem, 6vw, 1.5rem);
        align-items: stretch;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .partner-profile {
        padding: 1.25rem 1.1rem;
        border-radius: 18px;
        gap: 0.85rem;
        box-shadow: none;
    }

    .partner-products__viewport {
        padding: 0;
        scroll-padding: 1.25rem;
    }

    .partner-products__track {
        gap: var(--netflix-gap);
        padding: 0;
    }

    .partner-products__track .netflix-card {
        padding: 1rem;
        border-radius: 16px;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .header__container {
        padding: 0 clamp(0.75rem, 5vw, 1.25rem);
    }

    .header__actions {
        justify-content: center;
    }

    .header__auth-bar {
        justify-content: center;
    }

    .auth__buttons {
        flex-direction: column;
        gap: 0.4rem;
    }

    .auth__buttons .auth__button {
        flex: 1 1 100%;
    }
}

@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer__brand {
        align-items: centre;
        text-align: center;
    }

    .footer__description {
        margin-left: auto;
        margin-right: auto;
    }

    .footer__stats {
        justify-content: center;
    }

    .footer__newsletter {
        max-width: 480px;
        margin: 0 auto;
    }

    .footer__newsletter-form {
        flex-direction: column;
    }

    .footer__newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .footer__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }

    .footer__column h4 {
        font-size: 0.95rem;
    }

    .footer__column ul {
        gap: 0.5rem;
    }

    .footer__bottom-row {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }

    .footer__legal {
        justify-content: center;
    }
}

/* Canvas background */
body.canvas-bg-active {
    background: radial-gradient(circle at top, rgba(240, 113, 133, 0.18), transparent 60%),
                radial-gradient(circle at bottom, rgba(165, 14, 45, 0.1), transparent 55%),
                #FFF0F2;
    color: #111827;
}

.canvas-background {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.9;
}

.auth-card__group--checkbox {
    margin-top: 0.25rem;
}

.auth-card__checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.8);
}

.auth-card__checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    accent-color: #DC143C;
    cursor: pointer;
}

.auth-card__checkbox-label a {
    color: #DC143C;
    text-decoration: none;
}

.auth-card__checkbox-label a:hover {
    text-decoration: underline;
}

.auth-card__captcha {
    border: 1px dashed rgba(148, 163, 184, 0.6);
    border-radius: 16px;
    padding: 1.1rem 1rem;
    background: rgba(255, 240, 242, 0.65);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.6);
}

.cart-item__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.cart-item__remove {
    background: rgba(165, 14, 45, 0.1);
    color: #DC143C;
    border: 1px solid rgba(165, 14, 45, 0.25);
}

.cart-item__remove:hover {
    background: #DC143C;
    color: #fff;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
    border-radius: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.78);
    color: rgba(30, 41, 59, 0.7);
}

.cart-empty h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #0f172a;
}

.cart-empty p {
    margin: 0;
    max-width: 360px;
}

/* Courses */
.courses-main {
    min-height: calc(100vh - 220px);
    padding: clamp(4rem, 6vw, 6rem) clamp(1.5rem, 4vw, 3rem);
}

.courses-container {
    width: min(100%, 1240px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: clamp(260px, 24vw, 340px) minmax(0, 1fr);
    gap: clamp(1.75rem, 4vw, 3rem);
}

.courses-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(203, 213, 225, 0.45);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(26px);
}

.courses-sidebar__group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.courses-sidebar__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(15, 23, 42, 0.75);
}

.courses-search {
    position: relative;
    display: flex;
    align-items: center;
}

.courses-search input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.55);
    background: rgba(255, 240, 242, 0.9);
    font-size: 0.95rem;
    color: #0f172a;
}

.courses-search input:focus {
    outline: none;
    border-color: rgba(165, 14, 45, 0.6);
    box-shadow: 0 0 0 4px rgba(165, 14, 45, 0.15);
}

.courses-filters {
    display: grid;
    gap: 0.75rem;
}

.courses-filter-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: rgba(30, 41, 59, 0.75);
}

.courses-filter-option input[type="checkbox"],
.courses-filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    accent-color: #DC143C;
    cursor: pointer;
}

.courses-reset-btn {
    align-self: flex-start;
    padding: 0.6rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(165, 14, 45, 0.25);
    background: rgba(255, 240, 242, 0.85);
    color: #DC143C;
    font-weight: 600;
    cursor: pointer;
}

.courses-reset-btn:hover {
    background: #DC143C;
    color: #fff;
}

.courses-content {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);
}

.courses-content__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.courses-count {
    font-size: 0.95rem;
    color: rgba(30, 41, 59, 0.6);
}

.courses-grid {
    display: grid;
    gap: clamp(1.75rem, 4vw, 2.4rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.netflix-card--catalog .netflix-card__thumbnail {
    height: 180px;
}

.netflix-card--catalog .netflix-card__description {
    min-height: 64px;
}

@media (max-width: 960px) {
    .courses-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .courses-sidebar {
        position: sticky;
        top: 6rem;
        z-index: 2;
    }

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

@media (max-width: 640px) {
    .courses-main {
        padding: clamp(3rem, 8vw, 4.5rem) clamp(1rem, 5vw, 1.75rem);
    }

    .courses-sidebar {
        position: static;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* Course Details Page */
.course-details-main {
    position: relative;
    min-height: 100vh;
    z-index: 1;
    background: #fff;
    padding: 1.5rem 0 3rem;
}

.course-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 2rem 2.5rem;
    align-items: start;
}

.course-page__primary {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.course-intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 0.25rem;
}

.course-page__sidebar {
    position: sticky;
    top: calc(var(--top-bar-height, 36px) + var(--header-height, 72px) + 0.75rem);
    width: 100%;
    max-width: 360px;
    height: fit-content;
    max-height: calc(100vh - var(--top-bar-height, 36px) - var(--header-height, 72px) - 1.5rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 5;
    justify-self: end;
}

/* Hero Section (legacy class hooks kept for typography) */
.course-hero {
    display: contents;
}

.course-hero__content {
    display: contents;
}

.course-hero__main {
    display: contents;
}

.course-hero__sidebar {
    display: contents;
}

.course-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin: 0;
}

.course-hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(30, 41, 59, 0.8);
    margin: 0;
}

.course-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(30, 41, 59, 0.7);
}

.course-hero__rating::before {
    content: '★ ';
    color: #fbbf24;
}

.course-hero__instructor {
    display: flex;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(30, 41, 59, 0.7);
}

.course-hero__instructor-label {
    color: rgba(30, 41, 59, 0.6);
}

.course-hero__instructor-name {
    color: #DC143C;
    font-weight: 500;
}

.course-hero__badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.course-hero__badges[hidden] {
    display: none !important;
}

.course-hero__badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-hero__badge--bestseller {
    background: #fef3c7;
    color: #92400e;
}

.course-hero__badge--new {
    background: #fce8ec;
    color: #7A0B20;
}

.course-hero__quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    margin-top: 0.5rem;
}

.course-hero__quick-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(30, 41, 59, 0.7);
}

.course-hero__quick-item i {
    font-size: 1rem;
    color: rgba(30, 41, 59, 0.5);
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

/* sidebar styles live on .course-page__sidebar */

.course-hero__sidebar.sidebar-compact,
.course-hero__sidebar.sidebar-hidden,
.course-page__sidebar.sidebar-compact,
.course-page__sidebar.sidebar-hidden {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Buy box redesign */
.course-buybox {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.course-buybox__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, #0f172a 0%, #334155 100%);
}

.course-buybox__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.course-buybox__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.92);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.course-buybox__play:hover {
    transform: scale(1.06);
    background: #b01030;
}

.course-buybox__play i {
    margin-left: 2px;
    font-size: 1rem;
}

.course-buybox__play[hidden] {
    display: none !important;
}

.course-buybox__body {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-buybox__price {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.1;
}

.course-buybox__cta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.course-buybox__cta .btn {
    width: 100%;
    margin: 0;
    border-radius: 10px;
    font-weight: 650;
    padding: 0.85rem 1rem;
}

.course-buybox__buy {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #fff !important;
}

.course-buybox__buy:hover {
    background: #1e293b !important;
}

.course-buybox__tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    position: relative;
}

.course-buybox__tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.45rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.course-buybox__tool:hover,
.course-buybox__tool.wishlist-btn--active {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #DC143C;
}

.course-buybox__tool[hidden] {
    display: none !important;
}

.course-buybox__tool i {
    font-size: 0.85rem;
}

.course-buybox__share-wrap {
    position: relative;
    grid-column: 1 / -1;
}

.course-buybox__share-wrap .course-buybox__tool {
    width: 100%;
}

.course-hero__share-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.45rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.course-hero__share-menu[hidden] {
    display: none !important;
}

.course-hero__share-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.course-hero__share-link:hover {
    background: #f8fafc;
    color: #DC143C;
}

.course-buybox__includes {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.course-buybox__includes-title {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.course-buybox__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.course-buybox__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #334155;
}

.course-buybox__list li[hidden] {
    display: none !important;
}

.course-buybox__list i {
    width: 1rem;
    margin-top: 0.15rem;
    color: #DC143C;
    font-size: 0.85rem;
    flex-shrink: 0;
    text-align: center;
}

/* Legacy image/play hooks (buybox uses course-buybox__*) */
.course-hero__play-btn[hidden] { display: none !important; }

/* Course Content */
.course-content {
    padding: 1.25rem 0 0;
    background: #fff;
    position: relative;
}

.course-content__layout {
    max-width: none;
}

.course-section {
    margin-bottom: 2rem;
}

.course-section__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.85rem;
}

.course-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Learning Objectives */
.course-learning {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.course-learning__item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.95rem;
    color: rgba(30, 41, 59, 0.8);
}

.course-learning__item i {
    flex-shrink: 0;
    color: #DC143C;
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Description */
.course-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(30, 41, 59, 0.85);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.course-description p {
    margin: 0 0 1rem;
}

/* Curriculum */
.course-curriculum__section {
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.course-curriculum__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 240, 242, 0.5);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.course-curriculum__header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.course-curriculum__header span {
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.6);
}

.course-curriculum__content {
    padding: 0.5rem 0;
}

.course-curriculum__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: background 0.2s ease;
}

.course-curriculum__item:last-child {
    border-bottom: none;
}

.course-curriculum__item:hover {
    background: rgba(255, 240, 242, 0.5);
}

.course-curriculum__icon {
    color: rgba(30, 41, 59, 0.5);
    font-size: 0.75rem;
}

.course-curriculum__title {
    flex: 1;
    font-size: 0.95rem;
    color: rgba(30, 41, 59, 0.8);
}

.course-curriculum__preview {
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 600;
    color: #b45309;
    margin-left: 0.35rem;
}

.course-curriculum__empty {
    margin: 0;
    padding: 1.25rem;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.course-curriculum__duration {
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.6);
}

/* Instructor */
.course-instructor {
    display: flex;
    gap: 1.5rem;
}

.course-instructor__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.course-instructor__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-instructor__info {
    flex: 1;
}

.course-instructor__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.course-instructor__title {
    font-size: 0.95rem;
    color: rgba(30, 41, 59, 0.7);
    margin: 0 0 1rem;
}

.course-instructor__stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.course-instructor__stat {
    display: flex;
    flex-direction: column;
}

.course-instructor__stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.course-instructor__stat-label {
    font-size: 0.85rem;
    color: rgba(30, 41, 59, 0.6);
}

.course-instructor__bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(30, 41, 59, 0.8);
}

/* Reviews */
.course-reviews__summary {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.course-reviews__rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.course-reviews__rating-value {
    font-size: 3rem;
    font-weight: 700;
    color: #0f172a;
}

.course-reviews__stars {
    font-size: 1.25rem;
    color: #fbbf24;
    letter-spacing: 2px;
}

.course-reviews__count {
    font-size: 0.95rem;
    color: rgba(30, 41, 59, 0.7);
}

.course-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-review {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.course-review:last-child {
    border-bottom: none;
}

.course-review__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.course-review__author {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.course-review__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #DC143C;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.course-review__name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.course-review__date {
    font-size: 0.85rem;
    color: rgba(30, 41, 59, 0.6);
}

.course-review__stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

.course-review__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(30, 41, 59, 0.8);
    margin: 0;
}

/* Requirements */
.course-requirements__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-requirements__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(30, 41, 59, 0.8);
    line-height: 1.6;
}

.course-requirements__list li i {
    color: #10b981;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Audience */
.course-audience__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.course-audience__item {
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.course-audience__item:hover {
    border-color: #DC143C;
    box-shadow: 0 2px 8px rgba(165, 14, 45, 0.1);
}

.course-audience__item i {
    font-size: 2rem;
    color: #DC143C;
    margin-bottom: 0.75rem;
}

.course-audience__item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.course-audience__item p {
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* Benefits */
.course-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-benefits__item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.course-benefits__item:hover {
    border-color: #DC143C;
    background: rgba(255, 240, 242, 0.5);
}

.course-benefits__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #DC143C;
    background: rgba(165, 14, 45, 0.1);
    border-radius: 8px;
}

.course-benefits__content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.course-benefits__content p {
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* Curriculum Accordion */
.course-curriculum__header {
    width: 100%;
    border: none;
    background: rgba(255, 240, 242, 0.5);
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.course-curriculum__header:hover {
    background: rgba(255, 240, 242, 0.8);
}

.course-curriculum__header > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.course-curriculum__chevron {
    width: 20px;
    height: 20px;
    color: rgba(30, 41, 59, 0.5);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.course-curriculum__section[data-open] .course-curriculum__chevron {
    transform: rotate(180deg);
}

.course-curriculum__section[data-open] .course-curriculum__content {
    display: block;
}

.course-curriculum__content {
    display: none;
    padding: 0.5rem 0;
}

.course-curriculum__stats {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.6);
}

/* FAQ */
.course-faq {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-faq__item {
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 8px;
    overflow: hidden;
}

.course-faq__question {
    width: 100%;
    padding: 1.25rem;
    border: none;
    background: #fff;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    transition: background 0.2s ease;
}

.course-faq__question:hover {
    background: rgba(255, 240, 242, 0.5);
}

.course-faq__icon {
    width: 20px;
    height: 20px;
    color: rgba(30, 41, 59, 0.5);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.course-faq__item[data-open] .course-faq__icon {
    transform: rotate(180deg);
}

.course-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
}

.course-faq__item[data-open] .course-faq__answer {
    max-height: 500px;
    padding: 0 1.25rem 1.25rem;
}

.course-faq__answer p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(30, 41, 59, 0.8);
    line-height: 1.6;
}

/* Reviews Filters & Breakdown */
.course-reviews__filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-reviews__filter {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    background: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-reviews__filter:hover {
    border-color: #DC143C;
    color: #DC143C;
}

.course-reviews__filter.active {
    background: #DC143C;
    border-color: #DC143C;
    color: #fff;
}

.course-reviews__breakdown {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-reviews__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.course-reviews__bar > span:first-child {
    width: 30px;
    color: rgba(30, 41, 59, 0.7);
}

.course-reviews__bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(226, 232, 240, 0.85);
    border-radius: 4px;
    overflow: hidden;
}

.course-reviews__bar-fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.course-reviews__bar > span:last-child {
    width: 40px;
    text-align: right;
    color: rgba(30, 41, 59, 0.7);
}

.course-reviews__load-more {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    background: #fff;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #DC143C;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-reviews__load-more:hover {
    background: rgba(255, 240, 242, 0.5);
    border-color: #DC143C;
}

.course-review[data-rating] {
    display: block;
}

/* Course Statistics */
.course-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.course-stats__item {
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.course-stats__item:hover {
    border-color: #DC143C;
    box-shadow: 0 4px 12px rgba(165, 14, 45, 0.1);
    transform: translateY(-2px);
}

.course-stats__icon {
    font-size: 2rem;
    color: #DC143C;
    margin-bottom: 0.75rem;
}

.course-stats__value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.course-stats__label {
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.7);
}

/* Course Tags */
.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.course-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 240, 242, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.8);
    transition: all 0.2s ease;
}

.course-tag:hover {
    background: rgba(165, 14, 45, 0.1);
    border-color: #DC143C;
    color: #DC143C;
}

.course-tag i {
    font-size: 0.85rem;
    color: #DC143C;
}

/* Related Courses */
.course-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.course-related__item {
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.course-related__item:hover {
    border-color: #DC143C;
    box-shadow: 0 4px 12px rgba(165, 14, 45, 0.1);
    transform: translateY(-2px);
}

.course-related__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.course-related__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-related__item:hover .course-related__image img {
    transform: scale(1.05);
}

.course-related__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-related__item:hover .course-related__overlay {
    opacity: 1;
}

.course-related__preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #DC143C;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.course-related__preview:hover {
    background: #fff;
    transform: scale(1.1);
}

.course-related__content {
    padding: 1rem;
}

.course-related__title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.course-related__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(30, 41, 59, 0.7);
    margin-bottom: 0.75rem;
}

.course-related__meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-related__meta i {
    font-size: 0.75rem;
    color: #DC143C;
}

.course-related__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #DC143C;
}

/* Share Course */
.course-share {
    padding: 1.5rem;
    background: rgba(255, 240, 242, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 8px;
}

.course-share__text {
    font-size: 0.95rem;
    color: rgba(30, 41, 59, 0.8);
    margin: 0 0 1rem;
}

.course-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.course-share__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    background: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    color: rgba(30, 41, 59, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-share__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-share__btn--facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.course-share__btn--facebook:hover {
    background: #1877f2;
    color: #fff;
}

.course-share__btn--twitter {
    color: #1da1f2;
    border-color: #1da1f2;
}

.course-share__btn--twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.course-share__btn--linkedin {
    color: #0077b5;
    border-color: #0077b5;
}

.course-share__btn--linkedin:hover {
    background: #0077b5;
    color: #fff;
}

.course-share__btn--copy {
    color: #DC143C;
    border-color: #DC143C;
}

.course-share__btn--copy:hover {
    background: #DC143C;
    color: #fff;
}

@media (max-width: 1024px) {
    .course-page__grid,
    .course-hero__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-page__sidebar,
    .course-hero__sidebar {
        position: static;
        width: 100%;
        max-width: none;
        max-height: none;
        top: auto;
        right: auto !important;
        z-index: auto;
        order: -1;
        overflow: visible;
        justify-self: stretch;
    }

    .course-buybox {
        max-width: 480px;
        margin: 0 auto;
    }

    .course-page__sidebar {
        order: -1;
    }

    .course-page__primary {
        order: 1;
    }

    .course-tabs-section {
        top: calc(var(--top-bar-height, 36px) + var(--header-height, 64px));
    }

    .course-learning {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .course-hero {
        padding: 1.5rem 0 2rem;
    }

    .course-hero__quick-info {
        flex-direction: column;
        gap: 0.75rem;
    }

    .course-content {
        padding: 2rem 0;
    }

    .course-instructor {
        flex-direction: column;
    }

    .course-instructor__stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .course-audience__grid {
        grid-template-columns: 1fr;
    }

    .course-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-reviews__filters {
        width: 100%;
    }

    .course-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-related__grid {
        grid-template-columns: 1fr;
    }

    .course-share__buttons {
        flex-direction: column;
    }

    .course-share__btn {
        width: 100%;
        justify-content: center;
    }
}

/* User Panel */
.user-panel {
    min-height: calc(100vh - 200px);
    background: #f8f9fa;
    padding: 2rem 0;
}

.user-panel__container {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.user-panel__sidebar {
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem 0;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.user-panel__header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    margin-bottom: 1.5rem;
}

.user-panel__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.user-panel__profile {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    margin-bottom: 1.5rem;
}

.user-panel__avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F07185, #DC143C);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-panel__nav {
    padding: 0 1rem;
}

.user-panel__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-panel__menu-item {
    margin: 0;
}

.user-panel__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.user-panel__link:hover {
    background: rgba(220, 20, 60, 0.1);
    color: #DC143C;
}

.user-panel__link--active {
    background: rgba(220, 20, 60, 0.15);
    color: #DC143C;
    font-weight: 500;
}

.user-panel__link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.user-panel__separator {
    height: 1px;
    background: rgba(226, 232, 240, 0.85);
    margin: 1.5rem 0;
}

.user-panel__section {
    margin-bottom: 1.5rem;
}

.user-panel__section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 1rem;
    margin-bottom: 0.75rem;
}

.user-panel__logout {
    padding: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    margin-top: 1.5rem;
}

.user-panel__logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-panel__logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.user-panel__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.user-panel__section-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.user-panel__section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
}

.user-panel__stats-placeholder {
    min-height: 300px;
    background: #f8f9fa;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
}

.user-panel__balance-placeholder {
    min-height: 120px;
    background: #f8f9fa;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
}

.user-panel__products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.user-panel__product-card {
    aspect-ratio: 16 / 9;
}

.user-panel__product-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.user-panel__products-actions {
    display: flex;
    justify-content: center;
}

/* Section Views */
.user-panel__section-view {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Search Input */
.user-panel__search {
    margin-top: 1.5rem;
}

.user-panel__search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #fff;
    transition: all 0.2s ease;
}

.user-panel__search-input:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

/* Balance Section */
.user-panel__balance-actions {
    margin-bottom: 1.5rem;
}

.user-panel__balance-history-placeholder {
    min-height: 400px;
    background: #f8f9fa;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
}

/* Payout Section */
.user-panel__payout-placeholder {
    min-height: 500px;
    background: #f8f9fa;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
}

/* Products List Section */
.user-panel__products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-panel__products-tabs {
    display: flex;
    gap: 0.5rem;
}

.user-panel__tab-btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-panel__tab-btn:hover {
    background: #f8f9fa;
    border-color: #cbd5e1;
}

.user-panel__tab-btn--active {
    background: #DC143C;
    color: #fff;
    border-color: #DC143C;
}

.user-panel__tab-btn--active:hover {
    background: #DC143C;
    border-color: #DC143C;
}

.user-panel__products-tab-content {
    display: block;
}

.user-panel__products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.user-panel__product-item {
    aspect-ratio: auto;
    cursor: default;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.user-panel__product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.user-panel__product-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f5f9;
}

.user-panel__product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 0;
}

.user-panel__product-meta strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.user-panel__product-meta small {
    color: #64748b;
    font-size: 0.8rem;
}

.user-panel__badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
}

.user-panel__badge--published { background: #dcfce7; color: #166534; }
.user-panel__badge--draft { background: #f1f5f9; color: #475569; }
.user-panel__badge--pending_review { background: #fef3c7; color: #92400e; }
.user-panel__badge--rejected { background: #fee2e2; color: #991b1b; }
.user-panel__badge--archived,
.user-panel__badge--expired { background: #e2e8f0; color: #64748b; }

.user-panel__price {
    font-weight: 600;
    color: #0f172a;
}

.user-panel__product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.user-panel__empty,
.user-panel__empty-state {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

.user-panel__form-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.user-panel__form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #334155;
}

.user-panel__form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.seller-program-stats {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.seller-program-editor {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.seller-module {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seller-module__head {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.seller-lessons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seller-lesson {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.seller-lesson__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.seller-edit-tabs {
    margin-bottom: 1.25rem;
}

/* ── Seller Studio (pełny system zarządzania) ── */
.user-panel--studio {
    background: #eef1f6;
}

.user-panel--studio .user-panel__container {
    max-width: 1600px;
    gap: 1.25rem;
}

.user-panel--studio .user-panel__sidebar {
    width: 240px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

.user-panel--studio .user-panel__section-content.seller-studio {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    padding: 1.35rem 1.5rem !important;
    min-height: calc(100vh - 220px);
}

.seller-studio {
    padding: 1.5rem !important;
}

.seller-studio__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #DC143C;
    font-weight: 700;
}

.seller-studio__title {
    margin: 0 0 0.35rem;
    font-size: 1.55rem;
    color: #0f172a;
}

.seller-studio__lead {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
}

.seller-studio__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.seller-studio__top-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn--sm,
.btn--small {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
    line-height: 1.2;
}

.seller-studio__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.seller-studio button.seller-chip,
.seller-chip {
    border: 1px solid #d0d7e2 !important;
    background: #fff !important;
    border-radius: 999px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    color: #475569 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    box-shadow: none;
}

.seller-chip:hover {
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.seller-chip--active,
.seller-studio button.seller-chip--active {
    border-color: #DC143C !important;
    background: #fff0f2 !important;
    color: #DC143C !important;
    font-weight: 700 !important;
}

.seller-studio__kpi {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.seller-studio button.seller-studio__kpi-card,
.seller-studio__kpi-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.2rem;
    width: 100%;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 1rem 1.1rem !important;
    text-align: left !important;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: none;
}

.seller-studio__kpi-card:hover,
.seller-studio__kpi-card.is-active {
    border-color: #DC143C !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.12);
}

.seller-studio__kpi-value,
.seller-studio__kpi-card strong {
    display: block !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
}

.seller-studio__kpi-label,
.seller-studio__kpi-card span {
    display: block !important;
    font-size: 0.78rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.seller-studio__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 1rem;
}

.seller-studio__search {
    position: relative;
    flex: 1 1 220px;
    min-width: 180px;
}

.seller-studio__search i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.seller-studio__search input {
    width: 100%;
    padding: 0.7rem 0.85rem 0.7rem 2.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #fff;
}

.seller-studio__select {
    padding: 0.65rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 0.88rem;
}

.seller-studio__count {
    margin-left: auto;
    font-size: 0.85rem;
    color: #64748b;
}

.seller-studio__table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: auto;
    background: #fff;
}

/* Catalog list (replaces fragile table layout) */
.seller-catalog {
    min-width: 720px;
}

.seller-catalog__head,
.seller-catalog__row {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) 110px 100px 120px 90px 100px 150px;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
}

.seller-catalog--listings .seller-catalog__head,
.seller-catalog--listings .seller-catalog__row {
    grid-template-columns: minmax(220px, 2fr) 120px 130px 90px 70px 200px;
}

.seller-catalog__head {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.seller-catalog__row {
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    background: #fff;
}

.seller-catalog__row:last-child {
    border-bottom: none;
}

.seller-catalog__row:hover {
    background: #f8fafc;
}

.seller-catalog__col--product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.seller-catalog__thumb {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    min-width: 56px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    background: #e2e8f0;
    flex-shrink: 0 !important;
    display: block;
}

.seller-catalog__info {
    min-width: 0;
}

.seller-catalog__title {
    display: block;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-catalog__sub {
    display: block;
    color: #94a3b8;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.seller-catalog__col--prog {
    font-size: 0.88rem;
    color: #0f172a;
    line-height: 1.25;
}

.seller-catalog__col--prog em {
    display: block;
    font-style: normal;
    font-size: 0.7rem;
    color: #94a3b8;
}

.seller-catalog__col--price {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.seller-catalog__col--date,
.seller-catalog__col--city,
.seller-catalog__col--imgs {
    color: #64748b;
    font-size: 0.88rem;
}

.seller-catalog__col--actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.seller-catalog__col--actions .btn {
    margin: 0;
}

.seller-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}

.seller-table th {
    text-align: left;
    padding: 0.7rem 1rem;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.seller-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.seller-table__row {
    cursor: pointer;
}

.seller-table__row:hover td {
    background: #f8fafc;
}

.seller-table__product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.seller-table__product img,
.seller-studio .seller-table__product img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    min-width: 48px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    background: #e2e8f0;
    flex-shrink: 0 !important;
}

.seller-table__product strong {
    display: block;
    color: #0f172a;
}

.seller-table__product small {
    color: #94a3b8;
}

.seller-table__prog {
    font-weight: 600;
    color: #0f172a;
}

.seller-table__prog-hint {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
}

.seller-table__price {
    font-weight: 600;
    white-space: nowrap;
}

.seller-table__actions {
    display: flex;
    gap: 0.4rem;
    white-space: nowrap;
    flex-wrap: wrap;
}

.seller-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-right: 0.25rem;
    background: #f1f5f9;
    color: #475569;
}

.seller-badge--type { background: #e0e7ff; color: #3730a3; }
.seller-badge--draft { background: #f1f5f9; color: #64748b; }
.seller-badge--published { background: #dcfce7; color: #166534; }
.seller-badge--archived { background: #e2e8f0; color: #475569; }
.seller-badge--pending_review { background: #fef3c7; color: #92400e; }
.seller-badge--rejected { background: #fee2e2; color: #991b1b; }
.seller-badge--cms { background: #ffe4e6; color: #9f1239; }

.seller-empty {
    padding: 3.5rem 1.5rem;
    text-align: center;
    color: #64748b;
}

.seller-empty--compact {
    padding: 2.5rem 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}

.seller-empty__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: rgba(220, 20, 60, 0.08);
    color: #DC143C;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
}

.seller-empty h3 {
    margin: 0 0 0.5rem;
    color: #0f172a;
}

.seller-empty p {
    margin: 0 0 1.25rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.seller-studio__workspace-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.seller-studio__back {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    color: #475569;
    font-size: 0.85rem;
}

.seller-studio__workspace-identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 200px;
}

.seller-studio__cover {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    border-radius: 10px;
    object-fit: cover !important;
    background: #e2e8f0;
    flex-shrink: 0;
}

.seller-studio__workspace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.seller-studio__layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 1.25rem;
    min-height: 560px;
}

.seller-studio__rail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.65rem;
    height: fit-content;
    position: sticky;
    top: 1rem;
}

.seller-studio__rail-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0.8rem 0.85rem;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    font-size: 0.88rem;
}

.seller-studio__rail-btn[hidden] {
    display: none !important;
}

.seller-studio__rail-btn i {
    width: 1.1rem;
    text-align: center;
}

.seller-studio__rail-btn:hover {
    background: #fff;
    color: #0f172a;
}

.seller-studio__rail-btn--active {
    background: #fff;
    color: #DC143C;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    border: 1px solid #fecdd3;
}

.seller-listing-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 1.25rem;
}

.seller-listing-gallery__item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.seller-listing-gallery__item.is-cover {
    border-color: #fecdd3;
    box-shadow: 0 0 0 1px rgba(220, 20, 60, 0.15);
}

.seller-listing-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f1f5f9;
}

.seller-listing-gallery__media {
    position: relative;
    background: #0f172a;
}

.seller-listing-gallery__video {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #0f172a;
}

.seller-listing-gallery__badge {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
}

.seller-listing-gallery__item.is-video {
    border-color: #cbd5e1;
}

.seller-listing-gallery__meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem 0.7rem;
}

.seller-listing-gallery__meta > span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.seller-listing-gallery__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.seller-listing-gallery__add {
    margin-top: 0.25rem;
}

#seller-listing-save.is-dirty {
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.25);
}

.seller-studio__canvas {
    min-width: 0;
}

.seller-studio__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
}

.seller-studio__card h3 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: #0f172a;
}

.seller-studio__form {
    display: block;
}

.seller-studio__sticky-actions {
    position: sticky;
    bottom: 0.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    z-index: 2;
}

.seller-list-editor,
.seller-faq-editor {
    display: grid;
    gap: 0.55rem;
}

.seller-list-editor__items,
.seller-faq-editor__items {
    display: grid;
    gap: 0.45rem;
}

.seller-list-editor__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem;
    align-items: center;
}

.seller-faq-editor__row {
    display: grid;
    gap: 0.4rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.seller-studio__dirty {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
}

.seller-studio__dirty[hidden] {
    display: none !important;
}

.seller-share-preview {
    margin-top: 1rem;
}

.seller-share-preview__card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    max-width: 520px;
}

.seller-share-preview__img {
    min-height: 96px;
    background: #e2e8f0 center/cover no-repeat;
}

.seller-share-preview__body {
    padding: 0.75rem 0.85rem 0.85rem 0;
    min-width: 0;
}

.seller-share-preview__host {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.seller-share-preview__body strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.seller-share-preview__body p {
    margin: 0;
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.35;
}

.seller-moderation-alert {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.seller-moderation-alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

@media (max-width: 640px) {
    .seller-share-preview__card {
        grid-template-columns: 1fr;
    }
    .seller-share-preview__img {
        min-height: 140px;
    }
}

.seller-faq-editor__row .btn {
    justify-self: start;
}

.seller-instructor-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.seller-instructor-mode__btn {
    display: grid;
    gap: 0.35rem;
    justify-items: start;
    text-align: left;
    padding: 1rem 1.05rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.seller-instructor-mode__btn i {
    color: #be123c;
    font-size: 1.05rem;
}

.seller-instructor-mode__btn:hover {
    border-color: #fda4af;
    background: #fff;
}

.seller-instructor-mode__btn.is-active {
    border-color: #e11d48;
    background: #fff1f2;
    box-shadow: inset 0 0 0 1px #e11d48;
}

.seller-instructor-mode__title {
    font-weight: 700;
    font-size: 0.98rem;
}

.seller-instructor-mode__meta {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.35;
}

.seller-instructor-preview {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.seller-instructor-preview__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffe4e6;
    color: #be123c;
    flex-shrink: 0;
}

.seller-instructor-preview strong {
    display: block;
    font-size: 1.05rem;
    color: #0f172a;
}

.seller-desc-tools {
    display: grid;
    gap: 0.55rem;
    margin: 0.35rem 0 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px dashed #fda4af;
    border-radius: 12px;
    background: #fff1f2;
}

.seller-desc-tools__head {
    display: grid;
    gap: 0.1rem;
}

.seller-desc-tools__head strong {
    font-size: 0.88rem;
    color: #9f1239;
}

.seller-desc-tools__head span {
    font-size: 0.75rem;
    color: #be123c;
    opacity: 0.85;
}

.seller-desc-tools__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.seller-desc-tools__label {
    font-size: 0.78rem;
    color: #9f1239;
    margin-right: 0.15rem;
    font-weight: 600;
}

.seller-desc-tools__btn {
    border: 1px solid #fb7185;
    background: #fff;
    color: #9f1239;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(159, 18, 57, 0.08);
}

.seller-desc-tools__btn:hover {
    border-color: #e11d48;
    color: #fff;
    background: #e11d48;
}

.seller-live-preview {
    margin-top: 0.25rem;
}

.seller-shop-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: stretch;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.seller-shop-card__cover {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
    background: #e2e8f0;
}

.seller-shop-card__cover--video {
    display: grid;
    place-content: center;
    gap: 0.35rem;
    background: linear-gradient(145deg, #0f172a, #334155);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.seller-shop-card__cover--video i {
    font-size: 1.25rem;
}

.seller-shop-card__body {
    padding: 0.85rem 0.9rem 0.95rem 0;
    min-width: 0;
}

.seller-shop-card__type {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #be123c;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.seller-shop-card h4 {
    margin: 0.25rem 0 0.35rem;
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.25;
}

.seller-shop-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
}

.seller-shop-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.seller-shop-card__chips span {
    font-size: 0.72rem;
    font-weight: 650;
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
}

.seller-shop-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    margin-top: 0.7rem;
    align-items: baseline;
}

.seller-shop-card__meta strong {
    font-size: 1.05rem;
    color: #0f172a;
}

.seller-shop-card__meta span {
    font-size: 0.8rem;
    color: #94a3b8;
}

.seller-storefront {
    display: grid;
    gap: 0.75rem;
}

.seller-storefront__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.88rem;
    font-weight: 600;
}

.seller-storefront__page {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.seller-storefront__page--course {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    grid-template-areas:
        "hero buybox"
        "desc buybox";
}

.seller-storefront__page--listing {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    grid-template-areas:
        "gallery buybox"
        "desc buybox";
}

.seller-storefront__hero,
.seller-storefront__gallery {
    grid-area: hero;
}

.seller-storefront__gallery {
    grid-area: gallery;
}

.seller-storefront__buybox {
    grid-area: buybox;
    align-self: start;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.seller-storefront__desc-body,
.seller-storefront__copy {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.seller-storefront__copy {
    margin: 0 0 0.75rem;
    color: #334155;
    line-height: 1.55;
    white-space: pre-wrap;
}

.seller-course-preview {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 1rem 1.1rem 1.25rem;
    overflow: hidden;
    min-width: 0;
}

.seller-course-preview__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.25rem;
    align-items: start;
}

.seller-course-preview__primary {
    min-width: 0;
    overflow: hidden;
}

.seller-course-preview__sidebar {
    position: sticky;
    top: 0.75rem;
    width: 280px;
    max-width: 280px;
    max-height: none;
    overflow: visible;
    justify-self: end;
}

.seller-course-preview__sidebar .course-buybox {
    width: 100%;
}

.seller-course-preview__sidebar .course-buybox__media {
    background: #e2e8f0;
    position: relative;
}

.seller-course-preview__sidebar .course-buybox__media.is-empty {
    background: linear-gradient(145deg, #e2e8f0, #f1f5f9);
}

.seller-course-preview__cover-hint {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    background: rgba(241, 245, 249, 0.72);
}

.seller-course-preview__sidebar .course-buybox__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.seller-course-preview__tabs {
    margin: 1rem 0 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
}

.seller-course-preview__tabs-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: max-content;
    min-width: 100%;
}

.seller-course-preview__tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    cursor: pointer;
}

.seller-course-preview__tab:hover {
    color: #DC143C;
    background: rgba(220, 20, 60, 0.05);
}

.seller-course-preview__tab.is-active {
    color: #DC143C;
    border-bottom-color: #DC143C;
    background: rgba(220, 20, 60, 0.05);
}

.seller-course-preview__pane[hidden] {
    display: none !important;
}

.seller-course-preview__instructor {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.seller-course-preview__instructor-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}

.seller-course-preview__instructor h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    color: #0f172a;
}

.seller-course-preview__reviews-demo {
    margin-top: 0.85rem;
}

.seller-course-preview__review {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #f8fafc;
}

.seller-course-preview__review strong {
    display: block;
    margin-bottom: 0.2rem;
}

.seller-course-preview__review span {
    color: #DC143C;
    font-size: 0.85rem;
}

.seller-course-preview__review p {
    margin: 0.45rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.seller-course-preview__content {
    min-width: 0;
    overflow: hidden;
}

.seller-course-preview__content .course-section {
    margin-top: 1rem;
}

.seller-course-preview__content .course-hero__title,
.seller-course-preview__content .course-hero__subtitle,
.seller-course-preview .course-hero__title,
.seller-course-preview .course-hero__subtitle {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.seller-course-preview .course-buybox__cta .btn[disabled] {
    opacity: 0.85;
    cursor: default;
}

@media (max-width: 1200px) {
    .seller-course-preview__grid {
        grid-template-columns: 1fr;
    }

    .seller-course-preview__sidebar {
        position: static;
        width: 100%;
        max-width: 360px;
        justify-self: start;
    }
}

.seller-storefront__desc {
    grid-area: desc;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    overflow: hidden;
    min-width: 0;
}

.seller-storefront__desc h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: #0f172a;
}

.seller-storefront__desc p {
    margin: 0 0 0.75rem;
    color: #334155;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.seller-storefront__empty-copy {
    color: #94a3b8 !important;
    font-style: italic;
}

.seller-storefront__price {
    margin: 0.35rem 0 0.55rem;
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.seller-storefront__hero img,
.seller-storefront__stage img,
.seller-storefront__stage video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
    background: #e2e8f0;
}

.seller-storefront__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.seller-storefront__thumb {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
    cursor: pointer;
}

.seller-storefront__thumb.is-active {
    border-color: #DC143C;
}

.seller-storefront__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seller-storefront__thumb-video {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    background: #0f172a;
}

.seller-storefront__contact {
    display: grid;
    gap: 0.35rem;
    margin: 0.85rem 0 1rem;
    font-size: 0.9rem;
    color: #334155;
}

.seller-storefront__contact .is-muted {
    color: #94a3b8;
}

.seller-storefront__contact a {
    color: #be123c;
}

@media (max-width: 960px) {
    .seller-storefront__page--course,
    .seller-storefront__page--listing {
        grid-template-columns: 1fr;
        grid-template-areas:
            "hero"
            "gallery"
            "buybox"
            "desc";
    }

    .seller-shop-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }
}

.seller-overview-hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.seller-overview-hero__cover {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 280px;
    object-fit: cover !important;
    background: #e2e8f0;
}

.seller-overview-hero__body {
    padding: 1.25rem 1.35rem 1.35rem 0;
}

.seller-overview-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.seller-overview-hero h3 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.seller-overview-hero__meta {
    margin: 0 0 0.75rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.seller-overview-hero__desc {
    margin: 0 0 1rem;
    color: #475569;
    line-height: 1.5;
    font-size: 0.92rem;
}

.seller-overview-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 1rem;
}

.seller-overview-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.seller-overview-card-head h3 {
    margin: 0;
}

.seller-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.seller-overview__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.seller-overview__stat {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem;
    background: #f8fafc;
}

.seller-overview__stat strong {
    display: block;
    font-size: 1.15rem;
    color: #0f172a;
}

.seller-overview__stat span {
    font-size: 0.72rem;
    color: #64748b;
}

.seller-overview__checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.seller-overview__checklist li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.88rem;
    cursor: pointer;
}

.seller-overview__checklist li span {
    flex: 1;
}

.seller-overview__checklist li.is-done {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.seller-overview__checklist li.is-todo {
    color: #64748b;
}

.seller-preview-tree {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 420px;
    overflow: auto;
}

.seller-preview-tree__empty {
    padding: 1.25rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #94a3b8;
    text-align: center;
    font-size: 0.88rem;
}

.seller-preview-tree__mod {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
}

.seller-preview-tree__mod strong {
    display: block;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.seller-preview-tree__mod p {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: #64748b;
}

.seller-preview-tree__mod ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.seller-preview-tree__mod li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.55rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.84rem;
}

.seller-preview-tree__mod li small {
    color: #94a3b8;
    white-space: nowrap;
}

.seller-preview-tree__mod li.is-empty {
    color: #94a3b8;
    justify-content: center;
}

.seller-program-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.seller-program-toolbar__actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.seller-program-editor {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seller-module {
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 35%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seller-module__head,
.seller-lesson__head {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.seller-module__badge {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: #DC143C;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.seller-module__actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.seller-icon-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.seller-icon-btn:hover:not(:disabled) {
    border-color: #cbd5e1;
    color: #0f172a;
}

.seller-icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.seller-icon-btn--danger:hover:not(:disabled) {
    border-color: #fecaca;
    color: #dc2626;
    background: #fef2f2;
}

.seller-lessons {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-left: 0.35rem;
    border-left: 3px solid #fecdd3;
    margin-left: 0.65rem;
}

.seller-lessons__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #64748b;
    padding: 0 0.25rem;
}

.seller-lesson {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.seller-lesson__type {
    max-width: 130px;
}

.seller-asset {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.seller-asset__modes {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.2rem;
    background: #f1f5f9;
    border-radius: 10px;
    width: fit-content;
}

.seller-asset__mode {
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600;
}

.seller-asset__mode.is-active {
    background: #fff !important;
    color: #DC143C !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.seller-asset__panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.seller-asset__panel[hidden] {
    display: none !important;
}

.seller-asset__panel[data-panel="url"] {
    display: block;
}

.seller-asset__panel[data-panel="upload"] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.seller-asset__preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.seller-asset__preview[hidden] {
    display: none !important;
}

.seller-asset__preview-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #e2e8f0;
}

.seller-asset__preview-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.seller-asset__preview-meta strong {
    font-size: 0.85rem;
    color: #0f172a;
    word-break: break-word;
}

.seller-asset__clear {
    border: none;
    background: transparent;
    color: #DC143C;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

.seller-asset__pick {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    cursor: pointer;
    margin: 0;
}

.seller-asset__pick.is-uploading {
    pointer-events: none;
    opacity: 0.72;
}

.seller-asset__pick.is-uploading .seller-asset__pick-btn {
    border-color: #DC143C;
    color: #DC143C;
}

.seller-asset__file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

.seller-asset__pick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
}

.seller-asset__pick:hover .seller-asset__pick-btn {
    border-color: #DC143C;
    color: #DC143C;
}

.seller-asset__pick-name {
    min-width: 0;
    font-size: 0.82rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-asset__hint {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
}

.seller-materials-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.seller-materials-list__item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.seller-materials-list__main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.seller-materials-list__main strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.seller-materials-list__main span,
.seller-materials-list__meta {
    font-size: 0.78rem;
    color: #64748b;
}

.seller-materials-list__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.seller-materials-list__badge {
    display: inline-block;
    max-width: 180px;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#product-duration[readonly] {
    background: #f8fafc;
    color: #334155;
    cursor: default;
}

.seller-lesson__file-chip {
    display: inline-flex;
    align-items: center;
    max-width: 160px;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-lesson__file-chip[hidden] {
    display: none !important;
}

.seller-char-count {
    float: right;
    font-weight: 500;
    color: #64748b;
    font-size: 0.78rem;
}

.seller-char-count.is-over,
.seller-char-count.is-warn {
    color: #b45309;
}

.seller-char-count.is-ok {
    color: #15803d;
}

.seller-lesson__asset {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    min-width: 0;
}

.seller-lesson__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 0.5rem;
}

.seller-lesson__asset .user-panel__form-input {
    flex: 1;
    min-width: 0;
}

.seller-lesson__upload {
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.seller-lesson__upload .btn {
    pointer-events: none;
}

.seller-lesson__foot {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.seller-publish-steps {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.seller-publish-step {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-align: left;
    cursor: pointer;
    width: 100%;
    font: inherit;
}

.seller-publish-step:disabled {
    cursor: default;
}

.seller-publish-step__num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.seller-publish-step--ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.seller-publish-step--ok .seller-publish-step__num {
    background: #16a34a;
    color: #fff;
}

.seller-publish-step--warn {
    border-color: #fde68a;
    background: #fffbeb;
}

.seller-modal[hidden] {
    display: none !important;
}

.seller-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.seller-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(2px);
}

.seller-modal__panel {
    position: relative;
    width: min(560px, calc(100vw - 2rem));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.seller-modal__panel--wide {
    width: min(680px, calc(100vw - 2rem));
}

.seller-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
}

.seller-modal__header h3 {
    margin: 0;
}

.seller-modal__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}

.seller-modal__form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.seller-modal__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    overflow-y: auto;
    flex: 1 1 auto;
}

.seller-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
}

body.seller-modal-open {
    overflow: hidden;
}

/* Sticky header/nav must sit under the seller modal overlay */
body.seller-modal-open #top-bar-placeholder,
body.seller-modal-open #header-placeholder,
body.seller-modal-open .header {
    z-index: 0;
}

.seller-create-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.seller-create-type {
    cursor: pointer;
}

.seller-create-type input {
    position: absolute;
    opacity: 0;
}

.seller-create-type span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.82rem;
    color: #475569;
}

.seller-create-type input:checked + span {
    border-color: #DC143C;
    background: rgba(220, 20, 60, 0.06);
    color: #DC143C;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .seller-overview-hero,
    .seller-overview-split {
        grid-template-columns: 1fr;
    }
    .seller-overview-hero__body {
        padding: 1.15rem;
    }
    .seller-overview-hero__cover {
        min-height: 180px;
        max-height: 220px;
    }
}

@media (max-width: 960px) {
    .seller-studio__layout {
        grid-template-columns: 1fr;
    }
    .seller-studio__rail {
        flex-direction: row;
        overflow-x: auto;
        position: static;
    }
    .seller-studio__rail-btn span {
        white-space: nowrap;
    }
    .seller-instructor-mode {
        grid-template-columns: 1fr;
    }
    .seller-studio__kpi,
    .seller-overview__grid,
    .seller-create-types {
        grid-template-columns: 1fr 1fr;
    }
    .seller-lesson__fields,
    .seller-lesson__head {
        grid-template-columns: 1fr;
        flex-wrap: wrap;
    }
    .seller-lesson__type {
        max-width: none;
    }
    .seller-catalog__head {
        display: none;
    }
    .seller-catalog__row,
    .seller-catalog--listings .seller-catalog__row {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 1rem;
    }
    .seller-catalog__col--actions {
        justify-content: flex-start;
    }
}

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

.user-panel__dashboard-products img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* Add Product Form */
.user-panel__add-product-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.user-panel__form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-panel__form-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
}

.user-panel__form-input {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #fff;
    transition: all 0.2s ease;
}

.user-panel__form-input:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.user-panel__form-textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #fff;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.user-panel__form-textarea:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.user-panel__form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* Product Edit Section */
.user-panel__product-edit {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.user-panel__product-image-section {
    position: sticky;
    top: 120px;
}

.user-panel__product-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.user-panel__product-image-placeholder i {
    font-size: 3rem;
    color: #cbd5e1;
}

.user-panel__product-form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Modal */
.user-panel__modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.user-panel__modal[style*="flex"] {
    pointer-events: auto;
}

.user-panel__modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.user-panel__modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
    margin: 0;
    pointer-events: auto;
}

.user-panel__modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.user-panel__modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.user-panel__modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.user-panel__modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.user-panel__modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.user-panel__modal-placeholder {
    min-height: 200px;
    background: #f8f9fa;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
}

.user-panel__modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 1024px) {
    .user-panel__container {
        flex-direction: column;
    }

    .user-panel__sidebar {
        width: 100%;
        position: static;
    }

    .user-panel__products {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .user-panel__sidebar {
        padding: 1.5rem 0;
    }

    .user-panel__section-content {
        padding: 1.5rem;
    }

    .user-panel__products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-panel__products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-panel__product-edit {
        grid-template-columns: 1fr;
    }

    .user-panel__product-image-section {
        position: static;
    }

    .user-panel__modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .user-panel__modal-header,
    .user-panel__modal-body,
    .user-panel__modal-footer {
        padding: 1.25rem 1.5rem;
    }
}

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

    .user-panel__products-tabs {
        width: 100%;
    }

    .user-panel__tab-btn {
        flex: 1;
        text-align: center;
    }

    .user-panel__modal-footer {
        flex-direction: column;
    }

    .user-panel__modal-footer .btn {
        width: 100%;
    }
}

/* Dashboard Welcome Section */
.user-panel__welcome {
    background: linear-gradient(135deg, #DC143C 0%, #A50E2D 100%);
    color: #fff;
    padding: 3rem 2rem;
}

.user-panel__welcome-content {
    text-align: center;
}

.user-panel__welcome-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.user-panel__welcome-text {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
}

/* Statistics Grid */
.user-panel__stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.user-panel__stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-panel__stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.user-panel__stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.user-panel__stat-icon--blue {
    background: linear-gradient(135deg, #DC143C 0%, #A50E2D 100%);
}

.user-panel__stat-icon--green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.user-panel__stat-icon--purple {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.user-panel__stat-icon--orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.user-panel__stat-content {
    flex: 1;
}

.user-panel__stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.user-panel__stat-label {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Chart Placeholder */
.user-panel__stats-chart {
    margin-bottom: 1.5rem;
}

.user-panel__chart-placeholder {
    min-height: 300px;
    background: #f8f9fa;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #94a3b8;
    font-size: 1rem;
}

.user-panel__chart-placeholder i {
    font-size: 3rem;
    color: #cbd5e1;
}

/* Section Header */
.user-panel__section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.user-panel__view-all {
    color: #DC143C;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.user-panel__view-all:hover {
    color: #DC143C;
    text-decoration: underline;
}

.user-panel__section-description {
    color: #64748b;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

/* My Account Section */
.user-panel__account-info {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

.user-panel__account-avatar-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.user-panel__avatar-large {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    background: linear-gradient(135deg, #F07185, #DC143C);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4rem;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.user-panel__change-avatar-btn {
    padding: 0.625rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-panel__change-avatar-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.user-panel__account-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Library Section */
.user-panel__library-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.user-panel__library-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    align-items: center;
    transition: box-shadow 0.2s ease;
}

.user-panel__library-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.user-panel__library-thumbnail {
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, #DC143C 0%, #A50E2D 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.user-panel__library-info {
    flex: 1;
}

.user-panel__library-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.user-panel__library-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 1rem 0;
}

.user-panel__library-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-panel__progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.user-panel__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #DC143C, #DC143C);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.user-panel__progress-text {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
}

/* Favorites Section */
.user-panel__favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.user-panel__favorite-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.2s ease;
}

.user-panel__favorite-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.user-panel__favorite-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.user-panel__favorite-info {
    flex: 1;
}

.user-panel__favorite-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.user-panel__favorite-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #DC143C;
    margin: 0 0 1rem 0;
}

.user-panel__favorite-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.user-panel__remove-favorite {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-panel__remove-favorite:hover {
    background: #fee2e2;
    border-color: #fecaca;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Contact Section */
.user-panel__contact-form {
    margin-bottom: 2rem;
}

.user-panel__contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.user-panel__contact-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.user-panel__contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(220, 20, 60, 0.1);
    color: #DC143C;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.user-panel__contact-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.user-panel__contact-item p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

@media (max-width: 1024px) {
    .user-panel__stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-panel__account-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .user-panel__account-avatar-large {
        align-self: center;
    }

    .user-panel__library-item {
        grid-template-columns: 100px 1fr;
    }

    .user-panel__library-item .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

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

    .user-panel__welcome {
        padding: 2rem 1.5rem;
    }

    .user-panel__welcome-title {
        font-size: 1.5rem;
    }

    .user-panel__library-item {
        grid-template-columns: 1fr;
    }

    .user-panel__library-thumbnail {
        width: 100%;
        height: 180px;
    }

    .user-panel__favorites-grid {
        grid-template-columns: 1fr;
    }

    .user-panel__contact-info {
        grid-template-columns: 1fr;
    }
}

/* About Us Page */
.about-main {
    min-height: calc(100vh - 200px);
}

/* Banner Section */
.about-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #DC143C 0%, #A50E2D 100%);
}

.about-banner__slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-banner__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-banner__slide--active {
    opacity: 1;
    z-index: 1;
}

.about-banner__image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 4rem;
}

.about-banner__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1e293b;
    font-size: 1.2rem;
}

.about-banner__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.about-banner__nav--prev {
    left: 20px;
}

.about-banner__nav--next {
    right: 20px;
}

.about-banner__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.about-banner__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-banner__dot--active {
    background: #fff;
}

/* Mission Section */
.about-mission {
    padding: 4rem 0;
    background: #fff;
}

.about-mission__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2rem 0;
    text-align: center;
}

.about-mission__content {
    max-width: 800px;
    margin: 0 auto;
}

.about-mission__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin: 0 0 1.5rem 0;
}

.about-mission__text:last-child {
    margin-bottom: 0;
}

/* Testimonials Section */
.about-testimonials {
    padding: 4rem 0;
    background: #f8f9fa;
}

.about-testimonials__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 3rem 0;
    text-align: center;
}

.about-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-testimonial {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-testimonial__quote {
    color: #DC143C;
    font-size: 2rem;
    opacity: 0.3;
}

.about-testimonial__text {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
    flex: 1;
}

.about-testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.about-testimonial__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F07185, #DC143C);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-testimonial__name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.about-testimonial__role {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Partnership Section */
.about-partnership {
    padding: 4rem 0;
    background: #fff;
}

.about-partnership__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-partnership__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
}

.about-partnership__description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin: 0 0 2rem 0;
}

.about-partnership__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-partnership__benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: #475569;
}

.about-partnership__benefit i {
    color: #10b981;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.about-partnership__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-partnership__placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #94a3b8;
}

.about-partnership__placeholder i {
    font-size: 4rem;
    color: #cbd5e1;
}

.about-partnership__placeholder p {
    margin: 0;
    font-size: 1rem;
}

/* Partners Section */
.about-partners {
    padding: 4rem 0;
    background: #f8f9fa;
    overflow: hidden;
}

.about-partners__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 3rem 0;
    text-align: center;
}

.about-partners__slider {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-partners__track {
    display: flex;
    gap: 2rem;
    width: fit-content;
    will-change: transform;
}

.about-partner {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    width: 200px;
}

.about-partner:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.about-partner__logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #DC143C 0%, #A50E2D 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.about-partner__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    text-align: center;
}

@media (max-width: 1024px) {
    .about-partnership__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-partnership__visual {
        order: -1;
    }

    .about-testimonials__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-banner {
        height: 300px;
    }

    .about-banner__nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .about-banner__nav--prev {
        left: 10px;
    }

    .about-banner__nav--next {
        right: 10px;
    }

    .about-mission,
    .about-testimonials,
    .about-partnership,
    .about-partners {
        padding: 3rem 0;
    }

    .about-mission__title,
    .about-testimonials__title,
    .about-partnership__title,
    .about-partners__title {
        font-size: 2rem;
    }

    .about-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .about-partner {
        width: 180px;
    }
}

@media (max-width: 640px) {
    .about-partner {
        width: 160px;
        padding: 1.5rem;
    }

    .about-partner__logo {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

/* ============================================
   GLOBAL IMPROVEMENTS
   ============================================ */

/* Demo Banner */
.demo-banner {
    background: linear-gradient(135deg, #d62027 0%, #A50E2D 100%);
    color: #fff;
    padding: 0.75rem 0;
    position: relative;
    z-index: 1000;
}

.demo-banner__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.demo-banner__badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-banner__text {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
}

.demo-banner__close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.demo-banner__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumbs__item:not(:last-child)::after {
    content: '/';
    color: #94a3b8;
    margin-left: 0.5rem;
}

.breadcrumbs__link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
    color: #DC143C;
}

.breadcrumbs__item:last-child .breadcrumbs__link {
    color: #1e293b;
    font-weight: 500;
    pointer-events: none;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #DC143C;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #A50E2D;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top i {
    font-size: 1.2rem;
}

/* Statistics Section */
.stats-section {
    padding: 4rem 0;
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #DC143C, #DC143C);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.stat-card__label {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #DC143C 0%, #A50E2D 100%);
}

.newsletter-card {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.newsletter-card__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.newsletter-card__description {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0 0 2rem 0;
    text-align: center;
}

.newsletter-form__group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.newsletter-form__input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.newsletter-form__input:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.newsletter-form__hint {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    text-align: center;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-item__question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    transition: background 0.2s ease;
}

.faq-item__question:hover {
    background: #f8f9fa;
}

.faq-item__question i {
    color: #64748b;
    transition: transform 0.3s ease;
}

.faq-item--open .faq-item__question i {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item--open .faq-item__answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-item__answer p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

/* Wishlist & Compare Buttons */
.wishlist-btn,
.compare-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn:hover,
.compare-btn:hover {
    background: #f8f9fa;
    border-color: #cbd5e1;
}

.wishlist-btn--active {
    background: #fee2e2;
    border-color: #fecaca;
    color: #ef4444;
}

.compare-btn--active {
    background: #fce8ec;
    border-color: #f5c2c9;
    color: #DC143C;
}

@media (max-width: 768px) {
    .demo-banner__content {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .demo-banner__text {
        font-size: 0.85rem;
    }

    .breadcrumbs {
        padding: 0.75rem 0;
    }

    .breadcrumbs__list {
        font-size: 0.85rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .newsletter-card {
        padding: 2rem 1.5rem;
    }

    .newsletter-form__group {
        flex-direction: column;
    }

    .newsletter-form__input {
        width: 100%;
    }
}

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

    .faq-item__question {
        font-size: 1rem;
        padding: 1.25rem;
    }
}

/* ============================================
   COURSES PAGE IMPROVEMENTS
   ============================================ */

.courses-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.courses-view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.25rem;
}

.courses-view-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.courses-view-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.courses-view-btn--active {
    background: #fff;
    color: #DC143C;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.courses-sort {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.courses-sort:hover {
    border-color: #DC143C;
}

.courses-grid--list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.courses-grid--list .course-card,
.courses-grid--list .netflix-card {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
}

.courses-grid--list .course-card__image,
.courses-grid--list .netflix-card__thumbnail {
    width: 280px;
    min-width: 280px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.courses-grid--list .course-card__image img,
.courses-grid--list .netflix-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.courses-grid--list .course-card__content,
.courses-grid--list .netflix-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    position: relative;
}

.courses-grid--list .course-card__title,
.courses-grid--list .netflix-card__title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.courses-grid--list .course-card__description,
.courses-grid--list .netflix-card__description {
    margin: 0;
    line-height: 1.6;
    flex: 1;
    color: #64748b;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.courses-grid--list .course-card__meta,
.courses-grid--list .netflix-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.courses-grid--list .course-price,
.courses-grid--list .netflix-card__price {
    margin-left: auto;
    font-size: 1.5rem;
    font-weight: 700;
    color: #DC143C;
}

.courses-grid--list .netflix-card__overlay {
    display: none;
}

.courses-grid--list .netflix-card__actions {
    position: static;
    opacity: 1;
    transform: none;
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.courses-grid--list .netflix-card__link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.courses-grid--list .netflix-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}

/* ============================================
   COURSE DETAILS PAGE IMPROVEMENTS
   ============================================ */

.course-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-hero__action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.course-hero__share {
    position: relative;
}

.course-hero__share-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-hero__share-btn:hover {
    background: #f8f9fa;
    border-color: #cbd5e1;
}

.course-hero__share-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 180px;
    z-index: 10;
}

.course-hero__share-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #1e293b;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

.course-hero__share-link:hover {
    background: #f8f9fa;
}

.course-also-bought {
    margin-top: 2rem;
}

.course-also-bought__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.course-also-bought__item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-also-bought__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.course-also-bought__image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.course-also-bought__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-also-bought__content {
    padding: 1.5rem;
}

.course-also-bought__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.course-also-bought__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.course-also-bought__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #DC143C;
}

/* ============================================
   CART PAGE IMPROVEMENTS
   ============================================ */

.cart-summary__discount {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cart-summary__discount-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.cart-summary__discount-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-summary__discount-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.cart-summary__discount-input:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.cart-summary__discount-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #DC143C;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cart-summary__discount-btn:hover {
    background: #DC143C;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3);
}

.cart-summary__discount-btn:active {
    transform: translateY(0);
}

.cart-summary__continue {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #DC143C;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.cart-summary__continue:hover {
    color: #DC143C;
}

.cart-suggestions {
    margin-top: 3rem;
    padding: 2rem 0;
}

.cart-suggestions__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.cart-suggestions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cart-suggestion-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-suggestion-item__image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.cart-suggestion-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-suggestion-item__content {
    padding: 1.25rem;
}

.cart-suggestion-item__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.cart-suggestion-item__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #DC143C;
    margin-bottom: 1rem;
}

/* ============================================
   PAYMENT PAGE IMPROVEMENTS
   ============================================ */

.payment-progress {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.payment-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.payment-progress__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60px;
    width: calc(100% - 40px);
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.payment-progress__step--active:not(:last-child)::after {
    background: #DC143C;
}

.payment-progress__step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.payment-progress__step--active .payment-progress__step-number {
    background: #DC143C;
    color: #fff;
}

.payment-progress__step-label {
    font-size: 0.9rem;
    color: #64748b;
}

.payment-progress__step--active .payment-progress__step-label {
    color: #DC143C;
    font-weight: 600;
}

.payment-methods {
    margin: 2rem 0;
}

.payment-methods h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.payment-methods__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method:hover {
    border-color: #cbd5e1;
    background: #f8f9fa;
}

.payment-method input[type="radio"] {
    margin-right: 1rem;
}

.payment-method input[type="radio"]:checked + .payment-method__content {
    color: #DC143C;
}

.payment-method input[type="radio"]:checked ~ .payment-method__content,
.payment-method:has(input[type="radio"]:checked) {
    border-color: #DC143C;
    background: #fff0f2;
}

.payment-method__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.delivery-address {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.delivery-address h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.invoice-section {
    margin: 2rem 0;
}

.invoice-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.invoice-fields {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.payment-terms {
    margin: 2rem 0;
}

.payment-terms__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
}

.payment-terms__checkbox a {
    color: #DC143C;
    text-decoration: none;
}

.payment-terms__checkbox a:hover {
    text-decoration: underline;
}

.payment-security {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.payment-security__badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.payment-security__badge i {
    color: #10b981;
}

.payment-back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #DC143C;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.payment-back-link:hover {
    color: #DC143C;
}

/* ============================================
   REGISTRATION PAGE IMPROVEMENTS
   ============================================ */

.auth-card__validation {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.password-strength {
    margin-top: 0.5rem;
}

.password-strength__bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.password-strength__fill {
    height: 100%;
    width: 20%;
    background: #ef4444;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 2px;
}

.password-strength__label {
    font-size: 0.85rem;
    color: #64748b;
}

.auth-card__benefits {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.auth-card__benefits h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.auth-card__benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-card__benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
    font-size: 0.95rem;
}

.auth-card__benefits-list li i {
    color: #10b981;
}

.auth-card__login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-card__login-link a {
    color: #DC143C;
    text-decoration: none;
    font-weight: 600;
}

.auth-card__login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .courses-header__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .courses-view-toggle {
        justify-content: center;
    }

    .courses-grid--list .course-card,
    .courses-grid--list .netflix-card {
        flex-direction: column;
        padding: 1rem;
    }

    .courses-grid--list .course-card__image,
    .courses-grid--list .netflix-card__thumbnail {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .payment-progress {
        gap: 1rem;
    }

    .payment-progress__step:not(:last-child)::after {
        display: none;
    }

    .payment-methods__list {
        gap: 0.5rem;
    }

    .payment-security {
        flex-direction: column;
        gap: 0.75rem;
    }

    .course-also-bought__grid {
        grid-template-columns: 1fr;
    }

    .cart-suggestions__grid {
        grid-template-columns: 1fr;
    }

}