/* ════════════════════════════════════════════════════════════
   BARKLY — My Account Dashboard v2 (glassmorphism)
   Source: Barkly Account.html (React mock)
   Scoped under .bk-dashboard-v2 — won't leak to other pages.
   Duplicated :root vars (--ink/--green/--gold/--cream/--white)
   removed; use --bk-* aliases from barkly-header-footer.css.
   Body background handled by separate body.woocommerce-account rule.
   ════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────
   BONUS FIX 2026-05-13: pre-set body bg so sub-page CSS load
   doesn't cause a cream→dark flash. Applies on any account page
   that has the v2 wrapper (has-bk-dashboard-v2 body class).
   ──────────────────────────────────────────────────────────── */
body.has-bk-dashboard-v2 {
    background: #0e1a10 !important;
}
/* But NOT on dashboard root — v3 surface owns its own bg there */
body.has-bk-dash-v3 {
    background: #F5F0E8 !important;
}

.bk-dashboard-v2 {
    /* design tokens NEW to dashboard (not duplicated in header-footer) */
    --green-deep:        #1a2e1b;
    --green-mid:         #243a26;
    --gold-soft:         #e0b25a;

    --glass-bg:          rgba(255,255,255,0.06);
    --glass-bg-strong:   rgba(255,255,255,0.09);
    --glass-bd:          rgba(255,255,255,0.13);
    --glass-bd-strong:   rgba(255,255,255,0.22);
    --glass-inner:       inset 0 1px 0 rgba(255,255,255,0.10);

    --text:              #f3efe5;
    --text-mute:         rgba(243,239,229,0.62);
    --text-faint:        rgba(243,239,229,0.42);

    --status-amber:      #E0B25A;
    --status-green:      #7DBE85;
    --status-red:        #E08A7A;

    --radius-lg:         22px;
    --radius-md:         16px;
    --radius-sm:         11px;

    --sidebar-w:         244px;
    --pad:               28px;

    /* body styles moved here (was on body{}) — bg dropped, set on body.woocommerce-account separately */
    font-family: "DM Sans","DM Sans Fallback",ui-sans-serif,system-ui,-apple-system,sans-serif;
    font-feature-settings: "ss01","cv11";
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.bk-dashboard-v2 *,
.bk-dashboard-v2 *::before,
.bk-dashboard-v2 *::after { box-sizing: border-box; }

/* ────────────────────────────────────────────────
   Background: dark green gradient + radial glows + paw pattern
   ──────────────────────────────────────────────── */
.bk-dashboard-v2 .bg {
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(900px 600px at 88% -10%, rgba(200,146,42,0.16), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(125,190,133,0.10), transparent 60%),
        linear-gradient(160deg, #1a2e1b 0%, #233a25 38%, #2A332B 100%);
}
.bk-dashboard-v2 .bg-paws {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='35' cy='30' rx='8' ry='10'/%3E%3Cellipse cx='55' cy='22' rx='7' ry='9'/%3E%3Cellipse cx='75' cy='26' rx='7' ry='9'/%3E%3Cellipse cx='90' cy='40' rx='8' ry='10'/%3E%3Cpath d='M38 55 Q62 42 87 55 Q95 72 85 82 Q78 90 70 85 Q62 90 55 85 Q47 90 40 82 Q30 72 38 55Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    mix-blend-mode: screen;
}

/* Subtle vignette */
.bk-dashboard-v2 .bg-vignette {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 100%);
}

/* ────────────────────────────────────────────────
   Layout
   ──────────────────────────────────────────────── */
.bk-dashboard-v2 .shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
}

/* ────────────────────────────────────────────────
   Sidebar
   ──────────────────────────────────────────────── */
.bk-dashboard-v2 .sidebar {
    position: sticky; top: 0;
    height: 100vh;
    padding: 22px 16px 24px;
    display: flex; flex-direction: column;
    gap: 10px;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.bk-dashboard-v2 .brand {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 8px 18px;
}
.bk-dashboard-v2 .brand-mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(140deg, var(--bk-gold), #a87420);
    display: grid; place-items: center;
    box-shadow: 0 4px 14px rgba(200,146,42,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
    font-size: 18px;
}
.bk-dashboard-v2 .brand-name {
    font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
.bk-dashboard-v2 .brand-name span { color: var(--gold-soft); }

.bk-dashboard-v2 .nav {
    display: flex; flex-direction: column; gap: 2px;
    margin-top: 4px;
}
.bk-dashboard-v2 .nav-section {
    font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-faint);
    padding: 14px 12px 6px;
    font-weight: 600;
}
.bk-dashboard-v2 .nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-mute);
    text-decoration: none;
    font-size: 14px; font-weight: 500;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
    position: relative;
}
.bk-dashboard-v2 .nav-item .ico {
    width: 22px; display: inline-flex; justify-content: center;
    font-size: 15px;
    filter: grayscale(0.2);
}
.bk-dashboard-v2 .nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}
.bk-dashboard-v2 .nav-item.is-active {
    background: linear-gradient(180deg, rgba(200,146,42,0.20), rgba(200,146,42,0.10));
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        0 0 0 1px rgba(200,146,42,0.32);
}
.bk-dashboard-v2 .nav-item.is-active::before {
    content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px;
    width: 3px; border-radius: 0 3px 3px 0;
    background: var(--bk-gold);
    box-shadow: 0 0 10px rgba(200,146,42,0.6);
}
.bk-dashboard-v2 .nav-item.is-danger { color: rgba(243,239,229,0.55); }
.bk-dashboard-v2 .nav-item.is-danger:hover { color: #f3b8a8; background: rgba(224,138,122,0.08); }

.bk-dashboard-v2 .nav-spacer { flex: 1; }

.bk-dashboard-v2 .user-card {
    margin-top: 8px; padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: 14px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: var(--glass-inner);
}
.bk-dashboard-v2 .user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #7DBE85, #3D5A3E);
    display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.bk-dashboard-v2 .user-name { font-size: 13px; font-weight: 600; line-height: 1.1; }
.bk-dashboard-v2 .user-email { font-size: 11px; color: var(--text-faint); }

/* ────────────────────────────────────────────────
   Main
   ──────────────────────────────────────────────── */
.bk-dashboard-v2 .main {
    padding: 28px var(--pad) 80px;
    max-width: 1240px;
    width: 100%;
}

/* Top bar */
.bk-dashboard-v2 .topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    margin-bottom: 22px;
}
.bk-dashboard-v2 .greeting h1 {
    margin: 0; font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 600; letter-spacing: -0.02em;
}
.bk-dashboard-v2 .greeting h1 .wave {
    display: inline-block; transform-origin: 70% 70%;
    animation: bkv2-wave 2.6s ease-in-out 1s 2;
}
@keyframes bkv2-wave {
    0%, 60%, 100% { transform: rotate(0); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}
.bk-dashboard-v2 .greeting p {
    margin: 4px 0 0;
    color: var(--text-mute);
    font-size: 14px;
}

.bk-dashboard-v2 .topbar-right {
    display: flex; align-items: center; gap: 10px;
}
.bk-dashboard-v2 .icon-btn {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    display: grid; place-items: center;
    color: var(--text);
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: var(--glass-inner);
    font-size: 15px;
    position: relative;
}
.bk-dashboard-v2 .icon-btn:hover {
    background: var(--glass-bg-strong);
    transform: translateY(-1px);
}
.bk-dashboard-v2 .icon-btn .dot {
    position: absolute; transform: translate(11px, -11px);
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--bk-gold);
    box-shadow: 0 0 0 2px var(--green-deep), 0 0 8px rgba(200,146,42,0.7);
}

/* Stat pills */
.bk-dashboard-v2 .stat-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.bk-dashboard-v2 .stat {
    position: relative;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    box-shadow: var(--glass-inner), 0 8px 24px rgba(0,0,0,0.18);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}
.bk-dashboard-v2 .stat::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.10), transparent 50%);
}
.bk-dashboard-v2 .stat:hover {
    transform: translateY(-1px);
    border-color: var(--glass-bd-strong);
}
.bk-dashboard-v2 .stat-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
    color: var(--text-faint);
    display: flex; align-items: center; gap: 8px;
}
.bk-dashboard-v2 .stat-label .ico { font-size: 13px; }
.bk-dashboard-v2 .stat-value {
    margin-top: 4px;
    font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
    color: #fff;
    display: flex; align-items: center; gap: 8px;
}
.bk-dashboard-v2 .stat-value.is-gold { color: var(--gold-soft); }
.bk-dashboard-v2 .pencil {
    width: 26px; height: 26px; border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    display: grid; place-items: center;
    cursor: pointer; opacity: 0; transform: translateX(-4px);
    transition: all .2s ease;
    font-size: 12px; color: var(--text);
}
.bk-dashboard-v2 .stat:hover .pencil { opacity: 1; transform: translateX(0); }

.bk-dashboard-v2 .dot-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--status-green);
    box-shadow: 0 0 0 0 rgba(125,190,133,0.6);
    animation: bkv2-pulse 2.2s ease-out infinite;
    display: inline-block;
}
@keyframes bkv2-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(125,190,133,0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(125,190,133,0); }
    100% { box-shadow: 0 0 0 0 rgba(125,190,133,0); }
}

/* ────────────────────────────────────────────────
   Section heading
   ──────────────────────────────────────────────── */
.bk-dashboard-v2 .section { margin-bottom: 28px; }
.bk-dashboard-v2 .section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 14px;
}
.bk-dashboard-v2 .section-title {
    font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
    color: #fff;
    display: flex; align-items: center; gap: 8px;
}
.bk-dashboard-v2 .section-title .ico { font-size: 16px; }
.bk-dashboard-v2 .section-link {
    font-size: 13px; color: var(--gold-soft);
    text-decoration: none; font-weight: 500;
    transition: color .18s ease, transform .18s ease;
    display: inline-flex; align-items: center; gap: 4px;
}
.bk-dashboard-v2 .section-link:hover { color: #fff; }
.bk-dashboard-v2 .section-link:hover .arr { transform: translateX(3px); }
.bk-dashboard-v2 .section-link .arr { transition: transform .18s ease; display: inline-block; }

/* Glass card baseline */
.bk-dashboard-v2 .glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-bd);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: var(--glass-inner), 0 12px 40px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
}
.bk-dashboard-v2 .glass::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(120% 70% at 0% 0%, rgba(255,255,255,0.08), transparent 55%);
}

/* ────────────────────────────────────────────────
   Pets grid
   ──────────────────────────────────────────────── */
.bk-dashboard-v2 .pets-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.bk-dashboard-v2 .pet {
    padding: 18px 18px 18px 22px;
    display: flex; align-items: center; gap: 16px;
    position: relative;
    transition: transform .25s ease, border-color .25s ease;
    cursor: pointer;
}
.bk-dashboard-v2 .pet::after {
    content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
    width: 2px; border-radius: 0 2px 2px 0;
    background: linear-gradient(180deg, transparent, var(--bk-gold) 25%, var(--bk-gold) 75%, transparent);
    opacity: 0.85;
}
.bk-dashboard-v2 .pet:hover {
    transform: translateY(-2px);
    border-color: var(--glass-bd-strong);
}
.bk-dashboard-v2 .pet-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #4f7a52, #2A332B);
    display: grid; place-items: center;
    font-size: 30px;
    flex: none;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 0 0 1px rgba(255,255,255,0.08),
        0 6px 18px rgba(0,0,0,0.25);
    position: relative;
}
.bk-dashboard-v2 .pet-avatar .ring {
    content: ""; position: absolute; inset: -3px; border-radius: 50%;
    border: 1.5px solid rgba(200,146,42,0.45);
    pointer-events: none;
}
.bk-dashboard-v2 .pet-body { flex: 1; min-width: 0; }
.bk-dashboard-v2 .pet-name {
    font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: #fff;
    margin: 0 0 2px;
    display: flex; align-items: center; gap: 8px;
}
.bk-dashboard-v2 .pet-tag {
    font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 999px;
    background: rgba(125,190,133,0.14);
    color: #b6dabb;
    border: 1px solid rgba(125,190,133,0.25);
}
.bk-dashboard-v2 .pet-breed { font-size: 13px; color: var(--text-mute); margin: 0 0 8px; }
.bk-dashboard-v2 .pet-recipe {
    font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 6px;
    margin-bottom: 4px;
}
.bk-dashboard-v2 .pet-recipe b { font-weight: 600; }
.bk-dashboard-v2 .pet-recipe .sep { color: var(--text-faint); }
.bk-dashboard-v2 .pet-price {
    font-size: 15px; font-weight: 600; color: var(--gold-soft);
    letter-spacing: -0.01em;
}
.bk-dashboard-v2 .pet-edit {
    position: absolute; top: 14px; right: 14px;
    display: flex; gap: 6px;
    opacity: 0; transform: translateY(-4px);
    transition: all .25s ease;
}
.bk-dashboard-v2 .pet:hover .pet-edit { opacity: 1; transform: translateY(0); }
.bk-dashboard-v2 .pet-edit button {
    appearance: none; border: 1px solid var(--glass-bd);
    background: rgba(255,255,255,0.08);
    color: var(--text);
    width: 30px; height: 30px; border-radius: 9px;
    cursor: pointer; font-size: 12px;
    display: grid; place-items: center;
    transition: all .15s ease;
}
.bk-dashboard-v2 .pet-edit button:hover {
    background: var(--bk-gold);
    color: var(--bk-ink);
    border-color: var(--bk-gold);
}

/* ────────────────────────────────────────────────
   Quick actions
   ──────────────────────────────────────────────── */
.bk-dashboard-v2 .qa-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.bk-dashboard-v2 .qa {
    padding: 18px 14px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    text-align: left;
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
    border-radius: var(--radius-md);
}
.bk-dashboard-v2 .qa:hover {
    transform: translateY(-3px);
    border-color: var(--glass-bd-strong);
    background: var(--glass-bg-strong);
}
.bk-dashboard-v2 .qa-icon {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(140deg, rgba(200,146,42,0.22), rgba(200,146,42,0.06));
    border: 1px solid rgba(200,146,42,0.30);
    display: grid; place-items: center; font-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.bk-dashboard-v2 .qa-label {
    font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.25;
}
.bk-dashboard-v2 .qa-sub { font-size: 11.5px; color: var(--text-faint); }
.bk-dashboard-v2 .qa.is-whatsapp .qa-icon {
    background: linear-gradient(140deg, rgba(125,190,133,0.22), rgba(125,190,133,0.06));
    border-color: rgba(125,190,133,0.32);
}

/* ────────────────────────────────────────────────
   Orders table
   ──────────────────────────────────────────────── */
.bk-dashboard-v2 .orders { padding: 6px 6px 8px; }
.bk-dashboard-v2 .orders-head,
.bk-dashboard-v2 .orders-row {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
    align-items: center;
    padding: 12px 18px;
    gap: 14px;
}
.bk-dashboard-v2 .orders-head {
    font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-faint); font-weight: 600;
}
.bk-dashboard-v2 .orders-row {
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
    transition: background .18s ease;
    cursor: pointer;
}
.bk-dashboard-v2 .orders-row:hover { background: rgba(255,255,255,0.03); }
.bk-dashboard-v2 .order-id { font-weight: 600; color: #fff; font-feature-settings: "tnum"; }
.bk-dashboard-v2 .order-date { color: var(--text-mute); font-feature-settings: "tnum"; }
.bk-dashboard-v2 .order-amt {
    font-weight: 600; text-align: right;
    color: var(--gold-soft); font-feature-settings: "tnum";
}

.bk-dashboard-v2 .badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 10px 4px 9px;
    border-radius: 999px;
    font-size: 12px; font-weight: 500;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}
.bk-dashboard-v2 .badge .b-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.bk-dashboard-v2 .badge.is-amber { color: #f0c97c; background: rgba(224,178,90,0.10); border-color: rgba(224,178,90,0.28); }
.bk-dashboard-v2 .badge.is-amber .b-dot { background: #E0B25A; box-shadow: 0 0 6px rgba(224,178,90,0.7); }
.bk-dashboard-v2 .badge.is-green { color: #a6dab0; background: rgba(125,190,133,0.10); border-color: rgba(125,190,133,0.28); }
.bk-dashboard-v2 .badge.is-green .b-dot { background: #7DBE85; box-shadow: 0 0 6px rgba(125,190,133,0.7); }
.bk-dashboard-v2 .badge.is-red   { color: #f0b1a4; background: rgba(224,138,122,0.10); border-color: rgba(224,138,122,0.28); }
.bk-dashboard-v2 .badge.is-red .b-dot { background: #E08A7A; box-shadow: 0 0 6px rgba(224,138,122,0.7); }

/* ────────────────────────────────────────────────
   Two-column row (orders + small panel)
   ──────────────────────────────────────────────── */
.bk-dashboard-v2 .split {
    display: grid; grid-template-columns: 1.6fr 1fr;
    gap: 16px;
}
.bk-dashboard-v2 .split .glass { height: 100%; }

.bk-dashboard-v2 .next-delivery {
    padding: 22px;
    display: flex; flex-direction: column; gap: 14px;
}
.bk-dashboard-v2 .nd-head {
    display: flex; align-items: center; justify-content: space-between;
}
.bk-dashboard-v2 .nd-when {
    font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: #fff;
}
.bk-dashboard-v2 .nd-when small {
    font-size: 14px; color: var(--text-mute); font-weight: 400;
    display: block; margin-top: 2px;
}
.bk-dashboard-v2 .nd-meter {
    position: relative; height: 6px; border-radius: 999px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}
.bk-dashboard-v2 .nd-meter > i {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 65%;
    background: linear-gradient(90deg, var(--gold-soft), var(--bk-gold));
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(200,146,42,0.45);
}
.bk-dashboard-v2 .nd-stages {
    display: flex; justify-content: space-between; font-size: 11px;
    color: var(--text-faint);
}
.bk-dashboard-v2 .nd-stages span.is-on { color: var(--gold-soft); font-weight: 600; }
.bk-dashboard-v2 .nd-cta {
    display: flex; gap: 8px; margin-top: 4px;
}
.bk-dashboard-v2 .btn {
    appearance: none; border: 0; cursor: pointer;
    font-family: inherit; font-weight: 500;
    padding: 10px 14px;
    border-radius: 11px; font-size: 13px;
    transition: transform .18s ease, background .18s ease, color .18s ease;
    display: inline-flex; align-items: center; gap: 8px;
}
.bk-dashboard-v2 .btn-primary {
    background: var(--bk-gold); color: var(--bk-ink);
    box-shadow: 0 6px 18px rgba(200,146,42,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}
.bk-dashboard-v2 .btn-primary:hover { background: #d8a236; transform: translateY(-1px); }
.bk-dashboard-v2 .btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--glass-bd);
}
.bk-dashboard-v2 .btn-ghost:hover { background: rgba(255,255,255,0.10); }

/* ────────────────────────────────────────────────
   Mobile bottom nav
   ──────────────────────────────────────────────── */
.bk-dashboard-v2 .mobile-nav { display: none; }

/* ────────────────────────────────────────────────
   Responsive
   ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .bk-dashboard-v2 { --sidebar-w: 72px; }
    .bk-dashboard-v2 .nav-item .lbl,
    .bk-dashboard-v2 .brand-name,
    .bk-dashboard-v2 .nav-section,
    .bk-dashboard-v2 .user-name,
    .bk-dashboard-v2 .user-email { display: none; }
    .bk-dashboard-v2 .nav-item { justify-content: center; padding: 12px; }
    .bk-dashboard-v2 .nav-item.is-active::before { left: -8px; }
    .bk-dashboard-v2 .brand { justify-content: center; padding: 4px 0 18px; }
    .bk-dashboard-v2 .user-card { justify-content: center; padding: 8px; }
    .bk-dashboard-v2 .qa-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .bk-dashboard-v2 { --pad: 18px; --sidebar-w: 0px; }
    .bk-dashboard-v2 .shell { grid-template-columns: 1fr; }
    .bk-dashboard-v2 .sidebar { display: none; }
    .bk-dashboard-v2 .main { padding: 22px var(--pad) 110px; }
    .bk-dashboard-v2 .stat-row { grid-template-columns: 1fr; }
    .bk-dashboard-v2 .pets-grid { grid-template-columns: 1fr; }
    .bk-dashboard-v2 .qa-grid { grid-template-columns: repeat(2, 1fr); }
    .bk-dashboard-v2 .split { grid-template-columns: 1fr; }
    .bk-dashboard-v2 .orders-head { display: none; }
    .bk-dashboard-v2 .orders-row {
        grid-template-columns: 1fr auto; row-gap: 4px;
        padding: 14px 16px;
    }
    .bk-dashboard-v2 .orders-row .order-date,
    .bk-dashboard-v2 .orders-row .badge-cell {
        grid-column: 1; font-size: 12px; color: var(--text-mute);
    }
    .bk-dashboard-v2 .orders-row .order-amt {
        grid-row: 1 / span 2; align-self: center;
    }

    .bk-dashboard-v2 .mobile-nav {
        display: grid; grid-template-columns: repeat(5, 1fr);
        position: fixed; bottom: 12px; left: 12px; right: 12px;
        z-index: 50;
        padding: 8px;
        background: rgba(20,32,22,0.62);
        border: 1px solid var(--glass-bd);
        border-radius: 18px;
        -webkit-backdrop-filter: blur(20px) saturate(140%);
        backdrop-filter: blur(20px) saturate(140%);
        box-shadow: 0 10px 30px rgba(0,0,0,0.4), var(--glass-inner);
    }
    .bk-dashboard-v2 .mn-item {
        display: flex; flex-direction: column; align-items: center; gap: 2px;
        padding: 8px 0;
        color: var(--text-mute);
        font-size: 10px; text-decoration: none; font-weight: 500;
        border-radius: 12px;
        cursor: pointer;
    }
    .bk-dashboard-v2 .mn-item .ico { font-size: 18px; }
    .bk-dashboard-v2 .mn-item.is-active {
        color: var(--gold-soft);
        background: rgba(200,146,42,0.10);
    }
}

/* ════════════════════════════════════════════════════════════
   Pet tag color modifiers (status-derived from subscriptions)
   Default .pet-tag is green; modifiers reuse the badge color
   palette but at the smaller pet-pill size.
   ════════════════════════════════════════════════════════════ */
.bk-dashboard-v2 .pet-tag.is-green {
    background: rgba(125,190,133,0.14);
    color: #b6dabb;
    border-color: rgba(125,190,133,0.25);
}
.bk-dashboard-v2 .pet-tag.is-amber {
    background: rgba(224,178,90,0.14);
    color: #f0c97c;
    border-color: rgba(224,178,90,0.25);
}
.bk-dashboard-v2 .pet-tag.is-red {
    background: rgba(224,138,122,0.14);
    color: #f0b1a4;
    border-color: rgba(224,138,122,0.25);
}

/* ════════════════════════════════════════════════════════════
   Page-level chrome — applies only on the dashboard endpoint
   (body has .has-bk-dashboard-v2 class via barkly-dashboard.php
   body_class filter). Other my-account endpoints render unchanged.
   ════════════════════════════════════════════════════════════ */

/* Dark page background so glass reads correctly */
body.woocommerce-account.has-bk-dashboard-v2 {
    background: #0e1a10 !important;
}

/* Neutralise the WC default sidebar + content padding/box on the dashboard
   endpoint only. We provide our own sidebar inside .bk-dashboard-v2. */
body.has-bk-dashboard-v2 .woocommerce-MyAccount-navigation { display: none !important; }
body.has-bk-dashboard-v2 .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 100% !important;
    flex-basis: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.has-bk-dashboard-v2 .woocommerce::before,
body.has-bk-dashboard-v2 .woocommerce::after { display: none !important; content: none !important; }
body.has-bk-dashboard-v2 .entry-content,
body.has-bk-dashboard-v2 .guten-uZFsiJ,
body.has-bk-dashboard-v2 .guten-post-content {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
}
/* Cancel barkly-pages.css ::before crown decoration on the dashboard */
body.has-bk-dashboard-v2 .guten-uZFsiJ::before {
    display: none !important;
    content: none !important;
}

/* ════════════════════════════════════════════════════════════
   Sticky-header offset — bk-header is 72px desktop / 64px mobile
   (set via --bk-header-h in barkly-header-footer.css). Sidebar
   sticks below it; shell shrinks by the same amount.
   ════════════════════════════════════════════════════════════ */
.bk-dashboard-v2 .shell {
    min-height: calc(100vh - var(--bk-header-h, 72px));
}
.bk-dashboard-v2 .sidebar {
    top: var(--bk-header-h, 72px);
    height: calc(100vh - var(--bk-header-h, 72px));
}
/* WP admin bar (32px desktop / 46px ≤782px) stacks above bk-header */
.admin-bar .bk-dashboard-v2 .sidebar {
    top: calc(32px + var(--bk-header-h, 72px));
    height: calc(100vh - 32px - var(--bk-header-h, 72px));
}
@media (max-width: 782px) {
    .admin-bar .bk-dashboard-v2 .sidebar {
        top: calc(46px + var(--bk-header-h, 64px));
        height: calc(100vh - 46px - var(--bk-header-h, 64px));
    }
}

/* ════════════════════════════════════════════════════════════
   Inline day-picker (preserved from v1) — readable on dark bg
   ════════════════════════════════════════════════════════════ */
.bk-dashboard-v2 .bk-dash__day-select {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--glass-bd);
    border-radius: 8px;
    padding: 6px 10px;
    font: inherit;
    font-size: 12px;
}
.bk-dashboard-v2 .bk-dash__day-select:focus {
    outline: none;
    border-color: var(--gold-soft);
}

/* ════════════════════════════════════════════════════════════
   Explicit color overrides — defensive against parent-theme /
   barkly-pages.css inheritance leaks on dark background.
   Loaded last so cascade wins.
   ════════════════════════════════════════════════════════════ */
.bk-dashboard-v2 *                 { color: inherit; }
.bk-dashboard-v2                   { color: #f3efe5; }
.bk-dashboard-v2 h1,
.bk-dashboard-v2 h2,
.bk-dashboard-v2 h3,
.bk-dashboard-v2 .pet-name,
.bk-dashboard-v2 .greeting h1,
.bk-dashboard-v2 .greeting-name    { color: #ffffff !important; }
.bk-dashboard-v2 .nav-item,
.bk-dashboard-v2 .nav-label        { color: rgba(255,255,255,0.82) !important; }
.bk-dashboard-v2 .nav-item.is-active,
.bk-dashboard-v2 .nav-item.is-active .lbl { color: #ffffff !important; }
.bk-dashboard-v2 .text-mute,
.bk-dashboard-v2 .pet-breed,
.bk-dashboard-v2 .stat-label,
.bk-dashboard-v2 .qa-sub,
.bk-dashboard-v2 .greeting p,
.bk-dashboard-v2 .order-date,
.bk-dashboard-v2 .nd-when small    { color: rgba(243,239,229,0.65) !important; }
.bk-dashboard-v2 .pet-price,
.bk-dashboard-v2 .order-amt,
.bk-dashboard-v2 .stat-value.is-gold,
.bk-dashboard-v2 .section-link     { color: #e0b25a !important; }
.bk-dashboard-v2 .stat-value,
.bk-dashboard-v2 .order-id,
.bk-dashboard-v2 .nd-when,
.bk-dashboard-v2 .qa-label,
.bk-dashboard-v2 .section-title,
.bk-dashboard-v2 .user-name        { color: #ffffff !important; }
.bk-dashboard-v2 .user-email,
.bk-dashboard-v2 .nd-stages span   { color: rgba(243,239,229,0.45) !important; }
.bk-dashboard-v2 .nd-stages span.is-on { color: #e0b25a !important; }

/* ════════════════════════════════════════════════════════════
   .bk-account-content — wraps WC default endpoint output on
   non-dashboard endpoints (orders, edit-address, edit-account,
   subscriptions, view-order, etc.). The dashboard endpoint uses
   a non-glass variant since it renders its own internal cards.
   ════════════════════════════════════════════════════════════ */

.bk-dashboard-v2 .bk-account-content {
    padding: 28px var(--pad) 80px;
    color: var(--text);
}
.bk-dashboard-v2 .bk-account-content.glass {
    margin: 24px 24px 80px;
    padding: 28px;
}

/* Notices (woocommerce_message / error / info) inside the card */
.bk-dashboard-v2 .bk-account-content .woocommerce-message,
.bk-dashboard-v2 .bk-account-content .woocommerce-info,
.bk-dashboard-v2 .bk-account-content .woocommerce-error {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--glass-bd) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text) !important;
    padding: 12px 16px !important;
    margin-bottom: 18px !important;
    box-shadow: var(--glass-inner) !important;
}
.bk-dashboard-v2 .bk-account-content .woocommerce-message::before,
.bk-dashboard-v2 .bk-account-content .woocommerce-info::before,
.bk-dashboard-v2 .bk-account-content .woocommerce-error::before {
    color: var(--gold-soft) !important;
}

/* Headings */
.bk-dashboard-v2 .bk-account-content h2,
.bk-dashboard-v2 .bk-account-content h3,
.bk-dashboard-v2 .bk-account-content h4 {
    color: #fff !important;
    letter-spacing: -0.01em;
}
.bk-dashboard-v2 .bk-account-content h2 { font-size: 22px; margin: 0 0 18px; }
.bk-dashboard-v2 .bk-account-content h3 { font-size: 18px; margin: 18px 0 12px; }
.bk-dashboard-v2 .bk-account-content .woocommerce-address-fields h3,
.bk-dashboard-v2 .bk-account-content .woocommerce-EditAccountForm h3,
.bk-dashboard-v2 .bk-account-content fieldset legend {
    color: rgba(255,255,255,0.55) !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 600;
    margin-bottom: 16px !important;
}

/* Generic paragraphs / mark-up */
.bk-dashboard-v2 .bk-account-content p,
.bk-dashboard-v2 .bk-account-content address {
    color: var(--text);
    font-style: normal;
    line-height: 1.6;
}
.bk-dashboard-v2 .bk-account-content a:not(.button):not(.bk-account-content__btn) {
    color: var(--gold-soft);
    text-decoration: none;
    transition: color .15s ease;
}
.bk-dashboard-v2 .bk-account-content a:not(.button):not(.bk-account-content__btn):hover {
    color: #fff;
    text-decoration: underline;
}

/* Tables (orders list, downloads, subscriptions list) */
.bk-dashboard-v2 .bk-account-content table {
    color: var(--text);
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    margin-bottom: 16px;
}
.bk-dashboard-v2 .bk-account-content table th {
    color: var(--text-faint) !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid var(--glass-bd);
    background: transparent !important;
}
.bk-dashboard-v2 .bk-account-content table td {
    color: var(--text);
    padding: 14px 8px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: transparent !important;
}
.bk-dashboard-v2 .bk-account-content table tr:hover td { background: rgba(255,255,255,0.025) !important; }
.bk-dashboard-v2 .bk-account-content table tfoot td { border-top: 1px solid var(--glass-bd); font-weight: 600; }

/* Order status mark/labels inside tables */
.bk-dashboard-v2 .bk-account-content mark,
.bk-dashboard-v2 .bk-account-content .order-status {
    background: rgba(125,190,133,0.10) !important;
    color: #a6dab0 !important;
    border: 1px solid rgba(125,190,133,0.28) !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* Forms */
.bk-dashboard-v2 .bk-account-content label {
    color: var(--text-mute) !important;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}
.bk-dashboard-v2 .bk-account-content .form-row { margin-bottom: 14px; }
.bk-dashboard-v2 .bk-account-content input[type="text"],
.bk-dashboard-v2 .bk-account-content input[type="email"],
.bk-dashboard-v2 .bk-account-content input[type="tel"],
.bk-dashboard-v2 .bk-account-content input[type="password"],
.bk-dashboard-v2 .bk-account-content input[type="url"],
.bk-dashboard-v2 .bk-account-content input[type="number"],
.bk-dashboard-v2 .bk-account-content select,
.bk-dashboard-v2 .bk-account-content textarea {
    background: rgba(255,255,255,0.06) !important;
    color: var(--text) !important;
    border: 1px solid var(--glass-bd) !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    width: 100% !important;
    font-family: inherit !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: border-color .15s ease, background .15s ease;
}
.bk-dashboard-v2 .bk-account-content input:focus,
.bk-dashboard-v2 .bk-account-content select:focus,
.bk-dashboard-v2 .bk-account-content textarea:focus {
    outline: none !important;
    border-color: var(--gold-soft) !important;
    background: rgba(255,255,255,0.09) !important;
}
.bk-dashboard-v2 .bk-account-content input::placeholder,
.bk-dashboard-v2 .bk-account-content textarea::placeholder {
    color: var(--text-faint);
}

/* Buttons */
.bk-dashboard-v2 .bk-account-content .button,
.bk-dashboard-v2 .bk-account-content a.button,
.bk-dashboard-v2 .bk-account-content button[type="submit"],
.bk-dashboard-v2 .bk-account-content input[type="submit"] {
    background: var(--glass-bg-strong) !important;
    color: var(--text) !important;
    border: 1px solid var(--glass-bd) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: var(--glass-inner) !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
    text-shadow: none !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}
.bk-dashboard-v2 .bk-account-content .button:hover,
.bk-dashboard-v2 .bk-account-content a.button:hover,
.bk-dashboard-v2 .bk-account-content button[type="submit"]:hover,
.bk-dashboard-v2 .bk-account-content input[type="submit"]:hover {
    background: var(--bk-gold) !important;
    color: var(--bk-ink) !important;
    border-color: var(--bk-gold) !important;
    transform: translateY(-1px);
}

/* Address columns */
.bk-dashboard-v2 .bk-account-content .u-columns { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 !important; }
.bk-dashboard-v2 .bk-account-content .u-column1,
.bk-dashboard-v2 .bk-account-content .u-column2,
.bk-dashboard-v2 .bk-account-content .col2-set .col-1,
.bk-dashboard-v2 .bk-account-content .col2-set .col-2 {
    flex: 1 1 280px;
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-bd) !important;
    border-radius: var(--radius-md) !important;
    padding: 22px !important;
    margin: 0 !important;
    box-shadow: var(--glass-inner) !important;
    color: var(--text);
}
.bk-dashboard-v2 .bk-account-content .col2-set { display: flex; gap: 16px; flex-wrap: wrap; }
.bk-dashboard-v2 .bk-account-content .edit { color: var(--gold-soft) !important; font-size: 12px; }

/* Pagination */
.bk-dashboard-v2 .bk-account-content .woocommerce-pagination ul {
    display: inline-flex; gap: 6px; list-style: none; padding: 0; margin: 16px 0;
}
.bk-dashboard-v2 .bk-account-content .woocommerce-pagination ul li a,
.bk-dashboard-v2 .bk-account-content .woocommerce-pagination ul li span {
    display: inline-grid; place-items: center;
    min-width: 34px; height: 34px;
    background: var(--glass-bg) !important;
    color: var(--text) !important;
    border: 1px solid var(--glass-bd) !important;
    border-radius: 9px !important;
    padding: 0 10px !important;
    font-size: 13px;
    text-decoration: none;
}
.bk-dashboard-v2 .bk-account-content .woocommerce-pagination ul li span.current {
    background: var(--bk-gold) !important;
    color: var(--bk-ink) !important;
    border-color: var(--bk-gold) !important;
}

/* "Hello user, From your account dashboard..." default WC paragraph */
.bk-dashboard-v2 .bk-account-content .woocommerce-MyAccount-content > p:first-child {
    color: var(--text-mute);
    margin-bottom: 22px;
}

/* Fieldset wrappers in edit-account */
.bk-dashboard-v2 .bk-account-content fieldset {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-bd);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 16px;
}

/* ════════════════════════════════════════════════════════════════════════
   MY-ACCOUNT REWORK (owner spec 2026-05-13 — Section 3)
   ──────────────────────────────────────────────────────────────────────── */

/* ── FIX 1 — Logged-out login page (2026-05-14 rewrite: warm cream + white card) ── */
body.woocommerce-account:not(.logged-in) {
    background: #F5F0E8 !important;
}
body.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 480px;
    margin: 80px auto;
    padding: 0 20px;
}
body.woocommerce-account:not(.logged-in) .woocommerce-form-login,
body.woocommerce-account:not(.logged-in) .woocommerce-form-register {
    background: #FFFFFF !important;
    border: 1px solid rgba(42, 51, 43, 0.08) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #2A332B !important;
    box-shadow: 0 2px 20px rgba(42, 51, 43, 0.08) !important;
}
body.woocommerce-account:not(.logged-in) .woocommerce-form-login h2,
body.woocommerce-account:not(.logged-in) .woocommerce-form-register h2,
body.woocommerce-account:not(.logged-in) h2 {
    color: #2A332B !important;
    font-family: 'Fraunces', Georgia, serif !important;
    font-size: 28px;
    margin-bottom: 24px;
}
body.woocommerce-account:not(.logged-in) label {
    color: rgba(42, 51, 43, 0.65) !important;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
body.woocommerce-account:not(.logged-in) input[type="text"],
body.woocommerce-account:not(.logged-in) input[type="email"],
body.woocommerce-account:not(.logged-in) input[type="password"] {
    background: #FAFAF8 !important;
    border: 1.5px solid rgba(42, 51, 43, 0.15) !important;
    border-radius: 10px !important;
    color: #2A332B !important;
    padding: 12px 16px !important;
    width: 100%;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease;
}
body.woocommerce-account:not(.logged-in) input:focus {
    border-color: #C8922A !important;
    outline: none !important;
    background: #FFFFFF !important;
}
body.woocommerce-account:not(.logged-in) .woocommerce-Button,
body.woocommerce-account:not(.logged-in) button[type="submit"] {
    background: #C8922A !important;
    color: #2A332B !important;
    border-radius: 999px !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    border: none !important;
    width: 100% !important;
    font-size: 15px !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
body.woocommerce-account:not(.logged-in) .woocommerce-Button:hover,
body.woocommerce-account:not(.logged-in) button[type="submit"]:hover {
    background: #d8a236 !important;
    transform: translateY(-1px);
}
body.woocommerce-account:not(.logged-in) p {
    color: rgba(42, 51, 43, 0.65) !important;
}
body.woocommerce-account:not(.logged-in) .lost_password a,
body.woocommerce-account:not(.logged-in) a {
    color: #C8922A !important;
    text-decoration: none;
}
body.woocommerce-account:not(.logged-in) .lost_password a:hover,
body.woocommerce-account:not(.logged-in) a:hover {
    color: #a87420 !important;
    text-decoration: underline;
}
body.woocommerce-account:not(.logged-in) .woocommerce-form__label-for-checkbox {
    color: rgba(42, 51, 43, 0.65) !important;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}

/* ── FIX 2 — Hide WC default "Hello [name] (not [name]? Log out)" text ── */
/* WC's dashboard.php template prints a greeting <p> as the FIRST element
   of .woocommerce-MyAccount-content. We hide it ONLY on the dashboard
   endpoint (data-endpoint="dashboard"). Other endpoints' first <p> stays. */
.bk-dashboard-v2[data-endpoint="dashboard"] .bk-account-content > p:first-child {
    display: none;
}

/* ── FIX 3 — Comprehensive content colour fixes for all sub-pages ── */
.bk-dashboard-v2 .bk-account-content {
    color: #f3efe5;
}
.bk-dashboard-v2 .bk-account-content h1,
.bk-dashboard-v2 .bk-account-content h2,
.bk-dashboard-v2 .bk-account-content h3 {
    color: #ffffff;
    font-family: 'Fraunces', Georgia, serif;
}
.bk-dashboard-v2 .bk-account-content p,
.bk-dashboard-v2 .bk-account-content span,
.bk-dashboard-v2 .bk-account-content td,
.bk-dashboard-v2 .bk-account-content th,
.bk-dashboard-v2 .bk-account-content li {
    color: rgba(243,239,229,0.85);
}
.bk-dashboard-v2 .bk-account-content a {
    color: #C8922A;
}
.bk-dashboard-v2 .bk-account-content a:hover {
    color: #e0b25a;
}

/* Tables (orders, subscriptions, etc.) */
.bk-dashboard-v2 .bk-account-content table {
    width: 100%;
    border-collapse: collapse;
}
.bk-dashboard-v2 .bk-account-content th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(243,239,229,0.5) !important;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-weight: 600;
    text-align: left;
}
.bk-dashboard-v2 .bk-account-content td {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

/* Inline action buttons inside content (pill, ghost style) */
.bk-dashboard-v2 .bk-account-content .button,
.bk-dashboard-v2 .bk-account-content button:not([type="submit"]) {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #f3efe5;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}
.bk-dashboard-v2 .bk-account-content .button:hover,
.bk-dashboard-v2 .bk-account-content button:not([type="submit"]):hover {
    background: #C8922A;
    color: #2A332B;
    border-color: #C8922A;
}

/* Form inputs inside any account sub-page */
.bk-dashboard-v2 .bk-account-content input[type="text"],
.bk-dashboard-v2 .bk-account-content input[type="email"],
.bk-dashboard-v2 .bk-account-content input[type="tel"],
.bk-dashboard-v2 .bk-account-content input[type="password"],
.bk-dashboard-v2 .bk-account-content input[type="number"],
.bk-dashboard-v2 .bk-account-content select,
.bk-dashboard-v2 .bk-account-content textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.13);
    color: #f3efe5;
    border-radius: 10px;
    padding: 10px 14px;
    width: 100%;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}
.bk-dashboard-v2 .bk-account-content input:focus,
.bk-dashboard-v2 .bk-account-content select:focus,
.bk-dashboard-v2 .bk-account-content textarea:focus {
    border-color: #C8922A;
    outline: none;
}
.bk-dashboard-v2 .bk-account-content label {
    color: rgba(243,239,229,0.65);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* Address boxes (edit-address endpoint) */
.bk-dashboard-v2 .bk-account-content .woocommerce-Address,
.bk-dashboard-v2 .bk-account-content .u-column1,
.bk-dashboard-v2 .bk-account-content .u-column2 {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}
.bk-dashboard-v2 .bk-account-content .woocommerce-Address-title h3 {
    color: #fff;
    margin-bottom: 16px;
}

/* Status badges in orders/subscriptions tables */
.bk-dashboard-v2 .bk-account-content .woocommerce-orders-table__cell-order-status mark,
.bk-dashboard-v2 .bk-account-content .subscription-status,
.bk-dashboard-v2 .bk-account-content mark.completed,
.bk-dashboard-v2 .bk-account-content mark.processing,
.bk-dashboard-v2 .bk-account-content mark.active {
    background: rgba(125,190,133,0.15);
    color: #7DBE85;
    border: 1px solid rgba(125,190,133,0.3);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

/* ── FIX 5 — Pet-profile + referral cards inside dark glass shell ── */
/* Wildcard selector net — catches any internal card class regardless of
   exact name (vb-pet-*, bk-pet-*, vb-referral-*, etc.). Forces dark-glass
   palette so light-bg cards don't clash with the dashboard wrapper. */
.bk-dashboard-v2 [class*="vb-pet"],
.bk-dashboard-v2 [class*="bk-pet"],
.bk-dashboard-v2 [class*="vb-referral"],
.bk-dashboard-v2 [class*="bk-referral"],
.bk-dashboard-v2 [class*="vb-winback"],
.bk-dashboard-v2 [class*="bk-winback"] {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.13) !important;
    color: #f3efe5 !important;
}
.bk-dashboard-v2 [class*="vb-pet"] h1,
.bk-dashboard-v2 [class*="vb-pet"] h2,
.bk-dashboard-v2 [class*="vb-pet"] h3,
.bk-dashboard-v2 [class*="bk-pet"] h1,
.bk-dashboard-v2 [class*="bk-pet"] h2,
.bk-dashboard-v2 [class*="bk-pet"] h3,
.bk-dashboard-v2 [class*="vb-referral"] h1,
.bk-dashboard-v2 [class*="vb-referral"] h2,
.bk-dashboard-v2 [class*="vb-referral"] h3,
.bk-dashboard-v2 [class*="bk-referral"] h1,
.bk-dashboard-v2 [class*="bk-referral"] h2,
.bk-dashboard-v2 [class*="bk-referral"] h3 {
    color: #ffffff !important;
}

/* ════════════════════════════════════════════════════════════════════════
   LOGIN PAGE TEXT VISIBILITY FIX (owner 2026-05-14 — 4th pass)
   ────────────────────────────────────────────────────────────────────────
   Earlier login styles (lines ~1057+) styled the form shell but some
   labels / paragraphs / checkbox text still inherited dark color. These
   explicit !important rules guarantee visibility against dark glass bg.
   ════════════════════════════════════════════════════════════════════════ */
body.woocommerce-account:not(.logged-in)
  .woocommerce-form-login input,
body.woocommerce-account:not(.logged-in)
  .woocommerce-form-register input {
    color: #f3efe5 !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
}
body.woocommerce-account:not(.logged-in)
  .woocommerce-form-login label,
body.woocommerce-account:not(.logged-in)
  .woocommerce-form-register label {
    color: rgba(243,239,229,0.8) !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}
body.woocommerce-account:not(.logged-in)
  .woocommerce-form-login p,
body.woocommerce-account:not(.logged-in)
  .woocommerce-form-register p {
    color: rgba(243,239,229,0.75) !important;
}
body.woocommerce-account:not(.logged-in)
  .woocommerce-form-login h2,
body.woocommerce-account:not(.logged-in)
  .woocommerce-form-register h2 {
    color: #ffffff !important;
}
/* Fix checkbox visibility */
body.woocommerce-account:not(.logged-in)
  .woocommerce-form__label-for-checkbox {
    color: rgba(243,239,229,0.75) !important;
}

/* ════════════════════════════════════════════════════════════════════════
   LOGIN PAGE — CREAM/PAPER OVERRIDE (owner 2026-05-14 — 6th pass)
   ────────────────────────────────────────────────────────────────────────
   Replaces the dark-glass login surface with cream/paper. These rules
   live at the END of the file so they win same-specificity ties against
   the earlier dark-mode block at L1049+.
   ════════════════════════════════════════════════════════════════════════ */
body.woocommerce-account:not(.logged-in) {
    background: #F5F0E8 !important;
}
body.woocommerce-account:not(.logged-in)
  .woocommerce-form-login,
body.woocommerce-account:not(.logged-in)
  .woocommerce-form-register {
    background: #fff !important;
    border: 1px solid rgba(42,51,43,0.1) !important;
    box-shadow: 0 2px 16px rgba(42,51,43,0.06) !important;
}
body.woocommerce-account:not(.logged-in) h2 {
    color: #2A332B !important;
}
body.woocommerce-account:not(.logged-in) label,
body.woocommerce-account:not(.logged-in)
  .woocommerce-form__label {
    color: rgba(42,51,43,0.7) !important;
}
body.woocommerce-account:not(.logged-in) input {
    color: #2A332B !important;
    background: #fff !important;
    border: 1.5px solid rgba(42,51,43,0.15) !important;
}
body.woocommerce-account:not(.logged-in) p {
    color: rgba(42,51,43,0.65) !important;
}
body.woocommerce-account:not(.logged-in) a {
    color: #C8922A !important;
}
body.woocommerce-account:not(.logged-in)
  button[type="submit"] {
    background: #C8922A !important;
    color: #2A332B !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    border: none !important;
    width: 100% !important;
}

/* ════════════════════════════════════════════════════════════════════════
   BUG 2 — LOGIN PAGE ALL TEXT DARK (owner 2026-05-14 — 8th pass)
   ────────────────────────────────────────────────────────────────────────
   Forces every text element on the login/register page to dark ink so
   nothing is unreadable on cream bg. Placeholder text gets 40% opacity.
   Required (*) span gets gold accent.
   ════════════════════════════════════════════════════════════════════════ */
body.woocommerce-account:not(.logged-in) label,
body.woocommerce-account:not(.logged-in) label *,
body.woocommerce-account:not(.logged-in) label span,
body.woocommerce-account:not(.logged-in) .required,
body.woocommerce-account:not(.logged-in) input,
body.woocommerce-account:not(.logged-in) p,
body.woocommerce-account:not(.logged-in) span:not(.screen-reader-text),
body.woocommerce-account:not(.logged-in) h2,
body.woocommerce-account:not(.logged-in) a {
    color: #2A332B !important;
}
body.woocommerce-account:not(.logged-in) input::placeholder {
    color: rgba(42,51,43,0.4) !important;
}
body.woocommerce-account:not(.logged-in) input::-webkit-input-placeholder {
    color: rgba(42,51,43,0.4) !important;
}
body.woocommerce-account:not(.logged-in) input::-moz-placeholder {
    color: rgba(42,51,43,0.4) !important;
    opacity: 1;
}
body.woocommerce-account:not(.logged-in) .required {
    color: #C8922A !important;
}

/* ════════════════════════════════════════════════════════════════════════
   SUBSCRIPTIONS PAGE — YITH FREE table styling (owner 2026-05-14 — 10th)
   ────────────────────────────────────────────────────────────────────────
   YITH renders subscriptions through templates/myaccount/my-subscriptions-view.php
   into a raw WooCommerce-style table inside .bk-account-content.glass.
   These rules wrap the table in a white card, restyle headers/cells/badges/
   buttons to match the rest of the v3 dashboard surface (cream + ink + gold).
   ════════════════════════════════════════════════════════════════════════ */

/* Outer card wrapper — applies to the YITH list */
.bk-dashboard-v2[data-endpoint="my-subscription"] .bk-account-content,
body.woocommerce-account .ywsbs-my-subscriptions,
body.woocommerce-account .woocommerce-MyAccount-content .my_account_subscriptions,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_subscriptions {
    background: #fff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(42,51,43,0.08) !important;
    padding: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
}

/* Table headers — small caps */
body.woocommerce-account .my_account_subscriptions thead th,
body.woocommerce-account .ywsbs-my-subscriptions thead th,
body.woocommerce-account table.subscriptions-table thead th {
    color: rgba(42,51,43,0.5) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    border-bottom: 1px solid rgba(42,51,43,0.08) !important;
    padding: 14px 16px !important;
    background: #fff !important;
    text-align: left !important;
}

/* Table rows */
body.woocommerce-account .my_account_subscriptions tbody td,
body.woocommerce-account .ywsbs-my-subscriptions tbody td,
body.woocommerce-account table.subscriptions-table tbody td {
    padding: 16px !important;
    border-bottom: 1px solid rgba(42,51,43,0.06) !important;
    color: #2A332B !important;
    font-size: 14px !important;
    background: #fff !important;
    vertical-align: middle !important;
}
body.woocommerce-account .my_account_subscriptions tbody tr:last-child td,
body.woocommerce-account .ywsbs-my-subscriptions tbody tr:last-child td {
    border-bottom: none !important;
}

/* Subscription # link (e.g. #847) — gold, no underline */
body.woocommerce-account .my_account_subscriptions tbody a,
body.woocommerce-account .ywsbs-my-subscriptions tbody a:not(.button) {
    color: #C8922A !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
body.woocommerce-account .my_account_subscriptions tbody a:hover,
body.woocommerce-account .ywsbs-my-subscriptions tbody a:not(.button):hover {
    color: #2A332B !important;
}

/* STATUS badges — pill with status-color background */
body.woocommerce-account .subscription-status,
body.woocommerce-account .ywsbs-status,
body.woocommerce-account .ywsbs-subscription-status,
body.woocommerce-account td.subscription-status mark,
body.woocommerce-account td.subscription-status .order-status,
body.woocommerce-account td.subscription-status > * {
    display: inline-block !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: rgba(42,51,43,0.08) !important;
    color: rgba(42,51,43,0.5) !important;
    line-height: 1.4 !important;
}
/* ACTIVE — green */
body.woocommerce-account .subscription-status.active,
body.woocommerce-account .ywsbs-status.active,
body.woocommerce-account .ywsbs-status-active,
body.woocommerce-account td.subscription-status mark.active,
body.woocommerce-account td.subscription-status mark.status-active {
    background: rgba(61,90,62,0.12) !important;
    color: #3D5A3E !important;
}
/* PENDING / PAUSED — amber */
body.woocommerce-account .subscription-status.pending,
body.woocommerce-account .subscription-status.paused,
body.woocommerce-account .ywsbs-status.paused,
body.woocommerce-account .ywsbs-status.pending,
body.woocommerce-account .ywsbs-status-paused,
body.woocommerce-account .ywsbs-status-pending,
body.woocommerce-account td.subscription-status mark.paused,
body.woocommerce-account td.subscription-status mark.pending {
    background: rgba(200,146,42,0.12) !important;
    color: #C8922A !important;
}
/* CANCELLED / EXPIRED — muted ink */
body.woocommerce-account .subscription-status.cancelled,
body.woocommerce-account .subscription-status.expired,
body.woocommerce-account .ywsbs-status.cancelled,
body.woocommerce-account .ywsbs-status.expired,
body.woocommerce-account .ywsbs-status-cancelled,
body.woocommerce-account .ywsbs-status-expired,
body.woocommerce-account td.subscription-status mark.cancelled,
body.woocommerce-account td.subscription-status mark.expired {
    background: rgba(42,51,43,0.08) !important;
    color: rgba(42,51,43,0.5) !important;
}

/* "Pauziraj dostavu" pill — outlined button */
body.woocommerce-account .my_account_subscriptions tbody .button,
body.woocommerce-account .my_account_subscriptions tbody a.button,
body.woocommerce-account .ywsbs-my-subscriptions tbody .button,
body.woocommerce-account .ywsbs-my-subscriptions tbody a.button,
body.woocommerce-account .subscription-actions a.button,
body.woocommerce-account .ywsbs-pause-button,
body.woocommerce-account .ywsbs-reactivate-button {
    display: inline-block !important;
    background: transparent !important;
    color: #2A332B !important;
    border: 1.5px solid #2A332B !important;
    border-radius: 999px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s !important;
    box-shadow: none !important;
}
body.woocommerce-account .my_account_subscriptions tbody .button:hover,
body.woocommerce-account .my_account_subscriptions tbody a.button:hover,
body.woocommerce-account .ywsbs-my-subscriptions tbody .button:hover,
body.woocommerce-account .ywsbs-my-subscriptions tbody a.button:hover,
body.woocommerce-account .subscription-actions a.button:hover,
body.woocommerce-account .ywsbs-pause-button:hover,
body.woocommerce-account .ywsbs-reactivate-button:hover {
    background: #2A332B !important;
    color: #F5F0E8 !important;
}

/* "Otkaži pretplatu" — muted link */
body.woocommerce-account .ywsbs-cancel-button,
body.woocommerce-account a.cancel-subscription,
body.woocommerce-account .subscription-actions .cancel,
body.woocommerce-account .ywsbs-cancel,
body.woocommerce-account a[href*="cancel_subscription"] {
    color: rgba(42,51,43,0.45) !important;
    font-size: 12px !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    padding: 6px 8px !important;
    font-weight: 500 !important;
    margin-left: 8px !important;
}
body.woocommerce-account .ywsbs-cancel-button:hover,
body.woocommerce-account a.cancel-subscription:hover,
body.woocommerce-account .subscription-actions .cancel:hover,
body.woocommerce-account .ywsbs-cancel:hover,
body.woocommerce-account a[href*="cancel_subscription"]:hover {
    color: #C8922A !important;
}

/* Pagination row at bottom of YITH list */
body.woocommerce-account .ywsbs-my-subscriptions .woocommerce-pagination,
body.woocommerce-account .ywsbs-my-subscriptions .my_account_subscriptions + nav {
    padding: 14px 16px !important;
    border-top: 1px solid rgba(42,51,43,0.06) !important;
    background: #fff !important;
}

/* ════════════════════════════════════════════════════════════════════════
   SUBSCRIPTIONS — BARKLY OVERRIDE STYLES (owner 2026-05-14 — 11th pass)
   ────────────────────────────────────────────────────────────────────────
   Styles for the BK-overridden YITH template
   (woocommerce/myaccount/my-subscriptions-view.php).
   Clean data table, white card, pill status badges, outline action button.
   ════════════════════════════════════════════════════════════════════════ */
body.woocommerce-account .bk-subs-wrap {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(42,51,43,0.08);
    overflow: hidden;
    margin: 0;
}
body.woocommerce-account .bk-subs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
}
body.woocommerce-account .bk-subs-table thead th {
    padding: 14px 20px !important;
    text-align: left !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: rgba(42,51,43,0.45) !important;
    border-bottom: 1px solid rgba(42,51,43,0.08) !important;
    background: #faf7f1 !important;
}
body.woocommerce-account .bk-subs-table tbody tr {
    border-bottom: 1px solid rgba(42,51,43,0.06);
}
body.woocommerce-account .bk-subs-table tbody tr:last-child {
    border-bottom: none;
}
body.woocommerce-account .bk-subs-table tbody td {
    padding: 16px 20px !important;
    color: #2A332B !important;
    font-size: 14px !important;
    vertical-align: middle !important;
    background: #fff !important;
}
body.woocommerce-account .bk-subs-table .sub-link {
    color: #C8922A !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
body.woocommerce-account .bk-subs-table .sub-link:hover {
    color: #2A332B !important;
}

/* Status pill */
body.woocommerce-account .bk-sub-status {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    background: rgba(42,51,43,0.07) !important;
    color: rgba(42,51,43,0.5) !important;
    line-height: 1.4 !important;
}
body.woocommerce-account .bk-sub-status.active,
body.woocommerce-account .bk-sub-status.trial {
    background: rgba(61,90,62,0.12) !important;
    color: #3D5A3E !important;
}
body.woocommerce-account .bk-sub-status.pending,
body.woocommerce-account .bk-sub-status.paused,
body.woocommerce-account .bk-sub-status.overdue {
    background: rgba(200,146,42,0.12) !important;
    color: #C8922A !important;
}
body.woocommerce-account .bk-sub-status.cancelled,
body.woocommerce-account .bk-sub-status.expired,
body.woocommerce-account .bk-sub-status.suspended {
    background: rgba(42,51,43,0.07) !important;
    color: rgba(42,51,43,0.5) !important;
}

/* Action pill — "Detalji" / pause */
body.woocommerce-account .bk-sub-pause-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 16px !important;
    border: 1.5px solid rgba(42,51,43,0.2) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #2A332B !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.15s !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}
body.woocommerce-account .bk-sub-pause-btn:hover {
    background: #2A332B !important;
    color: #F5F0E8 !important;
    border-color: #2A332B !important;
}

/* Muted cancel link */
body.woocommerce-account .bk-sub-cancel-link {
    display: block;
    margin-top: 6px;
    font-size: 12px !important;
    color: rgba(42,51,43,0.4) !important;
    text-decoration: none !important;
    text-align: center;
}
body.woocommerce-account .bk-sub-cancel-link:hover {
    color: #C8922A !important;
}

/* Empty state + pagination row */
body.woocommerce-account .bk-subs-empty {
    background: #fff;
    border: 1px solid rgba(42,51,43,0.08);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    color: rgba(42,51,43,0.7);
}
body.woocommerce-account .bk-subs-pagination {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 16px;
    padding: 14px 0;
}

/* Mobile — stack rows */
@media (max-width: 640px) {
    body.woocommerce-account .bk-subs-table thead { display: none; }
    body.woocommerce-account .bk-subs-table,
    body.woocommerce-account .bk-subs-table tbody,
    body.woocommerce-account .bk-subs-table tr,
    body.woocommerce-account .bk-subs-table td {
        display: block !important;
        width: 100% !important;
    }
    body.woocommerce-account .bk-subs-table tbody tr {
        padding: 12px 16px !important;
        border-bottom: 1px solid rgba(42,51,43,0.08) !important;
    }
    body.woocommerce-account .bk-subs-table tbody td {
        padding: 4px 0 !important;
        border: none !important;
    }
    body.woocommerce-account .bk-subs-table tbody td:first-child {
        font-weight: 600;
        margin-bottom: 6px;
    }
}
