* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    min-height: 100vh;
}

/* ================================================
   REDE SOCIAL - PAGINA PRINCIPAL
   ================================================ */

.social-body {
    background: #eef1f6;
    overflow: hidden;
    height: 100vh;
}

/* Feed borrado */
.feed-container {
    transition: filter 0.6s ease;
}

.feed-container.blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

/* Header */
.social-header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.social-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-icon-large {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
    border-radius: 14px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
}

.social-nav {
    display: flex;
    gap: 24px;
}

.nav-item {
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
}

.nav-item.active {
    color: #667eea;
    font-weight: 600;
    background: #f0f0ff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notif-icon {
    font-size: 1.2rem;
    cursor: pointer;
}

.avatar-small {
    width: 32px;
    height: 32px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.avatar-medium {
    width: 48px;
    height: 48px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Feed layout */
.feed-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: 24px;
}

/* Sidebar esquerda */
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
}

.sidebar-info {
    display: flex;
    flex-direction: column;
}

.sidebar-info strong {
    font-size: 0.9rem;
}

.sidebar-info span {
    font-size: 0.8rem;
    color: #888;
}

.sidebar-menu {
    background: #fff;
    border-radius: 12px;
    padding: 8px 0;
}

.sidebar-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
}

.sidebar-item:hover {
    background: #f5f5f5;
}

/* Posts */
.post-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

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

.post-avatar {
    flex-shrink: 0;
}

.post-time {
    font-size: 0.8rem;
    color: #999;
    display: block;
}

.post-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 12px;
}

.post-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e0e7ff, #f0e6ff);
    border-radius: 10px;
    margin-bottom: 12px;
}

.post-actions {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #666;
}

/* Sidebar direita */
.trending-box, .suggestions-box {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.trending-box h3, .suggestions-box h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #333;
}

.trending-item {
    padding: 6px 0;
    font-size: 0.85rem;
    color: #667eea;
    cursor: pointer;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.85rem;
}

/* ================================================
   PERFIL DO USUARIO
   ================================================ */

.profile-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.profile-cover {
    height: 220px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    border-radius: 0 0 16px 16px;
}

.profile-info-section {
    background: #fff;
    margin: -40px 20px 0;
    border-radius: 16px;
    padding: 0 24px 24px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.profile-avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -50px;
    padding-top: 0;
    position: relative;
    top: -30px;
    margin-bottom: -20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2.4rem;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.avatar-small-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

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

.profile-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-name {
    font-size: 1.5rem;
    color: #1a1a2e;
}

.verified-badge {
    background: #667eea;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.profile-handle {
    color: #888;
    font-size: 0.9rem;
    margin: 4px 0 12px;
}

.profile-bio {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.profile-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 18px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.stat span {
    font-size: 0.8rem;
    color: #888;
}

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 20px;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.profile-tab {
    padding: 10px 24px;
    font-size: 0.85rem;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
}

.profile-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 600;
}

.profile-feed {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* ================================================
   MODAL DE VERIFICAÇÃO
   ================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.4s ease;
}

.modal-overlay.modal-hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-card h2 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-info {
    text-align: left;
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8f9ff;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #444;
}

.info-icon {
    font-size: 1.1rem;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.modal-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

.modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-btn.loading {
    background: linear-gradient(135deg, #999, #777);
}

.modal-footer {
    margin-top: 16px;
    font-size: 0.75rem;
    color: #aaa;
}

.modal-denied-msg {
    margin-top: 14px;
    padding: 12px;
    background: #fff3e0;
    color: #e65100;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
    border: 1px solid #ffe0b2;
}

.modal-btn.denied {
    background: linear-gradient(135deg, #e65100, #bf360c);
}

/* ================================================
   ADMIN
   ================================================ */

.admin-body {
    background: #1a1a2e;
    color: #e0e0e0;
}

.admin-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.admin-container h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #fff;
}

.total-count {
    color: #aaa;
    margin-bottom: 20px;
}

.actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #0f3460;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    background: #1a1a5e;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-secondary {
    background: #333;
}

.btn-secondary:hover {
    background: #444;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #16213e;
    font-size: 0.85rem;
}

thead th {
    background: #0f3460;
    color: #fff;
    padding: 12px 10px;
    text-align: left;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

tbody td {
    padding: 10px;
    border-bottom: 1px solid #1a1a4e;
}

tbody tr:hover {
    background: #1a1a4e;
}

.ip-cell {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #4fc3f7;
}

.ua-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #aaa;
    font-size: 0.8rem;
}

.empty {
    text-align: center;
    color: #777;
    padding: 40px;
    font-size: 1.1rem;
}

.map-link {
    color: #4fc3f7;
    text-decoration: none;
    font-size: 0.8rem;
}

.map-link:hover {
    text-decoration: underline;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-warning {
    background: #e65100;
    color: #fff;
}

.badge-ok {
    background: #2e7d32;
    color: #fff;
}

.badge-denied {
    background: #555;
    color: #aaa;
}

.gps-link {
    color: #66bb6a;
    font-weight: 600;
}

.gps-accuracy {
    font-size: 0.7rem;
    color: #888;
}

/* ================================================
   RESPONSIVO
   ================================================ */

@media (max-width: 900px) {
    .feed-content {
        grid-template-columns: 1fr;
    }

    .feed-sidebar, .feed-right {
        display: none;
    }

    .social-nav {
        display: none;
    }
}

@media (max-width: 600px) {
    .modal-card {
        padding: 28px 20px;
        margin: 0 10px;
    }

    .modal-card h2 {
        font-size: 1.2rem;
    }

    .social-header-inner {
        padding: 10px 14px;
    }

    .logo-text {
        font-size: 1.1rem;
    }
}
