body {
    background-color: #111;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.profile-container {
    padding: 1rem;
    padding-bottom: 120px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #19b6a4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #111;
}

.profile-info {
    flex-grow: 1;
}

.profile-info h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.profile-info p {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0;
}

.profile-actions-header {
    display: flex;
    gap: 0.5rem;
}

.header-btn {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn i {
    width: 20px;
    height: 20px;
}

.credits-summary-card {
    background-color: #222;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    cursor: pointer;
}

.credit-balance, .credit-pending {
    display: flex;
    flex-direction: column;
}

.credit-balance {
    border-right: 1px solid #444;
    padding-right: 1rem;
    flex-grow: 1;
}

.credit-pending {
    padding-left: 1rem;
    flex-grow: 1;
}

.credits-summary-card .label {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.25rem;
}

.credits-summary-card .amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.credit-action {
    padding-left: 1rem;
}

.action-card {
    background-color: #222;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.action-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-card-text {
    flex-grow: 1;
}

.action-card-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.action-card-text p {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0;
}

.action-card.warning-card {
    background-color: #332a1a;
    border: 1px solid #FFC107;
}

.action-card.warning-card .action-card-icon {
    background-color: #FFC107;
    color: #111;
}

.stats-section h3, .recent-activity-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.stats-card {
    background-color: #222;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.recent-item {
    background-color: #222;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.recent-item-icon {
    background-color: #333;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #19b6a4;
}

.recent-item-info { flex-grow: 1; }
.recent-item-info p { margin: 0; font-weight: 500; color: #fff; }
.recent-item-info span { font-size: 0.8rem; color: #aaa; }
.recent-item-value { font-weight: 600; color: #fff; }

/* Estilos do Modal de Extrato */
.extrato-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); justify-content: center; align-items: flex-end; z-index: 1000; }
.extrato-modal { background: #1c1c1c; width: 100%; max-height: 80vh; border-top-left-radius: 16px; border-top-right-radius: 16px; display: flex; flex-direction: column; }
.extrato-header { padding: 1rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; }
.extrato-header h2 { margin: 0; font-size: 1.2rem; color: #fff; }
.extrato-close-btn { background: none; border: none; color: #aaa; }
.extrato-body { overflow-y: auto; padding: 1rem; }
.credit-item { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.credit-item-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.credit-item-icon.status-disponivel { background-color: rgba(76, 175, 80, 0.2); color: #4CAF50; }
.credit-item-icon.status-pendente { background-color: rgba(255, 193, 7, 0.2); color: #FFC107; }
.credit-item-details { flex-grow: 1; }
.credit-item-details .description { margin: 0; font-weight: 500; color: #fff; }
.credit-item-details .date { font-size: 0.8rem; color: #aaa; }
.credit-item .amount { font-weight: 600; }
.credit-item .amount.status-disponivel { color: #4CAF50; }
.credit-item .amount.status-pendente { color: #FFC107; }

.profile-screen {
    padding: 1rem 1rem 7rem;
    overflow-y: auto;
}

.profile-hero-card,
.profile-card {
    background: linear-gradient(180deg, #182028 0%, #0f151b 100%);
    border: 1px solid #2a3641;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.profile-hero-card {
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.profile-hero-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-hero-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #30404d;
    background: #0c1116;
}

.profile-kicker {
    color: #67e2d4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.profile-hero-title,
.profile-card-head h2 {
    margin: 0;
    color: #fff;
}

.profile-hero-subtitle {
    margin: 0.5rem 0 0;
    color: #95a5b1;
    line-height: 1.6;
    max-width: 560px;
}

.profile-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.profile-role-pill {
    border-radius: 999px;
    border: 1px solid #31404b;
    color: #dbe4ea;
    padding: 0.42rem 0.8rem;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.profile-card {
    padding: 1.15rem;
    margin-bottom: 1rem;
}

.profile-overview-grid,
.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.profile-overview-item,
.profile-field {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(57, 74, 88, 0.74);
}

.profile-overview-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-overview-item span,
.profile-field span {
    color: #91a0ab;
    font-size: 0.8rem;
}

.profile-overview-item strong {
    color: #fff;
    font-size: 1rem;
}

.profile-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0;
    background: transparent;
    border: none;
}

.profile-field input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #32414d;
    background: #0c1116;
    color: #fff;
    padding: 0.9rem 1rem;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.profile-upload-trigger {
    cursor: pointer;
}

@media (max-width: 720px) {
    .profile-hero-card,
    .profile-hero-main,
    .profile-card-head,
    .profile-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-hero-actions {
        align-items: stretch;
    }

    .profile-overview-grid,
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}