* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ═══════════ LAYOUT SHELL ═══════════ */
.shell { display: flex; min-height: 100vh; }

/* .main needs min-width:0 — flex children default to min-width:auto,
   which sizes them to their widest child's natural width. Without
   this, the 460px-wide data tables further down force the whole
   page to overflow sideways on small screens instead of scrolling
   inside their own little box. */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ═══════════ DESKTOP-ONLY TOP-RIGHT CLUSTER ═══════════ */
.dashboard-header {
    display: flex;
    justify-content: flex-end;
    padding: 14px 24px;
    background: var(--bg);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-wallet-btn {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--panel2);
    border: 1px solid var(--border);
    color: var(--text2);
    display: grid; place-items: center;
    font-size: 15px;
}
.header-wallet-btn .wallet-status {
    position: absolute; top: -5px; right: -5px;
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--red); color: #fff;
    font-size: 8px; display: grid; place-items: center;
}
.header-profile-wrap { position: relative; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.header-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #7aa0ff);
    display: grid; place-items: center;
    font-weight: 700; font-size: 15px; color: #fff;
}
.header-arrow { color: var(--text3); font-size: 13px; }

.header-profile-dropdown {
    display: none;
    position: absolute; top: 48px; right: 0; width: 250px;
    background: var(--panel2); border: 1px solid var(--border); border-radius: 12px;
    padding: 18px; z-index: 950; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.header-profile-dropdown.open { display: block; }
.header-profile-dropdown .pd-title { font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.header-profile-dropdown .pd-balance { font-size: 24px; font-weight: 800; color: var(--green); margin-bottom: 14px; }
.header-profile-dropdown .pd-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; }
.header-profile-dropdown .pd-row .lbl { color: var(--text2); }
.header-profile-dropdown .pd-link { color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.header-profile-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.header-profile-dropdown .pd-menu-item { display: block; padding: 8px 0; font-size: 13.5px; font-weight: 600; }
.header-profile-dropdown .pd-menu-item.logout { color: var(--red); }

/* Hidden on mobile — sidebar.php's own topbar covers wallet/profile there */
@media (max-width: 900px) {
    .dashboard-header { display: none; }
}

/* ═══════════ TICKER ═══════════ */
.ticker-wrap {
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 400;
}
@media (max-width: 900px) {
    .ticker-wrap { top: var(--mobile-topbar-height); }
}

/* ═══════════ CONTENT ═══════════ */
.content { padding: 8px 28px 40px; flex: 1; min-width: 0; }
.greeting { font-size: 20px; font-weight: 700; margin: 16px 0 18px; }
.greeting .name { color: var(--accent); }

.chart-card {
    background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; height: 560px; margin-bottom: 24px;
}
.tv-chart-container { height: 100%; width: 100%; }

/* ═══════════ TOTAL BALANCE CARD ═══════════ */
.balance-card {
    background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
    padding: 24px 26px; margin-bottom: 20px;
}
.balance-card .bc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.balance-card .bc-label { font-size: 13.5px; color: var(--text2); margin-bottom: 8px; }
.balance-card .bc-amount { font-size: 30px; font-weight: 800; }
.balance-card .bc-amount.hidden-amt { letter-spacing: 4px; }
.balance-card .bc-eye { background: none; border: none; color: var(--text2); font-size: 18px; margin-top: 4px; }
.balance-card hr { border: none; border-top: 1px solid var(--border); margin-top: 20px; }

/* ═══════════ STAT CARDS ═══════════ */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; overflow: hidden; min-width: 0; }
.stat-label { font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.stat-amount { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.stat-spark { width: 100%; height: 90px; display: block; }

/* ═══════════ QUICK ACTIONS ═══════════ */
.quick-actions {
    background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
    padding: 26px 20px; margin-bottom: 24px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 12px;
}
.quick-action-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center; font-size: 12.5px; font-weight: 600; color: var(--accent);
}
.quick-action-item .qa-icon {
    width: 42px; height: 42px; border-radius: 10px; background: var(--panel2);
    display: grid; place-items: center; font-size: 17px; color: var(--accent);
}

/* ═══════════ DATA CARDS / TABLES ═══════════ */
.data-card {
    background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
    padding: 22px 22px 6px; margin-bottom: 24px;
    min-width: 0; /* same overflow fix as .main — required on grid items too */
}
.data-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.data-card-head h3 { font-size: 16px; font-weight: 700; }
.data-card-head .view-all { font-size: 13px; font-weight: 600; color: var(--accent); }
.table-scroll { overflow-x: auto; padding-bottom: 16px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.data-table th {
    text-align: left; font-size: 12px; font-weight: 600; color: var(--text2);
    text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}
.data-table td { padding: 12px 10px; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.status-pill { padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.status-pill.active    { background: rgba(22,199,132,0.15); color: var(--green); }
.status-pill.completed { background: rgba(79,123,255,0.15); color: var(--accent); }
.status-pill.pending   { background: rgba(240,185,11,0.15); color: var(--gold); }
.empty-row { text-align: center; color: var(--text3); padding: 22px 10px; font-size: 13.5px; }

/* The Recent trades / Recent withdrawals pair. On desktop they sit
   side by side; on mobile they stack to a single column — and since
   both .content and .data-card now have min-width:0 above, each
   table scrolls horizontally INSIDE its own card via .table-scroll,
   instead of forcing the whole page to scroll sideways. */
.two-col-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-width: 0; }

/* ═══════════ FOOTER ═══════════ */
.site-footer { background: var(--purple); color: #fff; text-align: center; padding: 14px 16px; font-size: 13px; font-weight: 600; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
    .content { padding: 12px 14px 30px; }
    .chart-card { height: 440px; }
    .greeting { font-size: 17px; }
    .stat-grid { grid-template-columns: 1fr; }
    .two-col-tables { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .chart-card { height: 380px; }
    .quick-actions { grid-template-columns: repeat(3, 1fr); gap: 18px 6px; padding: 20px 10px; }
    .quick-action-item { font-size: 11px; }
    .balance-card .bc-amount { font-size: 24px; }
}

.com{
font-size: 40px;
font-weight: bold;

}



/* ══════════════════════════════════════════
   COMMODITIES — vertical list of single-quote cards
   ══════════════════════════════════════════ */
.cm-title {
    font-size: 1.6rem;
    color: #fff;
    font-weight: 700;
    margin: 4px 0 18px;
}

.cm-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cm-card {
    background: #0d1117;
    border: 1px solid #2a2f37;
    border-radius: 4px;
    padding: 6px 10px;
    min-height: 110px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: border-color 0.15s;
}
.cm-card:hover { border-color: #3b82f6; }

/* TradingView's single-quote widget injects an iframe here.
   Make sure the iframe fills the card. */
.cm-card .tradingview-widget-container,
.cm-card .tradingview-widget-container__widget {
    width: 100%;
    height: 100%;
}
.cm-card iframe {
    width: 100% !important;
    min-height: 96px;
    border: 0;
    display: block;
}

/* Fallback: if the widget fails to load, show our label */
.cm-fallback {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 8px 12px;
}
.cm-fallback .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #161b22;
    color: #f0b90b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.cm-fallback .meta .sym  { color: #fff; font-weight: 700; font-size: 0.95rem; }
.cm-fallback .meta .sub  { color: #8b949e; font-size: 0.78rem; margin-top: 2px; }

@media (max-width: 700px) {
    .cm-title { font-size: 1.3rem; }
    .cm-card  { min-height: 96px; }
}



.lt-card {
    background: #0d1117;
    border: 1px solid #2a2f37;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
}

/* ---------- Top status bar ---------- */
.lt-status {
    padding: 22px 24px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid #2a2f37;
}
.lt-status .trader-name {
    color: #16c784;
    font-weight: 700;
}
.lt-status.pending  .trader-name { color: #16c784; }
.lt-status.approved .trader-name { color: #16c784; }
.lt-status.rejected .trader-name { color: #ef4444; }

.lt-title {
    text-align: center;
    padding: 26px 24px 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* ---------- Form ---------- */
.lt-form {
    padding: 22px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.lt-input {
    width: 100%;
    max-width: 620px;
    background: #161b22;
    border: 1px solid #2a2f37;
    border-radius: 4px;
    color: #fff;
    padding: 14px 16px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s;
}
.lt-input::placeholder { color: #6e7681; }
.lt-input:focus { border-color: #3b82f6; }
.lt-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #0d1117;
}

.lt-submit {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 13px 46px;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: filter 0.15s;
}
.lt-submit:hover:not(:disabled) { filter: brightness(1.12); }
.lt-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #2a2f37;
}

/* ---------- Below the form info ---------- */
.lt-hint {
    text-align: center;
    color: #8b949e;
    font-size: 0.82rem;
    padding: 0 24px 22px;
}
.lt-hint strong { color: #fff; }

@media (max-width: 700px) {
    .lt-status { font-size: 0.95rem; padding: 18px 16px; }
    .lt-title  { font-size: 1.25rem; padding: 22px 16px 6px; }
    .lt-form   { padding: 18px 16px 26px; }
    .lt-submit { width: 100%; max-width: 620px; }
}



/* ══════════════════════════════════════════
   LIVE TRADING — locked / unlocked states
   ══════════════════════════════════════════ */
.lt-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62vh;
    padding: 30px 20px;
}

.lt-locked {
    text-align: center;
    max-width: 620px;
    width: 100%;
}

.lt-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 22px;
    letter-spacing: 0.5px;
}

.lt-headline {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.lt-message {
    font-size: 1rem;
    color: #e6edf3;
    margin: 0 0 28px;
    line-height: 1.55;
}

.lt-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.lt-back,
.lt-deposit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    transition: filter 0.15s;
}
.lt-back:hover,
.lt-deposit:hover { filter: brightness(1.15); }

.lt-back {
    color: #3b82f6;
}

.lt-deposit {
    color: #3b82f6;
    background: #161b22;
    border: 1px solid #2a2f37;
    padding: 8px 16px;
    border-radius: 4px;
}
.lt-deposit i { color: #3b82f6; }

@media (max-width: 600px) {
    .lt-title    { font-size: 1.5rem; }
    .lt-headline { font-size: 1.35rem; }
    .lt-message  { font-size: 0.92rem; }
}




/* ══════════════════════════════════════════
   VERIFICATION FORM
   ══════════════════════════════════════════ */
.vf-card {
    background: #0d1117;
    border: 1px solid #2a2f37;
    border-radius: 6px;
    padding: 26px 24px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.vf-status {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 0 auto 20px;
    max-width: 1100px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}
.vf-status.pending  { background: rgba(240,185,11,.12); color: #f0b90b; border: 1px solid rgba(240,185,11,.3); }
.vf-status.approved { background: rgba(22,199,132,.12); color: #16c784; border: 1px solid rgba(22,199,132,.3); }
.vf-status.rejected { background: rgba(239,68,68,.12);  color: #ef4444; border: 1px solid rgba(239,68,68,.3); }

.vf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
}
.vf-grid .full { grid-column: 1 / -1; }

@media (max-width: 800px) {
    .vf-grid { grid-template-columns: 1fr; gap: 18px; }
}

.vf-field label {
    display: block;
    color: #e6edf3;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.vf-field input[type="text"],
.vf-field input[type="date"],
.vf-field select {
    width: 100%;
    background: #0d1117;
    border: 1px solid #2a2f37;
    border-radius: 4px;
    padding: 12px 14px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.vf-field input::placeholder { color: #6e7681; }
.vf-field input:focus,
.vf-field select:focus { border-color: #3b82f6; }

.vf-field select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a0a0a0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px auto;
    padding-right: 40px;
}

/* ---------- File input ---------- */
.vf-file {
    display: flex;
    align-items: stretch;
    border: 1px solid #2a2f37;
    border-radius: 4px;
    overflow: hidden;
    background: #0d1117;
    position: relative;
}
.vf-file input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.vf-file .btn-choose {
    background: #161b22;
    color: #e6edf3;
    padding: 12px 22px;
    font-size: 0.92rem;
    cursor: pointer;
    border-right: 1px solid #2a2f37;
    white-space: nowrap;
    transition: background 0.15s;
}
.vf-file .btn-choose:hover { background: #1f2937; }
.vf-file .file-name {
    flex: 1;
    padding: 12px 14px;
    color: #6e7681;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-self: center;
}
.vf-file .file-name.has-file { color: #e6edf3; }

/* ---------- Submit ---------- */
.vf-submit {
    margin-top: 26px;
    width: 100%;
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: filter 0.15s;
}
.vf-submit:hover:not(:disabled) { filter: brightness(1.12); }
.vf-submit:disabled { opacity: 0.55; cursor: not-allowed; background: #2a2f37; }




/* ══════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════ */
.pf-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}
.pf-wrap .full { grid-column: 1 / -1; }

@media (max-width: 900px) {
    .pf-wrap { grid-template-columns: 1fr; }
    .pf-wrap .full { grid-column: auto; }
}

/* ---------- Section header card ---------- */
.pf-section-head {
    background: #0d1117;
    border: 1px solid #2a2f37;
    border-radius: 6px;
    padding: 22px 24px;
}
.pf-section-head h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    color: #fff;
    font-weight: 700;
}
.pf-section-head p {
    margin: 0;
    color: #8b949e;
    font-size: 0.9rem;
}

/* ---------- Referral link bar ---------- */
.pf-ref {
    text-align: center;
    padding: 20px 0 4px;
}
.pf-ref-label {
    color: #e6edf3;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.pf-ref-box {
    display: flex;
    background: #161b22;
    border: 1px solid #2a2f37;
    border-radius: 4px;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}
.pf-ref-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: #e6edf3;
    font-size: 0.9rem;
    outline: none;
}
.pf-ref-copy {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    font-size: 1rem;
    transition: filter 0.15s;
}
.pf-ref-copy:hover { filter: brightness(1.12); }

/* ---------- Panel (reusable) ---------- */
.pf-panel {
    background: #0d1117;
    border: 1px solid #2a2f37;
    border-radius: 6px;
    padding: 24px;
}
.pf-panel h3 {
    margin: 0 0 20px;
    font-size: 1.15rem;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pf-panel h3 i { color: #8b949e; font-size: 1rem; }

/* ---------- Balances list ---------- */
.pf-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #161b22;
    font-size: 0.95rem;
}
.pf-balance-row:last-child { border-bottom: none; }
.pf-balance-row .k { color: #e6edf3; font-weight: 500; }
.pf-balance-row .v { color: #fff; font-weight: 700; }

/* ---------- Form fields ---------- */
.pf-field { margin-bottom: 16px; position: relative; }
.pf-field label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #0d1117;
    padding: 0 6px;
    color: #8b949e;
    font-size: 0.78rem;
    z-index: 1;
}
.pf-field .input-icon-wrap {
    display: flex;
    align-items: center;
    background: #161b22;
    border: 1px solid #2a2f37;
    border-radius: 4px;
    transition: border-color 0.15s;
    position: relative;
}
.pf-field .input-icon-wrap:focus-within { border-color: #3b82f6; }
.pf-field .input-icon-wrap input,
.pf-field .input-icon-wrap select {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 14px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.pf-field .input-icon-wrap input::placeholder { color: #6e7681; }
.pf-field .input-icon-wrap .icon {
    padding: 0 14px;
    color: #8b949e;
    font-size: 0.9rem;
    border-left: 1px solid #2a2f37;
    align-self: stretch;
    display: flex;
    align-items: center;
    background: #1f2937;
}

/* Select arrow */
.pf-field select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a0a0a0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px auto;
    padding-right: 40px !important;
}

.pf-btn {
    display: inline-block;
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: filter 0.15s;
}
.pf-btn:hover { filter: brightness(1.12); }
.pf-btn.full { width: 100%; padding: 14px; }
.pf-btn.reset { background: #dc2626; }

/* ---------- Password eye ---------- */
.pf-eye {
    padding: 0 14px;
    color: #8b949e;
    cursor: pointer;
    align-self: stretch;
    display: flex;
    align-items: center;
    background: #1f2937;
    border-left: 1px solid #2a2f37;
    font-size: 0.9rem;
}
.pf-eye:hover { color: #fff; }

/* ---------- Avatar ---------- */
.pf-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 8px 0 4px;
}
.pf-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #e6edf3;
    overflow: hidden;
    border: 2px solid #2a2f37;
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }

.pf-file {
    display: flex;
    width: 100%;
    border: 1px solid #2a2f37;
    border-radius: 4px;
    overflow: hidden;
    background: #161b22;
}
.pf-file input[type="file"] {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0; pointer-events: none;
}
.pf-file .btn-choose {
    background: #1f2937;
    color: #e6edf3;
    padding: 10px 18px;
    font-size: 0.88rem;
    cursor: pointer;
    border-right: 1px solid #2a2f37;
    white-space: nowrap;
}
.pf-file .btn-choose:hover { background: #2a2f37; }
.pf-file .file-name {
    flex: 1;
    padding: 10px 14px;
    color: #6e7681;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-self: center;
}
.pf-file .file-name.has-file { color: #e6edf3; }

.pf-photo-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}
.pf-photo-actions .pf-btn { flex: 1; }

.pf-hint {
    text-align: center;
    color: #8b949e;
    font-size: 0.82rem;
    margin: 6px 0 0;
}

/* ---------- Account info ---------- */
.pf-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #161b22;
    font-size: 0.92rem;
}
.pf-info-row:last-child { border-bottom: none; }
.pf-info-row .k { color: #e6edf3; font-weight: 600; }
.pf-info-row .v { color: #8b949e; display: flex; align-items: center; gap: 6px; }
.pf-info-row .v .green { color: #16c784; }

/* ---------- Referral table ---------- */
.pf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.pf-table th {
    text-align: left;
    padding: 12px 10px;
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid #2a2f37;
    white-space: nowrap;
}
.pf-table td {
    padding: 12px 10px;
    color: #e6edf3;
    border-bottom: 1px solid #161b22;
}
.pf-table tr:last-child td { border-bottom: none; }
.pf-table .empty {
    text-align: center;
    color: #8b949e;
    padding: 26px 0;
}
