/*
 * Client account demo on landings.
 * The inner screen uses the real account markup, so it is styled by assets/css/my-account.css
 * (+ order-received.css for the links table). This file only adds the browser frame,
 * small demo-only bits and the live demo invite block.
 */

.lb-acc-demo :where(h2, h3, p, ul) {
    margin: 0;
}

.lb-acc-demo__head {
    max-width: 780px;
    margin-bottom: 36px;
}

.lb-acc-demo__eyebrow {
    display: inline-flex;
    padding: 8px 18px;
    margin-bottom: 18px;
    border-radius: 20px;
    background: var(--blue-20);
    color: var(--black);
}

.lb-acc-demo__title {
    margin-bottom: 16px;
}

.lb-acc-demo__lead {
    color: #4a4a5e;
}

/* ---------- Browser frame ---------- */
.lb-acc-demo__window {
    position: relative;
    overflow: hidden;
    border: 1px solid #E4E6EE;
    border-radius: 28px;
    background: #F6F7FB;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 40px 80px -48px rgba(40, 40, 120, 0.45),
        0 18px 36px -28px rgba(11, 11, 31, 0.25);
}

.lb-acc-demo__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid #E4E6EE;
    background: rgba(255, 255, 255, 0.85);
}

.lb-acc-demo__dots {
    display: inline-flex;
    gap: 7px;
}

.lb-acc-demo__dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #FF6159;
}

.lb-acc-demo__dots i:nth-child(2) { background: #FFBD2E; }
.lb-acc-demo__dots i:nth-child(3) { background: #28C941; }

.lb-acc-demo__addr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 560px;
    min-width: 0;
    margin: 0 auto;
    padding: 7px 14px;
    overflow: hidden;
    border-radius: 10px;
    background: #F1F2F6;
    color: #6B7180;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lb-acc-demo__addr svg {
    flex-shrink: 0;
    color: #2F9E5B;
}

.lb-acc-demo__addr b {
    font-weight: 500;
    color: var(--black);
}

.lb-acc-demo__badge-demo {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Real account inside the frame ---------- */
.lb-acc-demo__app {
    padding: 28px;
}

.lb-acc-demo__app .woocommerce-MyAccount {
    display: flex;
    justify-content: space-between;
}

.lb-acc-demo__app .woocommerce-MyAccount-navigation.lb-acc-nav {
    top: 120px;
    flex-basis: 248px;
    max-width: 248px;
}

.lb-acc-demo__app .lb-orders-head__title {
    margin: 0;
}

.lb-acc-demo__app .lb-order__main {
    cursor: pointer;
}

/* Same 4 orders animate in each time the list opens */
.lb-acc-demo__view.is-entering {
    animation: lbAdIn 0.35s ease both;
}

@keyframes lbAdIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.lb-acc-demo__back {
    margin-bottom: 14px;
    font-size: 15px;
}

.lb-acc-demo__back .lb-acc-ico {
    transform: rotate(180deg);
}

.lb-acc-demo__app .lb-order-links__header {
    cursor: default;
}

.lb-acc-demo__app .lb-order-links__content {
    max-height: none;
    margin-top: 16px;
    overflow: visible;
}

.lb-acc-demo__app .lb-order-links__arrow {
    display: none;
}

.lb-acc-demo__app .lb-order-links__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.lb-acc-demo__hint {
    position: relative;
    padding: 6px 12px 6px 26px;
    border-radius: 999px;
    background: rgba(244, 162, 97, 0.14);
    color: #B5651D;
    font-size: 13px;
    font-weight: 500;
}

.lb-acc-demo__hint::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 11px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: #F4A261;
    animation: lbAdPing 1.6s ease-out infinite;
}

@keyframes lbAdPing {
    0% { box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.6); }
    100% { box-shadow: 0 0 0 9px rgba(244, 162, 97, 0); }
}

.lb-acc-demo__saved {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px !important;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(0, 184, 107, 0.1);
    color: #00995A;
    font-size: 14px;
    font-weight: 500;
}

.lb-acc-demo__saved[hidden] {
    display: none;
}

.lb-acc-demo__saved .lb-acc-ico {
    width: 18px;
    height: 18px;
}

.lb-acc-demo__app .lb-links-table tr.is-updated td {
    animation: lbAdFlash 1.6s ease;
}

@keyframes lbAdFlash {
    0%, 30% { background: rgba(0, 211, 122, 0.16); }
    100% { background: transparent; }
}

.lb-acc-demo__app .lb-order-notice--processing,
.lb-acc-demo__app .lb-order-notice--in-work,
.lb-acc-demo__app .lb-order-notice--pending {
    margin: 0 0 16px;
    padding: 14px 20px;
    border-left: 4px solid #F4A261;
    border-radius: 0 12px 12px 0;
    background: var(--grey-15, rgba(0, 0, 0, 0.04));
}

.lb-acc-demo__app .lb-order-notice--in-work { border-left-color: var(--blue); }
.lb-acc-demo__app .lb-order-notice--pending { border-left-color: #E0A800; }

.lb-acc-demo__app .lb-links-table a {
    color: var(--blue);
    word-break: break-all;
}

.lb-acc-demo__app .lb-acc-fset {
    margin-top: 20px;
}

.lb-acc-demo__logout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
    background: var(--white);
    border: 1px solid rgba(11, 11, 31, 0.08);
    border-radius: 24px;
}

.lb-acc-demo__logout .lb-order__ico {
    --lb-o-accent: var(--blue);
}

.lb-acc-demo__logout p {
    max-width: 420px;
    color: #4a4a5e;
}

/* ==========================================================================
   Live demo invite
   ========================================================================== */
.lb-acc-invite {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin-top: 36px;
    padding: 48px 52px;
    overflow: hidden;
    border-radius: 32px;
    color: var(--white);
    border: 1px solid rgba(180, 180, 255, 0.16);
    background: var(--surface-indigo);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -34px rgba(22, 22, 58, 0.65);
    isolation: isolate;
}

.lb-acc-invite::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(80% 80% at 70% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(80% 80% at 70% 40%, #000 0%, transparent 75%);
}

.lb-acc-invite.is-pulse {
    animation: lbInvPulse 1.2s ease;
}

@keyframes lbInvPulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 102, 255, 0.55), 0 40px 80px -40px rgba(70, 70, 220, 0.65); }
    100% { box-shadow: 0 0 0 22px rgba(102, 102, 255, 0), 0 40px 80px -40px rgba(70, 70, 220, 0.65); }
}

.lb-acc-invite__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
}

.lb-acc-invite__badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5EEBB0;
    animation: lbInvLive 1.8s ease-out infinite;
}

@keyframes lbInvLive {
    0% { box-shadow: 0 0 0 0 rgba(94, 235, 176, 0.7); }
    100% { box-shadow: 0 0 0 10px rgba(94, 235, 176, 0); }
}

.lb-acc-invite__title {
    margin: 18px 0 12px !important;
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--white);
}

.lb-acc-invite__text {
    max-width: 520px;
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.lb-acc-invite__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 22px 0 28px !important;
    padding: 0;
    list-style: none;
}

.lb-acc-invite__points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
}

.lb-acc-invite__points .lb-acc-ico {
    width: 20px;
    height: 20px;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 50%;
    background: rgba(94, 235, 176, 0.22);
    color: #5EEBB0;
    stroke-width: 3;
}

.lb-acc-invite__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
}

.lb-acc-invite__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 28px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    color: #6666FF !important;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 16px 34px -12px rgba(11, 11, 60, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lb-acc-invite__btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(102, 102, 255, 0.18), transparent);
    transform: skewX(-20deg);
    animation: lbInvShine 3.2s ease-in-out infinite;
}

@keyframes lbInvShine {
    0%, 55% { left: -60%; }
    100% { left: 130%; }
}

.lb-acc-invite__btn .lb-acc-ico {
    transition: transform 0.25s ease;
}

.lb-acc-invite__link {
    color: var(--white) !important;
    font-size: 16px;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 5px;
    transition: text-decoration-color 0.2s;
}

@media (hover: hover) {
    .lb-acc-invite__btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 40px -14px rgba(11, 11, 60, 0.6);
    }

    .lb-acc-invite__btn:hover .lb-acc-ico {
        transform: translateX(4px);
    }

    .lb-acc-invite__link:hover {
        text-decoration-color: var(--white);
    }

    .lb-acc-invite__cred:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.55);
    }
}

.lb-acc-invite__creds {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.lb-acc-invite__or {
    margin-right: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.lb-acc-invite__cred {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 9px 38px 9px 14px;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    cursor: copy;
    transition: background 0.2s, border-color 0.2s;
}

.lb-acc-invite__cred::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    background: currentColor;
    opacity: 0.7;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='12' height='12' rx='2'/><path d='M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='12' height='12' rx='2'/><path d='M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1'/></svg>") center / contain no-repeat;
}

.lb-acc-invite__cred.is-copied {
    border-style: solid;
    border-color: #5EEBB0;
}

.lb-acc-invite__cred.is-copied::after {
    color: #5EEBB0;
    opacity: 1;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5 9-10'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5 9-10'/></svg>");
}

.lb-acc-invite__cred small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.lb-acc-invite__cred code {
    padding: 0;
    background: none;
    color: var(--white);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 15px;
    font-weight: 600;
}

/* Floating mini cards (art) */
.lb-acc-invite__art {
    position: relative;
    height: 300px;
}

.lb-acc-invite__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 280px;
    height: 280px;
    margin: -140px 0 0 -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%);
    filter: blur(10px);
}

.lb-acc-invite__card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 280px;
    padding: 14px 16px;
    box-sizing: border-box;
    border-radius: 18px;
    background: var(--white);
    color: var(--black);
    box-shadow: 0 24px 40px -18px rgba(11, 11, 60, 0.55);
    animation: lbInvFloat 6s ease-in-out infinite;
}

.lb-acc-invite__card > span:nth-child(2) {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lb-acc-invite__card b {
    font-size: 15px;
    font-weight: 600;
}

.lb-acc-invite__card small {
    font-size: 13px;
    color: #6B7180;
}

.lb-acc-invite__card em {
    font-style: normal;
    font-size: 20px;
    font-weight: 700;
    color: #00B86B;
}

.lb-acc-invite__card--a { top: 6px; right: 8%; }
.lb-acc-invite__card--b { top: 112px; left: 0; animation-delay: -2s; }
.lb-acc-invite__card--c { top: 218px; right: 2%; animation-delay: -4s; }

@keyframes lbInvFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.lb-acc-invite__ico {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.lb-acc-invite__ico .lb-acc-ico { width: 20px; height: 20px; }
.lb-acc-invite__ico--done { color: #00B86B; background: rgba(0, 184, 107, 0.12); }
.lb-acc-invite__ico--work { color: var(--blue); background: rgba(102, 102, 255, 0.12); }
.lb-acc-invite__ico--proc { color: #D9772B; background: rgba(244, 162, 97, 0.16); }
.lb-acc-invite__ico--work .lb-acc-ico { animation: lbOrderSpin 6s linear infinite; }

.lb-acc-invite__bar {
    position: absolute;
    right: 16px;
    bottom: 10px;
    left: 70px;
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: #EEF0F6;
}

.lb-acc-invite__bar i {
    display: block;
    width: 66%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), #9A8CFF);
    animation: lbInvBar 2.4s ease-in-out infinite alternate;
}

@keyframes lbInvBar {
    from { width: 52%; }
    to { width: 72%; }
}

@media (prefers-reduced-motion: reduce) {
    .lb-acc-invite__card,
    .lb-acc-invite__btn::after,
    .lb-acc-invite__badge i,
    .lb-acc-invite__bar i,
    .lb-acc-demo__hint::before,
    .lb-acc-demo__view.is-entering {
        animation: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .lb-acc-demo__app {
        padding: 22px;
    }

    .lb-acc-demo__app .woocommerce-MyAccount {
        gap: 22px;
    }

    .lb-acc-demo__app .woocommerce-MyAccount-navigation.lb-acc-nav {
        flex-basis: 220px;
        max-width: 220px;
        padding: 16px;
    }
}

@media (max-width: 1024px) {
    .lb-acc-invite {
        grid-template-columns: 1fr;
        padding: 40px 36px;
    }

    .lb-acc-invite__art {
        display: none;
    }
}

@media (max-width: 820px) {
    .lb-acc-demo__app .woocommerce-MyAccount {
        flex-direction: column;
    }

    .lb-acc-demo__app .woocommerce-MyAccount-navigation.lb-acc-nav {
        flex-basis: auto;
        max-width: 100%;
    }

    .lb-acc-demo__app .lb-acc-nav__user {
        display: none;
    }

    .lb-acc-demo__app .lb-acc-nav ul.lb-acc-nav__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .lb-acc-demo__head {
        margin-bottom: 24px;
    }

    .lb-acc-demo__window {
        border-radius: 22px;
    }

    .lb-acc-demo__bar {
        gap: 10px;
        padding: 10px 12px;
    }

    .lb-acc-demo__dots {
        display: none;
    }

    .lb-acc-demo__addr {
        font-size: 12px;
    }

    .lb-acc-demo__app {
        padding: 12px;
    }

    .lb-acc-demo__app .lb-acc-nav ul.lb-acc-nav__list {
        grid-template-columns: 1fr 1fr;
    }

    .lb-acc-demo__app .lb-order-links__edit .lb-cart__row--head {
        display: none;
    }

    .lb-acc-invite {
        margin-top: 24px;
        padding: 30px 22px;
        border-radius: 26px;
    }

    .lb-acc-invite__text {
        font-size: 16px;
    }

    .lb-acc-invite__points {
        flex-direction: column;
        margin: 20px 0 24px !important;
    }

    .lb-acc-invite__actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .lb-acc-invite__btn {
        justify-content: center;
        padding: 17px 20px;
    }

    .lb-acc-invite__creds {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .lb-acc-invite__or {
        grid-column: 1 / -1;
        text-align: center;
    }

    .lb-acc-invite__cred {
        flex-direction: column;
        gap: 2px;
    }
}

.lb-acc-demo__url {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
