/* ============================================================
   PROFILE HERO — Premium Financial Dashboard
   Version 3.0 | Light Theme | Mobile-First | Zero CDN
   ============================================================ */

/* ─── SECTION SHELL ────────────────────────────────────────────────────────────────────────────── */
.cw-hero {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0 48px;
}

/* ─── CONTAINER ─────────────────────────────────────────────────────────────── */
.cw-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* ─── COLUMNS ────────────────────────────────────────────────────────────────── */
.cw-col {
    display: flex;
    flex-direction: column;
}

/* ─── BREADCRUMB ─────────────────────────────────────────────────────────────── */
.cw-breadcrumb {
    margin-bottom: 18px;
}
.cw-breadcrumb__inner,
.cw-breadcrumb p,
.cw-breadcrumb #breadcrumbs {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}
.cw-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}
.cw-breadcrumb a:hover {
    color: #3b82f6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LEFT COLUMN — Profile
═══════════════════════════════════════════════════════════════════════════════ */
.cw-col--profile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 24px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
    align-items: center;
    text-align: center;
    gap: 0;
    position: sticky;
    top: 20px;
}

/* ─── AVATAR ─────────────────────────────────────────────────────────────────── */
.cw-avatar-block {
    position: relative;
    margin-bottom: 20px;
}

.cw-avatar {
    width: 200px;
    height: 200px;
    position: relative;
    display: inline-block;
}

.cw-avatar__img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid #f1f5f9;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cw-avatar__img:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.13);
}

/* Live dot */
.cw-avatar__live {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: cw-pulse-ring 2s infinite;
}

@keyframes cw-pulse-ring {
    0%   { box-shadow: 0 0 0 0   rgba(16, 185, 129, 0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0   rgba(16, 185, 129, 0); }
}

/* ─── RANK BADGE ─────────────────────────────────────────────────────────────── */
.cw-rank {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 13px;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 10px;
    z-index: 10;
    letter-spacing: -0.3px;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Courier New', monospace;
}
.cw-rank--gold    { background: #f59e0b; color: #000; }
.cw-rank--silver  { background: #94a3b8; color: #000; }
.cw-rank--bronze  { background: #b45309; color: #fff; }
.cw-rank--default { background: #3b82f6; color: #fff; }

/* ─── IDENTITY ───────────────────────────────────────────────────────────────── */
.cw-identity {
    margin-bottom: 18px;
}

.cw-name {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cw-profession {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 8px 0;
}

.cw-birthplace {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ─── SOCIAL BUTTONS ─────────────────────────────────────────────────────────── */
.cw-socials {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 22px;
}

.cw-soc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.cw-soc:hover {
    transform: translateY(-3px);
    border-color: transparent;
}

.cw-soc--instagram:hover { background: #e1306c; color: #fff; }
.cw-soc--twitter:hover   { background: #0f1419; color: #fff; }
.cw-soc--facebook:hover  { background: #1877f2; color: #fff; }
.cw-soc--youtube:hover   { background: #ff0000; color: #fff; }
.cw-soc--tiktok:hover    { background: #010101; color: #fff; }

.cw-no-socials {
    font-size: 11px;
    color: #cbd5e1;
    margin: 0;
}

/* ─── BOOST CTA ──────────────────────────────────────────────────────────────── */
.cw-boost {
    width: 100%;
    margin-top: auto;
    padding-top: 4px;
}

.cw-boost__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.cw-boost__btn:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.cw-boost__btn:active {
    transform: translateY(0);
}

.cw-boost__btn--done {
    background: #10b981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
    pointer-events: none;
}

.cw-boost__counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    color: #94a3b8;
    margin: 10px 0 0 0;
}

.cw-boost__counter strong {
    color: #334155;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RIGHT COLUMN — Data
═══════════════════════════════════════════════════════════════════════════════ */
.cw-col--data {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ─── TOP ROW ────────────────────────────────────────────────────────────────── */
.cw-row--top {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
}

/* ─── SHARED CARD BASE ───────────────────────────────────────────────────────── */
.cw-nw-card,
.cw-milestone-card,
.cw-bio {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

/* ─── SHARED TAGS / LABELS ───────────────────────────────────────────────────── */
.cw-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #94a3b8;
    display: block;
    margin-bottom: 6px;
}

/* ─── NET WORTH CARD ─────────────────────────────────────────────────────────── */
.cw-nw-card {
    border-left: 4px solid #10b981;
}

.cw-nw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cw-nw-label {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Pulse dot */
.cw-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: cw-pulse-ring 1.8s infinite;
}

/* Currency picker */
.cw-currency-picker {
    appearance: none;
    -webkit-appearance: none;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 5px 28px 5px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    min-width: 90px;
}

.cw-currency-picker:hover,
.cw-currency-picker:focus {
    border-color: #3b82f6;
}

/* Net Worth Value */
.cw-nw-value {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin: 2px 0 10px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.cw-nw-currency {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 26px;
    font-weight: 700;
    color: #10b981;
    align-self: flex-start;
    padding-top: 8px;
}

.cw-nw-number {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 52px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -2px;
    line-height: 1;
}

.cw-nw-suffix {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 24px;
    font-weight: 600;
    color: #64748b;
    align-self: flex-end;
    padding-bottom: 4px;
    margin-left: 2px;
}

/* Ticker */
.cw-ticker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 7px;
    border: 1px solid #a7f3d0;
    max-width: 100%;
}

.cw-ticker--static {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
}

/* Spinning icon */
.cw-spin {
    animation: cw-spin-anim 1.2s linear infinite;
    flex-shrink: 0;
}

@keyframes cw-spin-anim {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ─── MILESTONE CARD ─────────────────────────────────────────────────────────── */
.cw-milestone-card {
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cw-milestone__val {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 4px 0 6px;
}

.cw-milestone__val--deceased {
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #64748b;
}

.cw-milestone__num {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 46px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -2px;
    line-height: 1;
}

.cw-milestone__unit {
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    align-self: flex-end;
    padding-bottom: 3px;
}

.cw-milestone__sub {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.cw-milestone__sub strong {
    color: #334155;
}

/* Birthday progress bar */
.cw-progress {
    height: 5px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0 4px;
}

.cw-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-milestone__prog-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ─── 8 STAT CARDS GRID ──────────────────────────────────────────────────────── */
.cw-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.cw-stat {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 14px 16px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: default;
}

.cw-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    border-color: transparent;
}

/* Accent top borders */
.cw-stat--green  { border-top: 3px solid #10b981; }
.cw-stat--blue   { border-top: 3px solid #3b82f6; }
.cw-stat--amber  { border-top: 3px solid #f59e0b; }
.cw-stat--slate  { border-top: 3px solid #94a3b8; }

.cw-stat__label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 7px;
}

.cw-stat--green  .cw-stat__label svg { stroke: #10b981; }
.cw-stat--blue   .cw-stat__label svg { stroke: #3b82f6; }
.cw-stat--amber  .cw-stat__label svg { stroke: #f59e0b; }
.cw-stat--slate  .cw-stat__label svg { stroke: #94a3b8; }

.cw-stat__value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    display: block;
    word-break: break-word;
}

/* ─── BIO CARD ───────────────────────────────────────────────────────────────── */
.cw-bio {
    /* inherits .cw-bio base */
}

.cw-bio__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.cw-bio__badge {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 6px;
}

.cw-bio__zodiac {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.cw-bio__text,
.cw-bio__content p {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
    margin: 0 0 12px 0;
}

.cw-bio__content p:last-child {
    margin-bottom: 0;
}

.cw-bio__toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0 0 0;
    transition: color 0.2s, gap 0.2s;
}

.cw-bio__toggle:hover {
    color: #0f172a;
    gap: 8px;
}

.cw-bio__toggle--less {
    margin-top: 10px;
}

.cw-bio__full {
    animation: cw-fadein 0.3s ease;
}

@keyframes cw-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cw-container {
        grid-template-columns: 260px 1fr;
        gap: 20px;
        padding: 0 16px;
    }

    .cw-nw-number { font-size: 44px; }
    .cw-stats-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL TABLET (≤ 900px)
═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .cw-container {
        grid-template-columns: 1fr;
    }

    .cw-col--profile {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        gap: 0;
        padding: 20px;
    }

    .cw-avatar-block {
        margin-right: 20px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .cw-avatar,
    .cw-avatar__img {
        width: 110px;
        height: 110px;
        border-radius: 14px;
    }

    .cw-identity { text-align: left; }
    .cw-name { justify-content: flex-start; font-size: 20px; }

    .cw-socials { justify-content: flex-start; margin-bottom: 0; }

    .cw-breadcrumb,
    .cw-boost {
        width: 100%;
    }

    .cw-boost { order: 10; padding-top: 14px; border-top: 1px solid #f1f5f9; margin-top: 14px; }
    .cw-breadcrumb { order: -1; text-align: left; }
    .cw-breadcrumb__inner, .cw-breadcrumb p { text-align: left; }

    .cw-stats-grid { grid-template-columns: repeat(2, 1fr); }

    .cw-row--top {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 600px)
═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .cw-hero { padding: 20px 0 32px; }

    .cw-container { padding: 0 12px; gap: 14px; }

    .cw-col--profile {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px 16px;
    }

    .cw-avatar-block { margin-right: 0; margin-bottom: 14px; }

    .cw-avatar,
    .cw-avatar__img {
        width: 140px;
        height: 140px;
    }

    .cw-identity { text-align: center; }
    .cw-name { justify-content: center; font-size: 20px; }
    .cw-birthplace { justify-content: center; }
    .cw-socials { justify-content: center; }

    .cw-nw-number { font-size: 38px; letter-spacing: -1.5px; }
    .cw-nw-currency { font-size: 22px; }
    .cw-nw-suffix { font-size: 18px; }

    .cw-milestone__num { font-size: 38px; }

    .cw-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cw-stat { padding: 12px 13px; }
    .cw-stat__value { font-size: 13px; }

    .cw-nw-card,
    .cw-milestone-card,
    .cw-bio {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .cw-currency-picker { min-width: 80px; font-size: 10px; }
    .cw-ticker { font-size: 10px; }

    .cw-boost__btn { padding: 11px 16px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════════════════════════════════ */
@media print {
    .cw-boost,
    .cw-socials,
    .cw-ticker,
    .cw-bio__toggle,
    .cw-currency-picker { display: none !important; }

    .cw-hero { border: none; padding: 20px 0; }
    .cw-container { grid-template-columns: 200px 1fr; gap: 20px; }
    .cw-col--profile { box-shadow: none; border: 1px solid #ddd; }
}