.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    position: relative;
}

.profile-header h3 {
    margin: 0 0 10px;
    font-size: 1.8em;
}

.profile-header [contenteditable] {
    outline: none;
    border-bottom: 2px dashed rgba(255,255,255,0.5);
    padding-bottom: 2px;
    cursor: text;
}

.profile-header [contenteditable]:focus {
    border-bottom-color: white;
}

.elo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.95em;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
}

.profile-body {
    padding: 24px 30px;
}

.profile-info-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

.profile-bio {
    flex: 1;
    color: #555;
    line-height: 1.5;
}

.profile-bio [contenteditable] {
    outline: none;
    border-bottom: 2px dashed #ddd;
    padding-bottom: 2px;
}

.profile-bio [contenteditable]:focus {
    border-bottom-color: #667eea;
}

.profile-keytec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f5;
    padding: 6px 14px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1em;
    color: #444;
    margin-bottom: 12px;
}

.profile-cash {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    margin-left: 12px;
}

.section-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.section-card h4,
.section-card h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.section-card label {
    color: #555;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.section-card input[type="text"],
.section-card input[type="number"],
.section-card input[type="file"],
.section-card textarea,
.section-card select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.2s;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.section-card input:focus,
.section-card textarea:focus,
.section-card select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.section-card button[type="submit"],
.section-card .btn-profile {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 6px;
}

.section-card button[type="submit"]:hover,
.section-card .btn-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.btn-save-profile {
    background: linear-gradient(135deg, #48bb78, #38a169) !important;
}

.btn-save-profile:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-send-dinheirus {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    width: 100%;
    padding: 12px !important;
    font-size: 1.05em !important;
}

.btn-lock {
    background: linear-gradient(135deg, #ed8936, #dd6b20) !important;
}

.btn-unlock {
    background: #4299e1 !important;
    padding: 4px 12px !important;
    font-size: 0.85em !important;
    border-radius: 6px !important;
}

.btn-danger-sm {
    background: #f56565 !important;
    padding: 4px 12px !important;
    font-size: 0.85em !important;
    border-radius: 6px !important;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.profile-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.profile-table th,
.profile-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.profile-table tbody tr:hover {
    background: #f8f8fc;
}

.profile-table tbody tr:last-child td {
    border-bottom: none;
}

.top-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.top-list-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

.top-list-card h3 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 14px 20px;
    margin: 0;
    font-size: 1.1em;
}

.top-list-card ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-list-card li {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f5;
    transition: background 0.2s;
}

.top-list-card li:hover {
    background: #f8f8fc;
}

.top-list-card li:last-child {
    border-bottom: none;
}

.top-list-card li a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-list-card li a span:first-child {
    font-weight: 500;
}

.top-list-card li a span:last-child {
    color: #667eea;
    font-weight: bold;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-mini-card {
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    color: white;
}

.stat-mini-card.green { background: linear-gradient(135deg, #48bb78, #38a169); }
.stat-mini-card.red { background: linear-gradient(135deg, #f56565, #e53e3e); }
.stat-mini-card.blue { background: linear-gradient(135deg, #4299e1, #3182ce); }

.stat-mini-card h4 {
    margin: 0 0 4px;
    font-size: 0.85em;
    opacity: 0.9;
}

.stat-mini-card h3 {
    margin: 0;
    font-size: 1.4em;
}

.extrato-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.extrato-table thead {
    background: #f0f0f5;
}

.extrato-table th,
.extrato-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tag-entrada {
    background: #c6f6d5;
    color: #22543d;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.85em;
    font-weight: bold;
}

.tag-saida {
    background: #fed7d7;
    color: #742a2a;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.85em;
    font-weight: bold;
}

.text-green { color: #38a169; font-weight: bold; }
.text-red { color: #e53e3e; font-weight: bold; }

.admin-dashboard-inline {
    margin-top: 30px;
}

.admin-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 8px;
    border-radius: 12px 12px 0 0;
}

.admin-tabs-bar button,
.admin-tabs-bar a {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
    transition: background 0.2s;
}

.admin-tabs-bar button:hover,
.admin-tabs-bar a:hover {
    background: rgba(255,255,255,0.3);
}

.admin-tab-panel {
    display: none;
    background: white;
    padding: 24px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.admin-tab-panel.active {
    display: block;
}

.profile-modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.profile-modal {
    background: white;
    margin: 12% auto;
    padding: 28px;
    border-radius: 12px;
    max-width: 420px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    position: relative;
}

.profile-modal h3 {
    margin-top: 0;
    color: #333;
}

.profile-modal .btn-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.profile-modal .btn-row button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
}

.btn-cancel {
    background: #e2e8f0;
    color: #333;
}

.btn-confirm {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-confirm-danger {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

@media (max-width: 768px) {
    .top-lists {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: 1fr;
    }
    .profile-info-row {
        flex-direction: column;
        text-align: center;
    }
}
