/* ═══════════════════════════════════════════════════════════
   WC Precious Metals v1.6 — Refined Luxury
   Serif display + clean sans UI, charcoal + gold
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Yantramanav:wght@100;300;400;500;700;900&display=swap');

div.wcpm-wrap {
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1f;
    background:
        radial-gradient(ellipse 800px 400px at 10% 0%, rgba(201,162,39,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 600px 300px at 90% 100%, rgba(26,26,31,0.03) 0%, transparent 60%),
        #fafaf7;
    border: 1px solid #e8e4d9;
    border-radius: 4px;
    padding: 40px;
    line-height: 1.55;
    box-sizing: border-box;
    margin-bottom: 24px;
    font-size: 15px;
    font-feature-settings: 'ss01', 'cv11';
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow: hidden;
}
div.wcpm-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #c9a227 20%, #e4c868 50%, #c9a227 80%, transparent 100%);
    opacity: 0.6;
}
div.wcpm-wrap *, div.wcpm-wrap *::before, div.wcpm-wrap *::after { box-sizing: border-box; }
div.wcpm-wrap a { color: #8a6d0b; text-decoration: none; border-bottom: 1px solid rgba(138,109,11,0.3); transition: border-color 0.2s; }
div.wcpm-wrap a:hover { border-bottom-color: #8a6d0b; }
div.wcpm-wrap p { margin: 0 0 14px; color: #52525a; }
div.wcpm-wrap h3 {
    margin: 0;
    color: #1a1a1f;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
div.wcpm-wrap img { max-width: 100%; height: auto; }

.wcpm-wrap .wcpm-mono {
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.03em;
    font-feature-settings: 'zero', 'ss01';
}

/* ═══════════════════════════════════════════════════════════
   LIVE INDICATOR — elegant, not blinking LED
   ═══════════════════════════════════════════════════════════ */
.wcpm-wrap .wcpm-live-indicator {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px 5px 10px;
    background: rgba(56, 161, 105, 0.06);
    border: 1px solid rgba(56, 161, 105, 0.2);
    border-radius: 100px;
}
.wcpm-wrap .wcpm-live-indicator__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #38a169; display: inline-block;
    box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.6);
    animation: wcpm-ripple 2.2s ease-out infinite;
}
.wcpm-wrap .wcpm-live-indicator__text {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.14em; color: #2f855a;
    font-family: 'Yantramanav', sans-serif;
}
.wcpm-wrap .wcpm-live-indicator--sm { padding: 3px 10px 3px 8px; }
.wcpm-wrap .wcpm-live-indicator--sm .wcpm-live-indicator__dot { width: 5px; height: 5px; }
.wcpm-wrap .wcpm-live-indicator--sm .wcpm-live-indicator__text { font-size: 9px; }
@keyframes wcpm-ripple {
    0%   { box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(56, 161, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 161, 105, 0); }
}

/* ═══════════════════════════════════════════════════════════
   SPOT PRICE CARDS — premium, with serif numerals
   ═══════════════════════════════════════════════════════════ */
.wcpm-wrap .wcpm-prices__header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e4d9;
}
.wcpm-wrap .wcpm-prices__title {
    font-size: 18px; font-weight: 700; color: #1a1a1f;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1;
}
.wcpm-wrap .wcpm-prices__title::after {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: #c9a227;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    margin-bottom: 4px;
}
.wcpm-wrap .wcpm-prices__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.wcpm-wrap .wcpm-card {
    background: #ffffff;
    border: 1px solid #e8e4d9;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
    position: relative;
    box-shadow:
        0 1px 1px rgba(26,26,31,0.02),
        0 4px 8px rgba(26,26,31,0.02);
}
.wcpm-wrap .wcpm-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 1px rgba(26,26,31,0.03),
        0 8px 24px rgba(26,26,31,0.06),
        0 16px 48px rgba(26,26,31,0.04);
}
.wcpm-wrap .wcpm-card__accent {
    height: 2px; width: 100%; display: block;
    position: relative;
}
.wcpm-wrap .wcpm-card__accent::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}
.wcpm-wrap .wcpm-card__body { padding: 16px 18px 12px; }
.wcpm-wrap .wcpm-card__meta {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.wcpm-wrap .wcpm-card__symbol {
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 9px; font-weight: 700;
    background: transparent; color: #8a8478;
    padding: 2px 7px; border-radius: 2px;
    letter-spacing: 0.1em;
    display: inline-block;
    border: 1px solid #e8e4d9;
    text-transform: uppercase;
}
.wcpm-wrap .wcpm-card__name {
    font-size: 12px; font-weight: 500; color: #3a3a42;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.01em;
}
.wcpm-wrap .wcpm-card__spot {
    margin-bottom: 14px;
    display: flex; align-items: baseline; gap: 3px;
}
.wcpm-wrap .wcpm-card__spot-value {
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 22px; font-weight: 700; color: #1a1a1f;
    letter-spacing: -0.02em;
    line-height: 1;
    display: inline-block;
    transition: color 0.4s;
}
.wcpm-wrap .wcpm-card__spot-unit {
    font-size: 12px; color: #a8a294;
    font-family: 'Yantramanav', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.wcpm-wrap .wcpm-card__prices {
    display: flex;
    border-top: 1px solid #f0ecde;
    margin: 0 -18px;
    padding: 0;
}
.wcpm-wrap .wcpm-card__price-col {
    flex: 1; padding: 10px 18px;
}
.wcpm-wrap .wcpm-card__price-col + .wcpm-wrap .wcpm-card__price-col,
.wcpm-wrap .wcpm-card__prices .wcpm-card__price-col + .wcpm-card__price-col {
    border-left: 1px solid #f0ecde;
}
.wcpm-wrap .wcpm-card__price-divider { width: 1px; background: #f0ecde; }
.wcpm-wrap .wcpm-card__price-label {
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: #a8a294;
    margin-bottom: 2px; display: block;
    font-family: 'Yantramanav', sans-serif;
}
.wcpm-wrap .wcpm-card__price-buy {
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px; font-weight: 500; color: #2f855a;
    display: block;
    letter-spacing: -0.02em;
}
.wcpm-wrap .wcpm-card__price-sell {
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px; font-weight: 500; color: #c53030;
    display: block;
    letter-spacing: -0.02em;
}
.wcpm-wrap .wcpm-card__updated {
    margin: 0 -18px; padding: 8px 18px;
    border-top: 1px solid #f0ecde;
    background: #fafaf7;
    font-size: 9px; color: #a8a294;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.04em;
    display: flex; align-items: center; gap: 6px;
}
.wcpm-wrap .wcpm-card__updated::before {
    content: 'Updated';
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #8a8478;
    font-size: 8px;
}

/* Price flash */
@keyframes wcpm-flash-green { 0% { color: #2f855a; transform: translateY(-1px); } 100% { color: #1a1a1f; transform: translateY(0); } }
@keyframes wcpm-flash-red   { 0% { color: #c53030; transform: translateY(1px); }  100% { color: #1a1a1f; transform: translateY(0); } }
.wcpm-wrap .wcpm-price--up   { animation: wcpm-flash-green 1.5s ease-out; }
.wcpm-wrap .wcpm-price--down { animation: wcpm-flash-red   1.5s ease-out; }

/* ═══════════════════════════════════════════════════════════
   PANELS — refined trading forms
   ═══════════════════════════════════════════════════════════ */
.wcpm-wrap .wcpm-panel,
.wcpm-wrap .wcpm-sell-panel {
    width: 100%;
    max-width: none;
    background: #ffffff;
    border: 1px solid #e8e4d9;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 1px 1px rgba(26,26,31,0.02),
        0 8px 24px rgba(26,26,31,0.04);
}
.wcpm-wrap .wcpm-panel__header,
.wcpm-wrap .wcpm-sell-panel__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 28px 20px;
    border-bottom: 1px solid #f0ecde;
    background: linear-gradient(180deg, #ffffff, #fafaf7);
}
.wcpm-wrap .wcpm-panel__title,
.wcpm-wrap .wcpm-sell-panel__header h3 {
    font-size: 16px; font-weight: 700; color: #1a1a1f;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.wcpm-wrap .wcpm-panel__body,
.wcpm-wrap .wcpm-sell-panel__body { padding: 28px; }
.wcpm-wrap .wcpm-panel__desc {
    font-size: 13px; color: #6b6b73; margin: 0 0 22px;
    line-height: 1.6;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
}

/* ─── Form Fields ─────────────────────────────────────────── */
.wcpm-wrap .wcpm-field { margin-bottom: 22px; }
.wcpm-wrap .wcpm-field__label {
    display: block;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: #8a8478; margin-bottom: 10px;
    font-family: 'Yantramanav', sans-serif;
}
.wcpm-wrap .wcpm-field__select,
.wcpm-wrap .wcpm-field__input {
    width: 100%; padding: 13px 16px;
    background: #fafaf7;
    border: 1px solid #e8e4d9;
    border-radius: 3px;
    color: #1a1a1f;
    font-family: 'Yantramanav', sans-serif;
    font-size: 14px; font-weight: 500;
    transition: all 0.2s;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    outline: none; box-shadow: none; height: auto; margin: 0;
}
.wcpm-wrap .wcpm-field__select {
    cursor: pointer; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a8478' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
    background-color: #fafaf7;
}
.wcpm-wrap .wcpm-field__select option { background: #fff; color: #1a1a1f; }
.wcpm-wrap .wcpm-field__select:focus,
.wcpm-wrap .wcpm-field__input:focus {
    border-color: #c9a227;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}
.wcpm-wrap .wcpm-field__input-wrap { position: relative; }
.wcpm-wrap .wcpm-field__prefix {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: #a8a294; font-size: 15px; pointer-events: none;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    z-index: 1;
}
.wcpm-wrap .wcpm-field__input-wrap .wcpm-field__input { padding-left: 40px; }
.wcpm-wrap .wcpm-field__input--lg {
    font-size: 18px; font-weight: 500;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
    padding-top: 13px; padding-bottom: 13px;
}
.wcpm-wrap .wcpm-field__input::placeholder { color: #c7c1b0; font-weight: 400; }

/* ─── Segmented Control ───────────────────────────────────── */
.wcpm-wrap .wcpm-segmented {
    display: flex; background: #f0ecde; border-radius: 3px; padding: 3px;
    border: 1px solid #e8e4d9;
}
.wcpm-wrap .wcpm-segmented__btn {
    flex: 1; padding: 9px 16px;
    border: none; background: transparent;
    color: #8a8478; font-family: 'Yantramanav', sans-serif;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    border-radius: 2px; cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}
.wcpm-wrap .wcpm-segmented__btn--active {
    background: #ffffff; color: #1a1a1f;
    box-shadow:
        0 1px 2px rgba(26,26,31,0.04),
        0 2px 6px rgba(26,26,31,0.06);
}

/* ─── Order Summary ───────────────────────────────────────── */
.wcpm-wrap .wcpm-order-summary {
    background: #fafaf7;
    border: 1px solid #e8e4d9;
    border-radius: 3px;
    padding: 18px 22px;
    margin-bottom: 22px;
    position: relative;
}
.wcpm-wrap .wcpm-order-summary::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, #c9a227, #e4c868);
    border-radius: 3px 3px 0 0;
}
.wcpm-wrap .wcpm-order-summary__row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0; font-size: 13px; color: #6b6b73;
}
.wcpm-wrap .wcpm-order-summary__row--total {
    border-top: 1px solid #e8e4d9;
    margin-top: 10px; padding-top: 12px;
    font-weight: 700; color: #1a1a1f; font-size: 16px;
}
.wcpm-wrap .wcpm-order-summary__row--total .wcpm-mono {
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px; font-weight: 700;
    letter-spacing: -0.02em;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.wcpm-wrap .wcpm-btn {
    display: block; width: 100%;
    padding: 15px 28px;
    border: none;
    border-radius: 3px;
    font-family: 'Yantramanav', sans-serif;
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    cursor: pointer; text-align: center;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    line-height: 1.4; text-decoration: none;
    position: relative;
    overflow: hidden;
}
.wcpm-wrap .wcpm-btn--buy {
    background: #1a1a1f;
    color: #ffffff;
    box-shadow:
        0 1px 2px rgba(26,26,31,0.1),
        inset 0 1px 0 rgba(255,255,255,0.1);
}
.wcpm-wrap .wcpm-btn--buy::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a227, transparent);
    opacity: 0.6;
}
.wcpm-wrap .wcpm-btn--buy:hover:not(:disabled) {
    background: #2a2a32;
    box-shadow:
        0 4px 12px rgba(26,26,31,0.2),
        0 1px 2px rgba(26,26,31,0.1),
        inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-1px);
}
.wcpm-wrap .wcpm-btn--sell {
    background: #ffffff;
    color: #c53030;
    border: 1px solid #fed7d7;
    box-shadow: 0 1px 2px rgba(197,48,48,0.04);
}
.wcpm-wrap .wcpm-btn--sell:hover:not(:disabled) {
    background: #fff5f5;
    border-color: #fc8181;
    box-shadow: 0 4px 12px rgba(197,48,48,0.1);
    transform: translateY(-1px);
}
.wcpm-wrap .wcpm-btn--cashout {
    background: #ffffff;
    color: #1a1a1f;
    border: 1px solid #e8e4d9;
    display: inline-block; width: auto;
    padding: 9px 20px; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.12em;
}
.wcpm-wrap .wcpm-btn--cashout:hover:not(:disabled) {
    background: #1a1a1f;
    color: #ffffff;
    border-color: #1a1a1f;
}
.wcpm-wrap .wcpm-btn:disabled {
    opacity: 0.35; cursor: not-allowed;
    transform: none; box-shadow: none;
}
.wcpm-wrap .wcpm-btn-link {
    background: none; border: none; padding: 0;
    color: #8a6d0b; font-size: 12px;
    border-bottom: 1px solid rgba(138,109,11,0.3);
    cursor: pointer; font-family: 'Yantramanav', sans-serif;
    margin-top: 10px; display: inline-block;
    transition: border-color 0.2s;
    font-weight: 500;
}
.wcpm-wrap .wcpm-btn-link:hover { border-bottom-color: #8a6d0b; }

/* ─── Messages ────────────────────────────────────────────── */
.wcpm-wrap .wcpm-message {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 3px;
    font-size: 13px;
    border-left: 3px solid;
}
.wcpm-wrap .wcpm-message--success {
    background: #f0fdf4; color: #276749;
    border-color: #38a169;
}
.wcpm-wrap .wcpm-message--error {
    background: #fff5f5; color: #c53030;
    border-color: #e53e3e;
}
.wcpm-wrap .wcpm-notice {
    padding: 18px 22px;
    border-radius: 3px;
    font-size: 14px;
    border-left: 3px solid;
}
.wcpm-wrap .wcpm-notice--info {
    background: #fafaf7; color: #3a3a42;
    border-color: #c9a227;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
}
.wcpm-wrap .wcpm-notice--info a { color: #8a6d0b; font-weight: 500; }
.wcpm-wrap .wcpm-notice--restricted {
    background: #fff5f5; color: #c53030;
    border-color: #e53e3e;
}

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════════════════════ */
.wcpm-wrap .wcpm-portfolio__header {
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e4d9;
}
.wcpm-wrap .wcpm-portfolio__title {
    font-size: 18px; font-weight: 700; color: #1a1a1f;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1;
}
.wcpm-wrap .wcpm-portfolio__total {
    display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.wcpm-wrap .wcpm-portfolio__total-label {
    font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: #8a8478; font-weight: 700;
    font-family: 'Yantramanav', sans-serif;
}
.wcpm-wrap .wcpm-portfolio__total-value {
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 20px; font-weight: 700;
    color: #1a1a1f;
    letter-spacing: -0.02em;
    line-height: 1;
}
.wcpm-wrap .wcpm-portfolio__total-gain {
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 2px;
    letter-spacing: -0.02em;
}

/* Center the holdings table within its container.
   Uses class-based selectors because strip_wrap() removes the
   outer #wcpm-portfolio id when rendered inside My Account. */
.wcpm-wrap .wcpm-portfolio-table-wrap {
    margin: 0 auto !important;
    max-width: 900px;
}
.wcpm-wrap .wcpm-portfolio-header {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Center headings and cell content inside the holdings table */
.wcpm-wrap .wcpm-portfolio-table th,
.wcpm-wrap .wcpm-portfolio-table td {
    text-align: center !important;
}
.wcpm-wrap .wcpm-portfolio-table .wcpm-table__metal {
    justify-content: center !important;
}

/* ═══════════════════════════════════════════════════════════
   CHART TAB
   ═══════════════════════════════════════════════════════════ */
.wcpm-wrap .wcpm-chart-wrap {
    max-width: 900px;
    margin: 0 auto;
}
.wcpm-wrap .wcpm-chart-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e4d9;
}
.wcpm-wrap .wcpm-chart-title {
    font-size: 18px; font-weight: 700; color: #1a1a1f;
    font-family: 'Yantramanav', sans-serif;
    letter-spacing: -0.015em;
    margin-bottom: 4px;
}
.wcpm-wrap .wcpm-chart-subtitle {
    font-size: 13px; color: #8a8478; margin: 0;
}
.wcpm-wrap .wcpm-chart-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.wcpm-wrap .wcpm-chart-canvas-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}
.wcpm-wrap .wcpm-chart-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}
.wcpm-wrap .wcpm-chart-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    width: 60%;
}
.wcpm-wrap .wcpm-chart-center__label {
    display: block;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: #8a8478; margin-bottom: 6px;
}
.wcpm-wrap .wcpm-chart-center__value {
    display: block;
    font-size: 22px; font-weight: 700;
    color: #1a1a1f; letter-spacing: -0.02em;
    line-height: 1.1; margin-bottom: 6px;
}
.wcpm-wrap .wcpm-chart-center__gain {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 2px;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
}

.wcpm-wrap .wcpm-chart-legend__title {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: #8a8478; margin: 0 0 16px 0;
    font-family: 'Yantramanav', sans-serif;
}
.wcpm-wrap .wcpm-chart-legend__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0ecde;
}
.wcpm-wrap .wcpm-chart-legend__row:last-child { border-bottom: none; }
.wcpm-wrap .wcpm-chart-legend__marker {
    width: 12px; height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.03);
}
.wcpm-wrap .wcpm-chart-legend__info {
    flex: 1; min-width: 0;
}
.wcpm-wrap .wcpm-chart-legend__name {
    font-size: 14px; font-weight: 700; color: #1a1a1f;
    margin-bottom: 2px;
}
.wcpm-wrap .wcpm-chart-legend__meta {
    font-size: 11px; color: #8a8478;
}
.wcpm-wrap .wcpm-chart-legend__value {
    text-align: right;
    font-size: 13px; font-weight: 700; color: #1a1a1f;
}
.wcpm-wrap .wcpm-chart-legend__gain {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 2px;
    margin-top: 3px;
}

@media (max-width: 720px) {
    .wcpm-wrap .wcpm-chart-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .wcpm-wrap .wcpm-chart-canvas-wrap {
        max-width: 280px;
    }
    .wcpm-wrap .wcpm-chart-center__value { font-size: 18px; }
}

/* ═══════════════════════════════════════════════════════════
   TABLES — editorial spacing
   ═══════════════════════════════════════════════════════════ */
.wcpm-wrap .wcpm-table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid #e8e4d9;
    border-radius: 4px;
    background: #ffffff;
}
.wcpm-wrap .wcpm-table { width: 100%; border-collapse: collapse; }
.wcpm-wrap .wcpm-table th {
    padding: 14px 20px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: #8a8478;
    background: #fafaf7;
    border-bottom: 1px solid #e8e4d9;
    white-space: nowrap; text-align: left;
    font-family: 'Yantramanav', sans-serif;
}
.wcpm-wrap .wcpm-table td {
    padding: 16px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f0ecde;
    white-space: nowrap;
    color: #1a1a1f;
    background: #ffffff;
    font-family: 'Yantramanav', sans-serif;
    font-weight: 500;
}
.wcpm-wrap .wcpm-table tbody tr:last-child td { border-bottom: none; }
.wcpm-wrap .wcpm-table tbody tr { transition: background 0.15s; }
.wcpm-wrap .wcpm-table tbody tr:hover td { background: #fafaf7; }
.wcpm-wrap .wcpm-table__right { text-align: right; }
.wcpm-wrap .wcpm-table__date { color: #8a8478; font-size: 12px; }
.wcpm-wrap .wcpm-table__metal {
    display: flex; align-items: center; gap: 12px;
    font-weight: 500;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
}
.wcpm-wrap .wcpm-table__dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0; display: inline-block;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.03);
}

.wcpm-wrap .wcpm-up {
    color: #2f855a;
    background: rgba(56, 161, 105, 0.08);
    border-radius: 2px;
}
.wcpm-wrap .wcpm-down {
    color: #c53030;
    background: rgba(197, 48, 48, 0.06);
    border-radius: 2px;
}

/* ─── Tags ────────────────────────────────────────────────── */
.wcpm-wrap .wcpm-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    font-family: 'Yantramanav', sans-serif;
    border: 1px solid transparent;
}
.wcpm-wrap .wcpm-tag--buy {
    background: rgba(56, 161, 105, 0.08); color: #2f855a;
    border-color: rgba(56, 161, 105, 0.2);
}
.wcpm-wrap .wcpm-tag--sell {
    background: rgba(197, 48, 48, 0.06); color: #c53030;
    border-color: rgba(197, 48, 48, 0.15);
}
.wcpm-wrap .wcpm-tag--cashout {
    background: #fafaf7; color: #3a3a42;
    border-color: #e8e4d9;
}
.wcpm-wrap .wcpm-tag--admin_adjust {
    background: rgba(201, 162, 39, 0.08); color: #8a6d0b;
    border-color: rgba(201, 162, 39, 0.3);
}

/* ─── Empty & Spinner ─────────────────────────────────────── */
.wcpm-wrap .wcpm-empty {
    padding: 56px 28px; text-align: center;
    color: #8a8478;
    background: #fafaf7;
    border: 1px dashed #e8e4d9;
    border-radius: 4px;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    font-size: 15px;
}
.wcpm-wrap .wcpm-spinner {
    width: 28px; height: 28px;
    margin: 28px auto; display: block;
    border: 2px solid #f0ecde;
    border-top-color: #c9a227;
    border-radius: 50%;
    animation: wcpm-spin 0.8s linear infinite;
}
@keyframes wcpm-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   MY ACCOUNT TABS — editorial underline style
   ═══════════════════════════════════════════════════════════ */
.wcpm-wrap nav.wcpm-tabs,
.wcpm-wrap .wcpm-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    border-bottom: 1px solid #e8e4d9;
    margin: 0 0 32px 0 !important;
    padding: 0 !important;
    list-style: none;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    background: transparent;
    position: relative;
}
.wcpm-wrap .wcpm-tab {
    padding: 12px 24px 14px;
    text-decoration: none;
    color: #8a8478;
    font-family: 'Yantramanav', sans-serif;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    border-bottom: 2px solid transparent;
    margin: 0 0 -1px 0;
    transition: color 0.2s, border-color 0.2s;
    display: inline-block;
    white-space: nowrap;
    border-radius: 0;
    position: relative;
    background: transparent;
    line-height: 1.4;
}
.wcpm-wrap .wcpm-tab:hover {
    color: #1a1a1f;
    text-decoration: none;
    background: transparent;
}
.wcpm-wrap .wcpm-tab--active {
    color: #1a1a1f;
    border-bottom-color: #c9a227;
}
.wcpm-wrap .wcpm-tab--active::before {
    content: '';
    position: absolute;
    bottom: -1px; left: 50%;
    width: 4px; height: 4px;
    background: #c9a227;
    border-radius: 50%;
    transform: translate(-50%, 50%);
}
.wcpm-wrap .wcpm-tab-content {
    min-height: 200px;
    width: 100%;
    clear: both;
}
.wcpm-wrap .wcpm-history__title {
    font-size: 18px; font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1f;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.03em;
}

/* ═══════════════════════════════════════════════════════════
   CASH-OUT PRODUCT CARDS
   ═══════════════════════════════════════════════════════════ */
.wcpm-wrap .wcpm-cashout-products { margin-top: 12px; }
.wcpm-wrap .wcpm-cashout-product {
    display: flex; align-items: center; gap: 18px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e8e4d9;
    border-radius: 3px;
    margin-bottom: 12px;
    transition: all 0.2s;
}
.wcpm-wrap .wcpm-cashout-product:hover {
    border-color: #c9a227;
    box-shadow: 0 4px 16px rgba(26,26,31,0.04);
}
.wcpm-wrap .wcpm-cashout-product__img {
    width: 56px; height: 56px; object-fit: cover;
    border-radius: 2px;
    background: #fafaf7;
    flex-shrink: 0;
    border: 1px solid #f0ecde;
}
.wcpm-wrap .wcpm-cashout-product__info { flex: 1; min-width: 0; }
.wcpm-wrap .wcpm-cashout-product__name {
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500; font-size: 15px;
    color: #1a1a1f;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    letter-spacing: -0.01em;
}
.wcpm-wrap .wcpm-cashout-product__meta {
    font-size: 11px; color: #8a8478;
    margin-top: 3px;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.01em;
}
.wcpm-wrap .wcpm-cashout-product__actions {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0;
}
.wcpm-wrap .wcpm-cashout-product__qty {
    width: 54px; padding: 8px 4px; text-align: center;
    background: #fafaf7;
    border: 1px solid #e8e4d9;
    border-radius: 2px;
    color: #1a1a1f;
    font-size: 13px; font-weight: 500;
    font-family: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    appearance: none; -webkit-appearance: none;
    transition: all 0.2s;
}
.wcpm-wrap .wcpm-cashout-product__qty:focus {
    border-color: #c9a227;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    div.wcpm-wrap { padding: 24px 20px; }
    .wcpm-wrap .wcpm-prices__grid { grid-template-columns: 1fr; }
    .wcpm-wrap .wcpm-prices__title,
    .wcpm-wrap .wcpm-portfolio__title,
    .wcpm-wrap .wcpm-history__title { font-size: 16px; }
    .wcpm-wrap .wcpm-table td, .wcpm-wrap .wcpm-table th { padding: 12px 14px; }
    .wcpm-wrap .wcpm-portfolio__header { flex-direction: column; align-items: flex-start; }
    .wcpm-wrap .wcpm-portfolio__total-value { font-size: 18px; }
    .wcpm-wrap .wcpm-card__spot-value { font-size: 20px; }
    .wcpm-wrap .wcpm-cashout-product { flex-direction: column; text-align: center; }
    .wcpm-wrap .wcpm-cashout-product__actions { width: 100%; justify-content: center; }
    .wcpm-wrap .wcpm-tab { padding: 10px 14px 12px; font-size: 10px; letter-spacing: 0.1em; }
    .wcpm-wrap .wcpm-panel__body,
    .wcpm-wrap .wcpm-sell-panel__body { padding: 20px; }
}
