/*
 * Lincs Lootcave OS — Account Command Centre
 *
 * Dashboard-only source of truth.
 *
 * Owns:
 * - /my-account/ dashboard experience
 * - Command Centre hero
 * - collector rank summary
 * - account statistics
 * - dashboard shortcut cards
 * - profile readiness
 * - recent orders
 *
 * Does NOT own:
 * - WooCommerce account shell
 * - account navigation
 * - Collector Progress
 * - Notifications
 * - Addresses
 * - Orders endpoint
 * - Account Details
 * - Bonus Chests
 */


/* =========================================================
   1. DASHBOARD ROOT
========================================================= */

body.ll-account-page.ll-account-endpoint-dashboard
.woocommerce-MyAccount-content {
    color: var(--ll-account-text);
}

/*
 * WooCommerce prints its stock dashboard greeting/instructions
 * before our Command Centre. The custom dashboard replaces them.
 */
body.ll-account-page.ll-account-endpoint-dashboard
.woocommerce-MyAccount-content > p {
    display: none !important;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-centre {
    display: grid;
    gap: 18px;
    width: 100%;
}


/* =========================================================
   2. CINEMATIC DASHBOARD HERO
========================================================= */

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-hero {
    position: relative;
    isolation: isolate;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 28px;
    align-items: stretch;

    min-height: 350px;

    padding: 38px;

    overflow: hidden;

    border: 1px solid rgba(216, 180, 74, .20);
    border-radius: 28px;

    background:
        radial-gradient(circle at 88% 20%,
            rgba(156, 255, 22, .12),
            transparent 25%),
        radial-gradient(circle at 68% 5%,
            rgba(139, 77, 255, .28),
            transparent 34%),
        linear-gradient(135deg,
            rgba(11, 15, 25, .98),
            rgba(20, 12, 35, .98) 58%,
            rgba(7, 11, 18, .99));

    box-shadow:
        0 24px 65px rgba(0, 0, 0, .30),
        inset 0 1px 0 rgba(255, 255, 255, .05);
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-hero::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    pointer-events: none;

    background:
        linear-gradient(115deg,
            rgba(255, 255, 255, .045),
            transparent 22%),
        radial-gradient(circle at 20% 105%,
            rgba(216, 180, 74, .08),
            transparent 34%);
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-hero::after {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    right: -170px;
    top: -190px;

    z-index: -1;

    border: 1px solid rgba(216, 180, 74, .11);
    border-radius: 50%;

    box-shadow:
        0 0 0 46px rgba(139, 77, 255, .025),
        0 0 0 94px rgba(216, 180, 74, .018);

    pointer-events: none;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-hero__copy {
    align-self: center;

    min-width: 0;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-kicker {
    display: block;

    margin-bottom: 15px;

    color: #d9bcff;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: .20em;
    line-height: 1.2;

    text-transform: uppercase;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-hero h2 {
    max-width: 760px;

    margin: 0;

    color: var(--ll-account-gold-bright);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: .92;

    text-shadow:
        0 4px 28px rgba(216, 180, 74, .08);
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-hero p {
    max-width: 720px;

    margin: 22px 0 0;

    color: rgba(226, 230, 239, .72);

    font-size: 16px;
    font-weight: 650;
    line-height: 1.65;
}


/* =========================================================
   3. HERO ACTIONS
========================================================= */

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 26px;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-actions a,
body.ll-account-page.ll-account-endpoint-dashboard
.ll-quick-actions a,
body.ll-account-page.ll-account-endpoint-dashboard
.ll-empty-state a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 11px 18px;

    border: 1px solid rgba(216, 180, 74, .28);
    border-radius: 999px;

    background:
        linear-gradient(135deg,
            rgba(216, 180, 74, .18),
            rgba(216, 180, 74, .07));

    color: #f8dd80 !important;

    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;

    text-decoration: none !important;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-actions a:hover,
body.ll-account-page.ll-account-endpoint-dashboard
.ll-quick-actions a:hover,
body.ll-account-page.ll-account-endpoint-dashboard
.ll-empty-state a:hover {
    transform: translateY(-2px);

    border-color: rgba(156, 255, 22, .36);

    background:
        linear-gradient(135deg,
            rgba(216, 180, 74, .22),
            rgba(139, 77, 255, .10));

    box-shadow:
        0 12px 28px rgba(0, 0, 0, .25);
}


/* =========================================================
   4. COLLECTOR RANK PANEL
========================================================= */

body.ll-account-page.ll-account-endpoint-dashboard
.ll-rank-panel {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;

    padding: 26px 22px;

    overflow: hidden;

    border: 1px solid rgba(216, 180, 74, .22);
    border-radius: 24px;

    background:
        radial-gradient(circle at 50% 10%,
            rgba(139, 77, 255, .27),
            transparent 40%),
        linear-gradient(180deg,
            rgba(24, 20, 40, .82),
            rgba(8, 11, 18, .92));

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 18px 44px rgba(0, 0, 0, .28);

    text-align: center;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-rank-panel__badge {
    display: block;

    width: 132px;
    height: 132px;

    margin: 0 auto 14px;

    object-fit: contain;

    filter:
        drop-shadow(0 14px 24px rgba(0, 0, 0, .42))
        drop-shadow(0 0 22px rgba(156, 255, 22, .16));
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-rank-panel > span:first-of-type {
    color: rgba(224, 228, 238, .55);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;

    text-transform: uppercase;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-rank-panel strong {
    display: block;

    margin: 7px 0;

    color: var(--ll-account-gold-bright);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    line-height: 1;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-rank-panel__era {
    display: block;

    margin-bottom: 8px;

    color: var(--ll-account-lime);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .15em;

    text-transform: uppercase;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-rank-panel small {
    color: rgba(218, 223, 234, .62);

    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-rank-panel__xp {
    margin-top: 14px;

    color: var(--ll-account-gold-bright);

    font-size: 13px;
    font-weight: 900;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-rank-progress,
body.ll-account-page.ll-account-endpoint-dashboard
.ll-readiness-bar {
    width: 100%;
    height: 8px;

    margin-top: 14px;

    overflow: hidden;

    border: 1px solid rgba(216, 180, 74, .15);
    border-radius: 999px;

    background: rgba(255, 255, 255, .045);
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-rank-progress i,
body.ll-account-page.ll-account-endpoint-dashboard
.ll-readiness-bar i {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(90deg,
            #91ed36,
            #d8ff68,
            #e0ba4f);

    box-shadow:
        0 0 18px rgba(156, 255, 22, .25);
}


/* =========================================================
   5. ACCOUNT STATISTICS
========================================================= */

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 12px;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-stat {
    position: relative;

    min-width: 0;
    min-height: 128px;

    padding: 21px;

    overflow: hidden;

    border: 1px solid rgba(216, 180, 74, .13);
    border-radius: 20px;

    background:
        radial-gradient(circle at 100% 0%,
            rgba(139, 77, 255, .10),
            transparent 38%),
        linear-gradient(155deg,
            rgba(22, 28, 41, .84),
            rgba(8, 11, 18, .93));

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04);
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-stat span {
    display: block;

    margin-bottom: 11px;

    color: rgba(214, 219, 231, .52);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;

    text-transform: uppercase;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-stat strong {
    display: block;

    color: var(--ll-account-gold-bright);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 2.5vw, 40px);
    line-height: 1;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-stat small {
    display: block;

    margin-top: 9px;

    color: rgba(216, 221, 231, .58);

    font-size: 11px;
    font-weight: 650;
}


/* =========================================================
   6. PRIMARY DASHBOARD CARDS
========================================================= */

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 180px;

    padding: 24px;

    overflow: hidden;

    border: 1px solid rgba(216, 180, 74, .14);
    border-radius: 22px;

    background:
        linear-gradient(145deg,
            rgba(24, 30, 43, .80),
            rgba(8, 11, 18, .94));

    color: inherit !important;

    text-decoration: none !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-card:hover {
    transform: translateY(-3px);

    border-color: rgba(216, 180, 74, .30);

    box-shadow:
        0 18px 38px rgba(0, 0, 0, .26),
        inset 0 1px 0 rgba(255, 255, 255, .05);
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-card-icon {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    margin-bottom: 24px;

    border: 1px solid rgba(216, 180, 74, .18);
    border-radius: 14px;

    background:
        linear-gradient(145deg,
            rgba(216, 180, 74, .14),
            rgba(139, 77, 255, .10));

    font-size: 20px;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-card strong {
    color: var(--ll-account-gold-bright);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.05;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-card small {
    margin-top: 10px;

    color: rgba(215, 220, 230, .60);

    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
}


/* =========================================================
   7. LOWER DASHBOARD PANELS
========================================================= */

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-panel {
    min-width: 0;

    padding: 25px;

    border: 1px solid rgba(216, 180, 74, .13);
    border-radius: 22px;

    background:
        linear-gradient(155deg,
            rgba(20, 26, 39, .82),
            rgba(7, 10, 17, .94));

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .035);
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 18px;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-section-head span {
    display: block;

    margin-bottom: 5px;

    color: rgba(214, 219, 231, .52);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;

    text-transform: uppercase;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-section-head h3 {
    margin: 0;

    color: var(--ll-account-gold-bright);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 2.5vw, 36px);
    line-height: 1;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-section-head > strong {
    color: var(--ll-account-lime);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-section-head > a {
    color: var(--ll-account-gold-bright) !important;

    font-size: 12px;
    font-weight: 900;

    text-decoration: none !important;
}


/* =========================================================
   8. PROFILE CHECKLIST
========================================================= */

body.ll-account-page.ll-account-endpoint-dashboard
.ll-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;

    margin: 18px 0 0;
    padding: 0;

    list-style: none;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-checklist li {
    position: relative;

    min-height: 46px;

    padding: 12px 12px 12px 38px;

    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 14px;

    background: rgba(255, 255, 255, .022);

    color: rgba(220, 224, 233, .62);

    font-size: 12px;
    font-weight: 750;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-checklist li::before {
    content: "•";

    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: rgba(255, 255, 255, .25);

    font-size: 20px;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-checklist li.is-complete {
    color: #d9ff9e;

    border-color: rgba(156, 255, 22, .14);

    background: rgba(156, 255, 22, .035);
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-checklist li.is-complete::before {
    content: "✓";

    color: var(--ll-account-lime);

    font-size: 14px;
    font-weight: 900;
}


/* =========================================================
   9. QUICK ACTIONS
========================================================= */

body.ll-account-page.ll-account-endpoint-dashboard
.ll-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-quick-actions a {
    width: 100%;
}


/* =========================================================
   10. RECENT ORDERS
========================================================= */

body.ll-account-page.ll-account-endpoint-dashboard
.ll-order-timeline {
    display: grid;

    gap: 8px;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;

    gap: 18px;
    align-items: center;

    min-height: 64px;

    padding: 13px 15px;

    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 15px;

    background: rgba(255, 255, 255, .022);

    color: inherit !important;

    text-decoration: none !important;

    transition:
        background .18s ease,
        border-color .18s ease;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-order-row:hover {
    border-color: rgba(216, 180, 74, .20);

    background: rgba(216, 180, 74, .04);
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-order-row strong {
    display: block;

    color: var(--ll-account-gold-bright);

    font-size: 14px;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-order-row small {
    display: block;

    margin-top: 3px;

    color: rgba(215, 220, 230, .48);

    font-size: 10px;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-order-row span {
    color: rgba(224, 228, 236, .68);

    font-size: 11px;
    font-weight: 800;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-order-row em {
    color: var(--ll-account-gold-bright);

    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}


/* =========================================================
   11. EMPTY STATE
========================================================= */

body.ll-account-page.ll-account-endpoint-dashboard
.ll-empty-state {
    padding: 26px;

    border: 1px dashed rgba(216, 180, 74, .18);
    border-radius: 18px;

    background: rgba(255, 255, 255, .018);

    text-align: center;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-empty-state strong {
    display: block;

    color: var(--ll-account-gold-bright);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
}

body.ll-account-page.ll-account-endpoint-dashboard
.ll-empty-state p {
    margin: 9px auto 18px;

    color: rgba(216, 221, 231, .60);

    line-height: 1.55;
}


/* =========================================================
   12. TABLET
========================================================= */

@media (max-width: 1180px) {
    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-hero {
        grid-template-columns: minmax(0, 1fr) 245px;

        padding: 30px;
    }

    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   13. MOBILE
========================================================= */

@media (max-width: 900px) {
    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-centre {
        gap: 12px;
    }

    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-hero {
        grid-template-columns: 1fr;

        min-height: 0;

        padding: 24px 20px;
    }

    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-hero h2 {
        font-size: clamp(38px, 11vw, 56px);
    }

    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-rank-panel {
        min-height: 250px;
    }

    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-grid,
    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-split {
        grid-template-columns: 1fr;
    }

    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-card {
        min-height: 150px;
    }
}


/* =========================================================
   14. SMALL MOBILE
========================================================= */

@media (max-width: 560px) {
    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-hero {
        padding: 21px 17px;

        border-radius: 20px;
    }

    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-actions a {
        width: 100%;
    }

    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-stats {
        grid-template-columns: 1fr;
    }

    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-stat,
    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-card,
    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-panel {
        border-radius: 18px;
    }

    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-checklist,
    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-quick-actions {
        grid-template-columns: 1fr;
    }

    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-section-head {
        flex-direction: column;
    }

    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-order-row {
        grid-template-columns: 1fr;

        gap: 6px;
    }
}


/* =========================================================
   15. ACCESSIBILITY
========================================================= */

body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-actions a:focus-visible,
body.ll-account-page.ll-account-endpoint-dashboard
.ll-quick-actions a:focus-visible,
body.ll-account-page.ll-account-endpoint-dashboard
.ll-command-card:focus-visible,
body.ll-account-page.ll-account-endpoint-dashboard
.ll-order-row:focus-visible {
    outline: 2px solid var(--ll-account-lime);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-actions a,
    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-quick-actions a,
    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-command-card,
    body.ll-account-page.ll-account-endpoint-dashboard
    .ll-order-row {
        transition: none;
    }
}
