/* ═══════════════════════════════════════════
   Trading Profile — Dark Theme #0C121F
   ═══════════════════════════════════════════ */

/* Reset UM default profile styles */
.um-profile .um-profile-body { padding: 0; background: transparent; }
.um .um-profile-nav { display: none; }

/* ── Wrapper ── */
.tp-profile-wrap {
    background: #0C121F;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /*border-radius: 16px;*/
    overflow: hidden;
    /*max-width: 820px;*/
    margin: 0 auto;
    border: 1px solid #1e2d45;
}

/* ── Cover Photo ── */
.tp-cover {
    width: 100%;
    height: 180px;
    background: #0f1a2e;
    position: relative;
    overflow: hidden;
}
.tp-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.tp-cover-default {
    width: 100%; height: 100%;
    background: #0f1a2e;
    background-image:
        repeating-linear-gradient(90deg, #1a2740 0, #1a2740 1px, transparent 1px, transparent 48px),
        repeating-linear-gradient(0deg,  #1a2740 0, #1a2740 1px, transparent 1px, transparent 48px);
}

/* ── Header ── */
.tp-header {
    padding: 0 1.5rem 1.25rem;
    position: relative;
}
.tp-avatar-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: -48px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 12px;
}
.tp-avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    border: 3px solid #0C121F;
    background: #1e2d45;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 600;
    color: #7dd3fc;
    letter-spacing: 1px;
}
.tp-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 4px;
}
.tp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #1e3a5f;
    background: #0f1e32;
    color: #7dd3fc;
    text-decoration: none;
    transition: background .15s;
}
.tp-btn:hover { background: #162840; color: #bae6fd; }
.tp-btn-primary {
    background: #1e3a5f;
    color: #bae6fd;
    border-color: #2563eb;
}
.tp-btn-primary:hover { background: #24487a; }

/* ── Name & Badges ── */
.tp-name-block { margin-bottom: .75rem; }
.tp-fullname {
    font-size: 20px;
    font-weight: 600;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.tp-username {
    font-size: 13px;
    color: #fff;
}
.tp-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

/* ── Badges ── */
.tp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}
.badge-verified   { background: #0d2b1c; color: #4ade80; border: 1px solid #166534; }
.badge-kyc-approved { background: #0d2b1c; color: #4ade80; border: 1px solid #166534; }
.badge-kyc-pending  { background: #2d2006; color: #fbbf24; border: 1px solid #854d0e; }
.badge-kyc-rejected { background: #2d0c0c; color: #f87171; border: 1px solid #7f1d1d; }
.badge-kyc-none     { background: #1e2533; color: #94a3b8; border: 1px solid #334155; }
.badge-vip     { background: #2d1f06; color: #fbbf24; border: 1px solid #854d0e; }
.badge-gold    { background: #2d1f06; color: #fbbf24; border: 1px solid #854d0e; }
.badge-silver  { background: #1e2533; color: #94a3b8; border: 1px solid #334155; }
.badge-free    { background: #12192a; color: #64748b; border: 1px solid #1e2d45; }
.badge-active    { background: #0c1f2d; color: #38bdf8; border: 1px solid #0e4d6e; }
.badge-suspended { background: #2d1a06; color: #fb923c; border: 1px solid #9a3412; }
.badge-banned    { background: #2d0c0c; color: #f87171; border: 1px solid #7f1d1d; }

/* ── Sections ── */
.tp-section {
    background: #0f1825;
    border: 1px solid #1e2d45;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 0 1.25rem 1rem;
}
.tp-section:last-child { margin-bottom: 1.25rem; }
.tp-section-title {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}

/* ── Stats Grid ── */
.tp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}
.tp-stat-card {
    background: #0C121F;
    border: 1px solid #1e2d45;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}
.tp-stat-value {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}
.tp-stat-label {
    font-size: 11px;
    color: #475569;
    margin-top: 4px;
}

/* Win rate bar */
.tp-win-bar {
    margin-top: 6px;
    height: 5px;
    background: #1e2d45;
    border-radius: 3px;
    overflow: hidden;
}
.tp-win-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: #4ade80;
    transition: width .4s ease;
}

/* Rating stars */
.tp-stars { color: #fbbf24; font-size: 13px; letter-spacing: 1px; margin-top: 3px; }

/* Colors */
.stat-green  { color: #4ade80; }
.stat-blue   { color: #38bdf8; }
.stat-amber  { color: #fbbf24; }
.stat-purple { color: #a78bfa; }
.stat-red    { color: #f87171; }
.stat-muted  { color: #64748b; }

/* ── Info Grid ── */
.tp-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.tp-info-item { display: flex; flex-direction: column; gap: 4px; }
.tp-info-label {
    font-size: 11px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tp-info-value {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
}

/* ── Balance Card ── */
.tp-balance-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 1rem;
}
.tp-balance-card {
    background: #0C121F;
    border: 1px solid #1e2d45;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.tp-balance-label { font-size: 11px; color: #475569; margin-bottom: 4px; }
.tp-balance-value { font-size: 20px; font-weight: 600; color: #4ade80; }
.tp-balance-value.neutral { color: #38bdf8; }

/* ── Social Links ── */
.tp-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tp-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    color: #94a3b8;
    border: 1px solid #1e2d45;
    background: #0C121F;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.tp-social-btn:hover { border-color: #2563eb; color: #7dd3fc; }
.tp-social-btn .dashicons,
.tp-social-btn svg { font-size: 15px; width: 15px; height: 15px; }

/* ── Bio ── */
.tp-bio {
    font-size: 13px;
    color: #fff;
    line-height: 1.75;
}
.tp-bio-empty { font-size: 13px; color: #fff; font-style: italic; }

/* ── Edit Profile Button Area ── */
.tp-edit-area {
    padding: .75rem 1.25rem;
    border-top: 1px solid #1e2d45;
    display: flex;
    justify-content: flex-end;
}

/* ── Responsive ── */
@media (max-width: 540px) {
    .tp-info-grid { grid-template-columns: 1fr; }
    .tp-stats-grid { grid-template-columns: 1fr 1fr; }
    .tp-cover { height: 130px; }
    .tp-avatar { width: 76px; height: 76px; font-size: 22px; }
    .tp-fullname { font-size: 17px; }
}
 /*custom design hiding */
textarea#um-meta-bio {
    display: none;
}
.um-profile-body.main.main-default {
    padding: 20px;
}
