/**
 * NoPixels Account-Dashboard (1.6.0) — Spieler-Hub auf /mein-konto/.
 * Scope: nur WooCommerce-Account-Seiten (.woocommerce-account).
 */

/* ---------- Woo-Standardtext auf der Dashboard-Startseite ausblenden ---- */
.npfc-account-dashboard .woocommerce-MyAccount-content > p:not([class]) {
    display: none;
}

/* ---------- Kopfkarte -------------------------------------------------- */
.npfc-hub { --npfc-green: #43D17A; --npfc-ink: #141a24; }

.npfc-hub-head {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #16202b 0%, #1c2a38 60%, #1a2f33 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-left: 4px solid var(--npfc-tier, var(--npfc-green));
    border-radius: 14px;
    padding: 22px 24px;
    color: #eef3f8;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.npfc-hub-avatar img {
    border-radius: 50%;
    border: 3px solid var(--npfc-tier, var(--npfc-green));
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .07);
    display: block;
}
.npfc-hub-id { flex: 1 1 260px; min-width: 240px; }
.npfc-hub-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #fff;
    line-height: 1.2;
}
.npfc-hub-badges { margin: 6px 0 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.npfc-hub-tier,
.npfc-hub-level {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
}
.npfc-hub-tier { background: var(--npfc-tier, var(--npfc-green)); color: var(--npfc-ink); border-color: transparent; }

.npfc-hub-xpbar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    overflow: hidden;
    max-width: 420px;
}
.npfc-hub-xpbar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--npfc-green), #7be3a6);
    transition: width .6s ease;
}
.npfc-hub-xphint { margin-top: 6px; font-size: 12px; color: #b9c6d4; }

/* Discord-Status-Pill */
.npfc-hub-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff !important;
    background: rgba(255, 255, 255, .06);
    transition: transform .15s ease, background .15s ease;
}
.npfc-hub-discord:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .12); }
.npfc-hub-discord-dot { width: 9px; height: 9px; border-radius: 50%; background: #f0b429; }
.npfc-hub-discord.is-linked .npfc-hub-discord-dot { background: var(--npfc-green); box-shadow: 0 0 8px var(--npfc-green); }

/* ---------- Kachel-Grid ------------------------------------------------- */
.npfc-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.npfc-hub-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 16px;
    border-radius: 12px;
    background: #1a2430;
    border: 1px solid rgba(255, 255, 255, .07);
    text-decoration: none !important;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.npfc-hub-tile:hover {
    transform: translateY(-3px);
    border-color: var(--npfc-green);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
}
.npfc-hub-tile-icon { font-size: 26px; line-height: 1; }
.npfc-hub-tile-label { font-size: 15px; font-weight: 800; color: #fff; }
.npfc-hub-tile-desc { font-size: 12px; color: #9fb0c0; }

/* ---------- Account-Navigation dunkel + Akzent -------------------------- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #16202b;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid rgba(255, 255, 255, .05) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
    color: #c9d6e2 !important;
    font-weight: 600;
    transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background: rgba(67, 209, 122, .08);
    color: #fff !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active {
    background: rgba(67, 209, 122, .12) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 #43D17A;
}
/* Avatar-Block oben in der Woodmart-Sidebar einfärben */
.woocommerce-account .woocommerce-MyAccount-navigation .wd-my-account-links,
.woocommerce-account .woocommerce-MyAccount-navigation-link { background: transparent; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 640px) {
    .npfc-hub-head { padding: 16px; gap: 12px; }
    .npfc-hub-name { font-size: 18px; }
    .npfc-hub-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .npfc-hub-tile { padding: 14px 12px; }
}
