:root {
    --bg: #000000;
    --surface: #16181c;
    --surface-soft: #22252b;
    --text: #e7e9ea;
    --muted: #71767b;
    --line: #2f3336;
    --primary: #1d9bf0;
    --danger: #f4212e;
}

* {
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: "TwitterChirp", "Segoe UI", Arial, sans-serif;
    line-height: 1.35;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.header {
    position: relative;
    flex-shrink: 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(14px, 2.5vw, 28px);
}

.brand {
    flex-shrink: 0;
}

.brand-link {
    font-size: 19px;
    font-weight: 800;
    color: #f7f9f9;
    text-decoration: none;
    display: inline-block;
    line-height: 1.15;
    letter-spacing: -0.35px;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.brand-link:hover {
    color: #ffffff;
    opacity: 0.92;
}

.search-form {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-width: 0;
}

.search-field {
    flex: 1 1 auto;
    min-width: 0;
}

.search-form input[type="search"],
.search-form input[type="text"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    line-height: 1.2;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
    height: 42px;
    -webkit-appearance: none;
    appearance: none;
}

.search-form input::placeholder {
    color: var(--muted);
}

.search-form input:hover {
    background: var(--surface-soft);
    border-color: #3d4144;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
    background: #0c0f13;
}

.search-submit {
    flex-shrink: 0;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 0 20px;
    cursor: pointer;
    transition:
        filter 0.18s ease,
        box-shadow 0.18s ease;
    font-weight: 800;
    font-size: 14px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 0 20px rgba(29, 155, 240, 0.35);
}

.search-submit:active {
    filter: brightness(0.96);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.user-chip {
    display: none;
    align-items: center;
    gap: 8px;
    max-width: 180px;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    white-space: nowrap;
}

.user-chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.user-online-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 6px rgba(29, 155, 240, 0.85);
    animation: user-online-blink 1.1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .user-online-dot {
        animation: none;
        opacity: 1;
    }
}

@keyframes user-online-blink {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.88);
    }
}

@media (min-width: 900px) {
    .user-chip {
        display: inline-flex;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    height: 40px;
    font-size: 13px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid var(--line);
    transition: background 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    font-weight: 800;
}

.btn.ghost {
    color: var(--text);
    background: transparent;
    font-weight: 700;
}

.btn.primary:hover {
    opacity: 0.9;
}

.btn.ghost:hover {
    background: rgba(239, 243, 244, 0.08);
}

.btn.ghost.danger {
    color: #ff8a8a;
    border-color: rgba(244, 33, 46, 0.5);
}

.btn.ghost.danger:hover {
    background: rgba(244, 33, 46, 0.14);
}

.page-content {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.group-tile {
    background: #1b1f25;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease;
    padding: 22px 16px 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    position: relative;
    min-height: 270px;
}

.group-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 155, 240, 0.6);
}

.group-card-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(29, 155, 240, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px rgba(29, 155, 240, 0.07), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.group-card-avatar img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    display: block;
}

.group-card-title {
    margin: 14px 0 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 950;
    color: #3db7ff;
    letter-spacing: -0.2px;
}

.group-card-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(61, 183, 255, 0.5);
    color: #d8f2ff;
    font-weight: 900;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.02);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-card-enter {
    display: block;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d8f2ff;
    font-weight: 1000;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.group-card-enter:hover {
    border-color: rgba(61, 183, 255, 0.45);
    background: rgba(0, 0, 0, 0.55);
}

.group-card-enter:focus-visible {
    outline: 2px solid rgba(29, 155, 240, 0.75);
    outline-offset: 3px;
}

.group-body {
    padding: 8px 14px 16px;
    color: var(--text);
    text-align: center;
}

.group-details-page {
    padding-bottom: 28px;
}

.group-details-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s ease;
}

.group-details-back:hover {
    color: var(--primary);
}

.group-details-notice {
    margin: 0 auto 16px;
    max-width: 560px;
}

.group-details-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
}

.group-details-report-row {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.group-details-report-form {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.group-details-report-form input[type="text"] {
    flex: 1 1 220px;
    min-width: 0;
    width: auto;
    max-width: none;
    height: 40px;
    background: #0f1115;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 999px;
    padding: 0 16px;
    font-size: 14px;
}

.group-details-report-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.group-details-report-form .report-btn {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 18px;
    font-weight: 800;
    font-size: 13px;
}

.group-details-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 20px 20px 22px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 40%), #0f1115;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 48px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

a.group-details-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

a.group-details-card-link:hover {
    transform: translateY(-5px);
    border-color: rgba(29, 155, 240, 0.42);
    box-shadow:
        0 0 0 1px rgba(29, 155, 240, 0.14) inset,
        0 20px 48px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(29, 155, 240, 0.12),
        0 12px 32px rgba(29, 155, 240, 0.08);
}

a.group-details-card-link:focus-visible {
    outline: 2px solid rgba(29, 155, 240, 0.85);
    outline-offset: 3px;
}

a.group-details-card-link:active {
    transform: translateY(-2px) scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
    a.group-details-card-link,
    .group-details-photo-wrap {
        transition: none;
    }

    a.group-details-card-link:hover {
        transform: none;
    }

    a.group-details-card-link:hover .group-details-photo-wrap {
        transform: none;
    }

    a.group-details-card-link:active {
        transform: none;
    }
}

.group-details-category {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    max-width: min(200px, 46%);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 14px rgba(29, 155, 240, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-details-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 52px 8px 8px;
    flex: 0 0 auto;
}

.group-details-photo-wrap {
    position: relative;
    border-radius: 18px;
    padding: 0;
    background: transparent;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 12px 40px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.24s cubic-bezier(0.34, 1.02, 0.68, 1),
        box-shadow 0.24s ease;
}

a.group-details-card-link:hover .group-details-photo-wrap {
    transform: scale(1.04);
    box-shadow:
        0 0 0 1px rgba(29, 155, 240, 0.22),
        0 16px 44px rgba(0, 0, 0, 0.4),
        0 0 28px rgba(29, 155, 240, 0.1);
}

.group-details-photo {
    display: block;
    width: min(300px, 88vw);
    height: auto;
    max-height: 340px;
    object-fit: contain;
    border-radius: 18px;
    vertical-align: middle;
    background: transparent;
}

.group-details-body {
    flex: 1 1 auto;
    max-width: 560px;
    margin: 0 auto;
    padding: 10px 8px 6px;
    text-align: center;
}

.group-details-title {
    margin: 0;
    font-size: clamp(22px, 2.8vw, 28px);
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: #f7f9f9;
    word-break: break-word;
}

.group-details-desc {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
    font-weight: 500;
}

.group-details-footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 16px;
    padding: 20px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.group-details-xchat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 950;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 20px rgba(29, 155, 240, 0.35);
    flex: 0 0 auto;
    pointer-events: none;
    transition:
        filter 0.15s ease,
        box-shadow 0.15s ease;
}

a.group-details-card-link:hover .group-details-xchat-btn {
    filter: brightness(1.06);
    box-shadow: 0 8px 26px rgba(29, 155, 240, 0.45);
}

.group-details-xchat-icon {
    flex-shrink: 0;
}

.group-details-xchat-text {
    margin-left: 10px;
    letter-spacing: 0.04em;
}

.group-details-date {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 520px) {
    .group-details-card {
        padding: 18px 14px 18px;
        border-radius: 16px;
    }

    .group-details-category {
        top: 12px;
        right: 12px;
        max-width: 56%;
        font-size: 11px;
        padding: 6px 10px;
    }

    .group-details-hero {
        padding-top: 48px;
    }

    .group-details-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .group-details-date {
        margin-left: 0;
        text-align: center;
    }

    .group-details-xchat-btn {
        width: 100%;
    }

    .group-details-report-form {
        flex-direction: column;
        align-items: stretch;
    }

    .group-details-report-form .report-btn {
        width: 100%;
    }
}

.groups-column h2,
.sidebar h3 {
    margin-top: 0;
}

.card,
.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 15px 16px;
    margin-bottom: 14px;
}

.card h3 {
    margin: 2px 0 8px;
    font-size: 20px;
}

.category,
.subtle {
    color: var(--muted);
}

.card-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-btn {
    border: 1px solid rgba(244, 33, 46, 0.45);
    color: #ff8790;
    background: transparent;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.report-btn:hover {
    background: rgba(244, 33, 46, 0.14);
}

.report-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-form input[type="text"] {
    width: 180px;
    margin: 0;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    max-height: 70vh;
    overflow: auto;
}

.sidebar li a {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    transition: background 0.2s ease;
}

.sidebar li a.active,
.sidebar li a:hover {
    background: var(--surface-soft);
}

.single-column {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px;
}

.submit-page {
    max-width: 860px;
}

.account-page {
    max-width: 640px;
    padding-bottom: 32px;
}

.account-header {
    margin-bottom: 28px;
}

.account-title {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 950;
    letter-spacing: -0.45px;
    color: #f7f9f9;
}

.account-subtitle {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
    font-weight: 500;
    max-width: 520px;
}

.account-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    font-size: 13px;
}

.account-user-label {
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.account-user-id {
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.account-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-list-item {
    margin: 0;
}

.account-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 45%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-card:hover {
    border-color: rgba(47, 51, 54, 0.95);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.account-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 14px;
    margin-bottom: 10px;
}

.account-card-name {
    margin: 0;
    flex: 1 1 200px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.25px;
    line-height: 1.25;
    color: #f7f9f9;
    word-break: break-word;
}

.account-category-pill {
    flex-shrink: 0;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-card-desc {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    opacity: 0.92;
}

.account-card-desc--empty {
    color: var(--muted);
    font-style: italic;
    opacity: 1;
}

.account-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}

.account-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.account-status--aprovado {
    color: #13c37a;
    background: rgba(18, 168, 99, 0.16);
    border: 1px solid rgba(18, 168, 99, 0.35);
}

.account-status--reprovado {
    color: #ff8a8a;
    background: rgba(244, 33, 46, 0.14);
    border: 1px solid rgba(244, 33, 46, 0.35);
}

.account-status--pendente {
    color: #f0b429;
    background: rgba(240, 180, 41, 0.14);
    border: 1px solid rgba(240, 180, 41, 0.35);
}

.account-date {
    margin-left: auto;
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
}

.account-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-card-actions .btn {
    text-decoration: none;
    min-height: 40px;
}

.account-btn-link {
    flex: 1 1 auto;
}

.account-btn-page {
    flex: 1 1 auto;
}

.account-empty {
    text-align: center;
    padding: 40px 24px 44px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
}

.account-empty-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
    color: #f7f9f9;
}

.account-empty-text {
    margin: 0 auto 20px;
    max-width: 380px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

.account-empty-cta {
    text-decoration: none;
}

@media (max-width: 520px) {
    .account-card-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-date {
        margin-left: 0;
    }

    .account-card-actions .btn {
        width: 100%;
    }
}

.submit-header h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.3px;
}

.submit-form {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.submit-form label {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    margin: 14px 0 6px;
}

.submit-form textarea,
.submit-form input,
.submit-form select {
    border-radius: 12px;
    padding: 12px 12px;
    height: 44px;
}

.submit-form textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 180px;
    height: 44px;
    margin: 18px auto 0;
    display: flex;
}

label {
    display: block;
    margin: 10px 0 6px;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #0f1115;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.notice {
    border-radius: 10px;
    padding: 10px;
}

.notice.success {
    background: rgba(18, 168, 99, 0.2);
}

.notice.error {
    background: rgba(214, 40, 40, 0.2);
}

.notice.warn {
    background: rgba(240, 180, 41, 0.2);
}

.status-line {
    margin: 10px 0;
}

.status.aprovado {
    color: #13c37a;
}

.status.reprovado {
    color: #ff6767;
}

.status.pendente {
    color: #f0b429;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.admin-page {
    max-width: 980px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-chip {
    border: 1px solid rgba(29, 155, 240, 0.4);
    color: #8fd1ff;
    background: rgba(29, 155, 240, 0.12);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

.admin-section {
    margin-bottom: 24px;
}

.admin-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.admin-section h3 {
    margin: 0;
    font-size: 24px;
}

.admin-card {
    border-radius: 18px;
    padding: 18px;
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-card-head h4 {
    margin: 0;
    font-size: 19px;
}

.admin-badge {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.admin-badge.pending {
    background: rgba(240, 180, 41, 0.2);
    color: #ffd27a;
}

.admin-badge.report {
    background: rgba(244, 33, 46, 0.15);
    color: #ff99a0;
}

.admin-description {
    margin: 10px 0 12px;
    color: #d6d9db;
}

.admin-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 8px 16px;
    color: #b8bec3;
    font-size: 14px;
}

.admin-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
}

.admin-empty {
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
}

.footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 28%), #000000;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 40px;
    display: grid;
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.footer-text {
    min-width: 0;
}

.footer-lead {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    color: #f7f9f9;
    letter-spacing: -0.2px;
}

.footer-legal,
.footer-note {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

.footer-legal:last-child,
.footer-note:last-child {
    margin-bottom: 0;
}

.footer-legal strong {
    color: var(--text);
    font-weight: 800;
}

.footer-icon {
    margin-right: 2px;
}

.footer-aside {
    padding: 20px 20px 22px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.footer-partners-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.2px;
    color: #f7f9f9;
}

.footer-partners-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-partner-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-partner-link:hover {
    border-bottom-color: rgba(29, 155, 240, 0.45);
    color: #4baef6;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.pagination-x {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.page-btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.page-btn.ghost {
    background: transparent;
}

.page-btn.disabled,
.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.page-num {
    height: 40px;
    width: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-decoration: none;
}

.page-num.active {
    background: var(--primary);
    border-color: transparent;
    color: #ffffff;
}

.page-ellipsis {
    color: var(--muted);
    font-weight: 900;
    padding: 0 4px;
}

.page-num:hover {
    border-color: rgba(29, 155, 240, 0.45);
}

.pagination span {
    color: var(--muted);
}

.pagination .btn {
    padding: 6px 10px;
    min-width: 34px;
    text-align: center;
}

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    .brand {
        justify-self: center;
    }

    .search-form {
        max-width: none;
        order: 3;
    }

    .header-right {
        flex-direction: column;
        width: 100%;
        order: 2;
    }

    .user-chip {
        display: inline-flex;
        max-width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-aside {
        order: -1;
    }

    .report-form {
        flex-direction: column;
        align-items: flex-end;
    }

    .report-form input[type="text"] {
        width: 100%;
    }

    .admin-meta {
        grid-template-columns: 1fr;
    }

    .group-thumb img {
        height: 130px;
    }
}

/* Revert layout do card da Home (versão com XCHAT + data nos cantos). */
.group-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: visible;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    min-height: 270px;
}

.group-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 155, 240, 0.45);
    background: var(--surface-soft);
}

.group-tile-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    outline: none;
    position: relative;
}

.group-tile-link:focus-visible {
    outline: 2px solid rgba(29, 155, 240, 0.75);
    outline-offset: 3px;
    border-radius: 18px;
}

.group-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    background: #1d9bf0;
    border: 1px solid rgba(29, 155, 240, 1);
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-category-float {
    position: absolute;
    top: -14px;
    right: 14px;
    z-index: 2;
}

.group-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 10px 4px;
}

.group-thumb img {
    width: 104px;
    height: 104px;
    display: block;
    object-fit: contain;
    background: transparent;
}

.group-body {
    padding: 10px 14px 74px;
    color: var(--text);
    text-align: center;
    position: relative;
}

.group-xchat-btn {
    position: absolute;
    left: 16px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0);
    transition: opacity 0.15s ease;
}

.group-tile-link .group-xchat-btn {
    pointer-events: none;
}

.group-xchat-btn:hover {
    opacity: 0.92;
    text-decoration: none;
}

.xchat-btn-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 8px;
    filter: brightness(0) invert(1);
}

.group-title {
    margin: 18px 0 6px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.2px;
    color: #ffffff;
}

.group-date {
    position: absolute;
    right: 16px;
    bottom: 18px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    display: inline-block;
    margin-top: 4px;
}
