/* ============================================
    PROFILE - BASE
    ============================================ */

.st-p2-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2;
    background: 
        radial-gradient(ellipse at top, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%);
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

.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;
}

.st-p2-scroll::-webkit-scrollbar { width: 3px; }
.st-p2-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }

.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: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    border-radius: 10px;
    font-size: 1.2rem;
}

.st-p2-back:hover,
.st-p2-settings:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.st-p2-topbar-center {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.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.06);
    border-radius: 50%;
    animation: p2Rotate 40s linear infinite;
}

.st-p2-orbit-1 { inset: 0; border-style: dashed; border-color: rgba(255, 255, 255, 0.05); }
.st-p2-orbit-2 { inset: 12%; animation-duration: 30s; animation-direction: reverse; border-color: rgba(255, 255, 255, 0.08); }
.st-p2-orbit-3 { inset: 24%; animation-duration: 20s; border: 1px solid rgba(255, 255, 255, 0.06); }

.st-p2-orbit-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    left: -3px;
    transform: translateY(-50%);
}

.st-p2-core-glow {
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 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: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.02);
}

.st-p2-avatar img { width: 100%; height: 100%; object-fit: cover; }

.st-p2-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
}

.st-p2-level-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding: 4px 16px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.st-p2-identity {
    text-align: center;
    margin-bottom: 28px;
}

.st-p2-name {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.02);
}

.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: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 20px;
}

.st-p2-rank svg { width: 18px; height: 18px; opacity: 0.6; }

.st-p2-member {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 8px;
}

.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.35);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 32px 0 16px;
}

.st-p2-section-title::before {
    content: '◆';
    color: rgba(255, 255, 255, 0.1);
    font-size: 0.5rem;
}

.st-p2-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
}

/* STATS - 4 COLUNAS */
.st-p2-hex-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.st-p2-hex {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 6px;
    text-align: center;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.st-p2-hex:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.st-p2-hex-icon {
    display: flex;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 6px;
}

.st-p2-hex-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
}

.st-p2-hex-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* CONTADORES + HONRAS - 2 COLUNAS */
.st-p2-hex-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

/* MOMENTUM */
.st-p2-momentum {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.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.35);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.st-p2-momentum-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
}

.st-p2-momentum-bar {
    display: flex;
    gap: 4px;
    height: 6px;
}

.st-p2-momentum-seg {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    transition: all 0.6s ease;
}

.st-p2-momentum-seg.active { background: rgba(255, 255, 255, 0.2); }
.st-p2-momentum-seg.hot { background: rgba(201, 169, 97, 0.4); box-shadow: 0 0 12px rgba(201, 169, 97, 0.1); }

/* MISSÕES */
.st-p2-missions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
}

.st-p2-mission {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.st-p2-mission:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.st-p2-mission.completed {
    border-left-color: rgba(201, 169, 97, 0.3);
    opacity: 0.7;
}

.st-p2-mission-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.st-p2-mission-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.st-p2-mission.completed .st-p2-mission-title {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.3);
}

.st-p2-mission-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    padding: 2px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    letter-spacing: 0.05em;
}

.st-p2-mission.completed .st-p2-mission-tag {
    background: rgba(201, 169, 97, 0.1);
    border-color: rgba(201, 169, 97, 0.15);
    color: rgba(201, 169, 97, 0.5);
}

.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: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}

.st-p2-mission-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.st-p2-mission.completed .st-p2-mission-bar {
    background: rgba(201, 169, 97, 0.4);
}

/* 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.05) 0%, rgba(255, 255, 255, 0.02) 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.05);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.st-p2-timeline-item.unlocked::before {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.02);
}

.st-p2-timeline-item.locked::before {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.04);
}

.st-p2-timeline-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
}

.st-p2-timeline-item.locked .st-p2-timeline-avatar {
    border-color: rgba(255, 255, 255, 0.03);
    opacity: 0.4;
    filter: grayscale(1);
}

.st-p2-timeline-avatar img { width: 100%; height: 100%; object-fit: cover; }

.st-p2-timeline-info { flex: 1; min-width: 0; }

.st-p2-timeline-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
}

.st-p2-timeline-item.locked .st-p2-timeline-title {
    color: rgba(255, 255, 255, 0.2);
}

.st-p2-timeline-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 2px;
    letter-spacing: 0.05em;
}

.st-p2-timeline-item.unlocked .st-p2-timeline-meta {
    color: rgba(255, 255, 255, 0.4);
}

/* BIO */
.st-p2-bio {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.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.25);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.st-p2-bio-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: p2Blink 1.5s ease-in-out infinite;
}

.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: 1px dashed rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.25);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    margin-top: 12px;
    border-radius: 8px;
}

.st-p2-bio-edit:hover {
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.02);
}

/* ACTIONS */
.st-p2-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0 20px;
}

.st-p2-btn {
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.25s ease;
    border-radius: 10px;
}

.st-p2-btn:hover {
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.st-p2-btn.primary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.st-p2-btn.primary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.st-p2-btn.like.liked {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.st-p2-btn.danger {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.08);
    color: rgba(239, 68, 68, 0.5);
}

.st-p2-btn.danger:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.15);
}

/* 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.08);
    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: 2px solid rgba(255, 255, 255, 0.04);
    border-top-color: rgba(255, 255, 255, 0.15);
    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.12);
    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; }
}