/* ── Lekcje Gotowe Account — Styles ──────────────────────────────────────── */

:root {
    --lga-primary:      #ef7443;
    --lga-primary-h:    #d4622e;
    --lga-teal:         #31ada4;
    --lga-teal-bg:      #C1E6E4;
    --lga-navy:         #222A50;
    --lga-navy-light:   #2e3a6b;
    --lga-gold:         #d4a017;
    --lga-gold-bg:      #fffbeb;
    --lga-success:      #22863a;
    --lga-error:        #cb2431;
    --lga-text:         #1a2240;
    --lga-muted:        #607090;
    --lga-border:       #d0ecea;
    --lga-bg:           #f4f7f9;
    --lga-radius:       10px;
    --lga-shadow:       0 2px 8px rgba(0,0,0,.07);

    /* Sidebar */
    --lga-sb-w:         260px;
    --lga-sb-w-col:     68px;
    --lga-sb-bg:        #222A50;
    --lga-sb-text:      rgba(255,255,255,.72);
    --lga-sb-hover:     rgba(255,255,255,.09);
    --lga-sb-active-bg: rgba(239,116,67,.18);
    --lga-topbar-h:     60px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT — sidebar + main
   ═══════════════════════════════════════════════════════════════════════════ */

/*
 * Wrapper: domyślny align-items:stretch — sidebar rośnie razem z contentem.
 * Tło navyblue na wrapperze tworzy wizualny efekt pełnej wysokości sidebara
 * bez ustawiania height:100vh, które psuje layout header/footer.
 */
.woocommerce-account .lga-account-wrap {
    display: flex;
    background: var(--lga-sb-bg);
    position: relative;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */

/* Sidebar <aside> rośnie naturalnie do wysokości kontenera (przez stretch).
   NIE ma height:100vh — to naprawia psujący się header/footer na krótkich stronach. */
.lga-sidebar {
    width: var(--lga-sb-w);
    flex-shrink: 0;
    background: var(--lga-sb-bg);
    overflow: hidden;
    transition: width .25s cubic-bezier(.4,0,.2,1);
}

.lga-sidebar.is-collapsed {
    width: var(--lga-sb-w-col);
}

/* Wewnętrzny sticky wrapper — on się przykleja, nie <aside> */
.lga-sidebar__sticky {
    position: sticky;
    top: 0;
    max-height: 100vh;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}

/* Korekta dla WordPress admin bar */
.admin-bar .lga-sidebar__sticky {
    top: 32px;
    max-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .lga-sidebar__sticky {
        top: 46px;
        max-height: calc(100vh - 46px);
    }
}

/* Sidebar top */
.lga-sidebar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem .9rem .9rem;
    min-height: var(--lga-topbar-h);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}

.lga-sidebar__brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.lga-sidebar__brand:hover {
    text-decoration: none;
}

.lga-sidebar__brand-icon {
    flex-shrink: 0;
    color: var(--lga-primary);
    display: flex;
    align-items: center;
}

.lga-sidebar__brand-name {
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .2s, max-width .25s;
}

.lga-sidebar__toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.45);
    padding: 5px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: color .15s, background .15s;
}

.lga-sidebar__toggle:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}

.lga-sidebar__toggle svg {
    transition: transform .25s;
}

.lga-sidebar.is-collapsed .lga-sidebar__toggle svg {
    transform: rotate(180deg);
}

/* Hide text when collapsed */
.lga-sidebar.is-collapsed .lga-sidebar__brand-name { display: none; }
.lga-sidebar.is-collapsed .lga-sidebar__label      { display: none; }
.lga-sidebar.is-collapsed .lga-sidebar__user-info  { display: none; }

.lga-sidebar.is-collapsed .lga-sidebar__top {
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: .75rem .4rem;
}

.lga-sidebar.is-collapsed .lga-sidebar__brand {
    justify-content: center;
    flex: none;
}

/* Toggle MUSI być widoczny żeby można było rozwinąć */
.lga-sidebar.is-collapsed .lga-sidebar__toggle {
    display: flex;
}

/* Nav */
.lga-sidebar__nav {
    flex: 1;
    padding: .5rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.lga-sidebar__item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem .9rem;
    margin: 1px .5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--lga-sb-text);
    font-size: .88rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    transition: background .15s, color .15s;
}

.lga-sidebar__item:hover {
    background: var(--lga-sb-hover);
    color: #fff;
    text-decoration: none;
}

.lga-sidebar__item.is-active {
    background: var(--lga-sb-active-bg);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--lga-primary);
}

.lga-sidebar__item--logout {
    margin-top: .25rem;
    color: rgba(255,255,255,.45);
}

.lga-sidebar__item--logout:hover {
    background: rgba(203,36,49,.18);
    color: #ff8a8a;
}

.lga-sidebar__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* Collapsed nav */
.lga-sidebar.is-collapsed .lga-sidebar__item {
    justify-content: center;
    padding: .65rem;
    margin: 1px .5rem;
    box-shadow: none;
}

.lga-sidebar.is-collapsed .lga-sidebar__item.is-active {
    box-shadow: inset 3px 0 0 var(--lga-primary);
}

/* User card */
.lga-sidebar__user {
    padding: .85rem .9rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-shrink: 0;
    overflow: hidden;
}

.lga-sidebar__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lga-primary);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lga-sidebar__user-info {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.lga-sidebar__user-name {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lga-sidebar__user-email {
    display: block;
    font-size: .72rem;
    color: rgba(255,255,255,.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lga-sidebar.is-collapsed .lga-sidebar__user {
    justify-content: center;
    padding: .85rem .6rem;
}

/* ── Main area ──────────────────────────────────────────────────────────── */

.lga-account-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--lga-bg); /* oddziela content od navy tła wrappera */
}

/* Topbar */
.lga-topbar {
    height: var(--lga-topbar-h);
    background: var(--lga-navy);
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: .75rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    flex-shrink: 0;
}

.admin-bar .lga-topbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .lga-topbar {
        top: 46px;
    }
}

.lga-topbar__mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.8);
    padding: 4px;
    border-radius: 6px;
    align-items: center;
    flex-shrink: 0;
}

.lga-topbar__mobile-toggle:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.lga-topbar__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lga-topbar__user {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-left: auto;
    flex-shrink: 0;
}

.lga-topbar__user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
}

.lga-topbar__name {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
}

.lga-topbar__pts-badge {
    font-size: .72rem;
    color: var(--lga-primary);
    font-weight: 700;
}

.lga-topbar__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lga-primary);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content area */
.lga-account-content {
    flex: 1;
    padding: 1.75rem;
}

.lga-account-content .woocommerce-MyAccount-content {
    /* Remove default WC styles if any */
    padding: 0;
    float: none;
    width: auto;
}

/* Mobile overlay */
.lga-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 150;
    opacity: 0;
    transition: opacity .25s;
}

.lga-sidebar-overlay.is-active {
    display: block;
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOGIN PAGE — pełnoekranowa karta dla niezalogowanych
   ═══════════════════════════════════════════════════════════════════════════ */

.lga-login-wrap {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lga-navy) 0%, #2e3a6b 60%, #374785 100%);
    padding: 2.5rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.lga-login-wrap::before,
.lga-login-wrap::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.lga-login-wrap::before {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -150px;
}
.lga-login-wrap::after {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -80px;
}

.lga-login-box {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 64px rgba(0,0,0,.35);
    position: relative;
    z-index: 1;
}

.lga-login-box__brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

.lga-login-box__logo {
    color: var(--lga-primary);
    flex-shrink: 0;
}

.lga-login-box__site-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lga-navy);
}

.lga-login-box__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--lga-text);
    margin: 0 0 1.5rem;
}

/* WC login form inside the box — nadpisz domyślne WC/theme style */
.lga-login-box__content .woocommerce-form-login,
.lga-login-box__content .woocommerce-form-register {
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.lga-login-box__content .woocommerce-form-login__submit,
.lga-login-box__content button[type="submit"],
.lga-login-box__content input[type="submit"] {
    background: var(--lga-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: .65rem 1.5rem !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background .2s !important;
}

.lga-login-box__content button[type="submit"]:hover,
.lga-login-box__content input[type="submit"]:hover {
    background: var(--lga-primary-h) !important;
}

.lga-login-box__content input[type="text"],
.lga-login-box__content input[type="email"],
.lga-login-box__content input[type="password"] {
    border: 1.5px solid var(--lga-border) !important;
    border-radius: 8px !important;
    padding: .55rem .85rem !important;
    font-size: .95rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color .2s !important;
}

.lga-login-box__content input[type="text"]:focus,
.lga-login-box__content input[type="email"]:focus,
.lga-login-box__content input[type="password"]:focus {
    outline: none !important;
    border-color: var(--lga-primary) !important;
}

.lga-login-box__content .woocommerce-form-row {
    margin-bottom: 1rem !important;
}

.lga-login-box__content label {
    font-size: .85rem !important;
    font-weight: 600 !important;
    color: var(--lga-text) !important;
    margin-bottom: .35rem !important;
    display: block !important;
}

/* Link do rejestracji pod formularzem */
.lga-login-box__content .woocommerce-LostPassword,
.lga-login-box__content .woocommerce-form-login__rememberme {
    font-size: .84rem !important;
}

@media (max-width: 480px) {
    .lga-login-box {
        padding: 1.75rem 1.25rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — hero + cards
   ═══════════════════════════════════════════════════════════════════════════ */

.lga-dash-hero {
    background: linear-gradient(135deg, var(--lga-navy) 0%, var(--lga-navy-light) 60%, #374785 100%);
    border-radius: var(--lga-radius);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.lga-dash-hero__left {
    position: relative;
    z-index: 2;
}

.lga-dash-hero__greeting {
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    margin: 0 0 .4rem;
}

.lga-dash-hero__balance-row {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: .6rem;
}

.lga-dash-hero__pts {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-feature-settings: 'tnum';
}

.lga-dash-hero__pts-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,.7);
}

.lga-dash-hero__progress {
    margin-bottom: .85rem;
}

.lga-dash-hero__bar {
    width: 280px;
    max-width: 100%;
    height: 8px;
    background: rgba(255,255,255,.2);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: .35rem;
}

.lga-dash-hero__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lga-primary), #ffb347);
    border-radius: 100px;
    min-width: 4px;
    transition: width .5s ease;
}

.lga-dash-hero__bar-label {
    font-size: .78rem;
    color: rgba(255,255,255,.6);
}

.lga-dash-hero__btns {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

/* Tryb lite: tekst pod powitaniem zamiast salda punktów */
.lga-dash-hero__lead {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.5;
    max-width: 34rem;
    margin: 0 0 1.25rem;
}

.lga-btn--hero-ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.3);
    padding: .45rem 1rem;
    border-radius: 7px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
    display: inline-block;
    cursor: pointer;
}

.lga-btn--hero-ghost:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
    text-decoration: none;
}

.lga-btn--hero-solid {
    background: var(--lga-primary);
    color: #fff;
    border: 1.5px solid var(--lga-primary);
    padding: .45rem 1rem;
    border-radius: 7px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
    display: inline-block;
    cursor: pointer;
}

.lga-btn--hero-solid:hover {
    background: var(--lga-primary-h);
    border-color: var(--lga-primary-h);
    color: #fff;
    text-decoration: none;
}

.lga-dash-hero__deco {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 200px;
    height: 200px;
    opacity: .4;
    pointer-events: none;
    z-index: 1;
}

/* Kupon notice */
.lga-dash-notice {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1.1rem;
    background: var(--lga-gold-bg);
    border: 1px solid var(--lga-gold);
    border-radius: var(--lga-radius);
    color: #7d5a00;
    font-size: .9rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.lga-dash-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--lga-gold);
}

.lga-inline-code {
    background: rgba(0,0,0,.07);
    border-radius: 4px;
    padding: .1rem .45rem;
    font-family: monospace;
    font-size: .95em;
    letter-spacing: .04em;
}

/* Cards grid */
.lga-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.lga-dash-card {
    background: #fff;
    border: 1px solid #e4ecf0;
    border-radius: var(--lga-radius);
    padding: 1.35rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transition: box-shadow .2s;
}

.lga-dash-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.09);
}

.lga-dash-card__head {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.lga-dash-card__ico {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lga-dash-card__ico--teal  { background: var(--lga-teal-bg);  color: var(--lga-teal);  }
.lga-dash-card__ico--orange{ background: #fde8dc;              color: var(--lga-primary);}
.lga-dash-card__ico--navy  { background: #e2e5f0;              color: var(--lga-navy);  }
.lga-dash-card__ico--gold  { background: var(--lga-gold-bg);  color: var(--lga-gold);  }

.lga-dash-card__title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--lga-text);
    margin: 0;
    flex: 1;
}

.lga-dash-card__badge {
    background: var(--lga-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 100px;
    flex-shrink: 0;
}

.lga-dash-card__desc {
    font-size: .85rem;
    color: var(--lga-muted);
    margin: 0;
}

.lga-dash-card__empty {
    font-size: .85rem;
    color: var(--lga-muted);
    margin: 0;
    font-style: italic;
}

.lga-dash-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.lga-dash-card__list li a {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    color: var(--lga-text);
    text-decoration: none;
    padding: .35rem .5rem;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.lga-dash-card__list li a:hover {
    background: var(--lga-bg);
    color: var(--lga-primary);
    text-decoration: none;
}

.lga-dash-card__list-ico {
    font-size: 1rem;
    width: 1.2em;
    text-align: center;
}

.lga-dash-card__pending {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--lga-muted);
    margin: 0;
}

.lga-dash-card__cta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .84rem;
    font-weight: 600;
    color: var(--lga-primary);
    text-decoration: none;
    margin-top: auto;
    padding-top: .5rem;
    border-top: 1px solid #f0f4f6;
    transition: gap .15s;
}

.lga-dash-card__cta:hover {
    color: var(--lga-primary-h);
    gap: .6rem;
    text-decoration: none;
}

/* Ref code inline */
.lga-dash-refcode {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--lga-bg);
    border: 1px solid #e0eaec;
    border-radius: 7px;
    padding: .5rem .75rem;
}

.lga-dash-refcode__code {
    flex: 1;
    font-family: monospace;
    font-size: .88rem;
    color: var(--lga-text);
    background: none;
    border: none;
    padding: 0;
    letter-spacing: .04em;
}

.lga-dash-refcode__btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: none;
    border: 1px solid var(--lga-border);
    border-radius: 6px;
    padding: .3rem .65rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--lga-muted);
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}

.lga-dash-refcode__btn:hover {
    background: var(--lga-primary);
    color: #fff;
    border-color: var(--lga-primary);
}

/* Dashboard sections */
.lga-dash-section {
    background: #fff;
    border: 1px solid #e4ecf0;
    border-radius: var(--lga-radius);
    padding: 1.25rem 1.35rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
}

.lga-dash-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .9rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid #f0f4f6;
}

.lga-dash-section__title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--lga-text);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHARED COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Links */
.lga-link {
    color: var(--lga-primary);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
}

.lga-link:hover {
    text-decoration: underline;
    color: var(--lga-primary-h);
}

/* Alert */
.lga-alert {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.1rem;
    border-radius: var(--lga-radius);
    margin-bottom: 1.5rem;
    font-size: .95rem;
    flex-wrap: wrap;
}

.lga-alert--success {
    background: var(--lga-gold-bg);
    border: 1px solid var(--lga-gold);
    color: #7d5a00;
}

/* Coupon codes */
.lga-coupon-code,
.lga-ref-code,
.lga-code-big {
    background: #fff;
    border: 1.5px solid var(--lga-gold);
    border-radius: 6px;
    padding: .2rem .6rem;
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: .05em;
    color: var(--lga-text);
}

.lga-code-big {
    font-size: 1.3rem;
    padding: .35rem .9rem;
}

/* Progress bar */
.lga-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--lga-border);
    border-radius: 100px;
    overflow: hidden;
    margin: .4rem 0 .2rem;
}

.lga-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lga-primary), var(--lga-gold));
    border-radius: 100px;
    transition: width .4s ease;
    min-width: 4px;
}

.lga-progress-bar__pct {
    font-size: .78rem;
    color: var(--lga-muted);
    margin: 0;
}

/* Buttons */
.lga-btn {
    display: inline-block;
    padding: .5rem 1.1rem;
    border-radius: 7px;
    font-size: .9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s;
    line-height: 1.4;
    font-family: inherit;
}

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

.lga-btn--primary:hover {
    background: var(--lga-primary-h);
    color: #fff;
    text-decoration: none;
}

.lga-btn--secondary {
    background: #fff;
    color: var(--lga-primary);
    border: 1.5px solid var(--lga-primary);
}

.lga-btn--secondary:hover {
    background: var(--lga-bg);
    text-decoration: none;
}

/* Form fields */
.lga-field {
    padding: .45rem .75rem;
    border: 1.5px solid var(--lga-border);
    border-radius: 6px;
    font-size: .95rem;
    color: var(--lga-text);
    transition: border-color .2s;
    font-family: inherit;
}

.lga-field:focus {
    outline: none;
    border-color: var(--lga-primary);
}

.lga-field--copy {
    flex: 1;
    min-width: 200px;
    font-family: monospace;
    font-size: .88rem;
    background: var(--lga-bg);
}

/* Copy button */
.lga-copy-btn {
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.lga-copy-btn.lga-copied {
    background: var(--lga-success) !important;
    color: #fff !important;
    border-color: var(--lga-success) !important;
}

/* Copy row */
.lga-copy-row {
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Messages */
.lga-msg {
    padding: .7rem 1rem;
    border-radius: 6px;
    font-size: .9rem;
    margin-top: .75rem;
}

.lga-msg--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.lga-msg--error {
    background: #ffebee;
    color: var(--lga-error);
    border: 1px solid #ef9a9a;
}

.lga-muted {
    color: var(--lga-muted);
    font-size: .9rem;
}

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

.lga-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.lga-table th {
    text-align: left;
    padding: .5rem .75rem;
    border-bottom: 2px solid var(--lga-border);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--lga-muted);
    white-space: nowrap;
}

.lga-table td {
    padding: .6rem .75rem;
    border-bottom: 1px solid #f0f4f6;
    vertical-align: middle;
}

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

.lga-pts-plus  { color: var(--lga-success); font-weight: 700; }
.lga-pts-minus { color: var(--lga-error);   font-weight: 700; }

/* Status badges */
.lga-status {
    display: inline-block;
    padding: .18rem .55rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.lga-status--registered,
.lga-status--pending   { background: #e8f4fd; color: #1565c0; }
.lga-status--purchased,
.lga-status--completed { background: #e8f5e9; color: #2e7d32; }
.lga-status--rewarded  { background: var(--lga-gold-bg); color: #7d5a00; }
.lga-status--processing{ background: #fff3e0; color: #e65100; }
.lga-status--on-hold   { background: #f3e5f5; color: #6a1b9a; }
.lga-status--cancelled { background: #fce4ec; color: var(--lga-error); }
.lga-status--refunded  { background: #f5f5f5; color: #616161; }

/* ═══════════════════════════════════════════════════════════════════════════
   PUNKTY PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.lga-punkty__balance-hero {
    background: linear-gradient(135deg, var(--lga-navy) 0%, #374785 100%);
    color: #fff;
    border-radius: var(--lga-radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.lga-punkty__balance-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

.lga-punkty__balance-label {
    display: block;
    font-size: 1.1rem;
    opacity: .85;
    margin-top: .25rem;
}

.lga-punkty__balance-info {
    font-size: .85rem;
    opacity: .7;
    margin: .75rem 0 0;
}

.lga-punkty__exchange,
.lga-punkty__history {
    background: #fff;
    border: 1px solid var(--lga-border);
    border-radius: var(--lga-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--lga-shadow);
}

.lga-exchange-form {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

.lga-exchange-preview {
    font-size: .9rem;
    color: var(--lga-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   POLECENIA PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.lga-polecenia__intro {
    margin-bottom: 1.5rem;
}

.lga-polecenia__link-box {
    background: #fff;
    border: 1px solid var(--lga-border);
    border-radius: var(--lga-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--lga-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lga-polecenia__link-row label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--lga-muted);
    margin-bottom: .4rem;
}

.lga-polecenia__stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.lga-stat {
    background: #fff;
    border: 1px solid var(--lga-border);
    border-radius: var(--lga-radius);
    padding: 1.25rem 1.75rem;
    box-shadow: var(--lga-shadow);
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.lga-stat__value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--lga-primary);
}

.lga-stat__label {
    display: block;
    font-size: .8rem;
    color: var(--lga-muted);
    margin-top: .25rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MEMBER PRICES
   ═══════════════════════════════════════════════════════════════════════════ */

.lga-member-price-notice,
a.lga-login-for-price {
    font-size: .9rem;
    color: var(--lga-primary);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUPPRESS WC DEFAULT NAV (our sidebar replaces it)
   ═══════════════════════════════════════════════════════════════════════════ */

.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none !important;
}

/* WC usually floats content — reset inside our wrapper */
.lga-account-content .woocommerce-MyAccount-content {
    float: none !important;
    width: auto !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOGIN / REGISTER PAGE — guest, theme's tabbed form
   ═══════════════════════════════════════════════════════════════════════════ */

/* Navy gradient background over WC shortcode wrapper */
body.woocommerce-account:not(.logged-in) .entry-content .woocommerce {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #222A50 0%, #2e3a6b 60%, #374785 100%);
    padding: 3rem 1.5rem;
    min-height: 60vh;
    border-radius: 0;
}

/* Neutralize bzotech grid — card centered w pełnej szerokości */
body.woocommerce-account:not(.logged-in) .myaccount_registration_login {
    width: 100%;
    max-width: 720px;
}

body.woocommerce-account:not(.logged-in) .myaccount_registration_login .bzotech-row {
    display: flex;
    justify-content: center;
    margin: 0;
}

body.woocommerce-account:not(.logged-in) .myaccount_registration_login [class*="bzotech-col"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    float: none !important;
}

/* White card */
body.woocommerce-account:not(.logged-in) .myaccount-tab-title {
    background: #fff;
    padding: 1.75rem 2rem 0;
    border-radius: 16px 16px 0 0;
}

body.woocommerce-account:not(.logged-in) .myaccount-tab-content {
    background: #fff;
    padding: 0 2rem 2rem;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.28);
}

/* Tab navigation */
body.woocommerce-account:not(.logged-in) .myaccount-tab-title ul {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8eef2;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-account:not(.logged-in) .myaccount-tab-title ul li {
    margin: 0;
    list-style: none;
}

body.woocommerce-account:not(.logged-in) .myaccount-tab-title ul a {
    display: block;
    padding: .6rem 1.1rem;
    font-size: .82rem !important;
    font-weight: 700 !important;
    letter-spacing: .07em;
    color: var(--lga-muted) !important;
    text-decoration: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
    background: none;
}

body.woocommerce-account:not(.logged-in) .myaccount-tab-title ul li.active a,
body.woocommerce-account:not(.logged-in) .myaccount-tab-title ul a:hover {
    color: var(--lga-primary) !important;
    border-bottom-color: var(--lga-primary);
}

/* Tab content padding */
body.woocommerce-account:not(.logged-in) .tab-content {
    padding-top: 1.5rem;
}

/* Form inputs */
body.woocommerce-account:not(.logged-in) .woocommerce-Input.input-text {
    display: block;
    width: 100%;
    padding: .55rem .85rem !important;
    border: 1.5px solid var(--lga-border) !important;
    border-radius: 7px !important;
    font-size: .93rem;
    color: var(--lga-text);
    background: #fff !important;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    box-shadow: none !important;
    outline: none;
}

body.woocommerce-account:not(.logged-in) .woocommerce-Input.input-text:focus {
    border-color: var(--lga-primary) !important;
    box-shadow: 0 0 0 3px rgba(239,116,67,.12) !important;
}

/* Submit buttons */
body.woocommerce-account:not(.logged-in) .woocommerce-button.button,
body.woocommerce-account:not(.logged-in) button.woocommerce-Button.button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .7rem 1.25rem !important;
    background: var(--lga-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 7px !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background .2s;
    letter-spacing: .02em;
    box-shadow: none !important;
    text-shadow: none !important;
    margin-top: .5rem;
}

body.woocommerce-account:not(.logged-in) .woocommerce-button.button:hover,
body.woocommerce-account:not(.logged-in) button.woocommerce-Button.button:hover {
    background: var(--lga-primary-h) !important;
    color: #fff !important;
}

/* Form row spacing */
body.woocommerce-account:not(.logged-in) .woocommerce-form-row {
    margin-bottom: .85rem;
}

/* Lost password + remember me row */
body.woocommerce-account:not(.logged-in) .rememberme-lost_password {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
    font-size: .85rem;
}

body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword a {
    color: var(--lga-primary);
    text-decoration: none;
}

body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword a:hover {
    text-decoration: underline;
}

/* Privacy policy text */
body.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text {
    font-size: .78rem;
    color: var(--lga-muted);
    margin-bottom: .85rem;
    line-height: 1.5;
}

body.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text a {
    color: var(--lga-primary);
}

/* Notices above card */
body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
    width: 100%;
    max-width: 720px;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WC BUTTON OVERRIDES — unify all WC buttons with LGA design system
   ═══════════════════════════════════════════════════════════════════════════ */

/* Secondary (outlined) — Zobacz, Pobierz, Szczegóły
   Wysokie selektory (3 klasy) żeby pobić motyw i domyślne WC */
.woocommerce-account .lga-account-content a.button,
.woocommerce-account .lga-account-content button.button,
.woocommerce-account .lga-account-content input.button,
.woocommerce-account .lga-account-content .woocommerce-Button,
.woocommerce-account .lga-account-content .woocommerce-button {
    display: inline-flex !important;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem !important;
    border-radius: 7px !important;
    font-size: .875rem !important;
    font-weight: 600 !important;
    border: 1.5px solid var(--lga-primary) !important;
    background: #fff !important;
    color: var(--lga-primary) !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .2s, color .2s, border-color .2s;
    line-height: 1.4;
    font-family: inherit;
    box-shadow: none !important;
    text-shadow: none !important;
    letter-spacing: 0;
    vertical-align: middle;
}

.woocommerce-account .lga-account-content a.button:hover,
.woocommerce-account .lga-account-content button.button:hover,
.woocommerce-account .lga-account-content input.button:hover,
.woocommerce-account .lga-account-content .woocommerce-Button:hover,
.woocommerce-account .lga-account-content .woocommerce-button:hover {
    background: var(--lga-primary) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-color: var(--lga-primary) !important;
}

/* Primary (filled) — alt variant, submit buttons (Zapisz, Zamów ponownie) */
.woocommerce-account .lga-account-content .button.alt,
.woocommerce-account .lga-account-content input[type="submit"],
.woocommerce-account .lga-account-content button[type="submit"]:not(.lga-copy-btn) {
    background: var(--lga-primary) !important;
    color: #fff !important;
    border-color: var(--lga-primary) !important;
}

.woocommerce-account .lga-account-content .button.alt:hover,
.woocommerce-account .lga-account-content input[type="submit"]:hover,
.woocommerce-account .lga-account-content button[type="submit"]:not(.lga-copy-btn):hover {
    background: var(--lga-primary-h) !important;
    color: #fff !important;
    border-color: var(--lga-primary-h) !important;
}

/* Pagination — Następne / Poprzednie / numery stron */
.woocommerce-account .lga-account-content .woocommerce-pagination {
    display: flex;
    gap: .4rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.woocommerce-account .lga-account-content .woocommerce-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 .7rem !important;
    border-radius: 7px !important;
    font-size: .875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1.5px solid var(--lga-border) !important;
    color: var(--lga-text) !important;
    background: #fff !important;
    transition: background .2s, color .2s, border-color .2s;
    box-shadow: none !important;
}

.woocommerce-account .lga-account-content .woocommerce-pagination a.page-numbers:hover,
.woocommerce-account .lga-account-content .woocommerce-pagination .page-numbers.current {
    background: var(--lga-primary) !important;
    color: #fff !important;
    border-color: var(--lga-primary) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    /* Na mobile sidebar to fixed overlay który wysuwa się z lewej */
    .lga-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 200;
        width: var(--lga-sb-w) !important; /* zawsze pełna szerokość na mobile */
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .25s cubic-bezier(.4,0,.2,1);
        overflow: visible;
    }

    .admin-bar .lga-sidebar {
        top: 46px;
        height: calc(100vh - 46px);
    }

    .lga-sidebar__sticky {
        position: relative; /* na mobile nie sticky, sidebar jest fixed */
        top: auto;
        max-height: 100%;
        height: 100%;
    }

    .lga-sidebar.is-open {
        transform: translateX(0);
    }

    /* Na mobile ZAWSZE pokazuj etykiety — sidebar jest overlay w pełnej szerokości */
    .lga-sidebar .lga-sidebar__label,
    .lga-sidebar .lga-sidebar__brand-name,
    .lga-sidebar .lga-sidebar__user-info {
        display: block !important;
    }

    .lga-sidebar .lga-sidebar__top {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 1rem .9rem !important;
    }

    .lga-sidebar .lga-sidebar__brand {
        flex: 1 !important;
        justify-content: flex-start !important;
    }

    .lga-sidebar .lga-sidebar__toggle {
        display: flex !important;
    }

    .lga-sidebar .lga-sidebar__item {
        justify-content: flex-start !important;
        padding: .65rem .9rem !important;
        gap: .7rem !important;
        margin: 1px .5rem !important;
        box-shadow: none !important;
    }

    .lga-sidebar .lga-sidebar__item.is-active {
        box-shadow: inset 3px 0 0 var(--lga-primary) !important;
    }

    .lga-account-main {
        width: 100%;
    }

    .lga-topbar__mobile-toggle {
        display: flex;
    }

    .lga-topbar__user-info {
        display: none;
    }

    .lga-account-content {
        padding: 1rem;
    }

    .lga-dash-hero {
        padding: 1.5rem;
    }

    .lga-dash-hero__pts {
        font-size: 2.2rem;
    }

    .lga-dash-hero__deco {
        opacity: .2;
    }
}

@media (max-width: 600px) {
    .lga-dash-grid {
        grid-template-columns: 1fr;
    }

    .lga-exchange-form {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .lga-polecenia__stats {
        flex-direction: column;
    }

    .lga-dash-hero__bar {
        width: 100%;
    }
}
