/* --- base.css --- */
/* ============================================
   PROFILE - BASE v3.0 — iPHONE CARTOON PRETO & BRANCO
   Squircle iOS + traço cartoon + halftone + mola
   Vale para o SEU perfil e o perfil de outros usuários
   © 2026 LITE STUDIO
   ============================================ */
.st-p2-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2;
    background: #000000;
    /* pontinhos halftone (cartoon) */
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.6px);
    background-size: 16px 16px;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Rajdhani', sans-serif;
}
/* ícones brancos no perfil (override do dourado global) */
.st-p2-container .st-icon { color: #ffffff !important; }
.st-p2-scroll {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding: 24px 20px 40px;
    padding-top: calc(24px + env(safe-area-inset-top, 24px));
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    min-height: 0;
    position: relative;
    z-index: 1;
}
.st-p2-scroll::-webkit-scrollbar { width: 3px; }
.st-p2-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.4); border-radius: 2px; }
/* TOPBAR */
.st-p2-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 8px 0;
}
.st-p2-back,
.st-p2-settings {
    width: 44px;
    height: 44px;
    background: #101010;
    border: 2px solid rgba(255,255,255,0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    flex-shrink: 0;
    border-radius: 999px;
    font-size: 1.2rem;
    box-shadow: 0 3px 0 rgba(255,255,255,0.12);
}
.st-p2-back:hover,
.st-p2-settings:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(255,255,255,0.2), 0 0 16px rgba(255,255,255,0.25);
}
.st-p2-back:hover .st-icon,
.st-p2-settings:hover .st-icon { color: #000000 !important; }
.st-p2-back:active,
.st-p2-settings:active { transform: translateY(1px) scale(0.95); box-shadow: 0 1px 0 rgba(255,255,255,0.12); }
.st-p2-topbar-center {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
/* CORE / AVATAR */
.st-p2-core {
    position: relative;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.st-p2-orbit {
    position: absolute;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: p2Rotate 40s linear infinite;
}
.st-p2-orbit-1 { inset: 0; border-color: rgba(255,255,255,0.12); }
.st-p2-orbit-2 { inset: 12%; animation-duration: 30s; animation-direction: reverse; border-color: rgba(255,255,255,0.22); }
.st-p2-orbit-3 { inset: 24%; animation-duration: 20s; border: 1px solid rgba(255,255,255,0.15); }
.st-p2-orbit-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    top: 50%;
    left: -3px;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}
.st-p2-core-glow {
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
    animation: corePulse 4s ease-in-out infinite;
}
.st-p2-avatar-wrap {
    position: relative;
    width: 50%;
    aspect-ratio: 1;
    z-index: 5;
}
.st-p2-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    background: #101010;
    box-shadow: 0 0 34px rgba(255,255,255,0.25), 0 6px 0 rgba(255,255,255,0.12);
}
.st-p2-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.st-p2-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
}
/* level badge: pill branco cartoon */
.st-p2-level-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #000000;
    padding: 4px 16px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    border: 2px solid #ffffff;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 3px 0 rgba(255,255,255,0.35), 0 6px 16px rgba(0,0,0,0.5);
}
/* IDENTIDADE */
.st-p2-identity {
    text-align: center;
    margin-bottom: 28px;
}
.st-p2-name {
    font-family: inherit;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 4px;
    text-shadow: 0 0 24px rgba(255,255,255,0.3);
}
.st-p2-email {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}
.st-p2-rank {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    margin-bottom: 12px;
    background: #101010;
    border: 2px solid rgba(255,255,255,0.7);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 4px 0 rgba(255,255,255,0.15);
}
.st-p2-rank svg, .st-p2-rank .st-icon { width: 18px; height: 18px; opacity: 0.9; }
.st-p2-member {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 8px;
}
/* SECTION TITLE — bolinha branca */
.st-p2-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 32px 0 16px;
}
.st-p2-section-title::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}
.st-p2-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.35), transparent);
}
/* STATS */
.st-p2-hex-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.st-p2-hex-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.st-p2-hex-grid-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}
.st-p2-hex {
    background: #101010;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 14px 6px;
    text-align: center;
    border-radius: 20px;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 4px 0 rgba(255,255,255,0.08);
}
.st-p2-hex:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(255,255,255,0.12), 0 0 18px rgba(255,255,255,0.12);
}
.st-p2-hex-icon {
    display: flex;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.4));
}
.st-p2-hex-value {
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 0 12px rgba(255,255,255,0.3);
    letter-spacing: -0.02em;
}
.st-p2-hex-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
/* MOMENTUM */
.st-p2-momentum {
    background: #101010;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 18px 20px;
    border-radius: 24px;
    margin-bottom: 8px;
    box-shadow: 0 5px 0 rgba(255,255,255,0.08);
}
.st-p2-momentum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.st-p2-momentum-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.st-p2-momentum-value {
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.03em;
    text-shadow: 0 0 12px rgba(255,255,255,0.4);
}
.st-p2-momentum-bar { display: flex; gap: 4px; height: 6px; }
.st-p2-momentum-seg {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    transition: all 0.6s ease;
}
.st-p2-momentum-seg.active { background: rgba(255,255,255,0.5); }
.st-p2-momentum-seg.hot {
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255,255,255,0.7);
}
/* MISSÕES */
.st-p2-missions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
}
.st-p2-mission {
    background: #101010;
    border: 2px solid rgba(255,255,255,0.2);
    border-left: 4px solid rgba(255,255,255,0.6);
    padding: 14px 16px;
    border-radius: 20px;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.st-p2-mission:hover {
    border-color: rgba(255,255,255,0.5);
    transform: translateX(2px);
}
.st-p2-mission.completed {
    border-left-color: #ffffff;
    opacity: 0.8;
}
.st-p2-mission-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.st-p2-mission-title {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.st-p2-mission.completed .st-p2-mission-title {
    text-decoration: line-through;
    color: rgba(255,255,255,0.4);
}
.st-p2-mission-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
    padding: 2px 12px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    letter-spacing: 0.05em;
}
.st-p2-mission.completed .st-p2-mission-tag {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    font-weight: 700;
}
.st-p2-mission-desc {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
    margin-bottom: 10px;
}
.st-p2-mission-progress {
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.st-p2-mission-bar {
    height: 100%;
    background: linear-gradient(90deg, #6b6b6b, #ffffff);
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
}
/* TIMELINE */
.st-p2-timeline {
    position: relative;
    padding: 8px 0 8px 28px;
    margin-bottom: 20px;
}
.st-p2-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.08) 100%);
}
.st-p2-timeline-item {
    position: relative;
    padding: 12px 0 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.st-p2-timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 50%;
}
.st-p2-timeline-item.unlocked::before {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255,255,255,0.8);
}
.st-p2-timeline-item.locked::before {
    background: transparent;
    border-color: rgba(255,255,255,0.15);
}
.st-p2-timeline-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
    background: #101010;
}
.st-p2-timeline-item.locked .st-p2-timeline-avatar {
    border-color: rgba(255,255,255,0.12);
    opacity: 0.4;
    filter: grayscale(1);
}
.st-p2-timeline-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.st-p2-timeline-info { flex: 1; min-width: 0; }
.st-p2-timeline-title {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
}
.st-p2-timeline-item.unlocked .st-p2-timeline-title { color: #ffffff; }
.st-p2-timeline-item.locked .st-p2-timeline-title { color: rgba(255,255,255,0.3); }
.st-p2-timeline-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    margin-top: 2px;
    letter-spacing: 0.05em;
}
.st-p2-timeline-item.unlocked .st-p2-timeline-meta { color: rgba(255,255,255,0.6); }
/* BIO */
.st-p2-bio {
    background: #101010;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 18px 20px;
    border-radius: 24px;
    margin-bottom: 8px;
    box-shadow: 0 5px 0 rgba(255,255,255,0.08);
}
.st-p2-bio-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.st-p2-bio-dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: p2Blink 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}
.st-p2-bio-text {
    font-family: var(--font-main);
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}
.st-p2-bio-text.muted {
    color: rgba(255,255,255,0.25);
    font-style: italic;
}
.st-p2-bio-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: transparent;
    border: 2px dashed rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.6);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    width: 100%;
    margin-top: 12px;
    border-radius: 999px;
}
.st-p2-bio-edit:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255,255,255,0.05);
}
/* ACTIONS */
.st-p2-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0 20px;
}
.st-p2-btn {
    padding: 18px;
    background: #101010;
    border: 2px solid rgba(255,255,255,0.4);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
    border-radius: 999px;
    box-shadow: 0 4px 0 rgba(255,255,255,0.1);
}
.st-p2-btn:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(255,255,255,0.15), 0 0 18px rgba(255,255,255,0.12);
}
.st-p2-btn:active { transform: translateY(2px) scale(0.97); box-shadow: 0 1px 0 rgba(255,255,255,0.1); }
.st-p2-btn.primary {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    box-shadow: 0 5px 0 rgba(255,255,255,0.3);
}
.st-p2-btn.primary:hover {
    background: #f2f2f2;
    box-shadow: 0 5px 0 rgba(255,255,255,0.3), 0 0 24px rgba(255,255,255,0.3);
}
.st-p2-btn.primary:active { box-shadow: 0 1px 0 rgba(255,255,255,0.3); }
.st-p2-btn.like.liked {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    box-shadow: 0 5px 0 rgba(255,255,255,0.3);
}
.st-p2-btn.danger {
    background: #1c1c1c;
    border: 2px dashed rgba(255,255,255,0.5);
    color: #ffffff;
    box-shadow: none;
}
.st-p2-btn.danger:hover {
    border-style: solid;
    border-color: #ffffff;
    background: #242424;
}
/* FOOTER */
.st-p2-footer {
    text-align: center;
    padding: 20px 0 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
/* LOADING */
.st-p2-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 20px;
}
.st-p2-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-radius: 50%;
    animation: p2Spin 0.8s linear infinite;
}
.st-p2-loading-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: p2Blink 1.5s ease-in-out infinite;
}
/* ANIMAÇÕES */
@keyframes p2Rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes corePulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes p2Blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}
@keyframes p2Spin { to { transform: rotate(360deg); } }
/* RESPONSIVO */
@media (max-width: 380px) {
    .st-p2-scroll { padding: 16px 14px 30px; }
    .st-p2-name { font-size: 1.6rem; }
    .st-p2-hex-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .st-p2-hex-value { font-size: 1.2rem; }
    .st-p2-hex-grid-2 { gap: 8px; }
    .st-p2-core { max-width: 150px; }
}
@media (min-width: 600px) {
    .st-p2-core { max-width: 240px; }
    .st-p2-name { font-size: 2.6rem; }
    .st-p2-hex-value { font-size: 1.6rem; }
    .st-p2-hex-grid { gap: 12px; }
}
/* --- ui.css --- */
/* ============================================
   PROFILE - UI v3.0 — iPHONE CARTOON PRETO & BRANCO
   Modais, avatar grid, edição, partículas
   © 2026 LITE STUDIO
   ============================================ */
/* MODAIS (são anexados no body — estilos próprios) */
.st-p2-modal-content {
    background: #101010 !important;
    border: 2px solid #ffffff !important;
    clip-path: none !important;
    border-radius: 28px !important;
    padding: 0;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 0 rgba(255,255,255,0.1), 0 24px 70px rgba(0,0,0,0.85) !important;
    animation: p2ModalIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
    max-height: 85vh;
    overflow-y: auto;
}
@keyframes p2ModalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.st-p2-modal-content .st-icon { color: #ffffff !important; }
.st-p2-modal-header {
    padding: 18px 22px;
    border-bottom: 2px solid rgba(255,255,255,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #101010;
    border-radius: 28px 28px 0 0;
}
.st-p2-modal-title {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}
.st-p2-modal-close {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    border-radius: 50%;
}
.st-p2-modal-close:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: rotate(90deg) scale(1.08);
}
.st-p2-modal-body { padding: 22px 22px 16px; }
.st-p2-modal-footer {
    padding: 16px 22px 22px;
    display: flex;
    gap: 12px;
    border-top: 2px solid rgba(255,255,255,0.1);
}
.st-p2-modal-btn {
    flex: 1;
    padding: 14px;
    border: 2px solid rgba(255,255,255,0.35);
    background: #1c1c1c;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
    border-radius: 999px;
    box-shadow: 0 3px 0 rgba(255,255,255,0.08);
}
.st-p2-modal-btn:hover {
    border-color: #ffffff;
    transform: translateY(-1px);
}
.st-p2-modal-btn:active { transform: translateY(2px) scale(0.97); box-shadow: 0 1px 0 rgba(255,255,255,0.08); }
.st-p2-modal-btn.primary {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    box-shadow: 0 4px 0 rgba(255,255,255,0.3);
}
.st-p2-modal-btn.primary:hover { background: #f2f2f2; }
.st-p2-modal-btn.primary:active { box-shadow: 0 1px 0 rgba(255,255,255,0.3); }
.st-p2-modal-btn.danger {
    background: #1c1c1c;
    border: 2px dashed rgba(255,255,255,0.5);
    color: #ffffff;
    box-shadow: none;
}
.st-p2-modal-btn.danger:hover { border-style: solid; border-color: #ffffff; }
/* DIVIDER */
.st-p2-divider {
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), transparent);
    margin: 8px 0;
}
/* BIO INPUT */
.st-p2-bio-input {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    background: #1c1c1c;
    border: 2px solid rgba(255,255,255,0.35);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 16px !important;
    resize: none;
    outline: none;
    line-height: 1.6;
    border-radius: 18px;
    transition: all 0.25s ease;
}
.st-p2-bio-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}
.st-p2-bio-counter {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
    margin-top: 8px;
    letter-spacing: 0.05em;
}
.st-p2-bio-counter.warn { color: rgba(255,255,255,0.7); }
.st-p2-bio-counter.danger { color: #ffffff; font-weight: 700; }
/* AVATAR GRID */
.st-p2-avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 4px;
}
.st-p2-avatar-option {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.12);
    cursor: default;
    opacity: 0.4;
    filter: grayscale(1);
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c1c1c;
}
.st-p2-avatar-option.unlocked {
    opacity: 1;
    border-color: rgba(255,255,255,0.5);
    cursor: pointer;
}
.st-p2-avatar-option.unlocked:hover {
    transform: scale(1.06);
    border-color: #ffffff;
    box-shadow: 0 0 18px rgba(255,255,255,0.3);
}
.st-p2-avatar-option.selected {
    border: 3px solid #ffffff;
    box-shadow: 0 0 24px rgba(255,255,255,0.55);
    transform: scale(1.08);
}
.st-p2-avatar-option img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.st-p2-avatar-option-locked {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.2);
    filter: grayscale(1) brightness(2);
}
.st-p2-avatar-option.locked {
    opacity: 0.3;
    cursor: not-allowed;
}
.st-p2-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(255,255,255,0.5);
    background: #1c1c1c;
}
/* LIKE PARTICLES — faíscas brancas */
.st-p2-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(255,255,255,0.8) !important;
    animation: p2Spark 0.8s ease-out forwards;
    animation-delay: var(--delay);
}
@keyframes p2Spark {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% {
        transform: translate(calc(cos(var(--angle)) * 80px), calc(sin(var(--angle)) * 80px - 30px)) scale(0);
        opacity: 0;
    }
}
/* EDIT PROFILE */
.st-p2-edit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.st-p2-edit-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.st-p2-edit-input,
.st-p2-edit-textarea {
    width: 100%;
    padding: 12px 14px;
    background: #1c1c1c;
    border: 2px solid rgba(255,255,255,0.35);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 15px !important;
    outline: none;
    transition: all 0.25s ease;
    border-radius: 14px;
}
.st-p2-edit-input:focus,
.st-p2-edit-textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}
.st-p2-edit-input:disabled,
.st-p2-edit-textarea:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.st-p2-edit-textarea {
    min-height: 80px;
    resize: none;
    font-size: 14px !important;
}
.st-p2-edit-input::placeholder,
.st-p2-edit-textarea::placeholder {
    color: rgba(255,255,255,0.25);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}
/* RESPONSIVO */
@media (max-width: 380px) {
    .st-p2-modal-body { padding: 16px 16px 12px; }
    .st-p2-modal-footer {
        padding: 12px 16px 16px;
        flex-direction: column;
    }
    .st-p2-avatar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .st-p2-modal-title { font-size: 0.9rem; }
}
@media (min-width: 600px) {
    .st-p2-avatar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .st-p2-modal-body { padding: 24px 24px 18px; }
    .st-p2-modal-footer { padding: 18px 24px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .st-p2-orbit, .st-p2-core-glow, .st-p2-bio-dot, .st-p2-loading-text,
    .st-p2-spinner, .st-p2-particle { animation: none !important; }
}
/* ============================================
   ✅ OVERRIDES PRETO-NO-BRANCO (v3.0)
   O global.css força branco em divs com
   especificidade (0,2,1). Seletores abaixo usam
   encadeamento (0,3,0)+ com !important p/ vencer.
   ============================================ */
/* Botões pill brancos → texto preto */
.st-p2-container .st-p2-btn.primary { color: #000000 !important; }
.st-p2-container .st-p2-btn.primary span { color: #000000 !important; }
.st-p2-container .st-p2-btn.primary .st-icon { color: #000000 !important; }
.st-p2-container .st-p2-btn.like.liked { color: #000000 !important; }
.st-p2-container .st-p2-btn.like.liked span { color: #000000 !important; }
.st-p2-container .st-p2-back:hover, .st-p2-container .st-p2-settings:hover { color: #000000 !important; }
/* Badge de nível (fundo branco) */
.st-p2-container .st-p2-avatar-wrap .st-p2-level-badge { color: #000000 !important; }
/* Tag de missão completa (fundo branco) */
.st-p2-container .st-p2-mission.completed .st-p2-mission-tag { color: #000000 !important; }
/* Modais (fora do container) */
.st-p2-modal-content .st-p2-modal-btn.primary { color: #000000 !important; }
.st-p2-modal-content .st-p2-modal-btn.primary span { color: #000000 !important; }
.st-p2-modal-content .st-p2-modal-btn.primary .st-icon { color: #000000 !important; }
.st-p2-modal-content .st-p2-modal-close:hover { color: #000000 !important; }
/* Tons de cinza que o global tentava branquear */
.st-p2-container .st-p2-topbar .st-p2-topbar-center { color: rgba(255,255,255,0.5) !important; }
.st-p2-container .st-p2-identity .st-p2-email { color: rgba(255,255,255,0.4) !important; }
.st-p2-container .st-p2-identity .st-p2-member { color: rgba(255,255,255,0.3) !important; }
.st-p2-container .st-p2-hex .st-p2-hex-label { color: rgba(255,255,255,0.4) !important; }
.st-p2-container .st-p2-momentum-header .st-p2-momentum-label { color: rgba(255,255,255,0.4) !important; }
.st-p2-container .st-p2-mission-head .st-p2-mission-tag { color: rgba(255,255,255,0.5) !important; }
.st-p2-container .st-p2-mission .st-p2-mission-desc { color: rgba(255,255,255,0.5) !important; }
.st-p2-container .st-p2-timeline-item .st-p2-timeline-meta { color: rgba(255,255,255,0.3) !important; }
.st-p2-container .st-p2-timeline-item.unlocked .st-p2-timeline-meta { color: rgba(255,255,255,0.6) !important; }
.st-p2-container .st-p2-bio .st-p2-bio-text { color: rgba(255,255,255,0.7) !important; }
.st-p2-container .st-p2-bio .st-p2-bio-text.muted { color: rgba(255,255,255,0.25) !important; }
.st-p2-container .st-p2-bio .st-p2-bio-header { color: rgba(255,255,255,0.6) !important; }
.st-p2-container .st-p2-scroll .st-p2-footer { color: rgba(255,255,255,0.3) !important; }
.st-p2-container .st-p2-loading .st-p2-loading-text { color: rgba(255,255,255,0.5) !important; }
.st-p2-modal-content .st-p2-edit-field .st-p2-edit-label { color: rgba(255,255,255,0.5) !important; }
.st-p2-modal-content .st-p2-edit-field .st-p2-bio-counter { color: rgba(255,255,255,0.3) !important; }