/* ==================================================
   NOSTAL™ — CSS STYLESHEET
   ================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(
            to bottom,
            #dff5d8 0px,
            #f4fff1 120px,
            #ffffff 300px
        );
    color: #333;
    font-size: 13px;
}

a {
    color: #197a1c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* ==================================================
   TOPO
   ================================================== */

.top-strip {
    height: 7px;

    background:
        linear-gradient(
            to right,
            #176b18,
            #43a047,
            #8bc34a,
            #43a047,
            #176b18
        );
}

.header {
    background:
        linear-gradient(
            to bottom,
            #5fbf50 0%,
            #39a93c 45%,
            #218b28 100%
        );

    border-bottom: 1px solid #126619;

    box-shadow:
        0 2px 5px rgba(0,0,0,0.25);
}

.header-inner {
    width: 960px;
    max-width: calc(100% - 20px);

    margin: auto;

    min-height: 82px;

    display: flex;

    align-items: center;
    justify-content: space-between;
}

.logo-image {
    display: block;

    max-width: 220px;
    max-height: 65px;

    width: auto;
    height: auto;
}

.tagline {
    color: #eaffea;

    font-size: 12px;

    margin-top: 4px;

    text-shadow:
        1px 1px #126619;
}

.header-links {
    color: white;

    text-align: right;

    font-size: 12px;
}

.header-links a {
    color: white;

    font-weight: bold;
}


/* ==================================================
   MARQUEE
   ================================================== */

.ticker {
    width: 960px;
    max-width: calc(100% - 20px);

    margin: 8px auto;

    background: #ffffcc;

    border: 1px solid #d1d16a;

    padding: 5px;

    color: #555;

    font-size: 12px;

    box-shadow:
        inset 0 1px white;

    overflow: hidden;
}

.banner-marquee {
    width: 100%;

    overflow: hidden;

    white-space: nowrap;

    padding: 3px 0;
}

.banner-marquee img {
    height: 42px;

    width: auto;

    vertical-align: middle;
}


/* ==================================================
   LAYOUT
   ================================================== */

.page {
    width: 960px;

    max-width: calc(100% - 20px);

    margin: 0 auto 30px;

    display: grid;

    grid-template-columns:
        190px
        1fr
        205px;

    gap: 10px;
}

.column {
    min-width: 0;
}


/* ==================================================
   BOXES
   ================================================== */

.box {
    background: white;

    border: 1px solid #b7b7b7;

    border-radius: 5px;

    margin-bottom: 10px;

    box-shadow:
        0 1px 3px rgba(0,0,0,0.15),
        inset 0 1px 0 white;

    overflow: hidden;
}

.box:has(.emoji-picker) {
    overflow: visible;
}

.box-title {
    background:
        linear-gradient(
            to bottom,
            #edfbe9,
            #c8eec1
        );

    border-bottom: 1px solid #a9d6a2;

    color: #246c24;

    font-size: 13px;

    font-weight: bold;

    padding: 8px 9px;

    text-shadow:
        1px 1px white;
}

.box-content {
    padding: 10px;
}


/* ==================================================
   LOGIN
   ================================================== */

.login-box {
    border: 1px solid #7aad73;
}

.login-title {
    background:
        linear-gradient(
            to bottom,
            #72c965,
            #39a83b
        );

    color: white;

    font-size: 16px;

    font-weight: bold;

    padding: 9px 10px;

    text-shadow:
        1px 1px #276d25;
}

.login-content {
    padding: 18px;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #f5fff3
        );
}

.welcome {
    text-align: center;

    margin-bottom: 18px;
}

.welcome h1 {
    color: #247927;

    font-size: 24px;

    margin: 0 0 4px;
}

.welcome p {
    margin: 0;

    color: #777;

    font-size: 12px;
}

label {
    display: block;

    font-size: 12px;

    font-weight: bold;

    color: #555;

    margin: 10px 0 4px;
}

input[type="email"],
input[type="password"] {
    width: 100%;

    height: 33px;

    border: 1px solid #aaa;

    border-radius: 3px;

    padding: 6px 8px;

    font-family:
        Arial,
        sans-serif;

    font-size: 13px;

    background: white;

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.1);
}

input:focus {
    outline: none;

    border-color: #4cae4c;

    box-shadow:
        0 0 4px rgba(76,174,76,0.5);
}

.remember {
    margin: 10px 0;

    font-size: 12px;

    color: #666;
}

.remember input {
    vertical-align: middle;
}

.login-button {
    width: 100%;

    height: 36px;

    border: 1px solid #176b1b;

    border-radius: 4px;

    background:
        linear-gradient(
            to bottom,
            #72cf67,
            #299c30
        );

    color: white;

    font-weight: bold;

    font-size: 14px;

    text-shadow:
        1px 1px #176b1b;

    cursor: pointer;

    box-shadow:
        inset 0 1px rgba(255,255,255,0.5),
        0 1px 2px rgba(0,0,0,0.2);
}

.login-button:hover {
    background:
        linear-gradient(
            to bottom,
            #82da76,
            #35a83b
        );
}

.login-button:active {
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.25);

    transform: translateY(1px);
}

.forgot {
    text-align: center;

    margin-top: 12px;

    font-size: 12px;
}


/* ==================================================
   CRIAR CONTA
   ================================================== */

.signup-box {
    background:
        linear-gradient(
            135deg,
            #fffef0,
            #ffffd6
        );

    border-color: #d7d38a;
}

.signup-box h2 {
    margin: 0 0 5px;

    color: #6c6a20;

    font-size: 17px;
}

.signup-box p {
    font-size: 12px;

    color: #666;

    line-height: 1.4;
}

.signup-button {
    display: block;

    text-align: center;

    background:
        linear-gradient(
            to bottom,
            #ffcf4b,
            #e6a900
        );

    border: 1px solid #b98200;

    border-radius: 4px;

    color: #604600;

    padding: 7px;

    font-weight: bold;

    text-shadow:
        1px 1px #fff3bb;

    box-shadow:
        inset 0 1px rgba(255,255,255,0.7);
}

.signup-button:hover {
    text-decoration: none;

    background:
        linear-gradient(
            to bottom,
            #ffd963,
            #edb31b
        );
}


/* ==================================================
   COLUNA ESQUERDA
   ================================================== */

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

.avatar-placeholder {
    width: 90px;
    height: 90px;

    margin: auto;

    border: 1px solid #999;

    background:
        linear-gradient(
            135deg,
            #dcefd7,
            #a8d69e
        );

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 42px;

    box-shadow:
        inset 0 0 0 4px white;
}

.guest-title {
    color: #237227;

    font-weight: bold;

    margin-top: 7px;

    font-size: 12px;
}

.menu a {
    display: block;

    padding: 6px 7px;

    border-bottom: 1px solid #e4e4e4;

    font-size: 12px;
}

.menu a:hover {
    background: #edf9e9;

    text-decoration: none;
}


/* ==================================================
   CENTRO
   ================================================== */

.hero {
    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,0.8),
            transparent 35%
        ),
        linear-gradient(
            to bottom,
            #f4fff0,
            #ffffff
        );

    border: 1px solid #a8d29f;

    border-radius: 5px;

    padding: 20px;

    text-align: center;

    margin-bottom: 10px;
}

.hero h2 {
    margin: 0;

    color: #277a29;

    font-size: 25px;
}

.hero p {
    color: #666;

    font-size: 13px;

    line-height: 1.5;
}

.feature {
    display: grid;

    grid-template-columns: 45px 1fr;

    gap: 8px;

    align-items: center;

    padding: 8px;

    border-bottom: 1px dotted #bbb;
}

.feature:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 30px;

    text-align: center;
}

.feature strong {
    color: #277a29;

    font-size: 13px;
}

.feature p {
    margin: 3px 0 0;

    font-size: 12px;

    color: #777;
}


/* ==================================================
   POSTS ANTIGOS
   ================================================== */

.retro-post {
    padding: 10px;

    background: #fafafa;

    border-bottom: 1px solid #ddd;
}

.retro-post:last-child {
    border-bottom: none;
}

.post-user {
    font-weight: bold;

    color: #287c2c;
}

.post-date {
    color: #999;

    font-size: 11px;
}

.post-text {
    margin: 7px 0;

    line-height: 1.4;

    font-size: 12px;
}

.post-actions {
    color: #777;

    font-size: 11px;
}

.post-actions a {
    margin-right: 8px;
}

.posts-loading {
    padding: 18px;

    text-align: center;

    color: #999;

    font-size: 12px;
}


/* ==================================================
   DIREITA
   ================================================== */

.online-user {
    padding: 6px 2px;

    border-bottom: 1px dotted #ccc;

    font-size: 12px;
}

.online-user:last-child {
    border-bottom: none;
}

.online {
    color: #299b30;

    font-size: 9px;

    margin-right: 4px;
}

.offline {
    color: #aaa;

    font-size: 9px;

    margin-right: 4px;
}

.online-loading {
    color: #999;

    font-size: 12px;

    text-align: center;

    padding: 5px;
}

.counter {
    text-align: center;

    font-family:
        "Courier New",
        monospace;

    font-size: 17px;

    font-weight: bold;

    letter-spacing: 2px;

    background: #111;

    color: #49ff49;

    padding: 6px;

    border: 2px inset #777;

    margin-top: 5px;
}

.counter-label {
    font-size: 12px;

    color: #777;
}


/* ==================================================
   USUÁRIOS / MEMBROS / COMUNIDADES
   ================================================== */

.users-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    width: 100%;

    padding: 0;

    margin: 0;
}

.user-item {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 9px;

    min-height: 72px;

    background: #fff;

    border-right: 1px solid #d8d8d8;

    border-bottom: 1px solid #d8d8d8;

    overflow: hidden;
}

.user-item:nth-child(2n) {
    border-right: none;
}

.user-item:hover {
    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #f2faef
        );
}


/* ==================================================
   AVATARES
   ================================================== */

.user-avatar,
.user-avatar-placeholder {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border: 1px solid #aaa;

    border-radius: 3px;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #dcefd7,
            #a8d69e
        );

    font-size: 22px;
}

.user-avatar {
    object-fit: cover;
}

.user-avatar-placeholder {
    color: #555;
}


/* ==================================================
   INFORMAÇÕES DOS USUÁRIOS
   ================================================== */

.user-item-info {
    min-width: 0;

    flex: 1;

    overflow: hidden;
}

.user-item-info a {
    display: block;

    color: #287c2c;

    font-size: 13px;

    font-weight: bold;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.user-item-info a:hover {
    color: #176b18;

    text-decoration: underline;
}

.user-item-info p {
    margin: 2px 0 0;

    color: #777;

    font-size: 11px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.user-empty {
    grid-column: 1 / -1;

    padding: 18px;

    text-align: center;

    color: #999;

    font-size: 12px;
}


/* ==================================================
   MEMBROS DE COMUNIDADE
   ================================================== */

.community-members-list {
    padding: 0;
}

.community-owner {
    color: #a06b00 !important;

    font-weight: bold;
}


/* ==================================================
   COMUNIDADES
   ================================================== */

.communities-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
}

.community-item {
    min-width: 0;
}

.community-avatar,
.community-avatar-placeholder {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    object-fit: cover;
}

.community-avatar-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;
}


/* ==================================================
   LISTA DE AMIGOS — CONTATOS VERTICAIS
   ================================================== */

#friendsList {
    display: block !important;

    width: 100%;

    padding: 0;
    margin: 0;
}

#friendsList .user-item {
    display: flex !important;

    width: 100% !important;
    min-width: 100% !important;

    min-height: 0;

    flex-direction: row;

    align-items: center;

    gap: 8px;

    padding: 7px 8px;

    background: white;

    border: none;

    border-bottom: 1px solid #d9d9d9;

    overflow: hidden;

    float: none;
}

#friendsList .user-item:last-child {
    border-bottom: none;
}


/* Foto pequena */

#friendsList .user-avatar,
#friendsList .user-avatar-placeholder {
    width: 36px !important;
    height: 36px !important;

    min-width: 36px;

    flex: 0 0 36px;

    border: 1px solid #aaa;

    border-radius: 3px;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #dcefd7,
            #a8d69e
        );

    font-size: 17px;
}

#friendsList .user-avatar {
    object-fit: cover;
}


/* Informações */

#friendsList .user-item-info {
    min-width: 0;

    width: auto;

    flex: 1;

    overflow: hidden;
}


/* Nome */

#friendsList .user-item-info a {
    display: block;

    color: #287c2c;

    font-size: 12px;

    font-weight: bold;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* Esconder @username e status */

#friendsList .user-item-info p {
    display: none !important;
}


/* ==================================================
   RETRO BADGES
   ================================================== */

.badges {
    text-align: center;

    padding: 5px;
}

.badges img {
    width: 88px;

    height: 31px;

    object-fit: contain;

    margin: 3px;

    vertical-align: middle;

    image-rendering: auto;
}

.badge-text {
    font-size: 11px;

    color: #777;

    margin-top: 6px;
}


/* ==================================================
   RETRO MARQUEE
   ================================================== */

.image-marquee {
    width: 100%;

    overflow: hidden;

    background: #f7fff4;

    border-top: 1px dotted #b6d6ae;

    border-bottom: 1px dotted #b6d6ae;

    padding: 5px 0;
}

.image-marquee img {
    height: 38px;

    width: auto;

    vertical-align: middle;
}


/* ==================================================
   RETRO PROJECT
   ================================================== */

.retropixel-project {
    text-align: center;

    padding: 10px;
}

.retropixel-project img {
    width: 105px;

    max-width: 100%;

    height: auto;

    display: block;

    margin: 0 auto 7px;
}

.retropixel-project p {
    margin: 0;

    color: #777;

    font-size: 12px;
}


/* ==================================================
   RODAPÉ
   ================================================== */

.footer {
    width: 960px;

    max-width: calc(100% - 20px);

    margin: 20px auto;

    border-top: 1px solid #bbb;

    padding: 12px 0;

    text-align: center;

    color: #888;

    font-size: 11px;
}

.footer a {
    color: #438346;
}

.footer-secondary {
    margin-top: 6px;

    font-size: 11px;
}


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

@media (max-width: 800px) {

    .page {
        grid-template-columns: 1fr;
    }

    .header-inner {
        height: auto;

        padding: 12px 0;

        flex-direction: column;

        gap: 8px;

        text-align: center;
    }

    .header-links {
        text-align: center;
    }

    .logo-image {
        margin: auto;
    }

    .users-list,
    .communities-list {
        grid-template-columns: 1fr;
    }

    .user-item {
        border-right: none;
    }

}


/* ==================================================
   CRIAR CONTA
   ================================================== */

.signup-page {
    width: 960px;

    max-width: calc(100% - 20px);

    margin: 0 auto 30px;

    display: grid;

    grid-template-columns:
        1fr
        220px;

    gap: 10px;
}

.signup-main,
.signup-sidebar {
    min-width: 0;
}

.create-account-box {
    border-color: #7aad73;
}

.create-account-content {
    padding: 20px 25px;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #f5fff3
        );
}

.create-account-content input[type="text"],
.create-account-content input[type="email"],
.create-account-content input[type="password"] {
    width: 100%;

    height: 35px;

    border: 1px solid #aaa;

    border-radius: 3px;

    padding: 6px 8px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;

    background: white;

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.1);
}

.create-account-content input:focus {
    outline: none;

    border-color: #4cae4c;

    box-shadow:
        0 0 4px rgba(76,174,76,0.5);
}

.field-help {
    margin-top: 4px;

    color: #777;

    font-size: 12px;
}

.username-field {
    display: flex;

    width: 100%;
}

.username-prefix {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 35px;

    border: 1px solid #aaa;

    border-right: 0;

    border-radius: 3px 0 0 3px;

    background:
        linear-gradient(
            to bottom,
            #f5f5f5,
            #dddddd
        );

    color: #287c2c;

    font-weight: bold;

    font-size: 15px;

    text-shadow:
        1px 1px white;
}

.username-field input {
    border-radius:
        0 3px 3px 0 !important;
}

.signup-agreement {
    margin: 17px 0;

    padding: 10px;

    border: 1px solid #d6d6a3;

    border-radius: 3px;

    background: #ffffe5;

    color: #555;

    font-size: 12px;

    line-height: 1.5;
}

.signup-agreement label {
    display: block;

    margin: 0;

    font-weight: normal;
}

.signup-agreement input {
    vertical-align: middle;
}

.existing-account {
    margin-top: 15px;

    padding-top: 12px;

    border-top: 1px dotted #aaa;

    text-align: center;

    color: #666;

    font-size: 12px;
}

.form-message {
    margin-bottom: 15px;

    padding: 9px;

    border-radius: 3px;

    font-size: 12px;

    font-weight: bold;
}

.form-message.error {
    border: 1px solid #d28d8d;

    background: #ffecec;

    color: #9c2020;
}

.form-message.success {
    border: 1px solid #8cc486;

    background: #edffe9;

    color: #247327;
}


/* ==================================================
   USUÁRIOS CADASTRADOS
   ================================================== */

.registered-users {
    text-align: center;

    color: #666;

    font-size: 12px;
}

.registered-users-number {
    margin: 6px 0;

    color: #258329;

    font-size: 31px;

    font-weight: bold;

    letter-spacing: -1px;

    text-shadow:
        1px 1px white;
}

.registered-users strong {
    color: #357737;
}

.registered-users p {
    margin: 8px 0 0;

    color: #888;

    font-size: 12px;
}


/* ==================================================
   RESPONSIVO — CRIAR CONTA
   ================================================== */

@media (max-width: 800px) {

    .signup-page {
        grid-template-columns: 1fr;
    }

    .create-account-content {
        padding: 16px;
    }

}


/* ==================================================
   BOTÕES DE AMIZADE
   ================================================== */

.friend-accept {
    background: #3aa655;

    color: white;

    border: 1px solid #277a3d;
}

.friend-reject {
    background: #d9534f;

    color: white;

    border: 1px solid #a83b38;
}

.friend-cancel {
    background: #f0c419;

    color: #222;

    border: 1px solid #b89500;
}

.friend-add {
    background: #3aa655;

    color: white;

    border: 1px solid #277a3d;
}


/* ==================================================
   POSTS 2.0
   ================================================== */

.post-media-section {
    margin-top: 12px;

    padding: 10px;

    border: 1px solid #d5d5d5;

    border-radius: 4px;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #f4fff1
        );
}

.post-media-section strong {
    display: block;

    margin-bottom: 6px;

    color: #287c2c;

    font-size: 12px;
}

.post-media-section input[type="url"] {
    width: 100%;

    height: 32px;

    padding: 6px 8px;

    border: 1px solid #aaa;

    border-radius: 3px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;

    background: white;

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.1);
}

.post-media-section input[type="file"] {
    width: 100%;

    margin-top: 5px;

    font-size: 12px;
}

.media-or {
    display: block;

    margin: 5px 0;

    text-align: center;

    color: #999;

    font-size: 11px;

    font-style: italic;
}


/* ==================================================
   FERRAMENTAS DO POST
   ================================================== */

.post-tools {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 10px;
}

.post-tools .signup-button {
    width: auto;

    display: inline-block;

    cursor: pointer;

    padding: 7px 12px;
}


/* ==================================================
   SELETOR DE EMOJIS
   ================================================== */

.emoji-picker {
    position: relative;

    display: inline-block;

    z-index: 10000;

    overflow: visible;
}

.emoji-menu {
    position: absolute;

    left: 0;

    bottom: 100%;

    top: auto;

    z-index: 9999;

    width: 280px;

    max-height: 190px;

    margin-bottom: 4px;

    padding: 7px;

    overflow-y: auto;

    background: white;

    border: 1px solid #999;

    border-radius: 4px;

    box-shadow:
        2px 2px 5px rgba(0,0,0,0.25);
}

.emoji-option {
    width: 36px;

    height: 36px;

    padding: 0;

    border: 1px solid transparent;

    background: transparent;

    font-size: 21px;

    cursor: pointer;

    border-radius: 3px;
}

.emoji-option:hover {
    background: #e9f8e6;

    border-color: #9acb94;
}


/* ==================================================
   POSTS
   ================================================== */

.post {
    padding: 12px;

    background: white;

    border-bottom: 1px solid #d9d9d9;
}

.post:last-child {
    border-bottom: none;
}

.post-header {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 9px;
}

.post-avatar {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #aaa;

    background:
        linear-gradient(
            135deg,
            #dcefd7,
            #a8d69e
        );

    font-size: 22px;
}

.post-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.post-header strong {
    color: #287c2c;

    font-size: 13px;
}

.post-username {
    display: block;

    margin-top: 2px;

    color: #888;

    font-size: 11px;
}

.post-content {
    margin: 8px 0;

    color: #333;

    font-size: 13px;

    line-height: 1.5;
}

.post-content p {
    margin: 0 0 8px;
}


/* ==================================================
   IMAGENS DOS POSTS
   ================================================== */

.post-image {
    display: block;

    max-width: 100%;

    max-height: 600px;

    margin: 8px auto;

    border: 1px solid #bbb;

    background: #f5f5f5;

    object-fit: contain;
}


/* ==================================================
   DATA
   ================================================== */

.post-date {
    margin-top: 5px;

    color: #999;

    font-size: 10px;
}


/* ==================================================
   BOTÕES DO POST
   ================================================== */

.post-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 9px;

    padding-top: 7px;

    border-top: 1px dotted #ccc;
}

.post-actions button {
    padding: 5px 8px;

    border: 1px solid #c5c5c5;

    border-radius: 3px;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #eeeeee
        );

    color: #555;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    cursor: pointer;
}

.post-actions button:hover {
    background:
        linear-gradient(
            to bottom,
            #f4fff1,
            #dff4d9
        );

    border-color: #8dbd87;

    color: #287c2c;
}

.post-actions button:active {
    transform: translateY(1px);
}


/* ==================================================
   COMENTÁRIOS
   ================================================== */

.comments {
    margin-top: 8px;

    padding: 8px;

    border-top: 1px solid #ddd;

    background: #f7f7f7;

    font-size: 12px;
}

.comment {
    padding: 7px;

    margin-bottom: 5px;

    border: 1px solid #ddd;

    border-radius: 3px;

    background: white;
}

.comment:last-of-type {
    margin-bottom: 8px;
}

.comment strong {
    margin-right: 5px;

    color: #287c2c;
}

.comment span {
    color: #444;
}

.comment small {
    display: block;

    margin-top: 3px;

    color: #999;

    font-size: 10px;
}


/* ==================================================
   FORMULÁRIO DE COMENTÁRIO
   ================================================== */

.comment-form {
    display: flex;

    gap: 5px;

    margin-top: 8px;
}

.comment-form input {
    flex: 1;

    min-width: 0;

    height: 30px;

    padding: 5px 7px;

    border: 1px solid #aaa;

    border-radius: 3px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;

    background: white;
}

.comment-form button {
    height: 30px;

    padding: 0 9px;

    border: 1px solid #176b1b;

    border-radius: 3px;

    background:
        linear-gradient(
            to bottom,
            #72cf67,
            #299c30
        );

    color: white;

    font-size: 11px;

    font-weight: bold;

    cursor: pointer;

    text-shadow:
        1px 1px #176b1b;
}

.comment-form button:hover {
    background:
        linear-gradient(
            to bottom,
            #82da76,
            #35a83b
        );
}


/* ==================================================
   ÁREA DE CARREGAMENTO
   ================================================== */

.posts-loading {
    padding: 18px;

    text-align: center;

    color: #999;

    font-size: 12px;
}


/* ==================================================
   RESPONSIVO — POSTS
   ================================================== */

@media (max-width: 800px) {

    .post-media-section {
        padding: 8px;
    }

    .post-tools {
        flex-wrap: wrap;
    }

    .emoji-menu {
        width: 250px;
    }

    .comment-form {
        flex-direction: column;
    }

    .comment-form button {
        width: 100%;
    }

}


/* ==================================================
   CONFIGURAÇÕES
   ================================================== */

.settings-page {
    width: 960px;

    max-width: calc(100% - 20px);

    margin: 0 auto 30px;
}

.settings-header {
    padding: 18px;

    margin-bottom: 10px;

    background:
        linear-gradient(
            to bottom,
            #f4fff0,
            #ffffff
        );

    border: 1px solid #a8d29f;

    border-radius: 5px;
}

.settings-header h1 {
    margin: 0;

    color: #277a29;

    font-size: 22px;
}

.settings-header p {
    margin: 6px 0 0;

    color: #777;

    font-size: 12px;
}

.settings-section {
    margin-bottom: 10px;

    background: white;

    border: 1px solid #b7b7b7;

    border-radius: 5px;

    overflow: hidden;

    box-shadow:
        0 1px 3px rgba(0,0,0,0.15);
}

.settings-section-title {
    padding: 9px 11px;

    background:
        linear-gradient(
            to bottom,
            #edfbe9,
            #c8eec1
        );

    border-bottom: 1px solid #a9d6a2;

    color: #246c24;

    font-size: 14px;

    font-weight: bold;

    text-shadow:
        1px 1px white;
}

.settings-section-content {
    padding: 16px;
}

.danger-section {
    border-color: #d49a9a;
}

.danger-section .settings-section-title {
    background:
        linear-gradient(
            to bottom,
            #fff0f0,
            #ffdede
        );

    border-bottom-color: #d9aaaa;

    color: #a32626;
}


/* ==================================================
   CORREÇÃO DO LAYOUT DE CRIAR CONTA
   ================================================== */

.page:has(.create-account-box) {
    grid-template-columns:
        1fr
        220px;

    gap: 10px;
}

.page:has(.create-account-box) > .column:first-child {
    min-width: 0;
}

.page:has(.create-account-box) > .column:last-child {
    min-width: 0;
}

.page:has(.create-account-box) .create-account-box {
    width: 100%;
}

.page:has(.create-account-box) > .column:last-child .box {
    width: 100%;
}

@media (max-width: 800px) {

    .page:has(.create-account-box) {
        grid-template-columns: 1fr;
    }

}


/* ==================================================
   BOTÕES DE AÇÃO DAS COMUNIDADES
   ================================================== */

.community-danger-button {
    display: inline-block;

    width: auto;

    padding: 7px 12px;

    border: 1px solid #9e2020;

    border-radius: 4px;

    background:
        linear-gradient(
            to bottom,
            #f56b6b,
            #c52d2d
        );

    color: white;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;

    font-weight: bold;

    text-align: center;

    text-decoration: none;

    cursor: pointer;

    text-shadow:
        1px 1px #8b1b1b;

    box-shadow:
        inset 0 1px rgba(255,255,255,0.5),
        0 1px 2px rgba(0,0,0,0.2);
}

.community-danger-button:hover {
    background:
        linear-gradient(
            to bottom,
            #ff7d7d,
            #d63838
        );

    color: white;

    text-decoration: none;
}

.community-danger-button:active {
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.25);

    transform: translateY(1px);
}

.community-danger-button:disabled {
    opacity: 0.6;

    cursor: default;
}

/* =========================================================
   NOSTAL™ — TEMAS GLOBAIS
   O tema classic mantém o visual original do site.
   Os demais temas são aplicados por theme.js via data-theme.
   ========================================================= */

/* FRUTIGER AERO — vidro, natureza e gradientes */
body[data-theme="frutiger-aero"] {
    background:
        radial-gradient(ellipse at 12% 8%, rgba(255,255,255,.95), transparent 30%),
        radial-gradient(ellipse at 88% 18%, rgba(117,224,255,.38), transparent 34%),
        linear-gradient(135deg, #c9f4d2 0%, #d8f5ff 48%, #e8ffe5 100%);
    color: #174d50;
}
body[data-theme="frutiger-aero"] a { color: #087e9b; }
body[data-theme="frutiger-aero"] .top-strip {
    background: linear-gradient(90deg, #00a7b8, #8de56d, #f8ffb5, #4bc8ed, #00a7b8);
}
body[data-theme="frutiger-aero"] .header {
    background: linear-gradient(180deg, rgba(127,226,255,.96), rgba(30,166,191,.94) 48%, rgba(20,124,153,.98));
    border-bottom-color: #087b94;
    box-shadow: 0 3px 12px rgba(0,86,111,.3), inset 0 1px rgba(255,255,255,.9);
}
body[data-theme="frutiger-aero"] .tagline { color: #f3ffff; text-shadow: 1px 1px #167b8d; }
body[data-theme="frutiger-aero"] .ticker {
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(220,255,225,.86));
    border-color: #8dd5c4; color: #32656a; border-radius: 9px;
}
body[data-theme="frutiger-aero"] .box,
body[data-theme="frutiger-aero"] .settings-section,
body[data-theme="frutiger-aero"] .settings-header {
    background: rgba(255,255,255,.78);
    border-color: rgba(104,190,195,.75);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(22,112,127,.13), inset 0 1px rgba(255,255,255,.98);
    backdrop-filter: blur(8px);
}
body[data-theme="frutiger-aero"] .box-title,
body[data-theme="frutiger-aero"] .settings-section-title {
    background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(157,235,225,.9) 48%, rgba(125,216,174,.94));
    border-bottom-color: #7ccbbd; color: #17666c; text-shadow: 0 1px #fff;
}
body[data-theme="frutiger-aero"] .login-content { background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(224,255,238,.92)); }
body[data-theme="frutiger-aero"] .login-title,
body[data-theme="frutiger-aero"] .login-button,
body[data-theme="frutiger-aero"] .signup-button,
body[data-theme="frutiger-aero"] .post-actions button {
    background: linear-gradient(180deg, #a6f4ff, #43c4d7 48%, #168da8);
    border-color: #16859b; color: #fff; text-shadow: 0 1px #176b7d;
    box-shadow: inset 0 1px rgba(255,255,255,.85), 0 2px 4px rgba(0,87,105,.18);
}
body[data-theme="frutiger-aero"] input,
body[data-theme="frutiger-aero"] textarea,
body[data-theme="frutiger-aero"] select {
    background: rgba(255,255,255,.92); color: #174d50; border-color: #8dcfc9;
}
body[data-theme="frutiger-aero"] .post { background: rgba(255,255,255,.72); border-color: #b0dfd9; border-radius: 9px; }
body[data-theme="frutiger-aero"] .settings-header h1,
body[data-theme="frutiger-aero"] .welcome h1 { color: #087e91; }
body[data-theme="frutiger-aero"] .footer { background: rgba(205,246,239,.82); color: #285c60; border-color: #8dcfc9; }

/* DARK — modo escuro */
body[data-theme="dark"] {
    background: linear-gradient(180deg, #171b22 0, #202631 240px, #15191f 100%);
    color: #e4e8ef;
}
body[data-theme="dark"] a { color: #80d9a0; }
body[data-theme="dark"] .top-strip { background: linear-gradient(90deg, #162f25, #2c8b55, #83d99b, #2c8b55, #162f25); }
body[data-theme="dark"] .header {
    background: linear-gradient(180deg, #354b42, #263a32 55%, #1c2a25);
    border-bottom-color: #101a16; box-shadow: 0 2px 8px rgba(0,0,0,.6);
}
body[data-theme="dark"] .tagline { color: #d5f5df; text-shadow: 1px 1px #15271d; }
body[data-theme="dark"] .ticker { background: #30313a; border-color: #515563; color: #e4e8ef; box-shadow: inset 0 1px rgba(255,255,255,.06); }
body[data-theme="dark"] .box,
body[data-theme="dark"] .settings-section,
body[data-theme="dark"] .settings-header,
body[data-theme="dark"] .post,
body[data-theme="dark"] .login-content,
body[data-theme="dark"] .create-account-content,
body[data-theme="dark"] .signup-main {
    background: #252b35; color: #e4e8ef; border-color: #444d5a;
    box-shadow: 0 2px 6px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.025);
}
body[data-theme="dark"] .box-title,
body[data-theme="dark"] .settings-section-title {
    background: linear-gradient(180deg, #39483f, #2b3931); border-bottom-color: #4b6857;
    color: #b6efc6; text-shadow: none;
}
body[data-theme="dark"] .login-title,
body[data-theme="dark"] .login-button,
body[data-theme="dark"] .signup-button,
body[data-theme="dark"] .post-actions button {
    background: linear-gradient(180deg, #4e9d6b, #286744); border-color: #1b5735; color: #fff; text-shadow: none;
}
body[data-theme="dark"] label,
body[data-theme="dark"] .remember,
body[data-theme="dark"] .welcome p,
body[data-theme="dark"] .settings-header p,
body[data-theme="dark"] .settings-header h1,
body[data-theme="dark"] .settings-section-content,
body[data-theme="dark"] .box-content,
body[data-theme="dark"] .post-content,
body[data-theme="dark"] .post-date,
body[data-theme="dark"] .comment,
body[data-theme="dark"] .field-help { color: #d2d8e2; }
body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] select {
    background: #191e26; color: #edf2f8; border-color: #596473; box-shadow: inset 0 1px 3px rgba(0,0,0,.45);
}
body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder { color: #a2adbc; }
body[data-theme="dark"] input:focus,
body[data-theme="dark"] textarea:focus,
body[data-theme="dark"] select:focus { border-color: #79cf98; box-shadow: 0 0 5px rgba(121,207,152,.35); }
body[data-theme="dark"] .user-item,
body[data-theme="dark"] .community-item,
body[data-theme="dark"] .comment,
body[data-theme="dark"] .post { border-color: #414a57; }
body[data-theme="dark"] .footer,
body[data-theme="dark"] .footer-secondary { background: #202630; color: #c9d2df; border-color: #414a57; }
body[data-theme="dark"] .danger-section .settings-section-title { background: linear-gradient(180deg, #5a3034, #422428); border-bottom-color: #75464a; color: #ffb9b9; }

/* RAINBOW — tema colorido e vibrante */
body[data-theme="rainbow"] {
    background: linear-gradient(135deg, #fff0f8 0%, #fff8d8 24%, #e6fff4 50%, #e4f4ff 74%, #f2e8ff 100%);
    color: #39304d;
}
body[data-theme="rainbow"] a { color: #7437b5; }
body[data-theme="rainbow"] .top-strip { background: linear-gradient(90deg, #ff4f91, #ff9f43, #ffe34d, #4edb8a, #40b9ff, #9a68ff, #ff4f91); }
body[data-theme="rainbow"] .header {
    background: linear-gradient(110deg, #ff659c 0%, #ffae54 24%, #f4d94d 43%, #55d99a 63%, #50bdf4 82%, #9a7af5 100%);
    border-bottom-color: #c36ac0; box-shadow: 0 2px 7px rgba(106,57,139,.25);
}
body[data-theme="rainbow"] .tagline { color: #fff; text-shadow: 1px 1px rgba(98,42,116,.7); }
body[data-theme="rainbow"] .ticker { background: #fff9d9; border-color: #f0b95a; color: #7c4c86; }
body[data-theme="rainbow"] .box,
body[data-theme="rainbow"] .settings-section,
body[data-theme="rainbow"] .settings-header,
body[data-theme="rainbow"] .post {
    background: rgba(255,255,255,.91); border-color: #d4a9e8; border-radius: 7px;
    box-shadow: 0 2px 6px rgba(111,72,153,.14), inset 0 1px #fff;
}
body[data-theme="rainbow"] .box-title,
body[data-theme="rainbow"] .settings-section-title {
    background: linear-gradient(100deg, #ffd8e8, #fff0bd 36%, #d5f8df 68%, #d9eaff);
    border-bottom-color: #d6b2e8; color: #673a91; text-shadow: 0 1px #fff;
}
body[data-theme="rainbow"] .login-title { background: linear-gradient(100deg, #f65c9a, #ffad56, #9a70ec); color: #fff; }
body[data-theme="rainbow"] .login-button,
body[data-theme="rainbow"] .signup-button,
body[data-theme="rainbow"] .post-actions button {
    background: linear-gradient(100deg, #f65c9a, #ff9f59 50%, #8d72e9); border-color: #bd69b5; color: #fff; text-shadow: 0 1px rgba(91,42,119,.5);
}
body[data-theme="rainbow"] input,
body[data-theme="rainbow"] textarea,
body[data-theme="rainbow"] select { background: #fff; color: #39304d; border-color: #c8a3e2; }
body[data-theme="rainbow"] input:focus,
body[data-theme="rainbow"] textarea:focus,
body[data-theme="rainbow"] select:focus { border-color: #9b66df; box-shadow: 0 0 5px rgba(155,102,223,.32); }
body[data-theme="rainbow"] .welcome h1,
body[data-theme="rainbow"] .settings-header h1 { color: #a13c9d; }
body[data-theme="rainbow"] .footer,
body[data-theme="rainbow"] .footer-secondary { background: linear-gradient(90deg, #ffe1ed, #fff2d3, #ddf9e6, #ddecff); color: #593e71; border-color: #d4a9e8; }

/* Transições discretas ao trocar de tema */
body[data-theme="frutiger-aero"],
body[data-theme="dark"],
body[data-theme="rainbow"],
body[data-theme="frutiger-aero"] .box,
body[data-theme="dark"] .box,
body[data-theme="rainbow"] .box,
body[data-theme="frutiger-aero"] .header,
body[data-theme="dark"] .header,
body[data-theme="rainbow"] .header {
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}


/* =========================================================
   NOSTAL™ — AJUSTES COMPLEMENTARES DE TEMAS E BOTÕES
   ========================================================= */

/* Molduras dos avatares: mesmo quadrado no perfil e configurações */
.profile-avatar,
.avatar-preview {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    flex: 0 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #8eb783;
    border-radius: 4px;
    background: linear-gradient(135deg, #e5f5df, #b6dca9);
    box-shadow: inset 0 0 0 4px #fff;
    font-size: 40px;
}

.profile-avatar img,
.avatar-preview img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tema escuro: listas e cartões de usuários, amigos e comunidades */
body[data-theme="dark"] .user-item,
body[data-theme="dark"] .community-item,
body[data-theme="dark"] #friendsList,
body[data-theme="dark"] .users-list,
body[data-theme="dark"] .communities-list,
body[data-theme="dark"] .community-members-list,
body[data-theme="dark"] .user-empty,
body[data-theme="dark"] #friendsList .user-item {
    background: #252b35;
    color: #e4e8ef;
    border-color: #414a57;
}

body[data-theme="dark"] .user-item:hover,
body[data-theme="dark"] #friendsList .user-item:hover,
body[data-theme="dark"] .community-item:hover {
    background: #303946;
}

body[data-theme="dark"] .user-item-info a,
body[data-theme="dark"] .user-item-info a:hover,
body[data-theme="dark"] .community-item a {
    color: #9be8b1;
}

body[data-theme="dark"] .user-item-info p,
body[data-theme="dark"] .user-empty {
    color: #b9c3d0;
}

body[data-theme="dark"] .profile-avatar,
body[data-theme="dark"] .avatar-preview {
    background: linear-gradient(135deg, #303b35, #1c2822);
    border-color: #647a69;
    box-shadow: inset 0 0 0 4px #252b35;
}

/* Rainbow: botões com o espectro completo */
body[data-theme="rainbow"] .login-button,
body[data-theme="rainbow"] .signup-button,
body[data-theme="rainbow"] .post-actions button {
    background: linear-gradient(100deg,
        #ff3d6e 0%,
        #ff8a35 17%,
        #ffe34d 34%,
        #55d96b 51%,
        #36c8e8 68%,
        #4778ff 83%,
        #a84dff 100%);
    border-color: #a45ac7;
    color: #fff;
    text-shadow: 1px 1px rgba(64, 35, 95, .65);
}

body[data-theme="rainbow"] .login-button:hover,
body[data-theme="rainbow"] .signup-button:hover,
body[data-theme="rainbow"] .post-actions button:hover {
    filter: saturate(1.15) brightness(1.06);
}

/* Ações perigosas: formato de botão de publicar, mantendo o vermelho */
.community-danger-button,
.community-report-button,
.delete-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    min-height: 36px;
    width: auto;
    max-width: 100%;
    padding: 8px 14px;
    border: 1px solid #a51f28;
    border-radius: 4px;
    background: linear-gradient(to bottom, #ff7777 0%, #e33c43 48%, #b91f2b 100%);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-shadow: 1px 1px #8b1b1b;
    box-shadow: inset 0 1px rgba(255,255,255,.55), 0 1px 2px rgba(0,0,0,.2);
    cursor: pointer;
}

.community-danger-button:hover,
.community-report-button:hover,
.delete-account-button:hover {
    background: linear-gradient(to bottom, #ff8d8d 0%, #ed4b52 48%, #c92531 100%);
    color: #fff;
    text-decoration: none;
}

.community-danger-button:active,
.community-report-button:active,
.delete-account-button:active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,.25);
    transform: translateY(1px);
}

.delete-account-button:focus-visible,
.community-danger-button:focus-visible,
.community-report-button:focus-visible {
    outline: 2px solid #7b1118;
    outline-offset: 2px;
}

body[data-theme="dark"] .community-danger-button,
body[data-theme="dark"] .community-report-button,
body[data-theme="dark"] .delete-account-button {
    border-color: #a51f28;
    color: #fff;
}

/* =========================================================
   NOSTAL™ — AJUSTES VISUAIS SOLICITADOS (24/10/2026)
   ========================================================= */

/* Caixas dos avatares: manter o mesmo enquadramento e adaptar ao tema */
body[data-theme="classic"] .profile-avatar,
body[data-theme="classic"] .avatar-preview {
    background: linear-gradient(135deg, #e5f5df, #b6dca9);
    border-color: #8eb783;
    box-shadow: inset 0 0 0 4px #fff;
}

body[data-theme="frutiger-aero"] .profile-avatar,
body[data-theme="frutiger-aero"] .avatar-preview {
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(107,226,224,.78) 48%, rgba(100,214,156,.9));
    border: 1px solid #63bdc4;
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.78), 0 2px 7px rgba(0,116,145,.2);
}

body[data-theme="dark"] .profile-avatar,
body[data-theme="dark"] .avatar-preview {
    background: linear-gradient(135deg, #303b35, #1c2822);
    border-color: #647a69;
    box-shadow: inset 0 0 0 4px #252b35;
    color: #e4e8ef;
}

body[data-theme="rainbow"] .profile-avatar,
body[data-theme="rainbow"] .avatar-preview {
    background: linear-gradient(135deg, #ffe0ec, #fff0bf 30%, #d9f8df 55%, #d9edff 78%, #eedcff);
    border: 1px solid #b98ad9;
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.9), 0 2px 6px rgba(132,76,168,.2);
}

/* DARK: sobrescrever fundos brancos aplicados diretamente nas listas */
body[data-theme="dark"] .users-list,
body[data-theme="dark"] .communities-list,
body[data-theme="dark"] #friendsList,
body[data-theme="dark"] .community-members-list,
body[data-theme="dark"] .users-list > *,
body[data-theme="dark"] .communities-list > *,
body[data-theme="dark"] #friendsList > *,
body[data-theme="dark"] .community-members-list > *,
body[data-theme="dark"] .user-item,
body[data-theme="dark"] .community-item,
body[data-theme="dark"] #friendsList .user-item,
body[data-theme="dark"] .user-empty {
    background-color: #252b35 !important;
    color: #e4e8ef;
    border-color: #414a57;
}

body[data-theme="dark"] .user-item:hover,
body[data-theme="dark"] .community-item:hover,
body[data-theme="dark"] #friendsList .user-item:hover {
    background-color: #303946 !important;
}

body[data-theme="dark"] .user-item-info,
body[data-theme="dark"] .community-item,
body[data-theme="dark"] .community-item p,
body[data-theme="dark"] #friendsList .user-item-info,
body[data-theme="dark"] #friendsList .user-item-info p {
    color: #d2d8e2;
}

body[data-theme="dark"] .user-item-info a,
body[data-theme="dark"] .community-item a,
body[data-theme="dark"] #friendsList .user-item-info a {
    color: #9be8b1;
}

/* RAINBOW: espectro completo em todos os botões de ação comuns */
body[data-theme="rainbow"] button.login-button,
body[data-theme="rainbow"] button.signup-button,
body[data-theme="rainbow"] .login-button,
body[data-theme="rainbow"] .signup-button,
body[data-theme="rainbow"] .post-actions button {
    background: linear-gradient(90deg,
        #ff3d6e 0%,
        #ff8a35 16.6%,
        #ffe34d 33.2%,
        #55d96b 49.8%,
        #36c8e8 66.4%,
        #4778ff 83%,
        #a84dff 100%);
    border: 1px solid #a45ac7;
    color: #fff;
    text-shadow: 1px 1px rgba(64,35,95,.65);
}

body[data-theme="rainbow"] button.login-button:hover,
body[data-theme="rainbow"] button.signup-button:hover,
body[data-theme="rainbow"] .login-button:hover,
body[data-theme="rainbow"] .signup-button:hover,
body[data-theme="rainbow"] .post-actions button:hover {
    filter: saturate(1.2) brightness(1.06);
}

/* Botões de denúncia/exclusão: formato semelhante a PUBLICAR, em vermelho */
.community-danger-button,
.community-report-button,
.delete-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #9e2020;
    border-radius: 4px;
    background: linear-gradient(to bottom, #ff8585 0%, #e34848 52%, #bd2929 100%);
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-shadow: 1px 1px #8b1b1b;
    box-shadow: inset 0 1px rgba(255,255,255,.55), 0 1px 2px rgba(0,0,0,.2);
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}

.community-danger-button:hover,
.community-report-button:hover,
.delete-account-button:hover {
    background: linear-gradient(to bottom, #ff9a9a 0%, #f05252 52%, #cf3030 100%);
    color: #fff !important;
    text-decoration: none;
    filter: saturate(1.08);
}

.community-danger-button:active,
.community-report-button:active,
.delete-account-button:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,.25);
}

body[data-theme="dark"] .community-danger-button,
body[data-theme="dark"] .community-report-button,
body[data-theme="dark"] .delete-account-button {
    background: linear-gradient(to bottom, #ff8585 0%, #e34848 52%, #bd2929 100%);
    border-color: #a51f28;
    color: #fff !important;
}



/* =========================================================
   NOSTAL™ — AJUSTES VISUAIS COMPLEMENTARES
   ========================================================= */

/* MENU DE MÍDIA, COMENTÁRIOS E LINKS DENTRO DAS CAIXAS — DARK */
body[data-theme="dark"] .post-media-menu,
body[data-theme="dark"] .post-media-section,
body[data-theme="dark"] .comment-form,
body[data-theme="dark"] .comment-box,
body[data-theme="dark"] .emoji-picker,
body[data-theme="dark"] .emoji-menu,
body[data-theme="dark"] .menu,
body[data-theme="dark"] .box-content,
body[data-theme="dark"] .box .menu a,
body[data-theme="dark"] .box-title + .menu a {
    background-color: #252b35;
    color: #e4e8ef;
    border-color: #414a57;
}

body[data-theme="dark"] .menu a,
body[data-theme="dark"] .box-content a,
body[data-theme="dark"] .box p a,
body[data-theme="dark"] .recent-posts a {
    color: #a7edbd;
    transition: background-color .15s ease, color .15s ease;
}

body[data-theme="dark"] .menu a:hover,
body[data-theme="dark"] .box-content a:hover,
body[data-theme="dark"] .box p a:hover,
body[data-theme="dark"] .recent-posts a:hover,
body[data-theme="dark"] .header-links a:hover {
    background-color: #3a4655;
    color: #ffffff;
    text-decoration: underline;
}

body[data-theme="dark"] .post-media-menu *,
body[data-theme="dark"] .post-media-section *,
body[data-theme="dark"] .comment-form *,
body[data-theme="dark"] .emoji-picker *,
body[data-theme="dark"] .emoji-menu * {
    color: inherit;
}

body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] select {
    background-color: #1c222b;
    color: #edf1f7;
    border-color: #4b5665;
}

/* BOTÃO DE SAIR DA COMUNIDADE — AMARELO, NO MESMO FORMATO DOS BOTÕES */
.community-leave-button,
.leave-community-button,
#leaveCommunityBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #b58a16;
    border-radius: 4px;
    background: linear-gradient(to bottom, #fff18a 0%, #ffd84d 52%, #e8b928 100%);
    color: #4b3900 !important;
    font: bold 12px Arial, Helvetica, sans-serif;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-shadow: 1px 1px rgba(255,255,255,.45);
    box-shadow: inset 0 1px rgba(255,255,255,.65), 0 1px 2px rgba(0,0,0,.2);
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease;
}
.community-leave-button:hover,
.leave-community-button:hover,
#leaveCommunityBtn:hover {
    background: linear-gradient(to bottom, #fff6a8, #ffdf63 52%, #f0c332);
    color: #352800 !important;
    filter: saturate(1.08);
}
.community-leave-button:active,
.leave-community-button:active,
#leaveCommunityBtn:active {
    transform: translateY(1px);
}

/* PERFIL — estrutura inspirada na organização da captura, com identidade Nostal */
.profile-cover {
    min-height: 12px;
    background: linear-gradient(135deg, #dff3d8, #b9e3a8);
    border-bottom: 1px solid #9bc98d;
    overflow: hidden;
}
.profile-cover-placeholder {
    padding: 4px 12px;
    color: #356c2d;
    font-size: 11px;
}
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
}
.profile-avatar {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    min-width: 100px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #b8d6ae;
    border-radius: 9px;
    background: linear-gradient(135deg, #e5f5df, #b6dca9);
    color: #277a29;
}
.profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-information {
    flex: 1;
    min-width: 0;
    padding-top: 0;
}
.profile-information h1 {
    margin: 0 0 5px;
    color: #277a29;
    font-size: 25px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.profile-username {
    margin: 0 0 8px;
    color: #54834c;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.profile-status-divider {
    height: 1px;
    margin: 8px 0;
    background: #d9e8d4;
}
.profile-status {
    color: #3f5e3a;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.profile-header + .profile-information,
.profile-header .profile-information {
    min-width: 0;
}
body[data-theme="dark"] .profile-cover {
    background: linear-gradient(135deg, #263a2d, #1e2a23);
    border-color: #405748;
}
body[data-theme="dark"] .profile-cover-placeholder {
    color: #b5edc1;
}
body[data-theme="dark"] .profile-header {
    background: #252b35;
}
body[data-theme="dark"] .profile-information h1 {
    color: #a7edbd;
}
body[data-theme="dark"] .profile-username,
body[data-theme="dark"] .profile-status {
    color: #d2d8e2;
}
body[data-theme="dark"] .profile-status-divider {
    background: #414a57;
}
body[data-theme="frutiger-aero"] .profile-header {
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(207,250,235,.9));
}
body[data-theme="rainbow"] .profile-header {
    background: linear-gradient(135deg, #fff1f7, #fff8d9 35%, #e5ffe8 65%, #e5efff);
}
body[data-theme="rainbow"] .profile-information h1 {
    color: #8a3bc1;
}
@media (max-width: 560px) {
    .profile-header {
        gap: 12px;
        padding: 14px;
    }
    .profile-avatar {
        flex-basis: 76px;
        width: 76px;
        height: 76px;
        min-width: 76px;
    }
    .profile-information h1 {
        font-size: 20px;
    }
}


/* =========================================================
   NOSTAL™ — TEMA DARK: CAMPOS, PAINÉIS E UPLOADS
   Correções adicionais para caixas que permaneciam brancas.
   ========================================================= */

body[data-theme="dark"] {
    color-scheme: dark;
}

/* Campos de texto, seletores, uploads e controles nativos */
body[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
body[data-theme="dark"] textarea,
body[data-theme="dark"] select,
body[data-theme="dark"] .form-control,
body[data-theme="dark"] .input-group-text {
    background: #1c222b !important;
    color: #edf1f7 !important;
    border-color: #4b5665 !important;
}
body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
    color: #aab5c4 !important;
    opacity: 1;
}
body[data-theme="dark"] input[type="file"] {
    background: #1c222b !important;
    color: #edf1f7 !important;
    border: 1px solid #4b5665 !important;
}
body[data-theme="dark"] input[type="file"]::file-selector-button {
    background: linear-gradient(#465263, #303947) !important;
    color: #fff !important;
    border: 1px solid #596779 !important;
    margin-right: 8px;
}
body[data-theme="dark"] input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(#465263, #303947) !important;
    color: #fff !important;
    border: 1px solid #596779 !important;
}

/* Painéis de upload de foto/GIF e formulário de comentários */
body[data-theme="dark"] .post-media-menu,
body[data-theme="dark"] .post-media-section,
body[data-theme="dark"] .post-media-menu > div,
body[data-theme="dark"] .post-media-section > div,
body[data-theme="dark"] .comment-form,
body[data-theme="dark"] .comment-box,
body[data-theme="dark"] .comment-form-container,
body[data-theme="dark"] .add-comment,
body[data-theme="dark"] .media-upload,
body[data-theme="dark"] .media-upload-box,
body[data-theme="dark"] .upload-section,
body[data-theme="dark"] .upload-box {
    background: #252b35 !important;
    color: #e4e8ef !important;
    border-color: #414a57 !important;
}
body[data-theme="dark"] .post-media-menu label,
body[data-theme="dark"] .post-media-section label,
body[data-theme="dark"] .comment-form label,
body[data-theme="dark"] .comment-box label,
body[data-theme="dark"] .media-or {
    color: #cbd4df !important;
}

/* Caixas de boas-vindas, termos e outros painéis claros */
body[data-theme="dark"] .welcome-box,
body[data-theme="dark"] .welcome-message,
body[data-theme="dark"] .terms-box,
body[data-theme="dark"] .terms-notice,
body[data-theme="dark"] .privacy-notice,
body[data-theme="dark"] .notice-box,
body[data-theme="dark"] .form-notice,
body[data-theme="dark"] .info-box,
body[data-theme="dark"] .box,
body[data-theme="dark"] .panel,
body[data-theme="dark"] .card {
    background-color: #252b35;
    color: #e4e8ef;
    border-color: #414a57;
}
body[data-theme="dark"] .box h1,
body[data-theme="dark"] .box h2,
body[data-theme="dark"] .box h3,
body[data-theme="dark"] .panel h1,
body[data-theme="dark"] .panel h2,
body[data-theme="dark"] .panel h3,
body[data-theme="dark"] .card h1,
body[data-theme="dark"] .card h2,
body[data-theme="dark"] .card h3 {
    color: #a7edbd;
}
body[data-theme="dark"] label,
body[data-theme="dark"] .form-label,
body[data-theme="dark"] .terms-box a,
body[data-theme="dark"] .terms-notice a {
    color: #dce4ee;
}
body[data-theme="dark"] input[type="checkbox"],
body[data-theme="dark"] input[type="radio"] {
    accent-color: #70d68a;
}

/* Hover dos links dentro de caixas de navegação e painéis */
body[data-theme="dark"] .box a:hover,
body[data-theme="dark"] .panel a:hover,
body[data-theme="dark"] .card a:hover,
body[data-theme="dark"] nav a:hover,
body[data-theme="dark"] .navigation a:hover,
body[data-theme="dark"] .nav-box a:hover {
    background-color: #3a4655 !important;
    color: #ffffff !important;
}

/* Evita fundos brancos herdados em elementos comuns dentro dos painéis */
body[data-theme="dark"] .box input,
body[data-theme="dark"] .box textarea,
body[data-theme="dark"] .box select,
body[data-theme="dark"] .panel input,
body[data-theme="dark"] .panel textarea,
body[data-theme="dark"] .panel select,
body[data-theme="dark"] .card input,
body[data-theme="dark"] .card textarea,
body[data-theme="dark"] .card select {
    background-color: #1c222b !important;
    color: #edf1f7 !important;
    border-color: #4b5665 !important;
}

/* Tema Frutiger Aero: controles translúcidos e azul-esverdeados */
body[data-theme="frutiger-aero"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body[data-theme="frutiger-aero"] textarea,
body[data-theme="frutiger-aero"] select {
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(218,250,239,.92));
    border-color: #9acfc0;
    color: #174d48;
}
body[data-theme="frutiger-aero"] .post-media-menu,
body[data-theme="frutiger-aero"] .post-media-section,
body[data-theme="frutiger-aero"] .welcome-box,
body[data-theme="frutiger-aero"] .terms-box {
    background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(207,250,235,.9));
    border-color: #9acfc0;
}

/* Tema Rainbow: caixas e controles com acentos coloridos */
body[data-theme="rainbow"] input:not([type="checkbox"]):not([type="radio"]),
body[data-theme="rainbow"] textarea,
body[data-theme="rainbow"] select {
    border-color: #c8a3ec;
}
body[data-theme="rainbow"] .post-media-menu,
body[data-theme="rainbow"] .post-media-section,
body[data-theme="rainbow"] .welcome-box,
body[data-theme="rainbow"] .terms-box {
    border-color: #d7a8ef;
}


/* =========================================================
   NOSTAL™ — CORREÇÃO DA LISTA DE AMIGOS
   Uma linha por amigo; foto em moldura + nome sem @username.
   ========================================================= */
#postFriends.friends-list,
#friendsList,
#profileFriends,
.friends-sidebar-list,
.friends-list {
    display: block !important;
    grid-template-columns: none !important;
    grid-auto-flow: row !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
#postFriends.friends-list > .user-item,
#friendsList > .user-item,
#profileFriends > .user-item,
.friends-sidebar-list > .user-item,
.friends-list > .user-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 9px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: 0 !important;
    border-bottom: 1px solid #d9e6d5 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    float: none !important;
    overflow: hidden !important;
}
#postFriends.friends-list > .user-item:last-child,
#friendsList > .user-item:last-child,
#profileFriends > .user-item:last-child,
.friends-sidebar-list > .user-item:last-child,
.friends-list > .user-item:last-child { border-bottom: 0 !important; }

#postFriends.friends-list .user-avatar,
#postFriends.friends-list .user-avatar-placeholder,
#friendsList .user-avatar,
#friendsList .user-avatar-placeholder,
#profileFriends .user-avatar,
#profileFriends .user-avatar-placeholder,
.friends-sidebar-list .user-avatar,
.friends-sidebar-list .user-avatar-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border: 1px solid #8eb783 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    object-fit: cover !important;
    background: linear-gradient(135deg, #e5f5df, #b6dca9) !important;
    box-shadow: inset 0 0 0 2px #fff !important;
    font-size: 17px !important;
}
#postFriends.friends-list .user-avatar,
#friendsList .user-avatar,
#profileFriends .user-avatar,
.friends-sidebar-list .user-avatar { display: block !important; object-fit: cover !important; }

#postFriends.friends-list .user-item-info,
#friendsList .user-item-info,
#profileFriends .user-item-info,
.friends-sidebar-list .user-item-info {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
#postFriends.friends-list .user-item-info a,
#friendsList .user-item-info a,
#profileFriends .user-item-info a,
.friends-sidebar-list .user-item-info a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #287c2c !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-decoration: none !important;
}
#postFriends.friends-list .user-item-info a:hover,
#friendsList .user-item-info a:hover,
#profileFriends .user-item-info a:hover,
.friends-sidebar-list .user-item-info a:hover {
    color: #176b18 !important;
    text-decoration: underline !important;
}
#postFriends.friends-list .user-item-info p,
#friendsList .user-item-info p,
#profileFriends .user-item-info p,
.friends-sidebar-list .user-item-info p { display: none !important; }

#postFriends.friends-list > .user-item:hover,
#friendsList > .user-item:hover,
#profileFriends > .user-item:hover,
.friends-sidebar-list > .user-item:hover { background: #edf9e9 !important; }

/* Dark: verde claro somente nos links deste tema. */
body[data-theme="dark"] #postFriends.friends-list > .user-item,
body[data-theme="dark"] #friendsList > .user-item,
body[data-theme="dark"] #profileFriends > .user-item,
body[data-theme="dark"] .friends-sidebar-list > .user-item {
    background: #252b35 !important;
    border-bottom-color: #414a57 !important;
    color: #e4e8ef !important;
}
body[data-theme="dark"] #postFriends.friends-list > .user-item:hover,
body[data-theme="dark"] #friendsList > .user-item:hover,
body[data-theme="dark"] #profileFriends > .user-item:hover,
body[data-theme="dark"] .friends-sidebar-list > .user-item:hover { background: #303946 !important; }

body[data-theme="dark"] #postFriends.friends-list .user-avatar,
body[data-theme="dark"] #postFriends.friends-list .user-avatar-placeholder,
body[data-theme="dark"] #friendsList .user-avatar,
body[data-theme="dark"] #friendsList .user-avatar-placeholder,
body[data-theme="dark"] #profileFriends .user-avatar,
body[data-theme="dark"] #profileFriends .user-avatar-placeholder,
body[data-theme="dark"] .friends-sidebar-list .user-avatar,
body[data-theme="dark"] .friends-sidebar-list .user-avatar-placeholder {
    background: linear-gradient(135deg, #303b35, #1c2822) !important;
    border-color: #647a69 !important;
    box-shadow: inset 0 0 0 2px #252b35 !important;
    color: #e4e8ef !important;
}
body[data-theme="dark"] #postFriends.friends-list .user-item-info a,
body[data-theme="dark"] #friendsList .user-item-info a,
body[data-theme="dark"] #profileFriends .user-item-info a,
body[data-theme="dark"] .friends-sidebar-list .user-item-info a { color: #a5e9b4 !important; }
body[data-theme="dark"] #postFriends.friends-list .user-item-info a:hover,
body[data-theme="dark"] #friendsList .user-item-info a:hover,
body[data-theme="dark"] #profileFriends .user-item-info a:hover,
body[data-theme="dark"] .friends-sidebar-list .user-item-info a:hover { color: #d0ffda !important; }

/* Frutiger Aero: mantém as molduras, com acabamento translúcido. */
body[data-theme="frutiger-aero"] #postFriends.friends-list .user-avatar,
body[data-theme="frutiger-aero"] #postFriends.friends-list .user-avatar-placeholder,
body[data-theme="frutiger-aero"] #friendsList .user-avatar,
body[data-theme="frutiger-aero"] #friendsList .user-avatar-placeholder,
body[data-theme="frutiger-aero"] #profileFriends .user-avatar,
body[data-theme="frutiger-aero"] #profileFriends .user-avatar-placeholder,
body[data-theme="frutiger-aero"] .friends-sidebar-list .user-avatar,
body[data-theme="frutiger-aero"] .friends-sidebar-list .user-avatar-placeholder {
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(107,226,224,.78) 48%, rgba(100,214,156,.9)) !important;
    border-color: #63bdc4 !important;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.8), 0 1px 4px rgba(0,116,145,.18) !important;
}
/* Rainbow: molduras coloridas, sem transformar os amigos em cartões. */
body[data-theme="rainbow"] #postFriends.friends-list .user-avatar,
body[data-theme="rainbow"] #postFriends.friends-list .user-avatar-placeholder,
body[data-theme="rainbow"] #friendsList .user-avatar,
body[data-theme="rainbow"] #friendsList .user-avatar-placeholder,
body[data-theme="rainbow"] #profileFriends .user-avatar,
body[data-theme="rainbow"] #profileFriends .user-avatar-placeholder,
body[data-theme="rainbow"] .friends-sidebar-list .user-avatar,
body[data-theme="rainbow"] .friends-sidebar-list .user-avatar-placeholder {
    background: linear-gradient(135deg, #ffe0ec, #fff0bf 30%, #d9f8df 55%, #d9edff 78%, #eedcff) !important;
    border-color: #b98ad9 !important;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), 0 1px 4px rgba(132,76,168,.18) !important;
}


/* Nostal™ — Lista vertical de amigos no perfil */
.profile-friends-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.profile-friends-list .profile-friend-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.profile-friends-list .user-avatar,
.profile-friends-list .user-avatar-placeholder {
    width: 36px;
    height: 36px;
    min-width: 36px;
    box-sizing: border-box;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-friends-list .user-item-info {
    min-width: 0;
    flex: 1;
}

.profile-friends-list .user-item-info a {
    overflow-wrap: anywhere;
}


/* Nostal™ — Correção do espaçamento entre amigos */
.profile-friends-list {
    gap: 0 !important;
    row-gap: 0 !important;
}

.profile-friends-list .profile-friend-item {
    margin: 0 !important;
    min-height: 0;
    padding-top: 6px;
    padding-bottom: 6px;
}


/* Caixa de atualizações scrollable */
.updates-list {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

/* NOSTAL — cargos e ações de comunidades */
.community-role-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 5px;
    padding: 3px 7px;
    border: 1px solid #b7c99e;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.3;
    white-space: nowrap;
}
.community-creator-badge {
    color: #704d00;
    background: linear-gradient(#fff4bd, #ffe18a);
    border-color: #d7b64e;
}
.community-admin-badge {
    color: #205b83;
    background: linear-gradient(#e5f4ff, #c8e5fa);
    border-color: #9bc9e7;
}
.community-action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.community-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    box-sizing: border-box;
    padding: 7px 12px;
    border: 1px solid #397d35;
    border-radius: 4px;
    background: linear-gradient(to bottom, #e9ffe1, #a9dc99);
    color: #174d18 !important;
    font: bold 12px Arial, Helvetica, sans-serif;
    text-decoration: none !important;
    box-shadow: inset 0 1px rgba(255,255,255,.8), 0 1px 2px rgba(0,0,0,.15);
}
.community-edit-button:hover {
    background: linear-gradient(to bottom, #f4fff0, #bce9ad);
    filter: saturate(1.08);
}
.community-admin-item {
    align-items: center;
}
.community-admin-item .community-demote-button {
    flex: 0 0 auto;
    max-width: 120px;
    padding: 6px 8px;
    font-size: 10px;
}
body[data-theme="dark"] .community-creator-badge {
    color: #ffe59a; background: #51421c; border-color: #8b7130;
}
body[data-theme="dark"] .community-admin-badge {
    color: #b8e2ff; background: #203e53; border-color: #376987;
}
body[data-theme="dark"] .community-edit-button {
    color: #d8ffd0 !important; background: linear-gradient(#315b35, #24472a); border-color: #56845a;
}
@media (max-width: 600px) {
    .community-admin-item { flex-wrap: wrap; }
    .community-admin-item .community-demote-button { margin-left: 56px; }
}
.community-demote-button {
    border: 1px solid #a52a2a;
    border-radius: 3px;
    padding: 6px 9px;
    background: linear-gradient(#ffdddd, #e99a9a);
    color: #721515;
    font: bold 10px Arial, Helvetica, sans-serif;
    cursor: pointer;
}
.community-demote-button:hover {
    background: linear-gradient(#ffeaea, #f2aaaa);
}
.community-demote-button:disabled {
    opacity: .6;
    cursor: wait;
}
body[data-theme="dark"] .community-demote-button {
    background: linear-gradient(#713737, #542626);
    border-color: #a75a5a;
    color: #ffe0e0;
}


/* ==================================================
   NOSTAL™ ARCADE
   ================================================== */

.arcade-intro {
    margin-bottom: 16px;
}

.arcade-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
    gap: 16px;
    align-items: start;
}

.arcade-games {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.arcade-game-card {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #b7c9d9;
    border-radius: 7px;
    background: linear-gradient(#fff, #eaf3fb);
    color: #24394d;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px #fff;
}

.arcade-game-card:hover,
.arcade-game-card.active {
    border-color: #e28a26;
    background: linear-gradient(#fff8e9, #ffe2b4);
}

.arcade-game-card strong,
.arcade-game-card span {
    display: block;
}

.arcade-game-card strong {
    margin-bottom: 4px;
    font-size: 16px;
}

.arcade-game-card span {
    color: #586b7c;
    font-size: 12px;
}

.arcade-game-card:disabled {
    cursor: not-allowed;
    opacity: .7;
}

.arcade-stage {
    padding: 10px;
    border: 3px ridge #9bb1c5;
    border-radius: 6px;
    background: #172536;
    color: #fff;
    text-align: center;
}

.arcade-stage-title {
    color: #fff0c8;
    font-weight: bold;
}

.arcade-stage canvas {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 8px auto;
    border: 2px inset #7890a5;
    background: #07111d;
    touch-action: none;
}

.arcade-status {
    min-height: 24px;
    color: #e5edf5;
    font-size: 13px;
}

.arcade-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.arcade-controls button,
.arcade-action {
    padding: 8px 14px;
    border: 1px solid #8ba4b9;
    border-radius: 5px;
    background: linear-gradient(#fff, #d9e8f5);
    color: #20384c;
    font-weight: bold;
    cursor: pointer;
}

.arcade-controls button:active,
.arcade-action:active {
    transform: translateY(1px);
    background: #ffd28e;
}

.arcade-dpad {
    display: grid;
    grid-template-columns: repeat(3, 48px);
    grid-template-rows: repeat(2, 42px);
    justify-content: center;
    gap: 5px;
}

.arcade-dpad button {
    padding: 4px;
    font-size: 18px;
}

.arcade-dpad .up { grid-column: 2; }
.arcade-dpad .left { grid-column: 1; grid-row: 2; }
.arcade-dpad .down { grid-column: 2; grid-row: 2; }
.arcade-dpad .right { grid-column: 3; grid-row: 2; }

.arcade-rank-list {
    margin: 0;
    padding-left: 26px;
}

.arcade-rank-list li {
    padding: 6px 2px;
    border-bottom: 1px solid #d8e1e9;
    font-size: 13px;
}

.arcade-rank-list .rank-score {
    float: right;
    color: #27618b;
    font-weight: bold;
}

.arcade-note,
.arcade-empty {
    color: #65798a;
    font-size: 12px;
}

.arcade-empty {
    padding: 10px 0;
}

.arcade-mobile-help {
    margin-top: 8px;
    color: #d5e4f2;
    font-size: 12px;
}

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

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

    .arcade-stage {
        padding: 7px;
    }

    .arcade-stage canvas {
        max-height: 55vh;
    }

    .arcade-game-card {
        padding: 10px;
    }
}

.arcade-page {
    grid-column: 1 / -1;
}


/* ==========================================================
   NOSTAL™ ARCADE — CONTROLES DOS JOGOS ADICIONAIS
   ========================================================== */

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

#breakoutControls,
#invadersControls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 14px auto;
}

#breakoutControls button,
#invadersControls button {
    min-width: 105px;
    min-height: 42px;
    padding: 9px 14px;
    cursor: pointer;
    touch-action: none;
}

.arcade-game-card:focus-visible,
#breakoutControls button:focus-visible,
#invadersControls button:focus-visible {
    outline: 3px solid #ffbd58;
    outline-offset: 3px;
}

#gameCanvas {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 0 auto;
    touch-action: none;
}
