:root {
    --navy-deep: #0A0A0A; /* Darker for premium feel */
    --navy-light: #1A1A1A;
    --gold: #D4AF37;
    --gold-bright: #F4CF67;
    --white: #FFFFFF;
    --off-white: #F5F5F5;
    --text-main: #E0E0E0;
    --text-muted: #888888;
    --gray-light: #2A2A2A;
    --bg-gradient: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.5);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 18px; 
    color: var(--text-main);
    background-color: #050505;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand-title {
    font-family: 'Outfit', sans-serif;
    color: var(--white);
}

.brand-title {
    color: var(--gold);
}

.view {
    display: none;
    min-height: 100vh;
}

.view.active {
    display: flex;
}

/* --- Login View --- */
#login-view {
    justify-content: center;
    align-items: center;
    background: var(--bg-gradient);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

#login-view::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform: translateY(-50%) rotate(15deg);
    z-index: 1;
}

#login-view::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.login-header {
    margin-bottom: 30px;
    text-align: center;
}

.brand-title {
    font-size: 2.8rem;
    color: var(--gold);
    margin: 15px 0 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.brand-logo {
    width: 280px;
    height: auto;
    margin-bottom: 20px;
}

.brand-subtitle {
    font-size: 1.1rem;
    color: var(--white);
    opacity: 0.8;
}

.premium-card {
    background: #121212;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

@media (max-width: 480px) {
    .premium-card { padding: 30px 20px; }
}

.premium-card h2 {
    margin-bottom: 25px;
    font-size: 1.6rem;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
    color: var(--white);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gold);
}

.form-group input {
    width: 100%;
    padding: 18px;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #1A1A1A;
    color: var(--white);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.btn {
    padding: 18px 30px;
    border-radius: 10px;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-primary {
    background: var(--navy-deep);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 31, 63, 0.4);
}

.btn-block {
    width: 100%;
}

/* Auth Screens (login / signup / forgot) */
.auth-screen h2 {
    margin-bottom: 25px;
    font-size: 1.6rem;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
    color: var(--white);
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.auth-links a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--gold-bright);
    text-decoration: underline;
}

.auth-link-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.auth-link-btn:hover {
    color: var(--gold-bright);
    text-decoration: underline;
}

.auth-links span {
    color: var(--text-muted);
}

.auth-error {
    color: #FF3B30;
    font-size: 0.9rem;
    margin-top: 12px;
    min-height: 20px;
}

.auth-success {
    color: #2ECC71;
    font-size: 0.9rem;
    margin-top: 12px;
    min-height: 20px;
}

/* --- Main Layout --- */
#main-layout {
    flex-direction: row;
    display: none;
}

#main-layout.active {
    display: flex;
}

.sidebar {
    width: 300px;
    background: var(--navy-deep);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 40px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1001;
}

.sidebar-header {
    padding: 0 30px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.sidebar-logo {
    width: 140px;
    height: auto;
    margin-bottom: 10px;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.5px;
    display: block;
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-item {
    padding: 18px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 5px solid transparent;
    font-weight: 500;
    font-size: 1.1rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-bright);
    border-left-color: var(--gold);
    font-weight: 700;
}

.sidebar-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#logout-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF3B30;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#logout-btn:hover {
    background: #FF3B30;
    color: white;
    transform: scale(0.98);
}

.content-area {
    flex: 1;
    padding: 50px;
    background: #0A0A0A;
    min-height: 100vh;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-greeting {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.points-badge {
    background: linear-gradient(135deg, #121212 0%, #050505 100%);
    padding: 10px 22px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 0 1px rgba(212, 175, 55, 0.4);
    color: var(--white);
    font-weight: 700;
    font-size: 1.15rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.points-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.points-badge:hover::before {
    left: 100%;
}

.points-badge i, .points-badge svg {
    color: var(--gold);
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: -1px;
    text-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}


/* --- Views Layouts --- */
.sub-view {
    display: none;
    animation: fadeIn 0.4s ease-out;
    max-width: 1000px;
    margin: 0 auto;
}

.sub-view.active {
    display: block;
}

.view-header {
    margin-bottom: 30px;
}

.view-header h2 {
    font-size: 2.22rem;
    margin-bottom: 10px;
}

.view-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background: #1A1A1A;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-premium);
    border-top: 5px solid var(--navy-deep);
    color: var(--white);
}

.card.gold-border {
    border-top-color: var(--gold);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 10px;
}

.progress-info {
    font-size: 1rem;
    color: var(--text-muted);
}

.progress-container {
    margin-top: 15px;
    background: var(--gray-light);
    height: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
    height: 100%;
    width: 45%; /* Dynamically changed */
    transition: width 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Activity Items */
.activity-card {
    margin-bottom: 40px;
}

.category-group {
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    background: #1A1A1A;
    padding: 20px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    transition: var(--transition);
    border-left: 5px solid transparent;
    color: var(--white);
}

.activity-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.activity-item.completed {
    border-left-color: #2ECC71;
    background: #F8FFF8;
    color: #1A1A1A;
}

.activity-item.completed .activity-pts {
    background: #E8F5E9;
    color: #2E7D32;
}

.activity-item.completed .check-box {
    background: #2ECC71;
    border-color: #2ECC71;
    color: white;
}

.check-box {
    width: 30px;
    height: 30px;
    border: 2px solid var(--gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.activity-text {
    flex: 1;
    font-weight: 600;
    font-size: 1.1rem;
}

.activity-pts {
    padding: 5px 12px;
    background: var(--gray-light);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0A0A0A;
    height: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
    color: var(--text-muted);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    gap: 5px;
}

.mobile-nav-item i { width: 28px; height: 28px; }

.mobile-nav-item.active {
    color: var(--gold);
}

/* --- Extra Components --- */
.search-container {
    position: relative;
    margin-bottom: 25px;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: #1A1A1A;
    border: 2px solid #333;
    border-radius: 30px;
    color: white;
    font-size: 1.05rem;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--gold);
    background: #252525;
    outline: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.forum-form, .mural-form {
    background: #1A1A1A;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.forum-form h3, .mural-form h3 {
    margin-bottom: 20px;
    color: var(--gold);
}

.input-styled, .textarea-styled {
    width: 100%;
    padding: 15px;
    background: #0A0A0A;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
    font-family: inherit;
}

.textarea-styled {
    min-height: 120px;
    resize: vertical;
}

.input-styled:focus, .textarea-styled:focus {
    border-color: var(--gold);
    outline: none;
}

.topic-item {
    background: #1A1A1A;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--gold);
    cursor: pointer;
    transition: var(--transition);
}

.topic-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.topic-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.topic-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.topic-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--gold);
}

.reply-item {
    background: #121212;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 2px solid #444;
}

.back-btn {
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--gold);
    color: black;
}

/* Moderação */
.btn-delete {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF3B30;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-delete:hover {
    background: #FF3B30;
    color: white;
}

.btn-delete i {
    width: 14px;
    height: 14px;
}

.btn-delete-small {
    background: none;
    border: 1px solid rgba(255, 59, 48, 0.4);
    color: rgba(255, 59, 48, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete-small:hover {
    background: #FF3B30;
    color: white;
    border-color: #FF3B30;
}

/* Gestão de Usuários */
.premium-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.premium-table th {
    background: #121212;
    color: var(--gold);
    text-align: left;
    padding: 15px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.premium-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #EEE;
}

.premium-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.row-blocked {
    opacity: 0.6;
}

.badge-me {
    background: var(--gold);
    color: black;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    margin-left: 5px;
    vertical-align: middle;
}

.prof-label {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.btn-edit-small {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    margin-left: 8px;
    transition: var(--transition);
    opacity: 0.6;
}

.btn-edit-small:hover {
    opacity: 1;
    transform: scale(1.1);
}

.status-indicator {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-active {
    background: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
}

.status-blocked {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
}

.btn-action {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-block-user {
    background: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.3);
    color: #FF3B30;
}

.btn-block-user:hover {
    background: #FF3B30;
    color: white;
}

.btn-unblock {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
    color: #2ECC71;
}

.btn-unblock:hover {
    background: #2ECC71;
    color: white;
}

/* Modal Customizado Premium */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #1A1A1A;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--gold);
    font-size: 1.25rem;
}

.btn-close-modal {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 25px;
    color: #CCC;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #AAA;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.modal-input {
    width: 100%;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    color: white;
    margin-top: 10px;
    font-family: inherit;
}

.modal-input:focus {
    border-color: var(--gold);
    outline: none;
}

/* Estilo para labels de cargo na tabela */
.badge-role {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.role-admin {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.role-aluno {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Suporte para Rolagem Horizontal */
.table-container, .scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 10px;
}

/* Scrollbar Customizado Premium */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.card {
    position: relative;
    overflow: hidden; /* Mantém o border-radius */
}

/* --- Estilos da Seção de Serviços --- */
.servico-form {
    background: #1A1A1A;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.servico-form h3 {
    margin-bottom: 20px;
    color: var(--gold);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}

.servico-card {
    border-left: 5px solid var(--gold);
    margin-bottom: 30px;
    transition: var(--transition);
}

.servico-card.status-finalized {
    border-left-color: #444;
    opacity: 0.8;
}

.servico-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.user-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--white);
}

.servico-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.servico-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.servico-status-badge.active {
    background: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.servico-status-badge.finalized {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.servico-content {
    margin-bottom: 25px;
}

.servico-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.servico-location i { width: 16px; height: 16px; }

.servico-need-text {
    font-size: 1.2rem;
    color: var(--off-white);
    line-height: 1.5;
}

.servico-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-action-small {
    background: none;
    border: 1px solid #444;
    color: #AAA;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-finalize:hover {
    background: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
    border-color: #2ECC71;
}

.btn-reactivate:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-color: var(--gold);
}

.servico-comments {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
}

.servico-comments h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.comments-list {
    margin-bottom: 20px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.btn-delete-x {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.5;
}

.btn-delete-x:hover { opacity: 1; }

.no-comments {
    color: #555;
    font-style: italic;
    font-size: 0.9rem;
}

.comment-input-area {
    display: flex;
    gap: 10px;
}

.comment-input {
    flex: 1;
    background: #0A0A0A;
    border: 1px solid #333;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.comment-input:focus {
    border-color: var(--gold);
    outline: none;
}

.btn-send-comment {
    background: var(--gold);
    color: black;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-send-comment:hover {
    background: var(--gold-bright);
    transform: scale(1.05);
}

/* --- Toast Notifications --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 250px;
    background: #1A1A1A;
    border-left: 5px solid var(--gold);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.removing {
    transform: translateX(120%);
    opacity: 0;
}

.toast.error {
    border-left-color: #ff4444;
}

.toast.success {
    border-left-color: #2ECC71;
}

.toast i {
    width: 24px;
    height: 24px;
}

/* --- Loading Animation --- */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* --- Empty States --- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.empty-state i {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
    color: var(--gold);
}

.empty-state p {
    font-size: 1.1rem;
    max-width: 400px;
    line-height: 1.5;
}

/* --- Mural Likes --- */
.btn-like {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.btn-like:hover {
    transform: scale(1.1);
}

.heart-beat {
    animation: heartbeat 0.3s ease-in-out;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- Gamification Ranks Premium --- */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.rank-paraquedista { background: linear-gradient(135deg, #2A2A2A, #1A1A1A); color: #888; border: 1px solid #333; }
.rank-posicionado { background: linear-gradient(135deg, #3A3A3A, #2A2A2A); color: #CCC; border: 1px solid #555; }
.rank-investigador { background: linear-gradient(135deg, rgba(46, 125, 50, 0.3), rgba(27, 94, 32, 0.4)); color: #81C784; border: 1px solid rgba(76, 175, 80, 0.3); }
.rank-analista { background: linear-gradient(135deg, rgba(21, 101, 192, 0.3), rgba(13, 71, 161, 0.4)); color: #64B5F6; border: 1px solid rgba(33, 150, 243, 0.3); }
.rank-desenrolado { background: linear-gradient(135deg, rgba(230, 81, 0, 0.3), rgba(191, 54, 12, 0.4)); color: #FF8A65; border: 1px solid rgba(255, 87, 34, 0.3); }
.rank-expert { 
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%); 
    color: var(--gold); 
    border: 1px solid rgba(212, 175, 55, 0.5); 
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15), inset 0 0 10px rgba(212, 175, 55, 0.05);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}
