/* ════════════════════════════════════════════════════════════════════════
   BARKLY DASHBOARD v3 — Claude Design 2026-05-13
   Source: Barkly Dashboard.html (paper/cream surface, Nutri-Wheel hero)
   ────────────────────────────────────────────────────────────────────────
   Scoped under .bk-dash-v3 wrapper. Body-level rules use body.has-bk-dash-v3.
   Keyframes prefixed bkv3- to avoid colliding with existing bk-* / bkv2-*.
   Loaded only on dashboard endpoint (gated in functions.php enqueue).
   ════════════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS — local to v3 scope ── */
.bk-dash-v3 {
    --bk3-green: #3D5A3E;
    --bk3-ink: #2A332B;
    --bk3-gold: #C8922A;
    --bk3-gold-soft: #E4B86A;
    --bk3-cream: #F5F0E8;
    --bk3-paper: #FAF7F1;
    --bk3-white: #ffffff;
    --bk3-ink-75: rgba(42,51,43,.75);
    --bk3-ink-55: rgba(42,51,43,.55);
    --bk3-ink-35: rgba(42,51,43,.35);
    --bk3-line: rgba(42,51,43,.08);
    --bk3-line-strong: rgba(42,51,43,.14);
}

/* ── BODY scope (dashboard endpoint only) ── */
body.has-bk-dash-v3 {
    background: #F5F0E8 !important;   /* cream from design file */
    min-height: 100vh;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--bk3-ink, #2A332B);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Hide WC default navigation on dashboard (we use our own sidebar) */
body.has-bk-dash-v3 .woocommerce-MyAccount-navigation {
    display: none !important;
}
/* Full-width content area */
body.has-bk-dash-v3 .woocommerce-MyAccount-content {
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    float: none !important;
}
body.has-bk-dash-v3 .woocommerce::before,
body.has-bk-dash-v3 .woocommerce::after { display: none !important; }
body.has-bk-dash-v3 .guten-post-content,
body.has-bk-dash-v3 .entry-content { padding: 0 !important; }

/* Hide WC dashboard.php template's default "Hello [name] (not [name]? Log out)"
   paragraph — owner directive 2026-05-13. WC's template prints this <p> as
   the first child of .woocommerce-MyAccount-content BEFORE the
   woocommerce_account_dashboard hook fires (where our v3 wrapper renders).
   Multiple selector forms to catch every WC version + container class. */
body.has-bk-dash-v3 .woocommerce-MyAccount-content > p:first-child,
body.has-bk-dash-v3 .woocommerce-account-content > p:first-child,
body.has-bk-dash-v3 .bk-account-content > p:first-child,
body.has-bk-dash-v3 .woocommerce > p:first-child {
    display: none !important;
}

/* Also defensive: hide any inline notice/info that WC might inject above the dashboard */
body.has-bk-dash-v3 .bk-account-content .woocommerce-notices-wrapper:empty {
    display: none;
}

/* ════════════════════════════════════════════════════════════════════════
   NUCLEAR BACKGROUND OVERRIDES (owner 2026-05-13)
   ────────────────────────────────────────────────────────────────────────
   Defends against any inherited dark-glass bg from v2 CSS, site CSS, or
   theme styles bleeding through onto the dashboard. !important + repetition
   so nothing can override these on the dashboard endpoint.
   ════════════════════════════════════════════════════════════════════════ */
body.has-bk-dash-v3 {
    background: #F5F0E8 !important;
}
body.has-bk-dash-v3 .bk-dash-v3 {
    background: #F5F0E8 !important;
}
body.has-bk-dash-v3 .bk-dash-v3 .app {
    background: #F5F0E8 !important;
}
body.has-bk-dash-v3 .bk-dash-v3 .side {
    background: #FAF7F1 !important;
}
body.has-bk-dash-v3 .bk-dash-v3 main {
    background: transparent !important;
}
/* Defeat any leaked v2 rules that scope under .bk-dashboard-v2 — that
   class no longer wraps the dashboard (my-account.php early-returns),
   but if any cached HTML still has it, neutralise here. */
body.has-bk-dash-v3 .bk-dashboard-v2 {
    background: transparent !important;
    color: inherit !important;
}

/* ════════════════════════════════════════════════════════════════════════
   SPA SECTIONS (owner spec 2026-05-13)
   ────────────────────────────────────────────────────────────────────────
   Pre-loaded sub-page content. Hidden by default. Shown on nav click.
   WC content (tables, forms, buttons) re-skinned to match v3 cream theme.
   ════════════════════════════════════════════════════════════════════════ */
.bk-dash-v3 .spa-section {
    padding: 24px 0 80px;
    animation: bkv3-fadeIn 0.25s ease;
    color: var(--bk3-ink);
}
@keyframes bkv3-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bk-dash-v3 .spa-section h1,
.bk-dash-v3 .spa-section h2,
.bk-dash-v3 .spa-section h3 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--bk3-ink);
    font-weight: 600;
}
.bk-dash-v3 .spa-section h2 { font-size: clamp(22px, 2.4vw, 28px); }
.bk-dash-v3 .spa-section h3 { font-size: 18px; margin: 16px 0 8px; }
.bk-dash-v3 .spa-section p {
    color: var(--bk3-ink-75);
    line-height: 1.6;
    margin-bottom: 12px;
}
.bk-dash-v3 .spa-section a {
    color: var(--bk3-gold);
    text-decoration: none;
}
.bk-dash-v3 .spa-section a:hover { color: var(--bk3-ink); text-decoration: underline; }

/* WC tables (orders, subscriptions) */
.bk-dash-v3 .spa-section table,
.bk-dash-v3 .spa-section .woocommerce-orders-table,
.bk-dash-v3 .spa-section .my_account_orders {
    width: 100%;
    border-collapse: collapse;
    background: var(--bk3-paper);
    border: 1px solid var(--bk3-line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
}
.bk-dash-v3 .spa-section th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bk3-ink-55);
    padding: 14px 16px;
    border-bottom: 1px solid var(--bk3-line);
    text-align: left;
    background: rgba(42,51,43,.04);
}
.bk-dash-v3 .spa-section td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--bk3-line);
    color: var(--bk3-ink);
    font-size: 14px;
    vertical-align: middle;
}
.bk-dash-v3 .spa-section tr:last-child td { border-bottom: 0; }

/* WC buttons in SPA sections — match dashboard pill style */
.bk-dash-v3 .spa-section .button,
.bk-dash-v3 .spa-section button[type="submit"],
.bk-dash-v3 .spa-section .woocommerce-Button {
    background: var(--bk3-ink) !important;
    color: var(--bk3-cream) !important;
    border-radius: 999px !important;
    padding: 10px 22px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif !important;
    transition: transform .2s, background .2s;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}
.bk-dash-v3 .spa-section .button:hover,
.bk-dash-v3 .spa-section button[type="submit"]:hover,
.bk-dash-v3 .spa-section .woocommerce-Button:hover {
    background: var(--bk3-green) !important;
    transform: translateY(-1px);
}

/* WC form fields in SPA sections — match dashboard input style */
.bk-dash-v3 .spa-section input[type="text"],
.bk-dash-v3 .spa-section input[type="email"],
.bk-dash-v3 .spa-section input[type="tel"],
.bk-dash-v3 .spa-section input[type="password"],
.bk-dash-v3 .spa-section input[type="number"],
.bk-dash-v3 .spa-section select,
.bk-dash-v3 .spa-section textarea {
    background: var(--bk3-paper);
    border: 1px solid var(--bk3-line-strong);
    color: var(--bk3-ink);
    border-radius: 10px;
    padding: 10px 14px;
    width: 100%;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    transition: border-color .2s;
}
.bk-dash-v3 .spa-section input:focus,
.bk-dash-v3 .spa-section select:focus,
.bk-dash-v3 .spa-section textarea:focus {
    border-color: var(--bk3-gold);
    outline: none;
}
.bk-dash-v3 .spa-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--bk3-ink-75);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.bk-dash-v3 .spa-section .form-row {
    margin-bottom: 14px;
}

/* Status badges (order status, sub status) */
.bk-dash-v3 .spa-section .woocommerce-orders-table__cell-order-status mark,
.bk-dash-v3 .spa-section mark {
    background: rgba(61,90,62,.10);
    color: var(--bk3-green);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: inline-block;
}

/* WC addresses block */
.bk-dash-v3 .spa-section .woocommerce-Addresses,
.bk-dash-v3 .spa-section .u-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}
@media (max-width: 768px) {
    .bk-dash-v3 .spa-section .woocommerce-Addresses,
    .bk-dash-v3 .spa-section .u-columns {
        grid-template-columns: 1fr;
    }
}
.bk-dash-v3 .spa-section .woocommerce-Address {
    background: var(--bk3-paper);
    border: 1px solid var(--bk3-line);
    border-radius: 14px;
    padding: 20px;
}
.bk-dash-v3 .spa-section .woocommerce-Address-title h3 {
    color: var(--bk3-ink);
    margin-top: 0;
}

/* WC notices inside SPA */
.bk-dash-v3 .spa-section .woocommerce-message,
.bk-dash-v3 .spa-section .woocommerce-info {
    background: rgba(61,90,62,.08);
    border-left: 3px solid var(--bk3-green);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--bk3-ink);
    margin-bottom: 14px;
}
.bk-dash-v3 .spa-section .woocommerce-error {
    background: rgba(168,82,82,.08);
    border-left: 3px solid #a85252;
    border-radius: 8px;
    padding: 12px 16px;
    color: #a85252;
    margin-bottom: 14px;
}

/* Status badge (subs, orders) inside SPA tables */
.bk-dash-v3 .spa-section .spa-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(42,51,43,.08);
    color: var(--bk3-ink-75);
}
.bk-dash-v3 .spa-section .spa-badge.is-green {
    background: rgba(61,90,62,.12);
    color: var(--bk3-green);
}
.bk-dash-v3 .spa-section .spa-badge.is-amber {
    background: rgba(200,146,42,.14);
    color: var(--bk3-gold);
}
.bk-dash-v3 .spa-section .spa-badge.is-red {
    background: rgba(168,82,82,.12);
    color: #a85252;
}
.bk-dash-v3 .spa-section .spa-subs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bk3-paper);
    border: 1px solid var(--bk3-line);
    border-radius: 14px;
    overflow: hidden;
}

/* Box-sizing scoped to dashboard children only */
.bk-dash-v3,
.bk-dash-v3 * { box-sizing: border-box; }

.bk-dash-v3 a { color: inherit; text-decoration: none; }
.bk-dash-v3 button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.bk-dash-v3 h1,
.bk-dash-v3 h2,
.bk-dash-v3 h3,
.bk-dash-v3 h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--bk3-ink);
    text-wrap: balance;
}
.bk-dash-v3 h1 { line-height: 1.05; letter-spacing: -0.025em; }
.bk-dash-v3 h2 { line-height: 1.1; letter-spacing: -0.018em; }
.bk-dash-v3 p { margin: 0; text-wrap: pretty; }
.bk-dash-v3 ::selection { background: rgba(200,146,42,.3); color: var(--bk3-ink); }
.bk-dash-v3 :focus-visible { outline: 2px solid var(--bk3-gold); outline-offset: 3px; border-radius: 6px; }

/* ============ LAYOUT ============ */
.bk-dash-v3 .app {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}
@media (max-width: 900px) {
    .bk-dash-v3 .app { grid-template-columns: 1fr; }
}

/* ── SIDEBAR ── */
.bk-dash-v3 .side {
    background: var(--bk3-paper);
    border-right: 1px solid var(--bk3-line);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
@media (max-width: 900px) {
    .bk-dash-v3 .side { display: none; }
}
.bk-dash-v3 .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 22px;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
}
.bk-dash-v3 .brand .mark {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bk3-ink);
    display: grid;
    place-items: center;
    color: var(--bk3-cream);
}
.bk-dash-v3 .brand .mark svg { width: 18px; height: 18px; }
.bk-dash-v3 .nav-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.bk-dash-v3 .nav-list .label {
    padding: 0 10px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bk3-ink-55);
}
.bk-dash-v3 .nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--bk3-ink-75);
    transition: background .2s, color .2s, transform .15s;
}
.bk-dash-v3 .nav-list a .ico { width: 20px; text-align: center; font-size: 15px; }
.bk-dash-v3 .nav-list a:hover { background: rgba(42,51,43,.05); color: var(--bk3-ink); }
.bk-dash-v3 .nav-list a.active {
    background: var(--bk3-ink);
    color: var(--bk3-cream);
    box-shadow: 0 6px 14px -10px rgba(42,51,43,.6);
}
.bk-dash-v3 .nav-list a.active:hover { background: var(--bk3-ink); }
.bk-dash-v3 .user-card {
    margin-top: auto;
    border: 1px solid var(--bk3-line);
    border-radius: 14px;
    padding: 12px;
    background: var(--bk3-cream);
}
.bk-dash-v3 .user-card .row { display: flex; align-items: center; gap: 10px; }
.bk-dash-v3 .user-card .av {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bk3-green);
    color: var(--bk3-cream);
    display: grid; place-items: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
}
.bk-dash-v3 .user-card .who { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.bk-dash-v3 .user-card .who small {
    display: block;
    font-weight: 400;
    font-size: 11.5px;
    color: var(--bk3-ink-55);
    margin-top: 2px;
    letter-spacing: .01em;
}
.bk-dash-v3 .signout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bk3-ink-75);
    transition: background .2s, color .2s;
}
.bk-dash-v3 .signout:hover { background: rgba(42,51,43,.05); color: var(--bk3-ink); }

/* ── MAIN ── */
.bk-dash-v3 main {
    padding: 40px 48px 120px;
    max-width: 1280px;
    width: 100%;
}
@media (max-width: 900px) {
    .bk-dash-v3 main { padding: 24px 20px 100px; }
}

/* ── HERO ROW ── */
.bk-dash-v3 .hero-row {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
    padding: 32px 0 56px;
    border-bottom: 1px solid var(--bk3-line);
    margin-bottom: 48px;
}
@media (max-width: 1100px) {
    .bk-dash-v3 .hero-row { grid-template-columns: 1fr; gap: 32px; }
}
.bk-dash-v3 .greeting h1 { font-size: clamp(34px, 4.2vw, 52px); margin-bottom: 10px; }
.bk-dash-v3 .greeting .sub {
    color: var(--bk3-ink-75);
    font-size: 17px;
    margin-bottom: 32px;
    max-width: 480px;
}

.bk-dash-v3 .stat-row { display: flex; flex-wrap: wrap; gap: 14px; }
.bk-dash-v3 .stat-pill {
    background: var(--bk3-paper);
    border: 1px solid var(--bk3-line);
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 180px;
    transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
}
.bk-dash-v3 .stat-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(200,146,42,.4);
    box-shadow: 0 14px 28px -20px rgba(42,51,43,.3);
}
.bk-dash-v3 .stat-pill .lbl {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--bk3-ink-55);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bk-dash-v3 .stat-pill .val {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}
.bk-dash-v3 .stat-pill .val .edit {
    color: var(--bk3-gold);
    font-size: 13px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    opacity: .7;
    transition: opacity .2s;
    background: none;
    border: 0;
    padding: 0;
}
.bk-dash-v3 .stat-pill .val .edit:hover { opacity: 1; }
.bk-dash-v3 .pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--bk3-green);
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(61,90,62,.5);
    animation: bkv3-pulse 1.8s ease-out infinite;
}
@keyframes bkv3-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(61,90,62,.55); }
    70%  { box-shadow: 0 0 0 9px rgba(61,90,62,0); }
    100% { box-shadow: 0 0 0 0 rgba(61,90,62,0); }
}

/* ============ NUTRI-WHEEL ============ */
.bk-dash-v3 .wheel-stage {
    position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    perspective: 1500px;
}
.bk-dash-v3 .wheel {
    position: relative;
    width: min(420px, 90vw);
    aspect-ratio: 1/1;
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.2,.7,.2,1);
    transform: rotateX(6deg) rotateY(-4deg);
}
.bk-dash-v3 .wheel-halo {
    position: absolute; inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(200,146,42,.22), transparent 55%),
        radial-gradient(circle at 50% 80%, rgba(61,90,62,.15), transparent 60%);
    filter: blur(14px);
    animation: bkv3-halo 6s ease-in-out infinite;
}
@keyframes bkv3-halo {
    0%, 100% { opacity: .85; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.04); }
}

.bk-dash-v3 .wheel-rings { position: absolute; inset: 0; pointer-events: none; }
.bk-dash-v3 .wheel-rings svg { width: 100%; height: 100%; overflow: visible; }
.bk-dash-v3 .ring-spin-cw  { transform-origin: center; animation: bkv3-spin 80s linear infinite; }
.bk-dash-v3 .ring-spin-ccw { transform-origin: center; animation: bkv3-spin 60s linear infinite reverse; }
@keyframes bkv3-spin { to { transform: rotate(360deg); } }

/* Gold sweep */
.bk-dash-v3 .sweep {
    position: absolute; inset: 3%;
    border-radius: 50%; overflow: hidden;
    mask: radial-gradient(circle, transparent 36%, #000 37%);
    -webkit-mask: radial-gradient(circle, transparent 36%, #000 37%);
}
.bk-dash-v3 .sweep::before {
    content: "";
    position: absolute; inset: -1px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        rgba(200,146,42,0) 0deg,
        rgba(200,146,42,0) 270deg,
        rgba(200,146,42,.4) 340deg,
        rgba(200,146,42,.95) 358deg,
        rgba(200,146,42,0) 360deg);
    animation: bkv3-sweep 10s linear infinite;
}
@keyframes bkv3-sweep { to { transform: rotate(360deg); } }

/* Donut macros ring */
.bk-dash-v3 .donut { position: absolute; inset: 10%; pointer-events: none; }
.bk-dash-v3 .donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bk-dash-v3 .donut circle {
    fill: none; stroke-width: 6; stroke-linecap: round;
    transition: stroke-dasharray 1s cubic-bezier(.4,0,.2,1);
}
.bk-dash-v3 .donut .track { stroke: rgba(42,51,43,.08); stroke-width: 6; }
.bk-dash-v3 .donut .p { stroke: var(--bk3-green); }
.bk-dash-v3 .donut .f { stroke: var(--bk3-gold); }
.bk-dash-v3 .donut .u { stroke: #7A8B5C; }

/* Center scan card */
.bk-dash-v3 .wheel-core {
    position: absolute; left: 50%; top: 50%;
    width: 62%; aspect-ratio: 1/1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%, #FBF8F2 0%, #F0E6D0 70%, #E2D2A8 100%);
    transform: translate(-50%, -50%) translateZ(60px);
    box-shadow:
        0 30px 60px -28px rgba(42,51,43,.45),
        inset 0 0 0 1px rgba(42,51,43,.10),
        inset 0 -14px 32px rgba(200,146,42,.12);
    padding: 10%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
}
.bk-dash-v3 .scan-status {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 9.5px;
    letter-spacing: .22em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bk3-green);
    margin-bottom: 12px;
}
.bk-dash-v3 .live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--bk3-green);
    box-shadow: 0 0 0 0 rgba(61,90,62,.5);
    animation: bkv3-pulse 1.6s ease-out infinite;
}
.bk-dash-v3 .dog-name {
    font-family: 'Fraunces', serif;
    font-size: 30px; font-weight: 600;
    color: var(--bk3-ink);
    line-height: 1;
    letter-spacing: -0.02em;
    transition: opacity .3s ease, transform .3s ease;
}
.bk-dash-v3 .dog-meta {
    margin-top: 6px;
    font-size: 11.5px; font-weight: 500;
    color: var(--bk3-ink-75);
    letter-spacing: .02em;
    transition: opacity .3s ease;
}
.bk-dash-v3 .recipe-badge {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px;
    padding: 5px 11px;
    border-radius: 99px;
    background: rgba(61,90,62,.10);
    color: var(--bk3-green);
    font-size: 10.5px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    transition: opacity .3s ease;
}
.bk-dash-v3 .kcal-row {
    margin-top: 14px;
    display: flex; align-items: baseline; gap: 6px;
}
.bk-dash-v3 .kcal-row .num {
    font-family: 'Fraunces', serif;
    font-size: 38px; font-weight: 600;
    letter-spacing: -0.03em; line-height: 1;
    color: var(--bk3-gold);
}
.bk-dash-v3 .kcal-row .unit {
    font-size: 11px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--bk3-ink-55);
}
.bk-dash-v3 .wheel-core.swap .dog-name,
.bk-dash-v3 .wheel-core.swap .dog-meta,
.bk-dash-v3 .wheel-core.swap .recipe-badge { opacity: 0; transform: translateY(-4px); }

/* Floating chips */
.bk-dash-v3 .chip {
    position: absolute;
    background: var(--bk3-paper);
    border: 1px solid var(--bk3-line);
    border-radius: 99px;
    padding: 7px 12px;
    font-size: 11.5px; font-weight: 600;
    color: var(--bk3-ink);
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
    box-shadow: 0 12px 24px -16px rgba(42,51,43,.4), 0 1px 0 rgba(255,255,255,.6) inset;
    animation: bkv3-floatChip 6s ease-in-out infinite;
    transition: opacity .3s ease;
}
.bk-dash-v3 .chip .v {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--bk3-gold);
    font-weight: 600;
}
.bk-dash-v3 .chip-1 { top: -2%;    left: -2%;   transform: translateZ(90px);  animation-delay: -1s; }
.bk-dash-v3 .chip-2 { top: 14%;    right: -8%;  transform: translateZ(70px);  animation-delay: -3s; }
.bk-dash-v3 .chip-3 { bottom: 8%;  right: -2%;  transform: translateZ(100px); animation-delay: -2s; }
.bk-dash-v3 .chip-4 { bottom: -2%; left: 6%;    transform: translateZ(80px);  animation-delay: -4s; }
@keyframes bkv3-floatChip {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -10px; }
}

/* Dog dots switcher */
.bk-dash-v3 .dog-dots {
    display: flex; gap: 10px;
    margin-top: 32px;
    align-items: center;
    flex-wrap: wrap;
}
.bk-dash-v3 .dot-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--bk3-line);
    background: var(--bk3-paper);
    position: relative;
    transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--bk3-ink-75);
    cursor: pointer;
    display: grid; place-items: center;
}
.bk-dash-v3 .dot-btn:hover { transform: translateY(-2px); border-color: rgba(200,146,42,.5); }
.bk-dash-v3 .dot-btn.active {
    background: var(--bk3-ink);
    color: var(--bk3-cream);
    border-color: var(--bk3-ink);
    box-shadow: 0 8px 16px -8px rgba(42,51,43,.5);
}

/* ============ SECTION HEADERS ============ */
.bk-dash-v3 .sec { margin-bottom: 56px; }
.bk-dash-v3 .sec-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.bk-dash-v3 .sec-head h2 { font-size: clamp(24px, 2.4vw, 30px); }
.bk-dash-v3 .sec-head .lnk {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 600;
    color: var(--bk3-gold);
}
.bk-dash-v3 .sec-head .lnk:hover { text-decoration: underline; }
.bk-dash-v3 .add-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px;
    border-radius: 99px;
    background: var(--bk3-ink);
    color: var(--bk3-cream);
    font-size: 13px; font-weight: 600;
    transition: transform .2s, background .2s;
}
.bk-dash-v3 .add-btn:hover { transform: translateY(-1px); background: var(--bk3-green); }

/* ── PETS grid ── */
.bk-dash-v3 .pets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
@media (max-width: 1100px) {
    .bk-dash-v3 .pets { grid-template-columns: 1fr; }
}
.bk-dash-v3 .pet {
    background: var(--bk3-paper);
    border: 1px solid var(--bk3-line);
    border-radius: 18px;
    padding: 20px;
    display: flex; gap: 18px;
    align-items: center;
    transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
    position: relative;
}
.bk-dash-v3 .pet:hover {
    transform: translateY(-3px);
    border-color: rgba(200,146,42,.35);
    box-shadow: 0 18px 32px -24px rgba(42,51,43,.3);
}
.bk-dash-v3 .pet:hover .edit-btn { opacity: 1; }
.bk-dash-v3 .pet .av {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%, #FBF8F2, #E2D2A8);
    display: grid; place-items: center;
    font-size: 30px;
    flex-shrink: 0;
    border: 1px solid var(--bk3-line);
    overflow: hidden;
}
.bk-dash-v3 .pet .av img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.bk-dash-v3 .pet .meta { flex: 1; min-width: 0; }
.bk-dash-v3 .pet .name-row {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 4px; flex-wrap: wrap;
}
.bk-dash-v3 .pet .name {
    font-family: 'Fraunces', serif;
    font-weight: 600; font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--bk3-ink);
    line-height: 1.1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 160px;
}
.bk-dash-v3 .pet .badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px;
    border-radius: 99px;
    background: rgba(61,90,62,.12);
    color: var(--bk3-green);
    font-size: 10px; font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.bk-dash-v3 .pet .badge.is-amber {
    background: rgba(200,146,42,.12);
    color: var(--bk3-gold);
}
.bk-dash-v3 .pet .badge.is-red {
    background: rgba(168,82,82,.12);
    color: #a85252;
}
.bk-dash-v3 .pet .breed { font-size: 13px; color: var(--bk3-ink-55); }
.bk-dash-v3 .pet .stats {
    display: flex; align-items: center; gap: 10px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--bk3-ink-75);
    flex-wrap: wrap;
}
.bk-dash-v3 .pet .stats .sep { opacity: .4; }
.bk-dash-v3 .pet .stats .price {
    color: var(--bk3-gold);
    font-weight: 600;
    font-family: 'Fraunces', serif;
    font-size: 14.5px;
}
.bk-dash-v3 .edit-btn {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bk3-cream);
    border: 1px solid var(--bk3-line);
    display: grid; place-items: center;
    color: var(--bk3-ink-75);
    opacity: 0;
    transition: opacity .2s, background .2s, color .2s;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
}
.bk-dash-v3 .edit-btn:hover { background: var(--bk3-ink); color: var(--bk3-cream); }
@media (max-width: 900px) {
    .bk-dash-v3 .edit-btn { opacity: 1; }
}

/* Empty pet state */
.bk-dash-v3 .pet-empty {
    background: var(--bk3-paper);
    border: 1px dashed var(--bk3-line-strong);
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    color: var(--bk3-ink-75);
}
.bk-dash-v3 .pet-empty .ico { font-size: 32px; display: block; margin-bottom: 12px; }
.bk-dash-v3 .pet-empty p { margin-bottom: 14px; font-size: 14.5px; }
.bk-dash-v3 .pet-empty a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px;
    border-radius: 99px;
    background: var(--bk3-ink);
    color: var(--bk3-cream);
    font-size: 13px; font-weight: 600;
    transition: transform .2s, background .2s;
}
.bk-dash-v3 .pet-empty a:hover { transform: translateY(-1px); background: var(--bk3-green); }

/* ── QUICK ACTIONS ── */
.bk-dash-v3 .quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 1100px) { .bk-dash-v3 .quick { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .bk-dash-v3 .quick { grid-template-columns: 1fr; } }
.bk-dash-v3 .qcard {
    background: var(--bk3-paper);
    border: 1px solid var(--bk3-line);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    text-align: left;
    transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.bk-dash-v3 .qcard:hover {
    transform: translateY(-3px);
    border-color: rgba(200,146,42,.4);
    box-shadow: 0 16px 28px -22px rgba(42,51,43,.3);
}
.bk-dash-v3 .qcard .ico { font-size: 24px; margin-bottom: 14px; display: block; }
.bk-dash-v3 .qcard h3 { font-size: 16px; line-height: 1.2; margin-bottom: 6px; }
.bk-dash-v3 .qcard p { font-size: 13px; color: var(--bk3-ink-55); }

/* ── SPLIT (orders + delivery) ── */
.bk-dash-v3 .split {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 18px;
}
@media (max-width: 1100px) { .bk-dash-v3 .split { grid-template-columns: 1fr; } }
.bk-dash-v3 .panel {
    background: var(--bk3-paper);
    border: 1px solid var(--bk3-line);
    border-radius: 18px;
    padding: 24px;
}
.bk-dash-v3 .panel-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; gap: 12px;
}
.bk-dash-v3 .panel-head h2 { font-size: 20px; }

/* orders table */
.bk-dash-v3 .orders { display: flex; flex-direction: column; }
.bk-dash-v3 .o-head {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1.4fr 1fr;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(42,51,43,.04);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bk3-ink-55);
}
.bk-dash-v3 .o-row {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1.4fr 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    align-items: center;
    transition: background .2s;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
}
.bk-dash-v3 .o-row + .o-row { border-top: 1px solid var(--bk3-line); }
.bk-dash-v3 .o-row:hover { background: rgba(200,146,42,.08); }
.bk-dash-v3 .o-num {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
}
.bk-dash-v3 .o-status {
    display: inline-flex; align-items: center; gap: 7px;
    font-weight: 500;
    color: var(--bk3-ink-75);
    font-size: 13.5px;
}
.bk-dash-v3 .o-status .d {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--bk3-gold);
}
.bk-dash-v3 .o-status.is-green .d { background: var(--bk3-green); }
.bk-dash-v3 .o-status.is-red .d   { background: #a85252; }
.bk-dash-v3 .o-amt {
    font-weight: 600;
    color: var(--bk3-ink);
    text-align: right;
}

.bk-dash-v3 .orders-empty {
    padding: 22px;
    color: var(--bk3-ink-55);
    font-size: 13px;
    text-align: center;
}

/* Delivery panel */
.bk-dash-v3 .delivery .pre {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 11px;
    border-radius: 99px;
    background: rgba(200,146,42,.12);
    color: var(--bk3-gold);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.bk-dash-v3 .delivery .pre .d {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--bk3-gold);
    box-shadow: 0 0 0 0 rgba(200,146,42,.4);
    animation: bkv3-pulseGold 1.8s ease-out infinite;
}
@keyframes bkv3-pulseGold {
    0%   { box-shadow: 0 0 0 0 rgba(200,146,42,.55); }
    70%  { box-shadow: 0 0 0 8px rgba(200,146,42,0); }
    100% { box-shadow: 0 0 0 0 rgba(200,146,42,0); }
}
.bk-dash-v3 .delivery h3 {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 6px;
}
.bk-dash-v3 .delivery .when {
    font-size: 13px;
    color: var(--bk3-ink-55);
    margin-bottom: 20px;
}
.bk-dash-v3 .progress {
    height: 6px;
    border-radius: 99px;
    background: rgba(42,51,43,.08);
    overflow: hidden;
    margin-bottom: 14px;
}
.bk-dash-v3 .progress > i {
    display: block; height: 100%;
    background: var(--bk3-gold);
    border-radius: 99px;
    transition: width 1s cubic-bezier(.4,0,.2,1);
}
.bk-dash-v3 .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 22px;
}
.bk-dash-v3 .step {
    font-size: 10px; font-weight: 600;
    color: var(--bk3-ink-55);
    letter-spacing: .06em;
    text-align: center;
    line-height: 1.3;
}
.bk-dash-v3 .step.done { color: var(--bk3-ink); }
.bk-dash-v3 .step.curr { color: var(--bk3-gold); }

.bk-dash-v3 .d-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bk-dash-v3 .d-actions button,
.bk-dash-v3 .d-actions a {
    flex: 1;
    padding: 11px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--bk3-line-strong);
    background: var(--bk3-cream);
    color: var(--bk3-ink);
    transition: transform .2s, border-color .2s, background .2s;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.bk-dash-v3 .d-actions button:hover,
.bk-dash-v3 .d-actions a:hover {
    transform: translateY(-1px);
    border-color: var(--bk3-ink);
    background: var(--bk3-paper);
}
.bk-dash-v3 .d-actions .primary {
    background: var(--bk3-ink);
    color: var(--bk3-cream);
    border-color: var(--bk3-ink);
}
.bk-dash-v3 .d-actions .primary:hover {
    background: var(--bk3-green);
    border-color: var(--bk3-green);
}

/* Day-picker (inline, re-skinned to match v3) */
.bk-dash-v3 .v3-day-picker {
    display: none;
    margin-top: 10px;
    padding: 12px;
    background: var(--bk3-cream);
    border: 1px solid var(--bk3-line);
    border-radius: 12px;
}
.bk-dash-v3 .v3-day-picker.is-open { display: block; }
.bk-dash-v3 .v3-day-picker .row {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.bk-dash-v3 .v3-day-picker select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--bk3-line-strong);
    border-radius: 8px;
    background: var(--bk3-white);
    color: var(--bk3-ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    min-width: 110px;
}
.bk-dash-v3 .v3-day-picker .save {
    padding: 8px 16px;
    border-radius: 99px;
    background: var(--bk3-ink);
    color: var(--bk3-cream);
    font-size: 12px; font-weight: 600;
    border: none; cursor: pointer;
}
.bk-dash-v3 .v3-day-picker .save:hover { background: var(--bk3-green); }
.bk-dash-v3 .v3-day-picker .cancel {
    padding: 8px 14px;
    border-radius: 99px;
    background: transparent;
    color: var(--bk3-ink-75);
    border: 1px solid var(--bk3-line-strong);
    font-size: 12px; font-weight: 600;
    cursor: pointer;
}
.bk-dash-v3 .v3-day-picker .cancel:hover { color: var(--bk3-ink); border-color: var(--bk3-ink); }
.bk-dash-v3 .v3-day-picker .hint {
    font-size: 11px;
    color: var(--bk3-ink-55);
    margin: 8px 0 0;
}
.bk-dash-v3 .v3-day-msg {
    display: none;
    margin-top: 8px;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 8px;
}
.bk-dash-v3 .v3-day-msg.is-ok    { background: rgba(61,90,62,.10);  color: var(--bk3-green); display: block; }
.bk-dash-v3 .v3-day-msg.is-error { background: rgba(168,82,82,.10); color: #a85252; display: block; }

/* ── Reveal ── */
.bk-dash-v3 [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .55s ease-out, transform .55s ease-out;
    transition-delay: calc(var(--i, 0) * 60ms);
}
.bk-dash-v3 [data-reveal].on { opacity: 1; transform: none; }

/* ── MOBILE BOTTOM NAV ── */
.bk-dash-v3 .botnav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(250,247,241,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--bk3-line);
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    justify-content: space-around;
}
@media (max-width: 900px) { .bk-dash-v3 .botnav { display: flex; } }
.bk-dash-v3 .botnav a {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    padding: 6px 4px;
    border-radius: 10px;
    font-size: 10.5px; font-weight: 600;
    color: var(--bk3-ink-55);
    transition: color .2s;
}
.bk-dash-v3 .botnav a .ico { font-size: 18px; }
.bk-dash-v3 .botnav a.active { color: var(--bk3-ink); }

/* ── Mobile header ── */
.bk-dash-v3 .m-head {
    display: none;
    align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--bk3-line);
    background: var(--bk3-paper);
    position: sticky; top: 0;
    z-index: 40;
}
@media (max-width: 900px) { .bk-dash-v3 .m-head { display: flex; } }
.bk-dash-v3 .m-head .brand { padding: 0; font-size: 18px; }
.bk-dash-v3 .m-head .brand .mark { width: 28px; height: 28px; }
.bk-dash-v3 .m-head .av {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bk3-green);
    color: var(--bk3-cream);
    display: grid; place-items: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    .bk-dash-v3 [data-reveal] { opacity: 1; transform: none; transition: none; }
    .bk-dash-v3 .chip { animation: none; }
    .bk-dash-v3 .ring-spin-cw,
    .bk-dash-v3 .ring-spin-ccw,
    .bk-dash-v3 .sweep::before,
    .bk-dash-v3 .wheel-halo { animation: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   DASHBOARD-ROOT NUCLEAR BG + TEXT OVERRIDE (owner 2026-05-14 — 5th pass)
   ────────────────────────────────────────────────────────────────────────
   v2.css has `body.woocommerce-account.has-bk-dashboard-v2 { #0e1a10 }`
   at L690 — 2 body classes = higher specificity than single-class v3
   rule. We BEAT it with 3 body classes + html prefix + multiple
   redundant declarations. Belt + braces + suspenders.
   ════════════════════════════════════════════════════════════════════════ */
html body.has-bk-dash-v3,
html body.has-bk-dash-v3.has-bk-dashboard-v2,
html body.has-bk-dash-v3.woocommerce-account,
html body.has-bk-dash-v3.has-bk-dashboard-v2.woocommerce-account {
    background-color: #F5F0E8 !important;
    background: #F5F0E8 !important;
    background-image: none !important;
}
body.has-bk-dash-v3 .bk-dash-v3 {
    background: #F5F0E8 !important;
    color: #2A332B !important;
}
body.has-bk-dash-v3 .bk-dash-v3 main,
body.has-bk-dash-v3 .bk-dash-v3 .main {
    background: #F5F0E8 !important;
    color: #2A332B !important;
}

/* Text colors on cream — dark ink reads correctly */
body.has-bk-dash-v3 .bk-dash-v3 h1,
body.has-bk-dash-v3 .bk-dash-v3 h2,
body.has-bk-dash-v3 .bk-dash-v3 h3,
body.has-bk-dash-v3 .bk-dash-v3 h4 {
    color: #2A332B !important;
}
body.has-bk-dash-v3 .bk-dash-v3 p,
body.has-bk-dash-v3 .bk-dash-v3 span {
    color: rgba(42, 51, 43, 0.75) !important;
}

/* ════════════════════════════════════════════════════════════
   SUB-PAGES (owner directive 2026-05-14):
   Make orders / subscriptions / edit-address / edit-account /
   moj-pas / moje-preporuke use the SAME cream surface as the
   v3 dashboard. Removes the dark-glass legacy v2 shell appearance.
   Scoped to body.has-bk-dashboard-v2 WITHOUT .has-bk-dash-v3 so
   the dashboard root (which carries both classes) is unaffected.
   ════════════════════════════════════════════════════════════ */
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) {
    background: #F5F0E8 !important;
    background-color: #F5F0E8 !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-dashboard-v2 {
    background: #F5F0E8 !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-dashboard-v2 .bg,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-dashboard-v2 .bg-paws,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-dashboard-v2 .bg-vignette {
    display: none !important;
}

/* Sidebar — cream instead of dark glass */
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .sidebar {
    background: #FAF7F1 !important;
    border-right: 1px solid rgba(42, 51, 43, 0.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .brand-name {
    color: #2A332B !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .brand-name span {
    color: #C8922A !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .nav-item {
    color: rgba(42, 51, 43, 0.72) !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .nav-item:hover {
    background: rgba(42, 51, 43, 0.06) !important;
    color: #2A332B !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .nav-item.is-active {
    background: #2A332B !important;
    color: #F5F0E8 !important;
    box-shadow: 0 4px 14px rgba(42, 51, 43, 0.18) !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .nav-item.is-active::before {
    background: #C8922A !important;
    box-shadow: 0 0 10px rgba(200, 146, 42, 0.5) !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .nav-item.is-danger {
    color: rgba(181, 52, 43, 0.75) !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .nav-item.is-danger:hover {
    background: rgba(181, 52, 43, 0.08) !important;
    color: #B5342B !important;
}

/* User card at bottom of sidebar */
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .user-card {
    background: #F5F0E8 !important;
    border: 1px solid rgba(42, 51, 43, 0.10) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .user-name {
    color: #2A332B !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .user-email {
    color: rgba(42, 51, 43, 0.6) !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .user-avatar {
    background: linear-gradient(135deg, #587A47, #3D5A3E) !important;
    color: #FAF7F1 !important;
}

/* Main shell background */
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .main,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .shell {
    background: #F5F0E8 !important;
}

/* Content area + cards — white surface on cream */
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content {
    background: #F5F0E8 !important;
    color: #2A332B !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content.glass,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .glass {
    background: #FFFFFF !important;
    border: 1px solid rgba(42, 51, 43, 0.08) !important;
    color: #2A332B !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 1px 3px rgba(42,51,43,0.04), 0 6px 18px rgba(42,51,43,0.06) !important;
}

/* Headings */
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content h1,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content h2,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content h3,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content h4 {
    color: #2A332B !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content .woocommerce-address-fields h3,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content .woocommerce-EditAccountForm h3,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content fieldset legend {
    color: rgba(42, 51, 43, 0.55) !important;
}

/* Body text */
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content p,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content td,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content label,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content address {
    color: rgba(42, 51, 43, 0.75) !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content a:not(.button) {
    color: #C8922A !important;
}

/* Tables */
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content table {
    background: transparent !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content table th {
    background: #FAF7F1 !important;
    color: rgba(42, 51, 43, 0.55) !important;
    border-bottom: 1px solid rgba(42, 51, 43, 0.10) !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content table td {
    color: #2A332B !important;
    border-bottom: 1px solid rgba(42, 51, 43, 0.06) !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content table tr:hover td {
    background: rgba(42, 51, 43, 0.025) !important;
}

/* Form inputs */
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content input[type="text"],
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content input[type="email"],
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content input[type="tel"],
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content input[type="password"],
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content input[type="url"],
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content input[type="number"],
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content select,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content textarea {
    background: #FFFFFF !important;
    color: #2A332B !important;
    border: 1px solid rgba(42, 51, 43, 0.15) !important;
    border-radius: 10px !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content input:focus,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content select:focus,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content textarea:focus {
    border-color: #C8922A !important;
    background: #FFFFFF !important;
    outline: none !important;
}

/* Buttons — dark ink pill with cream label, gold hover */
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content .button,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content a.button,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content button.button,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content button[type="submit"],
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content input[type="submit"] {
    background: #2A332B !important;
    color: #F5F0E8 !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 11px 24px !important;
    box-shadow: 0 4px 12px rgba(42, 51, 43, 0.18) !important;
    text-shadow: none !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content .button:hover,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content a.button:hover,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content button.button:hover,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content button[type="submit"]:hover,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content input[type="submit"]:hover {
    background: #C8922A !important;
    color: #2A332B !important;
    transform: translateY(-1px);
}

/* Notices */
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content .woocommerce-message,
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content .woocommerce-info {
    background: #EEF4EA !important;
    color: #2A332B !important;
    border: 1px solid rgba(61, 90, 62, 0.25) !important;
    border-left: 3px solid #3D5A3E !important;
    box-shadow: none !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content .woocommerce-error {
    background: #FDEEEC !important;
    color: #B5342B !important;
    border: 1px solid rgba(181, 52, 43, 0.25) !important;
    border-left: 3px solid #B5342B !important;
}

/* Mobile bottom nav (sub-pages) */
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .mobile-nav {
    background: rgba(250, 247, 241, 0.95) !important;
    border: 1px solid rgba(42, 51, 43, 0.10) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 10px 30px rgba(42, 51, 43, 0.15) !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .mn-item {
    color: rgba(42, 51, 43, 0.65) !important;
}
body.has-bk-dashboard-v2:not(.has-bk-dash-v3) .mn-item.is-active {
    color: #C8922A !important;
    background: rgba(200, 146, 42, 0.10) !important;
}

/* ════════════════════════════════════════════════════════════════════════
   BUG 1 — GLOBAL TEXT COLOR ENFORCEMENT (owner 2026-05-14 — 7th pass)
   ────────────────────────────────────────────────────────────────────────
   Every text element on every account page must be #2A332B (dark ink).
   Wide-net rule with explicit `body.woocommerce-account` prefix beats
   inherited light text from any legacy v2 dark-mode rule still lurking.
   ════════════════════════════════════════════════════════════════════════ */
body.woocommerce-account *,
body.woocommerce-account p,
body.woocommerce-account span,
body.woocommerce-account label,
body.woocommerce-account td,
body.woocommerce-account th,
body.woocommerce-account li,
body.woocommerce-account h1,
body.woocommerce-account h2,
body.woocommerce-account h3,
body.woocommerce-account h4,
body.woocommerce-account small {
    color: #2A332B !important;
}
body.woocommerce-account input,
body.woocommerce-account select,
body.woocommerce-account textarea {
    color: #2A332B !important;
    background: #fff !important;
}
/* Keep CTAs cream/white on dark/gold buttons */
body.woocommerce-account .bk-btn,
body.woocommerce-account button[type="submit"],
body.woocommerce-account .button {
    color: #fff !important;
}
/* Active sidebar nav link stays cream — dark ink bg looks unreadable
   with cream text otherwise. Keep the v3 nav-list active intent. */
body.woocommerce-account .bk-dash-v3 .nav-list a.active,
body.woocommerce-account .bk-dash-v3 .nav-list a.active * {
    color: #F5F0E8 !important;
}

/* ════════════════════════════════════════════════════════════════════════
   BUG 2 — V3 USER CARD (owner 2026-05-14 — 7th pass)
   ────────────────────────────────────────────────────────────────────────
   Replaces old `.user-card .row > .av + .who` markup with a clean vertical
   stack: avatar on top, name+email, separate logout pill at bottom.
   ════════════════════════════════════════════════════════════════════════ */
.bk-dash-v3 .v3-user-card,
.v3-user-card {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(42,51,43,0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bk-dash-v3 .v3-avatar,
.v3-avatar {
    width: 40px;
    height: 40px;
    background: #2A332B;
    color: #F5F0E8 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.bk-dash-v3 .v3-user-info,
.v3-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bk-dash-v3 .v3-user-name,
.v3-user-name {
    font-weight: 600;
    font-size: 13px;
    color: #2A332B !important;
}
.bk-dash-v3 .v3-user-email,
.v3-user-email {
    font-size: 11px;
    opacity: 0.6;
    color: #2A332B !important;
    word-break: break-all;
}
.bk-dash-v3 .v3-logout-btn,
.v3-logout-btn {
    display: block;
    padding: 8px 16px;
    background: rgba(42,51,43,0.06);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    color: #2A332B !important;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-top: 4px;
}
.bk-dash-v3 .v3-logout-btn:hover,
.v3-logout-btn:hover {
    background: rgba(200,146,42,0.15);
    color: #C8922A !important;
}

/* ════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE (owner 2026-05-14 — 11th pass, REPLACES 7th pass)
   ────────────────────────────────────────────────────────────────────────
   STRATEGY CHANGE: instead of stacking the sidebar above content as a
   pill-chip row (7th pass — looked like ugly wide ellipses), we now hide
   the sidebar ENTIRELY on mobile and use the existing .botnav fixed-bottom
   tab bar as the only navigation. Clean, native-app feel.
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Sidebar fully hidden — no double-header, no pill-row mess */
    .bk-dash-v3 .side,
    .bk-dash-v3 .side .brand,
    .bk-dash-v3 .side .brand-name,
    .bk-dash-v3 .side > .brand,
    .bk-dash-v3 .side .nav-label,
    .bk-dash-v3 .side .nav-list,
    .bk-dash-v3 .side .v3-user-card {
        display: none !important;
    }

    /* Stack app vertically */
    .bk-dash-v3 .app {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }

    /* Main column = full width */
    .bk-dash-v3 main,
    .bk-dash-v3 .bk-dash-main,
    .bk-dash-main {
        width: 100% !important;
        padding: 16px 16px 96px 16px !important;  /* bottom pad clears botnav */
    }

    /* Buttons inside main full-width to avoid cut-off */
    .bk-dash-v3 main .button,
    .bk-dash-v3 main button {
        width: 100% !important;
        margin-bottom: 8px !important;
    }

    /* BOTNAV — promoted to ONLY navigation on mobile (clean tab bar) */
    .bk-dash-v3 .botnav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        border-top: 1px solid rgba(42,51,43,0.08) !important;
        padding: 8px 0 max(8px, env(safe-area-inset-bottom)) !important;
        z-index: 100 !important;
        justify-content: space-around !important;
        align-items: center !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .bk-dash-v3 .botnav a {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        color: rgba(42,51,43,0.5) !important;
        text-decoration: none !important;
        padding: 4px 8px !important;
        border-radius: 8px !important;
        min-width: 48px !important;
    }
    .bk-dash-v3 .botnav a.active,
    .bk-dash-v3 .botnav a.is-active {
        color: #2A332B !important;
        background: rgba(42,51,43,0.06) !important;
    }
    .bk-dash-v3 .botnav a .ico {
        font-size: 20px !important;
        line-height: 1 !important;
    }
}

@media (max-width: 480px) {
    .bk-dash-v3 main,
    .bk-dash-v3 .bk-dash-main,
    .bk-dash-main {
        padding: 12px 12px 96px 12px !important;
    }
    .bk-dash-v3 .botnav a {
        font-size: 9.5px !important;
        padding: 4px 4px !important;
        min-width: 0 !important;
    }
    .bk-dash-v3 .botnav a .ico {
        font-size: 18px !important;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   BUG 1 — DARK-BG ELEMENTS GET LIGHT TEXT (owner 2026-05-14 — 8th pass)
   ────────────────────────────────────────────────────────────────────────
   The global `body.woocommerce-account * { color: #2A332B !important }`
   rule (added in 7th pass) was overriding light text on dark backgrounds.
   This block walks back the override for every element that has a dark
   bg, restoring cream/white text.
   ════════════════════════════════════════════════════════════════════════ */

/* User-prescribed catch-all */
body.woocommerce-account .bk-dark,
body.woocommerce-account .bk-dark *,
body.woocommerce-account .v3-avatar,
body.woocommerce-account .v3-avatar *,
body.woocommerce-account .is-active,
body.woocommerce-account .v3-nav-link.is-active,
body.woocommerce-account .v3-nav-link.is-active *,
body.woocommerce-account [style*="background: #2A332B"],
body.woocommerce-account [style*="background:#2A332B"],
body.woocommerce-account [style*="background: #0e1a"],
body.woocommerce-account [style*="background:#0e1a"] {
    color: #F5F0E8 !important;
}

/* All dark-bg children in v3 dashboard surface */
body.woocommerce-account .bk-dash-v3 .brand .mark,
body.woocommerce-account .bk-dash-v3 .brand .mark *,
body.woocommerce-account .bk-dash-v3 .nav-list a.active,
body.woocommerce-account .bk-dash-v3 .nav-list a.active *,
body.woocommerce-account .bk-dash-v3 .add-btn,
body.woocommerce-account .bk-dash-v3 .add-btn *,
body.woocommerce-account .bk-dash-v3 .dot-btn.active,
body.woocommerce-account .bk-dash-v3 .dot-btn.active *,
body.woocommerce-account .bk-dash-v3 .edit-btn:hover,
body.woocommerce-account .bk-dash-v3 .pet-empty a,
body.woocommerce-account .bk-dash-v3 .pet-empty a *,
body.woocommerce-account .bk-dash-v3 .d-actions .primary,
body.woocommerce-account .bk-dash-v3 .d-actions .primary *,
body.woocommerce-account .bk-dash-v3 .v3-day-picker .save,
body.woocommerce-account .bk-dash-v3 .v3-day-picker .save *,
body.woocommerce-account .bk-dash-v3 .spa-section .button,
body.woocommerce-account .bk-dash-v3 .spa-section button[type="submit"],
body.woocommerce-account .bk-dash-v3 .spa-section .woocommerce-Button,
body.woocommerce-account .bk-dash-v3 .spa-section .button *,
body.woocommerce-account .m-head .av,
body.woocommerce-account .m-head .av * {
    color: #F5F0E8 !important;
}

/* v2 dark-bg buttons on sub-pages */
body.woocommerce-account.has-bk-dashboard-v2:not(.has-bk-dash-v3) .nav-item.is-active,
body.woocommerce-account.has-bk-dashboard-v2:not(.has-bk-dash-v3) .nav-item.is-active *,
body.woocommerce-account.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content .button,
body.woocommerce-account.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content .button *,
body.woocommerce-account.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content button.button,
body.woocommerce-account.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content button[type="submit"],
body.woocommerce-account.has-bk-dashboard-v2:not(.has-bk-dash-v3) .bk-account-content input[type="submit"] {
    color: #F5F0E8 !important;
}
