/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.dashboard-page {
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(32, 0, 169, 0.12), rgba(245, 245, 245, 0) 60%),
        radial-gradient(900px 500px at 95% 0%, rgba(67, 97, 238, 0.1), rgba(245, 245, 245, 0) 55%),
        #f5f5f5;
}

.is-hidden {
    display: none !important;
}

a {
    text-decoration: none;
    color: #2000a9;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

main.container {
    flex: 1;
}

/* Header */
.main-header {
    background-color: #2000a9;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo a {
    color: white;
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    gap: 10px;
}

.logo .logo-text {
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
}

.logo img {
    height: 56px;
    width: auto;
    display: block;
    max-width: 240px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: white;
    font-weight: 500;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    text-decoration: none;
}

.main-nav i {
    margin-right: 8px;
    font-size: 14px;
}

.notification-icon {
    position: relative;
    cursor: pointer;
}

.notification-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    position: relative;
}

.notification-toggle:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.notification-toggle:active {
    background-color: rgba(255, 255, 255, 0.18);
}

.notification-toggle i {
    font-size: 16px;
    line-height: 1;
}

.notification-badge {
    position: absolute;
    top: -7px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e74c3c;
    color: white;
    border-radius: 999px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notification-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 320px;
    background: white;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    z-index: 1000;
    border: 1px solid rgba(15, 23, 42, 0.12);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.notification-icon.is-open .notification-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px;
    border-bottom: 1px solid #eef1f4;
    background: #ffffff;
}

.notification-dropdown-title {
    font-weight: 800;
    color: #0f172a;
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 6px 0;
}

.notification-item {
    padding: 10px 12px;
    border-bottom: 1px solid #eef1f4;
    color: #0f172a;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
    outline: none;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: #f8f9ff;
    border-left: 3px solid #2000a9;
}

.notification-item:hover,
.notification-item:focus {
    background: #f6f8fa;
}

.notification-item strong {
    display: block;
    color: #2c3e50;
}

.notification-item p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.notification-item small {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.notification-empty {
    padding: 14px;
    text-align: center;
    color: #7f8c8d;
}

.mark-all-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: #f6f8fa;
    color: #2000a9;
    text-decoration: none;
    font-weight: 800;
    border-radius: 10px;
    border: 1px solid #eef1f4;
}

.mark-all-read:hover {
    background: #eef1f4;
    text-decoration: none;
}

body.pop-dialog-open {
    overflow: hidden;
}

.pop-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.62);
    z-index: 3500;
    pointer-events: none;
}

.notification-detail-backdrop {
    pointer-events: auto;
}

.pop-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100vw - 32px));
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
    z-index: 3600;
    padding: 18px 18px 14px;
}

.pop-dialog-title {
    font-weight: 900;
    color: #0f172a;
    font-size: 18px;
    margin-bottom: 10px;
}

.pop-dialog-message {
    color: #334155;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.pop-dialog-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    gap: 10px;
}

.pop-dialog-button {
    appearance: none;
    border: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: #2000a9;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.pop-dialog-button:hover {
    background: #190084;
}

.pop-dialog-button.secondary {
    background: #eef1f4;
    color: #0f172a;
}

.pop-dialog-button.secondary:hover {
    background: #e2e8f0;
}

.notification-detail-meta {
    margin-top: 12px;
    color: rgba(15, 23, 42, 0.55);
    font-weight: 800;
    font-size: 12px;
}

/* Footer */
.main-footer {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    color: #e5e7eb;
    padding: 28px 0;
    margin-top: auto;
    border-top: 1px solid rgba(229, 231, 235, 0.12);
}

.main-footer .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.main-footer .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.main-footer .footer-title {
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #ffffff;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.main-footer .footer-title img {
    height: 30px;
    width: auto;
    display: block;
}

.main-footer .footer-title-text {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .logo img {
        height: 46px;
        max-width: 180px;
    }
}

.main-footer .footer-copy {
    color: rgba(229, 231, 235, 0.85);
    font-size: 14px;
    line-height: 1.4;
}

.main-footer .footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-footer .footer-links a {
    color: rgba(229, 231, 235, 0.9);
    text-decoration: none;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-footer .footer-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.main-footer .footer-links a:active {
    transform: translateY(0);
}

/* Páginas de Autenticação */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2000a9;
}

.auth-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.auth-container button {
    width: 100%;
    padding: 12px;
    background-color: #2000a9;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-container button:hover {
    background-color: #2000a9;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
    margin-top: 22px;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    height: fit-content;
}

.profile-card {
    text-align: center;
}

.profile-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid rgba(32, 0, 169, 0.75);
    box-shadow: 0 10px 24px rgba(32, 0, 169, 0.18);
}

.profile-card h3 {
    margin-bottom: 5px;
}

.profile-card p {
    color: #666;
    margin-bottom: 15px;
}

.profile-card .btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #2000a9;
    color: white;
    border-radius: 4px;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.is-story-viewer-open {
    overflow: hidden;
}

.stories-card {
    background: white;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.stories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.stories-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.92);
}

.stories-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stories-action-btn {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(32, 0, 169, 0.04);
    color: rgba(15, 23, 42, 0.9);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.stories-action-btn:hover {
    background: rgba(32, 0, 169, 0.08);
    transform: translateY(-1px);
}

.stories-compose {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.02);
    margin-bottom: 12px;
}

.stories-compose-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.stories-compose-form input[type="text"] {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    outline: none;
    background: #ffffff;
}

.stories-compose-form input[type="text"]:focus {
    border-color: rgba(32, 0, 169, 0.45);
    box-shadow: 0 0 0 4px rgba(32, 0, 169, 0.12);
}

.stories-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.stories-empty {
    color: rgba(15, 23, 42, 0.6);
    font-weight: 600;
    padding: 8px 0;
}

.story-item {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 72px;
    scroll-snap-align: start;
}

.story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #2000a9, #4361ee);
    box-shadow: 0 10px 22px rgba(32, 0, 169, 0.18);
}

.story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 3px solid #ffffff;
}

.story-name {
    font-size: 12px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.82);
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
}

.story-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.66);
    backdrop-filter: blur(8px);
}

.story-viewer-panel {
    position: relative;
    width: min(92vw, 520px);
    height: min(86vh, 720px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.story-viewer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
}

.story-viewer-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.story-viewer-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.story-viewer-meta {
    min-width: 0;
}

.story-viewer-username {
    font-weight: 900;
    color: rgba(15, 23, 42, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-viewer-time {
    font-size: 12px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.6);
}

.story-viewer-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.04);
    cursor: pointer;
    color: rgba(15, 23, 42, 0.8);
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.story-viewer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-viewer-delete {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
    cursor: pointer;
    color: rgba(185, 28, 28, 0.92);
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.story-viewer-delete:hover {
    background: rgba(239, 68, 68, 0.14);
    transform: translateY(-1px);
}

.story-viewer-delete:active {
    transform: translateY(0);
}

.story-viewer-close:hover {
    background: rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.story-viewer-body {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    background: rgba(2, 6, 23, 0.92);
}

.story-viewer-content {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 10px;
}

.story-nav {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.story-nav:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.story-nav:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

.story-frame,
.status-frame {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.15);
}

.story-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(2, 6, 23, 0.9);
}

.status-frame {
    background: radial-gradient(900px 500px at 20% 0%, rgba(32, 0, 169, 0.35), rgba(2, 6, 23, 0.2) 60%),
        radial-gradient(900px 500px at 90% 90%, rgba(67, 97, 238, 0.35), rgba(2, 6, 23, 0.2) 55%),
        rgba(2, 6, 23, 0.85);
    padding: 32px 18px;
}

.status-text {
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
}

.user-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
    z-index: 3000;
    opacity: 1;
    transition: opacity 0.3s;
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.18);
}

.user-message.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.user-message.error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

body.chat-page {
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(32, 0, 169, 0.12), rgba(245, 245, 245, 0) 60%),
        radial-gradient(900px 500px at 95% 0%, rgba(67, 97, 238, 0.1), rgba(245, 245, 245, 0) 55%),
        #f5f5f5;
}

.chat-shell {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 16px;
    margin: 18px 0 28px;
    height: 70vh;
}

.chat-sidebar {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.chat-sidebar-header {
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.chat-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: rgba(15, 23, 42, 0.92);
}

.chat-search {
    margin-top: 10px;
    position: relative;
}

.chat-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(15, 23, 42, 0.55);
    font-size: 14px;
}

.chat-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    outline: none;
    background: #ffffff;
    font-weight: 700;
}

.chat-search input:focus {
    border-color: rgba(32, 0, 169, 0.45);
    box-shadow: 0 0 0 4px rgba(32, 0, 169, 0.12);
}

.chat-search-results {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.chat-search-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(32, 0, 169, 0.03);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
}

.chat-search-item:hover {
    background: rgba(32, 0, 169, 0.07);
}

.chat-search-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

.chat-search-name {
    font-weight: 900;
    color: rgba(15, 23, 42, 0.9);
}

.chat-conversations {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-empty {
    padding: 10px 6px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.6);
}

.chat-conversation {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    border-radius: 14px;
    padding: 10px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.chat-conversation:hover {
    transform: translateY(-1px);
    background: rgba(32, 0, 169, 0.03);
}

.chat-conversation.is-active {
    border-color: rgba(32, 0, 169, 0.22);
    background: rgba(32, 0, 169, 0.06);
}

.chat-conversation-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 10px 22px rgba(32, 0, 169, 0.14);
}

.chat-conversation-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-conversation-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.chat-conversation-name {
    font-weight: 900;
    color: rgba(15, 23, 42, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-conversation-time {
    font-size: 12px;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.55);
    white-space: nowrap;
}

.chat-conversation-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chat-conversation-preview {
    color: rgba(15, 23, 42, 0.64);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.chat-unread {
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #2000a9;
    color: #ffffff;
    font-weight: 900;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-panel {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.chat-panel-header {
    padding: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 70px;
}

.chat-panel-empty {
    font-weight: 800;
    color: rgba(15, 23, 42, 0.62);
}

.chat-panel-peer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.chat-panel-peer img {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 10px 22px rgba(32, 0, 169, 0.12);
}

.chat-peer-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-peer-name {
    font-weight: 900;
    color: rgba(15, 23, 42, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-peer-subtitle {
    font-size: 12px;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.55);
}

.chat-peer-status {
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(32, 0, 169, 0.06);
    border: 1px solid rgba(32, 0, 169, 0.14);
    color: rgba(15, 23, 42, 0.88);
    font-weight: 800;
    font-size: 12px;
    line-height: 1.25;
    max-width: 340px;
    position: relative;
    overflow-wrap: anywhere;
}

.chat-peer-status::before,
.chat-peer-status::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(32, 0, 169, 0.06);
    border: 1px solid rgba(32, 0, 169, 0.14);
}

.chat-peer-status::before {
    width: 10px;
    height: 10px;
    left: -6px;
    bottom: 10px;
}

.chat-peer-status::after {
    width: 6px;
    height: 6px;
    left: -14px;
    bottom: 6px;
}

.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    background:
        radial-gradient(900px 500px at 20% 0%, rgba(32, 0, 169, 0.1), rgba(255, 255, 255, 0) 60%),
        radial-gradient(900px 500px at 90% 100%, rgba(67, 97, 238, 0.08), rgba(255, 255, 255, 0) 55%),
        #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    display: flex;
    justify-content: flex-start;
}

.chat-message.is-me {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: min(520px, 86%);
    border-radius: 16px;
    padding: 10px 12px 8px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(15, 23, 42, 0.04);
}

.chat-message.is-me .chat-bubble {
    border-color: rgba(32, 0, 169, 0.18);
    background: rgba(32, 0, 169, 0.08);
}

.chat-text {
    font-weight: 700;
    color: rgba(15, 23, 42, 0.88);
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.chat-meta {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.55);
    text-align: right;
}

.chat-compose {
    padding: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
}

.chat-compose input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    outline: none;
    font-weight: 700;
}

.chat-compose input[type="text"]:focus {
    border-color: rgba(32, 0, 169, 0.45);
    box-shadow: 0 0 0 4px rgba(32, 0, 169, 0.12);
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(32, 0, 169, 0.18);
    background: #2000a9;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.chat-send-btn:hover {
    background: #17007d;
    transform: translateY(-1px);
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* Post Form */
.post-form {
    background: white;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.post-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.post-form-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.post-form-user img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.post-form-user-name {
    font-weight: 900;
    color: rgba(15, 23, 42, 0.92);
    line-height: 1.1;
}

.sidebar-post-mode {
    margin-top: 12px;
}

.sidebar .post-mode-btn {
    width: 100%;
    justify-content: space-between;
}

.post-mode-btn {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(32, 0, 169, 0.04);
    color: rgba(15, 23, 42, 0.92);
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.post-mode-btn:hover {
    background: rgba(32, 0, 169, 0.08);
    transform: translateY(-1px);
}

.post-mode-btn i {
    font-size: 12px;
    line-height: 1;
}

.post-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 10px;
    background: #ffffff;
}

.post-form textarea:focus {
    outline: none;
    border-color: rgba(32, 0, 169, 0.45);
    box-shadow: 0 0 0 4px rgba(32, 0, 169, 0.12);
}

.post-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.post-form .file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-form .file-input-button {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-form .file-input-button:hover {
    background-color: rgba(32, 0, 169, 0.06);
}

.post-form .image-preview-container {
    margin-top: 10px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.post-form .image-preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 0;
    display: block;
}

.post-form .remove-image-btn {
    margin-top: 6px;
    color: #ff3333;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-form .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-form .file-input {
    display: none;
}

.post-form .file-label {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
}

.post-form .submit-btn {
    padding: 8px 20px;
    background-color: #2000a9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.publish-btn {
    appearance: none;
    border: 1px solid rgba(32, 0, 169, 0.20);
    background: linear-gradient(135deg, #2000a9, #3f37c9);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.2px;
    box-shadow: 0 12px 26px rgba(32, 0, 169, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.publish-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(32, 0, 169, 0.26);
}

.publish-btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(32, 0, 169, 0.22);
}

.publish-btn:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
    box-shadow: 0 10px 22px rgba(32, 0, 169, 0.14);
}

.publish-btn i {
    font-size: 14px;
    line-height: 1;
}

.post-form .publish-btn {
    width: auto;
}

.stories-compose-form .publish-btn {
    min-width: 140px;
}

/* Posts */
.post {
    background: white;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.post-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.post-user {
    flex: 1;
}

.post-user h4 {
    margin-bottom: 3px;
}

.post-header h4 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-user small {
    color: #777;
}

.post-content {
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 10px;
    color: rgba(15, 23, 42, 0.92);
}

.post-image {
    width: 100%;
    border-radius: 12px;
    margin-top: 10px;
}

.post-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    align-items: center;
}

.post-actions button {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-actions button.liked {
    background-color: #2000a9;
    color: white;
}

.dashboard-page .sidebar {
    position: sticky;
    top: 92px;
    height: fit-content;
}

.dashboard-page .sidebar .post-form--sidebar {
    margin-top: 14px;
}

.dashboard-page .sidebar .post-form-actions {
    flex-direction: column;
    align-items: stretch;
}

.dashboard-page .sidebar .post-form-actions .file-input-wrapper {
    width: 100%;
}

.dashboard-page .sidebar .post-form-actions .publish-btn {
    width: 100%;
    justify-content: center;
}

.dashboard-page .post:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.08);
}

.dashboard-page .post-actions {
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.dashboard-page .post-actions .like-form button,
.dashboard-page .post-actions .comment-btn {
    padding: 10px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(32, 0, 169, 0.04);
    color: rgba(15, 23, 42, 0.9);
    text-decoration: none;
}

.dashboard-page .post-actions .like-form button:hover,
.dashboard-page .post-actions .comment-btn:hover {
    background: rgba(32, 0, 169, 0.08);
    transform: translateY(-1px);
}

.dashboard-page .post-actions .like-form button:active,
.dashboard-page .post-actions .comment-btn:active {
    transform: translateY(0);
}

.dashboard-page .post-actions a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    color: rgba(15, 23, 42, 0.86);
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.dashboard-page .post-actions a:hover {
    background: rgba(15, 23, 42, 0.04);
    transform: translateY(-1px);
    text-decoration: none;
}

.dashboard-page .post-actions .edit-btn {
    margin-left: auto;
}

.dashboard-page .post-actions .like-form button.liked {
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.25);
}

.dashboard-page .comments-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: none;
}

.dashboard-page .comments-section.active {
    display: block;
}

.dashboard-page .comments-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.dashboard-page .comment-form {
    display: flex;
    gap: 10px;
}

.dashboard-page .comment-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.dashboard-page .comment-form button {
    background: #2000a9;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0 15px;
    cursor: pointer;
}

.dashboard-page .comment {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 8px;
    background: #f9f9f9;
    position: relative;
    padding-right: 40px;
}

.dashboard-page .comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.dashboard-page .comment-content {
    flex: 1;
}

.dashboard-page .comment-content h5 {
    font-size: 14px;
    margin-bottom: 2px;
}

.dashboard-page .comment-text {
    margin: 5px 0;
    word-break: break-word;
}

.dashboard-page .comment-actions {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    gap: 5px;
}

.dashboard-page .comment-actions button {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    transition: color 0.3s;
}

.dashboard-page .comment-actions button:hover {
    color: #2000a9;
}

.dashboard-page .user-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    transition: opacity 0.3s;
}

.dashboard-page .user-message.success {
    background-color: #4caf50;
}

.dashboard-page .user-message.error {
    background-color: #f44336;
}

@keyframes slideIn {
    from {
        top: -50px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

.dashboard-page .edit-comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.dashboard-page .edit-comment-form input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.dashboard-page .edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.dashboard-page .edit-actions button {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.dashboard-page .edit-actions button[type="submit"] {
    background: #2000a9;
    color: white;
}

.dashboard-page .edit-actions .cancel-edit {
    background: #f0f0f0;
}

.dashboard-page .like-form button {
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.dashboard-page .like-icon,
.dashboard-page .comment-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dashboard-page .like-icon i {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.dashboard-page .like-icon .far {
    position: absolute;
    opacity: 1;
    transform: scale(1);
}

.dashboard-page .like-icon .fas {
    position: absolute;
    opacity: 0;
    transform: scale(0.7);
    color: #ff6b6b;
}

.dashboard-page .like-form button.liked .like-icon .far {
    opacity: 0;
    transform: scale(0.7);
}

.dashboard-page .like-form button.liked .like-icon .fas {
    opacity: 1;
    transform: scale(1);
}

.dashboard-page .like-count,
.dashboard-page .comment-count {
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
}

@keyframes heartBurst {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dashboard-page .heart-animation {
    position: absolute;
    pointer-events: none;
    animation: heartBurst 0.8s ease-out;
    color: #ff6b6b;
    font-size: 24px;
}

/* Página de Perfil */
body.profile-page {
    display: flex;
    flex-direction: column;
}

.profile-container {
    width: 100%;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.profile-page .profile-header {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0;
}

body.profile-page .profile-cover {
    height: 180px;
    background: linear-gradient(135deg, #2000a9 0%, #4361ee 60%, #4895ef 100%);
}

body.profile-page .profile-info {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 24px 20px;
    margin-top: -60px;
}

body.profile-page .profile-picture {
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: #ffffff;
    border: 6px solid #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    flex: 0 0 auto;
}

body.profile-page .profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.profile-page .profile-main {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    row-gap: 4px;
    align-items: start;
}

body.profile-page .profile-name {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

body.profile-page .profile-name h1 {
    font-size: 28px;
    line-height: 1.2;
    color: #212529;
    margin: 0;
    word-break: break-word;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.25) 18%, rgba(255, 255, 255, 0) 44%),
        linear-gradient(135deg, #1d9bf0 0%, #3a0ca3 50%, #2000a9 100%);
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow:
        0 10px 24px rgba(32, 0, 169, 0.18),
        0 2px 6px rgba(29, 155, 240, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    font-size: 11px;
    line-height: 1;
    vertical-align: middle;
    transform: translateY(-1px);
    position: relative;
    isolation: isolate;
}

.verified-badge i {
    line-height: 1;
    font-size: 1em;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.12));
}

.verified-badge::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 50%, rgba(29, 155, 240, 0.18), rgba(29, 155, 240, 0) 62%);
    z-index: -1;
    opacity: 0.9;
}

@media (hover: hover) {
    .verified-badge:hover {
        transform: translateY(-1px) scale(1.04);
        box-shadow:
            0 14px 32px rgba(32, 0, 169, 0.22),
            0 4px 10px rgba(29, 155, 240, 0.18),
            inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    }
}

body.profile-page .profile-name .verified-badge {
    width: 22px;
    height: 22px;
    font-size: 13px;
    box-shadow:
        0 16px 38px rgba(32, 0, 169, 0.22),
        0 4px 12px rgba(29, 155, 240, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.verified-badge--parceiro {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.25) 18%, rgba(255, 255, 255, 0) 44%),
        linear-gradient(135deg, #ffb703 0%, #fb8500 55%, #b45309 100%);
    box-shadow:
        0 12px 28px rgba(180, 83, 9, 0.18),
        0 2px 8px rgba(251, 133, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.verified-badge--parceiro::after {
    background: radial-gradient(circle at 50% 50%, rgba(251, 133, 0, 0.22), rgba(251, 133, 0, 0) 62%);
}

.verified-badge--governamental {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.25) 18%, rgba(255, 255, 255, 0) 44%),
        linear-gradient(135deg, #0f172a 0%, #1f2937 55%, #065f46 100%);
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.22),
        0 2px 8px rgba(6, 95, 70, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.verified-badge--governamental::after {
    background: radial-gradient(circle at 50% 50%, rgba(6, 95, 70, 0.2), rgba(6, 95, 70, 0) 62%);
}

body.profile-page .username {
    grid-column: 1;
    grid-row: 2;
    color: #6c757d;
    margin: 0;
}

body.profile-page .bio {
    grid-column: 1;
    grid-row: 3;
    color: #343a40;
    margin: 8px 0 0;
    white-space: pre-wrap;
    max-width: 70ch;
}

body.profile-page .profile-actions {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.profile-page .follow-form {
    margin: 0;
}

body.profile-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

body.profile-page .btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

body.profile-page .btn:active {
    transform: translateY(0);
}

body.profile-page .btn-primary {
    background-color: #2000a9;
    border-color: #2000a9;
    color: #ffffff;
}

body.profile-page .btn-primary:hover {
    background-color: #17007d;
    border-color: #17007d;
}

body.profile-page .btn-outline {
    background-color: #ffffff;
    border-color: #d0d7de;
    color: #2000a9;
}

body.profile-page .btn-outline:hover {
    background-color: #f6f8fa;
}

body.profile-page .profile-stats {
    display: flex;
    gap: 18px;
    padding: 14px 24px 22px;
    border-top: 1px solid #eef1f4;
}

body.profile-page .stat {
    flex: 1 1 0;
    min-width: 90px;
    text-align: center;
}

body.profile-page .stat-link {
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    padding: 8px 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

body.profile-page .stat-link:hover {
    background: #f6f8fa;
    transform: translateY(-1px);
    text-decoration: none;
}

body.profile-page .stat .count {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #212529;
    line-height: 1.2;
}

body.profile-page .stat .label {
    display: block;
    font-size: 13px;
    color: #6c757d;
}

body.profile-page .profile-nav {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 8px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
}

body.profile-page .profile-suggestions {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 16px 16px;
}

body.profile-page .profile-suggestions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

body.profile-page .profile-suggestions-header h3 {
    margin: 0;
    color: #212529;
    font-size: 16px;
}

body.profile-page .profile-suggestions-link {
    font-weight: 800;
    color: #2000a9;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
}

body.profile-page .profile-suggestions-link:hover {
    background: #f6f8fa;
    text-decoration: none;
}

body.profile-page .profile-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

body.profile-page .suggestion-card {
    border: 1px solid #eef1f4;
    border-radius: 12px;
    padding: 12px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

body.profile-page .suggestion-link {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
}

body.profile-page .suggestion-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #eef1f4;
    flex: 0 0 auto;
    background: #ffffff;
}

body.profile-page .suggestion-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.profile-page .suggestion-name {
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.profile-page .suggestion-username {
    color: #6c757d;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.profile-page .suggestion-followers {
    color: #6c757d;
    font-size: 12px;
}

body.profile-page .suggestion-action {
    margin: 0;
    flex: 0 0 auto;
}

body.profile-page .suggestion-action .btn {
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 800;
}

body.profile-page .profile-nav .nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #495057;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.profile-page .profile-nav .nav-item:hover {
    background: #f6f8fa;
    text-decoration: none;
}

body.profile-page .profile-nav .nav-item.active {
    background: rgba(32, 0, 169, 0.1);
    color: #2000a9;
}

body.profile-page .tab-content {
    display: none;
}

body.profile-page .tab-content.active {
    display: block;
}

body.profile-page .connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

body.profile-page .connection-card {
    background: #ffffff;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.profile-page .connection-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
}

body.profile-page .connection-avatar {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #eef1f4;
    background: #ffffff;
    flex: 0 0 auto;
}

body.profile-page .connection-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.profile-page .connection-name {
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.profile-page .connection-username {
    color: #6c757d;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.profile-page .connection-action {
    margin: 0;
    flex: 0 0 auto;
}

body.profile-page .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

body.profile-page .post-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

body.profile-page .post-content {
    padding: 16px;
}

body.profile-page .post-text {
    margin: 0;
    color: #212529;
    word-break: break-word;
}

body.profile-page .post-image {
    width: 100%;
    height: auto;
    margin-top: 12px;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    max-height: 340px;
}

body.profile-page .post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #eef1f4;
    color: #6c757d;
    font-size: 13px;
}

body.profile-page .post-footer .post-actions {
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

body.profile-page .post-footer .action-btn {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: #495057;
    font-weight: 700;
}

body.profile-page .empty-state {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 28px 20px;
    text-align: center;
}

body.profile-page .empty-icon {
    font-size: 34px;
    color: #2000a9;
    margin-bottom: 10px;
}

body.profile-page .empty-title {
    margin: 0 0 6px;
    color: #212529;
}

body.profile-page .empty-text {
    margin: 0 0 16px;
    color: #6c757d;
}

body.profile-page .about-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 22px 20px;
}

body.users-page {
    display: flex;
    flex-direction: column;
}

body.users-page .users-card {
    width: min(980px, 100%);
    margin: 20px auto 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 22px 20px;
}

body.users-page .users-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

body.users-page .users-title h2 {
    margin: 0;
    color: #212529;
    font-size: 22px;
}

body.users-page .users-subtitle {
    margin: 6px 0 0;
    color: #6c757d;
    font-size: 14px;
}

body.users-page .users-search {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 10px 0 18px;
}

body.users-page .users-search-input {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 10px 12px;
    background: #ffffff;
}

body.users-page .users-search-input i {
    color: #6c757d;
}

body.users-page .users-search-input input {
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 14px;
}

body.users-page .users-search-btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #2000a9;
    background: #2000a9;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

body.users-page .users-search-reset {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d0d7de;
    background: #ffffff;
    color: #2000a9;
    font-weight: 800;
    text-decoration: none;
}

body.users-page .users-search-reset:hover {
    background: #f6f8fa;
    text-decoration: none;
}

body.users-page .users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

body.users-page .user-card {
    border: 1px solid #eef1f4;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.users-page .user-card-link {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
}

body.users-page .user-avatar {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #eef1f4;
    background: #ffffff;
}

body.users-page .user-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.users-page .user-name {
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.users-page .user-username {
    color: #6c757d;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.users-page .user-followers {
    color: #6c757d;
    font-size: 12px;
}

body.users-page .user-actions form {
    margin: 0;
}

body.users-page .users-empty {
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed #d0d7de;
    padding: 28px 20px;
    text-align: center;
}

body.profile-page .about-title {
    margin: 0 0 14px;
    color: #212529;
}

body.profile-page .info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-top: 1px solid #eef1f4;
}

body.profile-page .info-item:first-of-type {
    border-top: none;
}

body.profile-page .info-icon {
    color: #2000a9;
    width: 20px;
    flex: 0 0 auto;
    padding-top: 2px;
}

body.profile-page .info-content {
    color: #495057;
}

body.profile-edit-page .profile-edit-card {
    width: min(720px, 100%);
    margin: 20px auto 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 22px 20px;
}

body.profile-edit-page .profile-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

body.profile-edit-page .profile-edit-header h2 {
    margin: 0;
    color: #212529;
    font-size: 22px;
}

body.profile-edit-page .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d0d7de;
    color: #2000a9;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

body.profile-edit-page .back-btn:hover {
    background: #f6f8fa;
    text-decoration: none;
    transform: translateY(-1px);
}

body.profile-edit-page .file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.profile-edit-page .file-input-button {
    padding: 10px 12px;
    background-color: #f6f8fa;
    border-radius: 10px;
    border: 1px solid #d0d7de;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #212529;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

body.profile-edit-page .file-input-button:hover {
    background-color: #eef1f4;
    transform: translateY(-1px);
}

body.profile-edit-page .file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.profile-edit-page .file-name {
    color: #6c757d;
    font-size: 14px;
}

body.profile-edit-page .current-photo {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.profile-edit-page .current-photo img {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #d0d7de;
}

body.profile-edit-page button[type="submit"] {
    width: 100%;
    padding: 12px 14px;
    background-color: #2000a9;
    border: 1px solid #2000a9;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

body.profile-edit-page button[type="submit"]:hover {
    background-color: #17007d;
    transform: translateY(-1px);
}

/* Página de Configurações */
.settings-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.settings-card {
    width: min(860px, 100%);
    margin: 20px auto 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 22px 20px;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.settings-title h2 {
    margin: 0;
    color: #212529;
    font-size: 22px;
}

.settings-subtitle {
    margin: 6px 0 0;
    color: #6c757d;
    font-size: 14px;
}

.settings-page .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d0d7de;
    color: #2000a9;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.settings-page .back-btn:hover {
    background: #f6f8fa;
    text-decoration: none;
    transform: translateY(-1px);
}

.settings-page .alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    margin: 12px 0 18px;
    font-weight: 700;
}

.settings-page .alert.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.settings-page .alert.error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.settings-page .settings-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-page .settings-form button[type="submit"] {
    width: 100%;
    padding: 12px 14px;
    background-color: #2000a9;
    border: 1px solid #2000a9;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.settings-page .settings-form button[type="submit"]:hover {
    background-color: #17007d;
    transform: translateY(-1px);
}

.settings-page .password-strength {
    min-height: 18px;
    font-size: 13px;
    font-weight: 800;
    margin-top: 6px;
}

.settings-page .password-strength.strength-weak {
    color: #b91c1c;
}

.settings-page .password-strength.strength-medium {
    color: #b45309;
}

.settings-page .password-strength.strength-strong {
    color: #065f46;
}

.settings-page .input-with-action {
    position: relative;
    display: flex;
    align-items: center;
}

.settings-page .input-with-action input {
    padding-right: 44px;
}

.settings-page .input-action {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #d0d7de;
    background: #ffffff;
    color: #495057;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.settings-page .input-action:hover {
    background: #f6f8fa;
    transform: translateY(-50%) translateY(-1px);
}

.settings-page .btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.55);
    background: #ffffff;
    color: #b91c1c;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.settings-page .btn-danger:hover {
    background: #fef2f2;
    text-decoration: none;
    transform: translateY(-1px);
}

.settings-section h3 {
    margin-bottom: 20px;
    color: #2000a9;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.save-btn {
    padding: 10px 20px;
    background-color: #2000a9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.danger-zone {
    border-top: 2px solid #f44336;
    padding-top: 15px;
    margin-top: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .chat-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        height: auto;
    }

    .chat-sidebar,
    .chat-panel {
        min-height: auto;
        height: auto;
    }

    .chat-panel {
        height: 70vh;
    }

    .chat-sidebar {
        max-height: 42vh;
    }

    body.profile-page .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -70px;
    }

    body.profile-page .profile-main {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body.profile-page .profile-actions {
        width: 100%;
        justify-content: center;
    }

    body.profile-page .profile-stats {
        justify-content: space-around;
        flex-wrap: wrap;
    }
    
    .header-container {
        flex-direction: column;
    }
    
    .main-nav ul {
        margin-top: 15px;
    }
    
    .main-nav li {
        margin: 0 10px;
    }

    .main-footer .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-footer .footer-links {
        justify-content: flex-start;
    }
}

.landing-page {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4cc9f0;
    --text-color: #333;
    --text-light: #6c757d;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.landing-page .hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 80px 0;
}

.landing-page .hero-content {
    flex: 1;
    max-width: 600px;
}

.landing-page .hero-image {
    flex: 1;
    text-align: center;
}

.landing-page .hero-image img {
    max-width: 100%;
    height: auto;
}

.landing-page .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.landing-page .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.landing-page .btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.landing-page .btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.landing-page .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.landing-page .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.landing-page .btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.landing-page .btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.landing-page .auth-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.landing-page .features-section {
    padding: 80px 0;
    text-align: center;
}

.landing-page .section-title {
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.landing-page .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.landing-page .feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.landing-page .feature-card:hover {
    transform: translateY(-10px);
}

.landing-page .feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.landing-page .feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.landing-page .feature-card p {
    color: var(--text-light);
}

.landing-page .cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--light-color);
    border-radius: 10px;
    margin-bottom: 50px;
}

.landing-page .cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.landing-page .cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .landing-page .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 50px 0;
    }

    .landing-page .auth-buttons {
        justify-content: center;
    }

    .landing-page .hero-title {
        font-size: 2rem;
    }

    .landing-page .section-title {
        font-size: 1.8rem;
    }
}

.movies-page .movies-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.movies-page .movies-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.movies-page .movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.movies-page .movie-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movies-page .movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.movies-page .movie-poster {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.movies-page .movie-info {
    padding: 15px;
}

.movies-page .movie-title {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 16px;
    color: #2c3e50;
}

.movies-page .movie-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.movies-page .movie-year {
    color: #7f8c8d;
    font-size: 14px;
}

.movies-page .movie-rating {
    background-color: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.movies-page .movie-overview {
    color: #34495e;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 10px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movies-page .filters-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    align-items: center;
    flex-wrap: wrap;
}

.movies-page .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.movies-page .filter-group label {
    font-weight: 700;
    color: #2c3e50;
}

.movies-page .filter-group input[type="text"],
.movies-page .filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 250px;
}

.movies-page .filter-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.movies-page .filter-button:hover {
    background-color: #2980b9;
    text-decoration: none;
}

.movies-page .reset-button {
    background-color: #e74c3c;
}

.movies-page .reset-button:hover {
    background-color: #c0392b;
}

.movies-page .movie-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.movies-page .action-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #3498db;
}

.movies-page .action-button:hover {
    color: #2980b9;
}

.movies-page .favorite {
    color: #e74c3c;
}

.movies-page .watch-tag {
    background-color: #2ecc71;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
}

.movies-page .reviews-container {
    margin-top: 30px;
}

.movies-page .review-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.movies-page .review-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.movies-page .review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.movies-page .review-author {
    font-weight: 700;
}

.movies-page .review-rating {
    color: #ffcc00;
    white-space: nowrap;
}

.movies-page .review-content {
    color: #333;
}

.movies-page .review-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.movies-page .rating-stars {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.movies-page .rating-stars input[type="radio"] {
    display: none;
}

.movies-page .rating-stars label {
    color: #ddd;
    font-size: 24px;
    cursor: pointer;
}

.movies-page .rating-stars input[type="radio"]:checked ~ label {
    color: #ffcc00;
}

.movies-page .rating-stars label:hover,
.movies-page .rating-stars label:hover ~ label {
    color: #ffcc00;
}

.movies-page .pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 5px;
}

.movies-page .page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #3498db;
}

.movies-page .page-link:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.movies-page .page-link.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: app-spin 1s linear infinite;
}

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

.button-loading {
    position: relative;
    pointer-events: none;
}

.button-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-spin 0.6s linear infinite;
}

@keyframes button-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .movies-page .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 0;
    }

    .movies-page .movie-poster {
        height: 250px;
    }

    .movies-page .filter-group input[type="text"],
    .movies-page .filter-group select {
        min-width: 0;
        width: 100%;
    }
}

.watch-page .watch-container {
    max-width: 1000px;
    margin: 0 auto;
}

.watch-page .watch-title {
    margin: 10px 0 20px;
}

.watch-page video {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 10px;
    background: #000;
}

body.post-edit-page {
    display: block;
    background-color: #f5f7fa;
    padding: 20px;
}

.post-edit-page .edit-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.post-edit-page .page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.post-edit-page .page-header h2 {
    font-size: 24px;
    color: #212529;
}

.post-edit-page .edit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-edit-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-edit-page .form-group label {
    font-weight: 600;
    color: #212529;
}

.post-edit-page .form-group textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s;
}

.post-edit-page .form-group textarea:focus {
    outline: none;
    border-color: #4895ef;
}

.post-edit-page .current-image {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
}

.post-edit-page .current-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    object-fit: contain;
}

.post-edit-page .current-image p {
    font-size: 14px;
    color: #6c757d;
}

.post-edit-page .file-input label {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px dashed #ccc;
    text-align: center;
}

.post-edit-page .file-input label:hover {
    background-color: #e9ecef;
}

.post-edit-page .file-input input[type="file"] {
    display: none;
}

.post-edit-page .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.post-edit-page .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    border: none;
    font-size: 16px;
}

.post-edit-page .btn-primary {
    background-color: #4361ee;
    color: white;
}

.post-edit-page .btn-primary:hover {
    background-color: #3f37c9;
    transform: translateY(-2px);
    text-decoration: none;
}

.post-edit-page .btn-secondary {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
}

.post-edit-page .btn-secondary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    text-decoration: none;
}

@media (max-width: 768px) {
    body.post-edit-page {
        padding: 15px;
    }

    .post-edit-page .edit-container {
        padding: 20px;
        margin: 20px auto;
    }

    .post-edit-page .form-actions {
        flex-direction: column;
    }

    .post-edit-page .btn {
        width: 100%;
    }
}

body.admin-login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.admin-login-page .login-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.admin-login-page h1 {
    text-align: center;
    color: #343a40;
    margin-bottom: 1.5rem;
}

.admin-login-page .form-group {
    margin-bottom: 1.2rem;
}

.admin-login-page label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
}

.admin-login-page input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.admin-login-page button {
    width: 100%;
    padding: 0.75rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.admin-login-page button:hover {
    background-color: #0069d9;
}

.admin-login-page .error {
    color: #dc3545;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #f8d7da;
    border-radius: 4px;
}

body.admin-messages-page {
    display: block;
    line-height: 1.6;
    color: #212529;
    background-color: #f5f7fa;
}

.admin-messages-page .admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-messages-page .admin-title {
    color: #4361ee;
    margin-bottom: 1rem;
    font-size: 2rem;
    border-bottom: 2px solid #4361ee;
    padding-bottom: 0.5rem;
}

.admin-messages-page .admin-welcome {
    color: #6c757d;
    margin-bottom: 2rem;
}

.admin-messages-page .alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.admin-messages-page .alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.admin-messages-page .alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.admin-messages-page .mensagens-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-messages-page .search-form {
    display: flex;
    flex-grow: 1;
    max-width: 500px;
}

.admin-messages-page .search-form input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-messages-page .search-form input:focus {
    outline: none;
    border-color: #4361ee;
}

.admin-messages-page .search-form button {
    padding: 0 1.5rem;
    background-color: #4361ee;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-messages-page .search-form button:hover {
    background-color: #3f37c9;
}

.admin-messages-page .stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.admin-messages-page .mensagens-list {
    display: grid;
    gap: 1.5rem;
}

.admin-messages-page .mensagem {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.admin-messages-page .mensagem.nao-lida {
    border-left-color: #4361ee;
    background-color: #f8f9ff;
}

.admin-messages-page .mensagem:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.admin-messages-page .mensagem-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-messages-page .mensagem-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-messages-page .mensagem-info .nome {
    font-weight: 600;
    color: #212529;
}

.admin-messages-page .mensagem-info .email {
    font-size: 0.9rem;
    color: #6c757d;
}

.admin-messages-page .mensagem-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.admin-messages-page .mensagem-meta .data {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap;
}

.admin-messages-page .status {
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-messages-page .status.lida {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.admin-messages-page .status.nao-lida {
    background-color: #fff3e0;
    color: #e65100;
}

.admin-messages-page .mensagem-content {
    padding: 1rem 0;
    line-height: 1.7;
    color: #212529;
}

.admin-messages-page .mensagem-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.admin-messages-page .btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-messages-page .btn-primary {
    background-color: #4361ee;
    color: white;
    border: none;
}

.admin-messages-page .btn-primary:hover {
    background-color: #3f37c9;
    text-decoration: none;
}

.admin-messages-page .btn-secondary {
    background-color: white;
    color: #4361ee;
    border: 1px solid #4361ee;
}

.admin-messages-page .btn-secondary:hover {
    background-color: #f0f2ff;
    text-decoration: none;
}

.admin-messages-page .btn-danger {
    background-color: white;
    color: #f72585;
    border: 1px solid #f72585;
}

.admin-messages-page .btn-danger:hover {
    background-color: #fff0f6;
    text-decoration: none;
}

.admin-messages-page .pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.admin-messages-page .page-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: white;
    color: #4361ee;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.admin-messages-page .page-link:hover,
.admin-messages-page .page-link.active {
    background-color: #4361ee;
    color: white;
    border-color: #4361ee;
    text-decoration: none;
}

.admin-messages-page .empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.admin-messages-page .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.admin-messages-page .empty-state p {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .admin-messages-page .admin-container {
        padding: 1rem;
    }

    .admin-messages-page .mensagem-header {
        flex-direction: column;
    }

    .admin-messages-page .mensagem-meta {
        align-items: flex-start;
    }

    .admin-messages-page .mensagens-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-messages-page .search-form {
        max-width: 100%;
    }
}

body.admin-notifications-page {
    display: block;
    background-color: #f8fafc;
    color: #334155;
}

.admin-notifications-page .container {
    margin: 2rem auto;
    padding: 0 1rem;
}

.admin-notifications-page h1,
.admin-notifications-page h2,
.admin-notifications-page h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.admin-notifications-page h1 {
    font-size: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.admin-notifications-page h2 {
    font-size: 1.5rem;
    color: #334155;
}

.admin-notifications-page h3 {
    font-size: 1.25rem;
    color: #3b82f6;
}

.admin-notifications-page .alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.admin-notifications-page .alert .alert-icon {
    margin-right: 10px;
}

.admin-notifications-page .alert.success {
    background-color: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.admin-notifications-page .alert.error {
    background-color: #fef2f2;
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}

.admin-notifications-page .notification-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.admin-notifications-page .form-group {
    margin-bottom: 1.5rem;
}

.admin-notifications-page label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #475569;
}

.admin-notifications-page input[type="text"],
.admin-notifications-page textarea,
.admin-notifications-page select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.admin-notifications-page input[type="text"]:focus,
.admin-notifications-page textarea:focus,
.admin-notifications-page select:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    background-color: #ffffff;
}

.admin-notifications-page textarea {
    min-height: 150px;
    resize: vertical;
}

.admin-notifications-page button[type="submit"] {
    background-color: #4361ee;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-notifications-page button[type="submit"]:hover {
    background-color: #3f37c9;
    transform: translateY(-1px);
}

.admin-notifications-page .notification-list {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.admin-notifications-page .notification-item {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.admin-notifications-page .notification-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.admin-notifications-page .notification-item.unread {
    border-left: 4px solid #f72585;
    background-color: #fff5f5;
}

.admin-notifications-page .notification-item.read {
    border-left: 4px solid #4cc9f0;
    background-color: #f0fdf4;
}

.admin-notifications-page .notification-content {
    flex: 1;
    margin-bottom: 1rem;
}

.admin-notifications-page .notification-content p {
    color: #64748b;
    margin: 0.5rem 0;
}

.admin-notifications-page .notification-content small {
    display: block;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.admin-notifications-page .notification-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-notifications-page .status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-notifications-page .status-unread {
    background-color: #f72585;
    color: white;
}

.admin-notifications-page .status-read {
    background-color: #4cc9f0;
    color: white;
}

.admin-notifications-page .toggle-status-btn {
    background-color: #4895ef;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-notifications-page .toggle-status-btn:hover {
    background-color: #3a7bd0;
    transform: translateY(-1px);
}

.admin-notifications-page .empty-state {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.admin-notifications-page .empty-state .empty-icon {
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: inline-block;
}

@media (min-width: 768px) {
    .admin-notifications-page .notification-item {
        flex-direction: row;
        align-items: center;
    }

    .admin-notifications-page .notification-content {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }

    .admin-notifications-page .notification-actions {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
}

body.cert-terms-page {
    display: block;
    background-color: #f9f9f9;
}

.cert-terms-page .cert-card {
    max-width: 900px;
    margin: 30px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    color: #34495e;
    line-height: 1.8;
}

.cert-terms-page h1 {
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.cert-terms-page h2 {
    color: #3498db;
    margin-top: 35px;
    font-size: 1.5rem;
    position: relative;
    padding-left: 15px;
}

.cert-terms-page h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    height: 80%;
    width: 5px;
    background-color: #3498db;
    border-radius: 3px;
}

.cert-terms-page .last-updated {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 30px;
    display: block;
    text-align: right;
    font-size: 0.9rem;
}

.cert-terms-page .button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.cert-terms-page .button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.cert-terms-page .back-button {
    background-color: #3498db;
    color: white;
}

.cert-terms-page .back-button:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

@media (max-width: 768px) {
    .cert-terms-page .cert-card {
        padding: 25px;
        margin: 15px auto;
    }

    .cert-terms-page h1 {
        font-size: 1.8rem;
    }

    .cert-terms-page .button-container {
        flex-direction: column;
        align-items: stretch;
    }
}

body.cert-privacy-page {
    display: block;
    line-height: 1.8;
    background-color: #f8f9fa;
}

.cert-privacy-page .navigation-button {
    display: inline-block;
    margin: 20px 0 20px 20px;
    padding: 10px 20px;
    background-color: #4361ee;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #4361ee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cert-privacy-page .navigation-button:hover {
    background-color: white;
    color: #4361ee;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.cert-privacy-page .navigation-button i {
    margin-right: 8px;
}

.cert-privacy-page .privacy-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #333;
}

.cert-privacy-page .privacy-container header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.cert-privacy-page h1 {
    color: #4361ee;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cert-privacy-page .last-updated {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cert-privacy-page h2 {
    color: #4361ee;
    margin: 40px 0 20px;
    font-size: 1.8rem;
    position: relative;
    padding-left: 20px;
}

.cert-privacy-page h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #4361ee;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .cert-privacy-page .privacy-container {
        padding: 25px;
        margin: 20px;
    }

    .cert-privacy-page h1 {
        font-size: 2rem;
    }

    .cert-privacy-page h2 {
        font-size: 1.5rem;
        margin: 30px 0 15px;
    }

    .cert-privacy-page .navigation-button {
        margin: 15px 0 15px 15px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .cert-privacy-page .privacy-container {
        padding: 20px;
        margin: 15px;
    }

    .cert-privacy-page h1 {
        font-size: 1.8rem;
    }

    .cert-privacy-page h2 {
        font-size: 1.3rem;
    }
}

body.cert-contact-page {
    display: block;
}

.cert-contact-page .container {
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.cert-contact-page .navigation-buttons {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.cert-contact-page .btn-dashboard,
.cert-contact-page .btn-login {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.cert-contact-page .btn-dashboard {
    background-color: #4361ee;
    color: white;
    border: 1px solid #4361ee;
}

.cert-contact-page .btn-dashboard:hover {
    background-color: #3a56d4;
    text-decoration: none;
}

.cert-contact-page .btn-login {
    background-color: white;
    color: #4361ee;
    border: 1px solid #4361ee;
}

.cert-contact-page .btn-login:hover {
    background-color: #f0f2ff;
    text-decoration: none;
}

.cert-contact-page .alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.cert-contact-page .alert.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.cert-contact-page .alert.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@media (max-width: 768px) {
    .cert-contact-page .container {
        padding: 20px;
    }

    .cert-contact-page .navigation-buttons {
        flex-direction: column;
    }
}
