/* =====================================================================
   POLGRAM – Gold Theme
   Brand palette: #D8B861 (primary gold) / #C6A13A (deep gold)
   Loaded after nj_theme/css/styles.css so it wins on shared accents.
   ===================================================================== */

:root {
    /* --- Brand gold (the two brand colours) --- */
    --pg-gold: #D8B861;
    --pg-gold-deep: #C6A13A;
    --pg-brand: #D8B861;
    --pg-brand-bright: #E8CE85;
    --pg-brand-deep: #C6A13A;

    /* --- Surfaces (deep navy — gold reads as metal against blue,
           where against black it drifted brown) --- */
    --pg-bg: #070C18;
    --pg-bg-2: #0A1122;
    --pg-card: #111C33;
    --pg-card-2: #16233E;
    --pg-sunk: #0A1122;

    /* --- Lines & type --- */
    --pg-border: rgba(216,184,97, 0.30);        /* nested elements */
    --pg-border-strong: rgba(216,184,97, 0.55); /* hover */
    --pg-panel-border: #D8B861;                 /* top-level panels: solid, 1.5px */
    --pg-line: #1E3050;                         /* internal dividers */
    --pg-blue: #5B8DEF;                         /* information, not money */
    --pg-text: #EEF3FF;
    --pg-muted: #93A4C4;
    --pg-dim: #63779B;

    /* --- Gradients --- */
    --pg-grad-accent: linear-gradient(135deg, #C6A13A, #E8CE85);
    --pg-grad-gold: linear-gradient(135deg, #D8B861, #C6A13A);
    --pg-grad-brand: linear-gradient(135deg, #C6A13A 0%, #D8B861 45%, #EBD69A 100%);

    /* --- Panel / elevation tokens (shared with dashboard pages) --- */
    --pg-panel: rgba(216,184,97, 0.06);
    --pg-panel2: rgba(216,184,97, 0.09);
    --pg-radius: 20px;                          /* locked: study V2 */
    --pg-radius-lg: 20px;
    --pg-shadow: 0 14px 34px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
    --pg-shadow2: 0 18px 44px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07);
    --pg-glow: 0 0 26px rgba(216,184,97,.20);   /* balance panel ONLY */

    /* --- Back-compat aliases (older pages referencing --pcd-*) --- */
    --pcd-gold: var(--pg-gold);
    --pcd-gold-deep: var(--pg-gold-deep);
    --pcd-green: var(--pg-brand);
    --pcd-green-bright: var(--pg-brand-bright);
    --pcd-green-deep: var(--pg-brand-deep);
    --pcd-bg: var(--pg-bg);
    --pcd-bg-2: var(--pg-bg-2);
    --pcd-card: var(--pg-card);
    --pcd-card-2: var(--pg-card-2);
    --pcd-border: var(--pg-border);
    --pcd-border-strong: var(--pg-border-strong);
    --pcd-text: var(--pg-text);
    --pcd-muted: var(--pg-muted);
    --pcd-grad-green: var(--pg-grad-accent);
    --pcd-grad-gold: var(--pg-grad-gold);
    --pcd-grad-brand: var(--pg-grad-brand);
}

/* ================= GLOBAL BACKGROUND ================= */
html, body { overflow-x: hidden; max-width: 100%; }

body {
    background:
        radial-gradient(900px 500px at 90% -5%, rgba(216,184,97, 0.10), transparent 60%),
        radial-gradient(900px 600px at -10% 10%, rgba(216,184,97, 0.14), transparent 55%),
        linear-gradient(180deg, #070C18, #0A1122 40%, #070C18) !important;
    color: var(--pg-text);
    min-height: 100vh;
    font-family: var(--pg-font-body);
    letter-spacing: .1px;
}
/* Tame ultra-bold text to a clean, professional weight */
b, strong, h1, h2, h3, h4, h5, h6, .font-weight-bolder { font-weight: 600; }

/* Recolour floating glow shapes to brand palette */
.bg-shape.one { background: #A8842A !important; }
.bg-shape.two { background: #D8B861 !important; }
.bg-shape.three { background: #C6A13A !important; }

/* ================= BRAND LOCKUP (logo + text) ================= */
.pcd-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.pcd-brand img {
    height: 38px;
    width: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(216,184,97, 0.35);
}

.pcd-brand .pcd-brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.pcd-brand .pcd-brand-name b {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    background: var(--pg-grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--pg-brand);
}

.pcd-brand .pcd-brand-name small {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pg-muted);
}

/* Status / rank pills on dashboard welcome row */
.pcd-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    background: rgba(216,184,97, 0.16);
    color: var(--pg-brand-bright);
}
.pcd-pill:empty { display: none; }
.pcd-pill.rank { background: rgba(216,184,97, 0.18); color: var(--pg-gold); }
.bg-gradient-success { background: var(--pg-grad-accent) !important; color: #0A0906 !important; }
.bg-gradient-danger { background: linear-gradient(135deg, #ef4444, #b91c1c) !important; color: #fff !important; }

/* Big centered brand lockup for auth pages */
.pcd-brand-lg {
    flex-direction: column;
    gap: 12px;
}
.pcd-brand-lg img {
    height: 74px;
    width: 74px;
    border-radius: 20px;
}
.pcd-brand-lg .pcd-brand-name { align-items: center; }
.pcd-brand-lg .pcd-brand-name b { font-size: 24px; }
.pcd-brand-lg .pcd-brand-name small { font-size: 10px; letter-spacing: 5px; }

/* ================= MASTER HEADER ================= */
.pm-header {
    background: rgba(12,11,7, 0.92) !important;
    border-bottom: 1px solid var(--pg-border) !important;
    backdrop-filter: blur(12px);
}
.pm-header .pcd-brand { margin-left: auto; }
.pm-header .pcd-brand img { height: 38px; width: 38px; }
.pm-user i { color: var(--pg-brand-bright) !important; }
.pm-menu-btn {
    background: rgba(28,24,15, 0.9) !important;
    border: 1px solid var(--pg-border) !important;
    color: var(--pg-brand-bright) !important;
}

/* ================= SIDEBAR ================= */
.pm-sidebar {
    background: #0C0B07 !important;
    border-right: 1px solid var(--pg-border) !important;
}
.pm-sidebar ul li a:hover { background: rgba(216,184,97, 0.12) !important; color: #fff !important; }
.pm-sidebar i { color: var(--pg-brand-bright); }

/* ================= BOTTOM NAV (screenshot style) ================= */
.pm-footer {
    background: rgba(12,11,7, 0.96) !important;
    border-top: 1px solid var(--pg-border) !important;
    backdrop-filter: blur(12px);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
}

.pcd-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 4px 4px;
    background: linear-gradient(180deg, rgba(34,29,18, 0.55), rgba(18,16,11, 0.55));
    border: 1px solid var(--pg-border);
    border-radius: 40px;
}

.pcd-nav li { flex: 1; text-align: center; }

.pcd-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 0;
    font-size: 10px;
    color: var(--pg-muted);
    text-decoration: none;
    border-radius: 30px;
    transition: .25s;
}
.pcd-nav a i { font-size: 18px; }
.pcd-nav a:hover { color: var(--pg-brand-bright); }

/* active pill */
.pcd-nav li.active a,
.pcd-nav a.active {
    color: #0A0906;
    background: var(--pg-grad-accent);
    box-shadow: 0 8px 22px rgba(216,184,97, 0.45);
    font-weight: 700;
    padding: 8px 14px;
}

/* ================= SHARED CARD / ACCENT OVERRIDES ================= */
.card,
.tf-container,
.bg-menuDark {
    background: var(--pg-card) !important;
    border: 1px solid var(--pg-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55) !important;
    color: var(--pg-text);
}

.text-primary { color: var(--pg-brand-bright) !important; }
.text-info,
.text-info.text-gradient { color: var(--pg-brand-bright) !important; }

.text-gradient {
    background: var(--pg-grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Primary button */
.btn_theme {
    background: var(--pg-grad-accent) !important;
    box-shadow: 0 18px 45px rgba(216,184,97, 0.40) !important;
    color: #0A0906 !important;
    font-weight: 700 !important;
}
.btn_theme:hover { box-shadow: 0 26px 60px rgba(216,184,97, 0.45) !important; }

/* Center icon + text inside the shared .pm-btn / .pm-btn-ghost buttons (fixes text sitting at the top) */
.pm-btn, .pm-btn-ghost {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.pm-btn i, .pm-btn-ghost i { line-height: 1; }

.form-control,
.form-select,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="date"],
textarea,
select {
    background: rgba(12,11,7, 0.6) !important;
    border: 1px solid var(--pg-border-strong) !important;
    color: var(--pg-text) !important;
}
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--pg-brand-bright) !important;
    box-shadow: 0 0 0 3px rgba(216,184,97, 0.22) !important;
    background: rgba(12,11,7, 0.85) !important;
    color: var(--pg-text) !important;
    outline: none !important;
}
.form-control::placeholder,
input::placeholder,
textarea::placeholder { color: #8C8069 !important; }

/* ---- Checkbox / radio / toggle switch ---- */
.form-check-input {
    background-color: rgba(12,11,7, 0.6) !important;
    border: 1px solid var(--pg-border-strong) !important;
}
.form-check-input:focus {
    border-color: var(--pg-brand-bright) !important;
    box-shadow: 0 0 0 3px rgba(216,184,97, 0.22) !important;
    outline: none !important;
}
.form-check-input:checked {
    background-color: var(--pg-brand) !important;
    border-color: var(--pg-brand) !important;
}
.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%232fe06a'/%3e%3c/svg%3e") !important;
}
.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%2304120a' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
}
/* Text links that used bootstrap primary blue */
a.text-info, .text-info a, a.text-primary { color: var(--pg-brand-bright) !important; }

/* Round icon chips reused on some pages */
.pm-ic-green { background: rgba(216,184,97,.16) !important; color: var(--pg-brand-bright) !important; }
.pm-ic-blue  { background: rgba(216,184,97,.16) !important; color: var(--pg-brand-bright) !important; }
.pm-ic-purple{ background: rgba(216,184,97,.16) !important; color: var(--pg-gold) !important; }
.pm-ic-gold  { background: rgba(216,184,97,.16) !important; color: var(--pg-gold) !important; }

/* ===== LIVE CRYPTO TICKER ===== */
.pcd-crypto {
    border-radius: 18px;
    padding: 14px 12px 12px;
    background: linear-gradient(160deg, rgba(26,22,14,.92), rgba(18,16,11,.94));
    border: 1px solid rgba(216,184,97,.20);
    overflow: hidden;
}
.pcd-crypto-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
.pcd-crypto-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--pg-text); }
.pcd-live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #E8CE85;
    box-shadow: 0 0 0 0 rgba(232,206,133,.7); animation: pcdPulse 1.6s infinite;
}
@keyframes pcdPulse {
    0% { box-shadow: 0 0 0 0 rgba(232,206,133,.6); }
    70% { box-shadow: 0 0 0 8px rgba(232,206,133,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,206,133,0); }
}
.pcd-crypto-src { font-size: 10.5px; color: var(--pg-muted); display: flex; align-items: center; gap: 5px; }
.pcd-crypto-track { overflow: hidden; }
.pcd-crypto-loading { color: var(--pg-muted); font-size: 12.5px; padding: 8px 4px; }
.pcd-crypto-marquee { display: flex; gap: 10px; width: max-content; animation: pcdTicker 36s linear infinite; }
.pcd-crypto-marquee:hover { animation-play-state: paused; }
@keyframes pcdTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pcd-coin {
    display: flex; align-items: center; gap: 8px; flex: none;
    background: rgba(12,11,7,.6); border: 1px solid rgba(216,184,97,.14);
    border-radius: 12px; padding: 8px 12px;
}
.pcd-coin-ic { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.pcd-coin-sym { font-size: 12px; font-weight: 700; color: var(--pg-text); line-height: 1.1; }
.pcd-coin-price { font-size: 12px; font-weight: 700; color: #fff; line-height: 1.1; margin-top: 2px; }
.pcd-coin-chg { font-size: 11px; font-weight: 700; margin-left: 2px; white-space: nowrap; }
.pcd-coin-chg.up { color: #E8CE85; }
.pcd-coin-chg.down { color: #ff6b6b; }

/* =====================================================================
   DASHBOARD  (screenshot layout)
   ===================================================================== */
.pcd-wrap { width: 100%; max-width: 520px; margin: 0 auto; padding: 6px 14px 24px; box-sizing: border-box; }
.pcd-wrap *, .pcd-wrap *::before, .pcd-wrap *::after { box-sizing: border-box; }
.pcd-wrap > * { max-width: 100%; }

.pcd-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--pg-text);
    margin: 20px 4px 12px;
}

.pcd-viewall {
    font-size: 13px;
    font-weight: 600;
    color: var(--pg-brand-bright);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ---- Balance hero card ---- */
.pcd-balance {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 22px 20px;
    background:
        radial-gradient(600px 220px at 100% 0%, rgba(216,184,97, 0.16), transparent 60%),
        linear-gradient(135deg, #1A160E, #14120C 55%, #0E0C08);
    border: 1px solid var(--pg-border-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255,255,255,.02);
}
.pcd-balance::after {
    content: "";
    position: absolute;
    right: -40px; top: -40px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(232,206,133, 0.25), transparent 65%);
    filter: blur(10px);
    pointer-events: none;
}
.pcd-balance-label {
    display: flex; align-items: center; gap: 8px;
    color: #EFE6D2; font-size: 14px; font-weight: 500;
}
.pcd-balance-label i { color: var(--pg-muted); font-size: 13px; }
.pcd-eye-btn {
    background: transparent;
    border: none;
    padding: 2px 4px;
    margin-left: 2px;
    cursor: pointer;
    color: var(--pg-muted);
    line-height: 1;
}
.pcd-eye-btn:hover { color: var(--pg-brand-bright); }
.pcd-eye-btn i { font-size: 15px; color: inherit; }
.pcd-balance-amount {
    font-size: 42px; font-weight: 800; letter-spacing: .5px;
    color: #ffffff; margin: 4px 0 18px;
    line-height: 1;
}
.pcd-balance-split {
    position: relative;
    display: flex; align-items: stretch;
    gap: 12px;
}
.pcd-balance-split .pcd-bs-item { flex: 1; }
.pcd-balance-split .pcd-bs-item + .pcd-bs-item {
    border-left: 1px solid rgba(255,255,255,.08);
    padding-left: 12px;
}
.pcd-bs-top {
    display: flex; align-items: center; justify-content: space-between;
}
.pcd-bs-label { font-size: 12.5px; color: var(--pg-muted); }
.pcd-bs-val { font-size: 19px; font-weight: 700; margin-top: 2px; }
.pcd-bs-val.green { color: var(--pg-brand-bright); }
.pcd-bs-val.gold  { color: var(--pg-gold); }
.pcd-bs-chip {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.pcd-bs-chip.green { background: rgba(216,184,97,.16); color: var(--pg-brand-bright); }
.pcd-bs-chip.gold  { background: rgba(216,184,97,.16); color: var(--pg-gold); }

/* ---- Quick actions ---- */
.pcd-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.pcd-qa {
    position: relative;
    display: block;
    border-radius: 18px;
    padding: 16px 12px 14px;
    text-decoration: none;
    background: linear-gradient(160deg, rgba(30,26,16,.9), rgba(18,16,11,.9));
    border: 1px solid var(--pg-border);
    text-align: center;
    transition: .25s;
    overflow: hidden;
}
.pcd-qa.gold { background: linear-gradient(160deg, rgba(46,38,10,.9), rgba(20,15,6,.92)); border-color: rgba(216,184,97,.25); }
.pcd-qa:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.5); }
.pcd-qa-ic {
    width: 56px; height: 56px; margin: 0 auto 10px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    background: rgba(216,184,97,.14);
    color: var(--pg-brand-bright);
}
.pcd-qa.gold .pcd-qa-ic { background: rgba(216,184,97,.16); color: var(--pg-gold); }
.pcd-qa-title { font-size: 13px; font-weight: 600; color: var(--pg-text); }
.pcd-qa-arrow {
    width: 30px; height: 30px; margin: 10px auto 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--pg-grad-accent); color: #0A0906; font-size: 13px;
}
.pcd-qa.gold .pcd-qa-arrow { background: var(--pg-grad-gold); }

/* ---- Total team card ---- */
.pcd-team {
    display: flex; align-items: center; gap: 16px;
    border-radius: 20px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(26,22,14,.92), rgba(18,16,11,.92));
    border: 1px solid var(--pg-border);
}
.pcd-team-ring {
    width: 74px; height: 74px; border-radius: 50%;
    flex: none;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(216,184,97,.25), rgba(18,16,11,.5));
    border: 2px solid var(--pg-brand);
    color: var(--pg-brand-bright); font-size: 28px;
    box-shadow: 0 0 24px rgba(216,184,97,.35);
}
.pcd-team-body { flex: 1; }
.pcd-team-body .pcd-team-label { color: var(--pg-text); font-size: 15px; font-weight: 600; }
.pcd-team-body .pcd-team-count { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.1; }
.pcd-team-body .pcd-team-active { font-size: 13px; color: var(--pg-muted); }
.pcd-team-body .pcd-team-active b { color: var(--pg-brand-bright); font-weight: 700; }

/* ---- Income tiles ---- */
.pcd-income-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.pcd-inc {
    display: block; text-decoration: none;
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(160deg, rgba(26,22,14,.9), rgba(18,16,11,.92));
    border: 1px solid var(--pg-border);
    transition: .25s;
}
.pcd-inc:hover { transform: translateY(-2px); border-color: var(--pg-border-strong); }
.pcd-inc.gold { background: linear-gradient(160deg, rgba(40,33,10,.85), rgba(18,14,6,.92)); border-color: rgba(216,184,97,.22); }
.pcd-inc-ic {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-bottom: 10px;
    background: rgba(216,184,97,.16); color: var(--pg-brand-bright);
}
.pcd-inc.gold .pcd-inc-ic { background: rgba(216,184,97,.18); color: var(--pg-gold); }
.pcd-inc-name { font-size: 12.5px; color: #EFE6D2; min-height: 34px; font-weight: 500; }
.pcd-inc-val { font-size: 20px; font-weight: 800; color: #fff; margin: 4px 0 8px; }
.pcd-inc.gold .pcd-inc-val { color: var(--pg-gold); }
.pcd-inc-bar { height: 5px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.pcd-inc-bar > span { display: block; height: 100%; width: 12%; border-radius: 6px; background: var(--pg-grad-accent); }
.pcd-inc.gold .pcd-inc-bar > span { background: var(--pg-grad-gold); }

/* ---- Referral link card ---- */
.pcd-refer {
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(26,22,14,.9), rgba(18,16,11,.92));
    border: 1px solid var(--pg-border);
}
.pcd-refer h5 { color: var(--pg-text); font-weight: 700; margin: 0; font-size: 15px; }
.pcd-refer small { color: var(--pg-muted); }
.pcd-refer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pcd-refer-ic {
    width: 42px; height: 42px; border-radius: 12px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: rgba(216,184,97,.16); color: var(--pg-brand-bright); font-size: 18px;
}
.pcd-linkbox {
    display: flex; align-items: center; gap: 10px;
    background: rgba(12,11,7,.7);
    border: 1px dashed var(--pg-border-strong);
    border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
}
.pcd-linkbox .pcd-link-ic { color: var(--pg-brand-bright); }
.pcd-linkbox p { color: #EFE6D2; font-size: 12px; word-break: break-all; margin: 0; flex: 1; }
.pcd-iconbtn {
    width: 34px; height: 34px; border-radius: 10px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: rgba(216,184,97,.16); color: var(--pg-brand-bright); text-decoration: none;
}
.pcd-refer-actions { display: flex; gap: 10px; }
.pcd-btn {
    flex: 1; border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 12px; font-weight: 600; font-size: 13px;
    text-decoration: none;
}
.pcd-btn-wa { background: var(--pg-grad-accent); color: #0A0906; }
.pcd-btn-copy { background: rgba(216,184,97,.16); color: var(--pg-gold); border: 1px solid rgba(216,184,97,.3); }
.pcd-toast {
    margin-top: 12px; align-items: center; gap: 8px;
    background: rgba(216,184,97,.16); color: var(--pg-brand-bright);
    padding: 10px 12px; border-radius: 10px; font-size: 13px;
}

/* ---- Downline list ---- */
.pcd-downline { border-radius: 20px; padding: 16px 18px; background: var(--pg-card); border: 1px solid var(--pg-border); }
.pcd-downline h5 { color: var(--pg-text); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.pcd-downline h5 i { color: var(--pg-brand-bright); }
.pcd-dl-list { list-style: none; margin: 0; padding: 0; }
.pcd-dl-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.pcd-dl-list li:last-child .pcd-dl-item { border-bottom: none; }
.pcd-dl-left { display: flex; align-items: center; gap: 12px; }
.pcd-dl-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.pcd-dl-title { color: #EFE6D2; font-size: 13.5px; font-weight: 500; }
.pcd-dl-count { color: #fff; font-weight: 700; font-size: 14px; }

/* News ticker */
.TickerNews.default_theme_2 { background: transparent !important; }
.pcd-news {
    display: flex; align-items: center; gap: 8px;
    background: rgba(216,184,97,.10);
    border: 1px solid var(--pg-border);
    border-radius: 12px; padding: 8px 12px; color: #EFE6D2; font-size: 12.5px;
    overflow: hidden;
}
.pcd-news i { color: var(--pg-brand-bright); }

/* =====================================================================
   BOOTSTRAP OVERRIDES
   nj_theme/css/bootstrap.min.css ships --bs-primary: #0d6efd and green
   success/info colours. The markup uses btn-primary (x18), btn-success
   (x13), bg-primary, text-info, alert-success etc., which would render
   blue/green straight through the gold theme. polgram.css is loaded
   last by MasterPage.master, so these win.
   Danger/warning are intentionally left alone — they are semantic.
   ===================================================================== */
:root {
    --bs-primary: #D8B861;
    --bs-primary-rgb: 216,184,97;
    --bs-info: #E8CE85;
    --bs-info-rgb: 232,206,133;
    --bs-success: #C6A13A;
    --bs-success-rgb: 198,161,58;
    --bs-secondary: #93A4C4;
    --bs-secondary-rgb: 168,154,125;
    --bs-link-color: #D8B861;
    --bs-link-hover-color: #E8CE85;
}

.btn-primary, .btn-info, .btn-success {
    background: linear-gradient(135deg, #D8B861, #C6A13A) !important;
    border-color: #C6A13A !important;
    color: #0A1020 !important;
    font-weight: 600;
}

    .btn-primary:hover, .btn-info:hover, .btn-success:hover,
    .btn-primary:focus, .btn-info:focus, .btn-success:focus,
    .btn-primary:active, .btn-info:active, .btn-success:active {
        background: linear-gradient(135deg, #E8CE85, #D8B861) !important;
        border-color: #D8B861 !important;
        color: #0A1020 !important;
        box-shadow: 0 0 0 .2rem rgba(216,184,97,.30) !important;
    }

.btn-outline-primary, .btn-outline-info, .btn-outline-success {
    color: #D8B861 !important;
    border-color: #C6A13A !important;
    background: transparent !important;
}

    .btn-outline-primary:hover, .btn-outline-info:hover, .btn-outline-success:hover {
        background: #D8B861 !important;
        color: #0A1020 !important;
    }

.bg-primary, .bg-info, .bg-success { background-color: #D8B861 !important; color: #0A1020 !important; }
.text-primary, .text-info { color: #D8B861 !important; }
.text-success { color: #C6A13A !important; }
.text-secondary, .text-muted { color: var(--pg-muted) !important; }
.border-primary, .border-info, .border-success { border-color: #C6A13A !important; }
.badge.bg-primary, .badge.bg-info, .badge.bg-success { background-color: #C6A13A !important; color: #0A1020 !important; }

.alert-success, .alert-info, .alert-primary {
    background-color: rgba(216,184,97,.10) !important;
    border-color: rgba(216,184,97,.35) !important;
    color: var(--pg-text) !important;
}

a { color: #D8B861; }
a:hover { color: #E8CE85; }

.form-control:focus, .form-select:focus {
    border-color: #C6A13A !important;
    box-shadow: 0 0 0 .2rem rgba(216,184,97,.25) !important;
}


/* --- POLGRAM SHARED DASHBOARD SYSTEM --- */
/* =================================================================
           POLGRAM DASHBOARD — 2026 redesign
           Self-contained "pg-" namespace so it never fights dash.css.
           Palette: #D8B861 primary gold / #C6A13A deep gold.
           ================================================================= */
        .pg-dash, .pg-page {
            --g1: #E8CE85;
            --g2: #D8B861;
            --g3: #C6A13A;
            --ink: #EEF3FF;
            --mut: #93A4C4;
            --s0: #070C18;
            --s1: #0A1122;
            --s2: #111C33;
            --line: rgba(216,184,97,.14);
            --line2: rgba(216,184,97,.30);
            --shadow: 0 10px 34px rgba(0,0,0,.45);
            max-width: 1180px;
            margin: 0 auto;
            padding: 2px 0 26px;
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 14px;
            align-content: start;
            font-variant-numeric: tabular-nums;
        }

        /* every direct child is a grid item; default full width */
        .pg-dash > * { grid-column: span 12; min-width: 0; }

        .pg-card {
            background: linear-gradient(168deg, var(--s2), var(--s1));
            border: 1px solid var(--line);
            border-radius: 20px;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
        }

        .pg-eyebrow {
            font-size: 10.5px;
            font-weight: 700;
            letter-spacing: 1.6px;
            text-transform: uppercase;
            color: var(--mut);
            margin: 0 0 2px;
        }

        /* ---------- news ticker ---------- */
        .pg-ticker {
            display: flex; align-items: center; gap: 10px;
            background: rgba(216,184,97,.06);
            border: 1px solid var(--line);
            border-radius: 999px;
            padding: 8px 14px;
            font-size: 12.5px; color: var(--ink);
        }
        .pg-ticker > i { color: var(--g2); flex: none; }
        .pg-ticker marquee { flex: 1; min-width: 0; }

        /* ---------- greeting ---------- */
        .pg-greet { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
        .pg-greet-name { font-size: 19px; font-weight: 650; color: var(--ink); letter-spacing: -.2px; line-height: 1.25; }
        .pg-greet-name b { color: #fff; font-weight: 750; }
        .pg-greet-sub { font-size: 12px; color: var(--mut); margin-top: 1px; }
        .pg-pills { display: flex; gap: 7px; align-items: center; }
        .pg-pill {
            display: inline-flex; align-items: center; gap: 5px;
            font-size: 11px; font-weight: 700; letter-spacing: .3px;
            padding: 5px 12px; border-radius: 999px;
            border: 1px solid var(--line2); color: var(--g1);
            background: rgba(216,184,97,.08); white-space: nowrap;
        }
        .pg-pill:empty { display: none; }
        .pg-pill.is-live { color: #0A1020; background: linear-gradient(135deg, var(--g1), var(--g3)); border-color: transparent; }

        /* ---------- hero balance ---------- */
        .pg-hero { grid-column: span 7; padding: 24px 24px 20px; }
        .pg-hero::before {
            content: ""; position: absolute; inset: 0;
            background: radial-gradient(620px 260px at 88% -30%, rgba(216,184,97,.20), transparent 62%);
            pointer-events: none;
        }
        .pg-hero::after {
            content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px;
            border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--g1), var(--g3));
        }
        .pg-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; }
        .pg-amount {
            font-size: clamp(34px, 5.4vw, 46px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.05;
            margin-top: 6px; position: relative;
            background: linear-gradient(96deg, #FFF6E2 6%, var(--g2) 52%, var(--g3) 100%);
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent; color: var(--g2);
        }
        .pg-eye {
            flex: none; width: 34px; height: 34px; border-radius: 50%;
            display: grid; place-items: center; cursor: pointer;
            background: rgba(216,184,97,.10); border: 1px solid var(--line2); color: var(--g1);
            transition: background .18s ease, transform .18s ease;
        }
        .pg-eye:hover { background: rgba(216,184,97,.20); transform: translateY(-1px); }

        .pg-hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; position: relative; }
        .pg-mini {
            background: rgba(11,10,7,.55); border: 1px solid var(--line);
            border-radius: 14px; padding: 12px 14px;
            display: flex; align-items: center; justify-content: space-between; gap: 10px;
            text-decoration: none; transition: border-color .18s ease, transform .18s ease;
        }
        .pg-mini:hover { border-color: var(--line2); transform: translateY(-2px); }
        .pg-mini-val { font-size: 19px; font-weight: 750; color: var(--ink); line-height: 1.15; margin-top: 3px; }
        .pg-mini-val a { color: inherit; text-decoration: none; }
        .pg-chip {
            flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
            font-size: 12px; background: rgba(216,184,97,.10); color: var(--g1); border: 1px solid var(--line);
        }

        /* ---------- actions rail ---------- */
        .pg-actions { grid-column: span 5; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
        .pg-act {
            display: flex; align-items: center; gap: 13px; text-decoration: none;
            background: rgba(11,10,7,.5); border: 1px solid var(--line);
            border-radius: 15px; padding: 13px 15px; flex: 1;
            transition: border-color .18s ease, background .18s ease, transform .18s ease;
        }
        .pg-act:hover { border-color: var(--line2); background: rgba(216,184,97,.07); transform: translateX(3px); }
        .pg-act-ic {
            flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
            font-size: 16px; background: rgba(216,184,97,.10); color: var(--g1); border: 1px solid var(--line);
        }
        .pg-act-tt { font-size: 14.5px; font-weight: 650; color: var(--ink); line-height: 1.2; }
        .pg-act-sb { font-size: 11.5px; color: var(--mut); margin-top: 2px; }
        .pg-act-go { margin-left: auto; color: var(--g3); font-size: 12px; flex: none; }
        .pg-act.is-primary { background: linear-gradient(135deg, rgba(216,184,97,.20), rgba(198,161,58,.10)); border-color: var(--line2); }
        .pg-act.is-primary .pg-act-ic { background: linear-gradient(135deg, var(--g1), var(--g3)); color: #0A1020; border-color: transparent; }

        /* ---------- KPI tiles ---------- */
        .pg-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
        .pg-kpi {
            background: linear-gradient(168deg, var(--s2), var(--s1));
            border: 1px solid var(--line); border-radius: 17px; padding: 15px 16px;
            text-decoration: none; display: block; position: relative; overflow: hidden;
            transition: border-color .18s ease, transform .18s ease;
        }
        .pg-kpi:hover { border-color: var(--line2); transform: translateY(-2px); }
        .pg-kpi-hd { display: flex; align-items: center; gap: 8px; }
        .pg-kpi-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; background: rgba(216,184,97,.10); color: var(--g1); flex: none; }
        .pg-kpi-lb { font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--mut); }
        .pg-kpi-vl { font-size: 23px; font-weight: 800; color: var(--ink); letter-spacing: -.7px; margin-top: 9px; line-height: 1.1; }
        .pg-kpi-vl a { color: inherit; text-decoration: none; }
        .pg-kpi-ft { font-size: 11px; color: var(--mut); margin-top: 4px; }
        .pg-kpi-ft b { color: var(--g2); font-weight: 700; }

        /* ---------- section heading (lives INSIDE a card, so it can never
           fight the grid — an inline grid-column here could not be
           overridden by the media queries below) ---------- */
        .pg-head {
            display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
            padding: 10px 12px 12px; border-bottom: 1px solid rgba(216,184,97,.08); margin-bottom: 4px;
        }
        .pg-title { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
        .pg-all { font-size: 11.5px; font-weight: 650; color: var(--g2); text-decoration: none; white-space: nowrap; }
        .pg-all:hover { color: var(--g1); }

        /* ---------- incomes ---------- */
        .pg-incomes { grid-column: span 7; padding: 8px; }
        .pg-inc {
            display: flex; align-items: center; gap: 13px; text-decoration: none;
            padding: 13px 14px; border-radius: 14px; border: 1px solid transparent;
            transition: background .18s ease, border-color .18s ease;
        }
        .pg-inc + .pg-inc { border-top: 1px solid rgba(216,184,97,.08); border-radius: 14px; }
        .pg-inc:hover { background: rgba(216,184,97,.06); border-color: var(--line); }
        .pg-inc-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 14px; background: rgba(216,184,97,.09); color: var(--g1); border: 1px solid var(--line); }
        .pg-inc-nm { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
        .pg-inc-sb { font-size: 11px; color: var(--mut); margin-top: 2px; }
        .pg-inc-vl { margin-left: auto; font-size: 17px; font-weight: 750; color: var(--g2); white-space: nowrap; }

        /* ---------- direct team ---------- */
        .pg-team { grid-column: span 5; padding: 8px; }
        .pg-tm {
            display: flex; align-items: center; gap: 13px; text-decoration: none;
            padding: 14px; border-radius: 14px; border: 1px solid transparent;
            transition: background .18s ease, border-color .18s ease;
        }
        .pg-tm:hover { background: rgba(216,184,97,.06); border-color: var(--line); }
        .pg-tm-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 14px; background: rgba(216,184,97,.09); color: var(--g1); border: 1px solid var(--line); }
        .pg-tm-nm { font-size: 13.5px; font-weight: 600; color: var(--ink); }
        .pg-tm-sb { font-size: 11px; color: var(--mut); margin-top: 2px; }
        .pg-tm-vl { margin-left: auto; font-size: 20px; font-weight: 800; color: var(--ink); }

        /* ---------- crypto ---------- */
        .pg-crypto { padding: 16px 16px 14px; }
        .pg-cr-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
        .pg-cr-tt { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--ink); }
        .pg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g1); animation: pgPulse 1.7s infinite; }
        @keyframes pgPulse { 0% { box-shadow: 0 0 0 0 rgba(232,206,133,.6); } 70% { box-shadow: 0 0 0 8px rgba(232,206,133,0); } 100% { box-shadow: 0 0 0 0 rgba(232,206,133,0); } }
        .pg-cr-src { font-size: 10.5px; color: var(--mut); display: flex; align-items: center; gap: 5px; }
        .pg-cr-note { color: var(--mut); font-size: 12.5px; padding: 10px 2px; }
        .pg-cr-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
        .pg-coin { display: flex; align-items: center; gap: 8px; background: rgba(11,10,7,.55); border: 1px solid var(--line); border-radius: 13px; padding: 9px 10px; min-width: 0; }
        .pg-coin > div { min-width: 0; overflow: hidden; }
        .pg-coin img { width: 22px; height: 22px; border-radius: 50%; flex: none; object-fit: cover; }
        .pg-coin-sym { font-size: 11.5px; font-weight: 700; color: var(--ink); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .pg-coin-px { font-size: 12px; font-weight: 700; color: #fff; line-height: 1.1; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .pg-coin-ch { font-size: 10.5px; font-weight: 700; margin-left: auto; white-space: nowrap; flex: none; }
        .pg-coin-ch.up { color: var(--g1); }
        .pg-coin-ch.down { color: #ff6b6b; }

        /* ---------- hidden-balance blur ---------- */
        .pg-money.pg-blur, .pcd-money.pcd-blur { filter: blur(7px); opacity: .3; user-select: none; pointer-events: none; }

        /* ---------- responsive ---------- */
        @media (max-width: 1099px) {
            .pg-hero, .pg-actions, .pg-incomes, .pg-team { grid-column: span 12; }
            .pg-actions { flex-direction: row; }
            .pg-act { flex-direction: column; align-items: flex-start; gap: 9px; }
            .pg-act-go { margin-left: 0; }
            .pg-cr-grid { grid-template-columns: repeat(4, 1fr); }
        }
        @media (max-width: 767px) {
            .pg-dash { gap: 11px; padding-bottom: 20px; }
            .pg-kpis { grid-template-columns: repeat(2, 1fr); }
            .pg-hero { padding: 20px 18px 17px; }
            .pg-hero-split { grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
            .pg-mini { flex-direction: column; align-items: flex-start; gap: 6px; }
            .pg-actions { flex-direction: column; padding: 14px; }
            .pg-act { flex-direction: row; align-items: center; gap: 13px; }
            .pg-act-go { margin-left: auto; }
            .pg-cr-grid { grid-template-columns: repeat(2, 1fr); }
            .pg-greet-name { font-size: 17px; }
        }
        /* keep KPIs 2-up on ordinary phones (375px fits two comfortably);
           only drop to a single column on very narrow devices */
        @media (max-width: 339px) {
            .pg-kpis { grid-template-columns: 1fr; }
        }
    

/* =================================================================
   SHARED PAGE COMPONENTS  (used by every dashboard-linked page)
   ================================================================= */
.pg-page { display: block; }
.pg-page > * + * { margin-top: 14px; }

.pg-phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 2px; }
.pg-phead h1 { font-size: 21px; font-weight: 750; color: var(--ink); letter-spacing: -.4px; margin: 0; }
.pg-phead p { font-size: 12.5px; color: var(--mut); margin: 3px 0 0; }
.pg-back { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: var(--g2); text-decoration: none; }
.pg-back:hover { color: var(--g1); }

.pg-panel { background: linear-gradient(168deg, var(--s2), var(--s1)); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; }
.pg-panel-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid rgba(216,184,97,.10); }
.pg-panel-tt { font-size: 15px; font-weight: 700; color: var(--ink); }

/* --- forms --- */
.pg-field { margin-bottom: 14px; }
.pg-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); margin-bottom: 7px; }
.pg-input, .pg-page input[type="text"], .pg-page input[type="number"], .pg-page input[type="password"],
.pg-page input[type="email"], .pg-page select, .pg-page textarea {
    width: 100%; background: rgba(11,10,7,.6); border: 1px solid var(--line);
    border-radius: 12px; padding: 12px 14px; color: var(--ink); font-size: 14px; outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.pg-input:focus, .pg-page input:focus, .pg-page select:focus, .pg-page textarea:focus {
    border-color: var(--g3); box-shadow: 0 0 0 3px rgba(216,184,97,.16);
}
.pg-page select option { background: #15120C; color: var(--ink); }
.pg-hint { font-size: 11.5px; color: var(--mut); margin-top: 6px; }

/* --- buttons --- */
.pg-btn, .pg-page .btn-primary, .pg-page input[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--g1), var(--g3)); color: #0A1020 !important;
    border: 0; border-radius: 12px; padding: 12px 22px; font-size: 14px; font-weight: 700;
    cursor: pointer; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.pg-btn:hover, .pg-page .btn-primary:hover, .pg-page input[type="submit"]:hover {
    transform: translateY(-1px); box-shadow: 0 8px 22px rgba(216,184,97,.22);
}
.pg-btn-ghost { background: transparent; color: var(--g2) !important; border: 1px solid var(--line2); }
.pg-btn-ghost:hover { background: rgba(216,184,97,.09); box-shadow: none; }
.pg-btn-block { width: 100%; }

/* --- data tables / GridView --- */
.pg-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--line); }
.pg-tablewrap > table, .pg-page .table, .pg-page table.GridViewStyle {
    width: 100%; border-collapse: collapse; background: transparent; margin: 0; font-size: 13px;
}
.pg-tablewrap th, .pg-page .table th, .pg-page table th {
    background: rgba(216,184,97,.10); color: var(--g1);
    font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
    padding: 12px 14px; text-align: left; white-space: nowrap; border: 0;
}
.pg-tablewrap td, .pg-page .table td, .pg-page table td {
    padding: 12px 14px; color: var(--ink); border: 0;
    border-top: 1px solid rgba(216,184,97,.08); white-space: nowrap;
}
.pg-tablewrap tbody tr:hover td, .pg-page table tbody tr:hover td { background: rgba(216,184,97,.05); }
.pg-page table a { color: var(--g2); }

/* GridView pager */
.pg-page .GridViewPager td, .pg-page .gridpagerstyle td { background: transparent; padding: 12px 8px; }
.pg-page .GridViewPager a, .pg-page .gridpagerstyle a,
.pg-page .GridViewPager span, .pg-page .gridpagerstyle span {
    display: inline-block; min-width: 30px; padding: 5px 9px; margin: 0 3px;
    border-radius: 9px; border: 1px solid var(--line); color: var(--g2);
    text-decoration: none; font-size: 12.5px; font-weight: 650;
}
.pg-page .GridViewPager span, .pg-page .gridpagerstyle span { background: linear-gradient(135deg, var(--g1), var(--g3)); color: #0A1020; border-color: transparent; }

/* --- stat strip (reuses KPI look) --- */
.pg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

/* --- empty state --- */
.pg-empty { text-align: center; padding: 34px 18px; color: var(--mut); font-size: 13.5px; }
.pg-empty i { display: block; font-size: 30px; color: var(--g3); opacity: .6; margin-bottom: 12px; }

@media (max-width: 767px) {
    .pg-panel { padding: 15px; border-radius: 17px; }
    .pg-phead h1 { font-size: 18px; }
    .pg-tablewrap th, .pg-tablewrap td { padding: 10px 12px; }
}


/* =================================================================
   TYPOGRAPHY
   Two families, both variable, loaded in one request by MasterPage:
     Sora    - display: headings, balances, KPI figures. Geometric and
               slightly technical; gives the gold numbers presence.
     Manrope - UI text: labels, tables, forms. Stays legible at 11px
               and has better numerals than Poppins for a number-dense app.
   To change the typeface later, edit these two lines and the <link>
   in MasterPage.master. Nothing else references a font name.
   ================================================================= */
:root {
    --pg-font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --pg-font-display: 'Sora', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body, .pg-page, .pg-dash, input, select, textarea, button, table {
    font-family: var(--pg-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.pg-phead h1, .pg-title, .pg-panel-tt,
.pg-amount, .pg-kpi-vl, .pg-mini-val, .pg-inc-vl, .pg-tm-vl,
.pg-greet-name, .pg-act-tt {
    font-family: var(--pg-font-display);
    letter-spacing: -.35px;
}

/* figures line up in columns and never render proportional */
.pg-amount, .pg-kpi-vl, .pg-mini-val, .pg-inc-vl, .pg-tm-vl,
.pg-money, .pcd-money,
.pg-tablewrap td, .pg-page table td {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.pg-amount { letter-spacing: -1.8px; font-weight: 700; }

/* small uppercase labels need tracking back, not removed */
.pg-eyebrow, .pg-kpi-lb, .pg-label,
.pg-tablewrap th, .pg-page table th {
    font-family: var(--pg-font-body);
    letter-spacing: 1.1px;
}

/* =================================================================
   NAVY CONSOLE — panel treatment
   Applied last so it wins over the earlier warm-black rules.
   Locked spec: 1.5px solid #D8B861, radius 20.
   The gold GLOW is reserved for the balance panel alone — if every
   panel glowed, none would read as primary.
   ================================================================= */
body, .pg-page, .pg-dash {
    background:
        radial-gradient(880px 400px at 90% -12%, rgba(216,184,97,.11), transparent 60%),
        radial-gradient(720px 380px at -6% 2%, rgba(91,141,239,.10), transparent 58%),
        var(--pg-bg);
    color: var(--pg-text);
}

/* every top-level box gets the same, obvious border */
.pg-card, .pg-panel, .pg-kpi, .pg-hero, .pg-actions, .pg-incomes, .pg-team, .pg-crypto {
    background: linear-gradient(168deg, var(--pg-card-2), var(--pg-card)) !important;
    border: 1.5px solid var(--pg-panel-border) !important;
    border-radius: var(--pg-radius) !important;
    box-shadow: var(--pg-shadow) !important;
}
.pg-kpi:hover, .pg-panel:hover, .pg-card:hover { transform: translateY(-3px); }

/* the balance panel is the one thing that glows */
.pg-hero, .pg-balance-panel {
    box-shadow: var(--pg-glow), var(--pg-shadow2) !important;
}

/* gold header strip — makes each box read as titled, not just outlined */
.pg-panel-hd, .pg-head {
    padding: 12px 17px !important;
    margin: 0 0 4px !important;
    border-bottom: 1px solid rgba(216,184,97,.22) !important;
    background: linear-gradient(90deg, rgba(216,184,97,.11), rgba(216,184,97,.02));
}
.pg-panel-tt, .pg-title {
    font-family: var(--pg-font-display);
    font-size: 11.5px !important; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--pg-brand-bright) !important;
}

/* nested objects: same language, lower contrast, so boxes read 2 levels deep */
.pg-mini, .pg-act, .pg-inc, .pg-tm, .pg-coin, .pg-field .pg-input {
    background: rgba(10,17,34,.55) !important;
    border: 1.5px solid var(--pg-border) !important;
}
.pg-mini:hover, .pg-act:hover, .pg-inc:hover, .pg-tm:hover, .pg-coin:hover {
    border-color: var(--pg-panel-border) !important;
}

/* dividers inside panels are navy, not gold — gold is for edges only */
.pg-inc + .pg-inc, .pg-tm + .pg-tm { border-top-color: var(--pg-line) !important; }

/* tables */
.pg-tablewrap { border: 1.5px solid var(--pg-border) !important; border-radius: 16px !important; }
.pg-tablewrap th, .pg-page table th {
    background: rgba(10,17,34,.75) !important; color: var(--pg-brand-bright) !important;
    border-bottom: 1px solid var(--pg-line) !important;
}
.pg-tablewrap td, .pg-page table td { border-top: 1px solid rgba(30,48,80,.7) !important; color: var(--pg-text); }
.pg-tablewrap tbody tr:hover td, .pg-page table tbody tr:hover td { background: rgba(216,184,97,.06) !important; }

/* forms */
.pg-page input, .pg-page select, .pg-page textarea, .pg-input {
    background: rgba(10,17,34,.6) !important;
    border: 1.5px solid var(--pg-border) !important;
    color: var(--pg-text) !important;
}
.pg-page input:focus, .pg-page select:focus, .pg-page textarea:focus {
    border-color: var(--pg-panel-border) !important;
    box-shadow: 0 0 0 3px rgba(216,184,97,.18) !important;
}
.pg-page select option { background: #111C33; color: var(--pg-text); }

/* pills */
.pg-pill { border: 1.5px solid var(--pg-panel-border) !important; color: var(--pg-brand-bright) !important;
           background: rgba(216,184,97,.10) !important; }
.pg-pill.is-live { background: var(--pg-grad-gold) !important; color: #0A1020 !important; border-color: transparent !important; }

/* blue is information, never money */
.pg-ticker { background: rgba(91,141,239,.07) !important; border: 1.5px solid rgba(91,141,239,.32) !important; }
.pg-ticker > i { color: var(--pg-blue) !important; }

/* =================================================================
   HEADER — the logo IS the account menu trigger (no dots needed).
   Mobile: a bottom sheet, which is where a thumb actually reaches.
   Desktop: the same panel, anchored under the logo.
   ================================================================= */
.pg-brandmenu { position: relative; display: inline-flex; align-items: center; }

.pg-brandbtn {
    display: inline-flex; align-items: center;
    background: transparent; border: 0; padding: 5px 9px 5px 5px;
    border-radius: 14px; cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.pg-brandbtn:hover        { background: rgba(216,184,97,.10); }
.pg-brandbtn:active       { transform: scale(.97); }
.pg-brandbtn[aria-expanded="true"] { background: rgba(216,184,97,.16); }
.pg-brandimg { height: 30px; width: auto; max-width: 150px; object-fit: contain; display: block; }

/* backdrop */
.pg-sheet-back {
    position: fixed; inset: 0; z-index: 1400;
    background: rgba(4,8,17,.68); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility .24s;
}
.pg-sheet-back.is-open { opacity: 1; visibility: visible; }

/* ---- SIDE DRAWER (slides in from the left, under the logo) ----
   Lives at top level in MasterPage.master, NOT inside .pm-header -
   the header is position:fixed at 60px tall and was clipping it. */
.pg-sheet {
    position: fixed; z-index: 1401;
    top: 0; bottom: 0; left: 0;
    width: min(310px, 86vw);
    display: flex; flex-direction: column;
    padding: 14px 12px calc(16px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(168deg, var(--pg-card-2), var(--pg-card));
    border-right: 1.5px solid var(--pg-panel-border);
    border-radius: 0 24px 24px 0;
    box-shadow: 24px 0 60px rgba(0,0,0,.62);
    transform: translateX(-102%);
    visibility: hidden;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transition: transform .3s cubic-bezier(.22,1,.36,1), visibility .3s;
}
.pg-sheet.is-open { transform: translateX(0); visibility: visible; }

/* grip is a bottom-sheet affordance; meaningless on a side drawer */
.pg-sheet-grip { display: none; }

.pg-sheet-hd {
    display: flex; align-items: center; gap: 12px;
    padding: 4px 6px 15px; margin-bottom: 10px;
    border-bottom: 1px solid var(--pg-line);
}
.pg-sheet-av {
    flex: none; width: 44px; height: 44px; border-radius: 14px;
    display: grid; place-items: center; font-size: 17px;
    background: var(--pg-grad-gold); color: #0A1020;
}
.pg-sheet-who { display: flex; flex-direction: column; min-width: 0; }
.pg-sheet-who b { font-family: var(--pg-font-display); font-size: 15px; font-weight: 650; color: var(--pg-text); }
.pg-sheet-who small { font-size: 11.5px; color: var(--pg-muted); margin-top: 2px; }
.pg-sheet-x {
    margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; font-size: 13px;
    background: rgba(10,17,34,.6); border: 1.5px solid var(--pg-border); color: var(--pg-muted);
    transition: color .18s ease, border-color .18s ease;
}
.pg-sheet-x:hover { color: var(--pg-brand-bright); border-color: var(--pg-panel-border); }

.pg-sheet-item {
    display: flex; align-items: center; gap: 13px;
    padding: 13px 12px; border-radius: 15px;
    text-decoration: none; color: var(--pg-text);
    border: 1.5px solid transparent;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.pg-sheet-item + .pg-sheet-item { margin-top: 6px; }
.pg-sheet-sec {
    font-size: 9.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--pg-dim); padding: 14px 12px 7px;
}
.pg-sheet-sec:first-of-type { padding-top: 4px; }
.pg-sheet-item:hover  { background: rgba(216,184,97,.09); border-color: var(--pg-border); color: var(--pg-text); }
.pg-sheet-item:active { transform: scale(.985); }
.pg-sheet-ic {
    flex: none; width: 40px; height: 40px; border-radius: 13px;
    display: grid; place-items: center; font-size: 14px;
    background: rgba(216,184,97,.12); border: 1px solid var(--pg-border);
    color: var(--pg-brand-bright);
}
.pg-sheet-txt { display: flex; flex-direction: column; min-width: 0; }
.pg-sheet-txt b { font-size: 14px; font-weight: 650; line-height: 1.25; }
.pg-sheet-txt small { font-size: 11px; color: var(--pg-muted); margin-top: 2px; }
.pg-sheet-go { margin-left: auto; flex: none; font-size: 11px; color: var(--pg-gold-deep); }

/* Pullout is destructive - marked, not shouted. Pinned to the bottom. */
.pg-sheet-item.is-exit { margin-top: auto; }
.pg-sheet-item.is-exit .pg-sheet-ic { background: rgba(255,107,122,.12); border-color: rgba(255,107,122,.34); color: #FF6B7A; }
.pg-sheet-item.is-exit:hover        { background: rgba(255,107,122,.09); border-color: rgba(255,107,122,.34); }
.pg-sheet-item.is-exit .pg-sheet-go { color: #FF6B7A; }

@media (min-width: 721px) {
    .pg-sheet { width: 330px; border-radius: 0 26px 26px 0; }
}

/* =================================================================
   STAKE TABS — Flexy / Bond
   Activation.aspx (ProductId 4) and BondActivation.aspx (ProductId 5)
   are separate pages with different server logic, so these are real
   navigation, styled as a segmented control.
   ================================================================= */
.pg-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 7px;
    background: linear-gradient(168deg, var(--pg-card-2), var(--pg-card));
    border: 1.5px solid var(--pg-panel-border);
    border-radius: var(--pg-radius);
    box-shadow: var(--pg-shadow);
}
.pg-tab {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 12px; border-radius: 14px;
    border: 1.5px solid transparent; background: rgba(10,17,34,.5);
    color: var(--pg-muted); text-decoration: none;
    font-family: var(--pg-font-display);
    font-size: 13px; font-weight: 650; letter-spacing: .5px;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.pg-tab i { font-size: 13px; }
.pg-tab:hover { color: var(--pg-text); border-color: var(--pg-border); background: rgba(216,184,97,.07); }
.pg-tab.is-active {
    background: var(--pg-grad-gold); color: #0A1020; border-color: transparent;
    box-shadow: 0 6px 18px rgba(216,184,97,.22);
}
.pg-tab.is-active i { color: #0A1020; }
.pg-tab small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .8px;
                text-transform: uppercase; opacity: .72; margin-top: 2px; }
.pg-tab-txt { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }

@media (max-width: 380px) {
    .pg-tab { padding: 11px 8px; font-size: 12px; }
    .pg-tab small { font-size: 9px; }
}

/* =================================================================
   BOX SIZING — fixes inputs overflowing their panel.
   The app has no global border-box reset that reaches these pages, so
   an input with width:100% plus 14px padding and a 1.5px border rendered
   ~13px wider than its container and spilled past the panel edge.
   Scoped to our own wrappers so no third-party layout is disturbed.
   ================================================================= */
.pg-page, .pg-page *, .pg-page *::before, .pg-page *::after,
.pg-dash, .pg-dash *, .pg-dash *::before, .pg-dash *::after,
.pgc,     .pgc *,     .pgc *::before,     .pgc *::after,
.pg-sheet, .pg-sheet *, .pg-tabs, .pg-tabs * {
    box-sizing: border-box;
}


/* =================================================================
   BOTTOM NAV — floating bar, lifted gold active state.
   Replaces the flat edge-to-edge strip. Detached from the screen
   edge so it reads as a control, not a border, and the active item
   rises out of the bar so the current section is obvious at a glance.
   ================================================================= */
.pm-footer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: transparent !important;
    border-top: 0 !important;
    padding: 0 0 calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    pointer-events: none;                 /* only the bar itself is clickable */
}
.pm-footer .pcd-nav {
    pointer-events: auto;
    display: flex; align-items: stretch;
    max-width: 480px; margin: 0 auto; padding: 8px 8px 7px;
    list-style: none;
    background: linear-gradient(168deg, rgba(22,35,62,.96), rgba(17,28,51,.98));
    border: 1.5px solid var(--pg-panel-border);
    border-radius: 26px;
    box-shadow: 0 16px 40px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
}
@media (max-width: 520px) { .pm-footer .pcd-nav { margin: 0 12px; } }

.pcd-nav li { flex: 1; text-align: center; min-width: 0; }

.pcd-nav a {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    padding: 9px 2px 8px; border-radius: 18px;
    text-decoration: none; color: var(--pg-dim);
    font-size: 10px; font-weight: 650; letter-spacing: .3px;
    border: 1.5px solid transparent;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.pcd-nav a i { font-size: 17px; color: inherit; transition: transform .22s cubic-bezier(.34,1.56,.64,1); }
.pcd-nav a span { line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pcd-nav a:hover { color: var(--pg-brand-bright); background: rgba(216,184,97,.07); }

/* ACTIVE — a gold-tinted pill behind the whole item plus a short indicator
   bar on top. Chosen over a lifted icon tile: at 375px each of the five
   items is only ~67px wide, and the tile's drop shadow washed out its own
   label. This keeps icon AND label fully legible. */
.pcd-nav li.active a, .pcd-nav a.active {
    color: var(--pg-brand-bright); font-weight: 750;
    background: rgba(216,184,97,.13);
    border-color: rgba(216,184,97,.34);
}
.pcd-nav li.active a i, .pcd-nav a.active i { transform: translateY(-1px) scale(1.08); }
.pcd-nav li.active a::before, .pcd-nav a.active::before {
    content: ""; position: absolute; top: -1.5px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--pg-gold-deep), var(--pg-brand-bright));
}

/* content must clear the floating bar */
.page-body { padding-bottom: 118px !important; }
