@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --feed-bg-1: #080a12;
    --feed-bg-2: #10172b;
    --feed-card: rgba(16, 24, 45, 0.88);
    --feed-stroke: rgba(255, 255, 255, 0.1);
    --feed-text: #ecf2ff;
    --feed-muted: #9eabc7;
    --feed-accent: #ff4b4b;
    --feed-accent-2: #33a7ff;
}

.anime-social-area {
    font-family: 'Outfit', sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 75, 75, 0.12), transparent 38%),
        radial-gradient(circle at 90% 20%, rgba(51, 167, 255, 0.14), transparent 40%),
        linear-gradient(145deg, var(--feed-bg-1), var(--feed-bg-2));
    color: var(--feed-text);
    padding: 36px 0 110px;
    min-height: calc(100vh - 170px);
}

.anime-social-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: flex-start;
}

.anime-social-grid > * {
    min-width: 0;
}

.anime-social-main {
    min-width: 0;
}

.social-card {
    background: var(--feed-card);
    border: 1px solid var(--feed-stroke);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    padding: 18px;
    margin-bottom: 18px;
}

.profile-card {
    padding: 0;
    overflow: hidden;
}

.profile-cover {
    height: 84px;
    background: linear-gradient(135deg, var(--feed-accent), #ff9640 45%, var(--feed-accent-2));
}

.profile-body {
    padding: 0 16px 16px;
}

.profile-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin-top: -31px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.4px;
    background: #ffffff;
    color: #0b1225;
    border: 3px solid #0b1225;
}

.profile-body h3 {
    margin: 12px 0 6px;
    font-size: 20px;
}

.profile-body p {
    margin: 0;
    color: var(--feed-muted);
    font-size: 14px;
    line-height: 1.45;
}

.profile-body ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.profile-body li {
    color: #c8d4ef;
    margin-bottom: 8px;
    font-size: 14px;
}

.profile-body strong {
    color: #fff;
}

.social-card h4 {
    font-size: 16px;
    margin: 0 0 14px;
    color: #fff;
}

.trend-link {
    display: block;
    color: #8fd6ff;
    font-weight: 500;
    margin-bottom: 10px;
    text-decoration: none;
}

.trend-link:hover {
    color: #c4ecff;
}

.composer-card {
    margin-bottom: 16px;
}

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

.composer-header h4 {
    margin: 0;
    font-size: 17px;
}

.composer-header p {
    margin: 4px 0 0;
    color: var(--feed-muted);
    font-size: 13px;
}

.avatar-pill {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(135deg, #fa5b5b, #f03e89);
}

.avatar-pill.red {
    background: linear-gradient(135deg, #ff4b4b, #ff8b3d);
}

.avatar-pill.blue {
    background: linear-gradient(135deg, #2379ff, #38c7ff);
}

.avatar-image {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.22);
}

.composer-editor-shell {
    position: relative;
}

.composer-editor-shell.has-image textarea {
    padding-bottom: 230px;
}

.composer-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 110px;
    background: rgba(8, 13, 27, 0.9);
    color: var(--feed-text);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 12px 14px 44px;
    outline: none;
}

.composer-form textarea:focus {
    border-color: rgba(51, 167, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(51, 167, 255, 0.15);
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.composer-image-label {
    position: relative;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.composer-image-label.inside-editor {
    position: absolute;
    left: 10px;
    bottom: 14px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #dce7ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.composer-image-label.inside-editor:hover {
    background: rgba(255, 255, 255, 0.14);
}

.composer-image-label.is-dragover {
    border-color: rgba(51, 167, 255, 0.65);
    background: rgba(51, 167, 255, 0.14);
    transform: translateY(-1px);
}

.composer-media-preview {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 48px;
    width: auto;
    max-width: none;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 13, 27, 0.75);
    z-index: 1;
}

.composer-media-preview-image {
    width: 100%;
    max-height: 170px;
    object-fit: cover;
    display: block;
}

.composer-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.composer-remove-image:hover {
    background: rgba(255, 75, 75, 0.82);
    border-color: rgba(255, 120, 120, 0.9);
}

.feed-action-btn,
.feed-post-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.feed-action-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #c8d4ef;
    border-color: rgba(255, 255, 255, 0.1);
}

.feed-action-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.feed-action-btn[disabled],
.feed-post-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

a.feed-action-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.feed-post-btn {
    margin-left: auto;
    background: linear-gradient(135deg, var(--feed-accent), #ff8a3d);
    color: #fff;
}

.feed-post-btn:hover {
    filter: brightness(1.08);
}

.feed-sort-card {
    margin-bottom: 12px;
    padding: 12px 14px;
}

.feed-sort-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.feed-sort-label {
    color: #9fb8df;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.feed-sort-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #c8d8f2;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.16s ease;
}

.feed-sort-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.feed-sort-btn.active {
    color: #fff;
    border-color: rgba(255, 108, 140, 0.55);
    background: rgba(255, 108, 140, 0.22);
}

.feed-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 10px 0 16px;
}

.feed-load-more-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e8f0ff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.feed-load-more-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.feed-load-more-btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.feed-auto-loading-indicator {
    text-align: center;
    color: #a8bddf;
    font-size: 12px;
    margin: -6px 0 12px;
}

.post-card {
    transition: transform 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.post-head h5 {
    margin: 0;
    font-size: 15px;
}

.post-user-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.post-head h5 span {
    color: var(--feed-muted);
    font-weight: 500;
    margin-left: 4px;
}

.post-follow-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    cursor: pointer;
    line-height: 1.5;
}

.post-follow-btn:hover {
    border-color: rgba(255, 255, 255, 0.32);
}

.post-follow-btn.is-following {
    background: rgba(143, 214, 255, 0.22);
    border-color: rgba(143, 214, 255, 0.5);
}

.avatar-link {
    display: inline-flex;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}

.author-link {
    color: inherit;
    text-decoration: none;
}

.author-link:hover {
    color: #8fd6ff;
}

.post-time-link {
    color: inherit;
    text-decoration: none;
}

.post-time-link:hover {
    color: #8fd6ff;
}

.post-head small {
    color: var(--feed-muted);
}

.post-card p {
    margin: 0;
    color: #deebff;
    line-height: 1.5;
}

.feed-alert {
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 13px;
    border: 1px solid transparent;
}

.feed-alert-success {
    background: rgba(31, 183, 101, 0.14);
    border-color: rgba(31, 183, 101, 0.35);
    color: #b4ffd5;
}

.feed-alert-error {
    background: rgba(255, 75, 75, 0.14);
    border-color: rgba(255, 75, 75, 0.35);
    color: #ffd0d0;
}

.muted-note {
    margin: 0;
    color: var(--feed-muted);
    font-size: 14px;
    line-height: 1.45;
}

.search-card {
    margin-bottom: 16px;
}

.feed-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.feed-search-form input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(8, 13, 27, 0.85);
    color: #dce8ff;
    padding: 10px 14px;
    outline: none;
}

.feed-search-form input:focus {
    border-color: rgba(51, 167, 255, 0.8);
}

.notifications-card h4 {
    margin-bottom: 12px;
}

.notif-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notif-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}

.notif-item.unread {
    border-color: rgba(51, 167, 255, 0.45);
    background: rgba(51, 167, 255, 0.08);
}

.notif-link {
    color: #e8f1ff;
    text-decoration: none;
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

.notif-link:hover {
    color: #ffffff;
}

.notif-item small {
    color: var(--feed-muted);
}

.post-tags {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.post-tags a {
    font-size: 13px;
    color: #8dd5ff;
    text-decoration: none;
}

.post-actions {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.post-actions button {
    background: transparent;
    border: 0;
    color: #b7c5e2;
    font-size: 13px;
    cursor: pointer;
}

.post-actions button:hover {
    color: #fff;
}

.post-actions button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.post-actions .like-btn {
    opacity: 1;
}

.post-actions .like-btn.liked {
    color: #ff7b98;
}

.post-actions .repost-btn.reposted {
    color: #46c36f;
}

.post-actions .like-btn .like-count {
    margin-left: 4px;
}

.post-actions .repost-btn .repost-count {
    margin-left: 4px;
}

.post-card.post-focused {
    border-color: rgba(143, 214, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(143, 214, 255, 0.25), 0 14px 30px rgba(0, 0, 0, 0.28);
}

.comment-stat {
    opacity: 1 !important;
    cursor: pointer !important;
}

.post-comments-wrap {
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding-top: 12px;
}

.post-comments-list {
    margin-bottom: 10px;
}

.comment-load-more-btn,
.comment-load-replies-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d8e6ff;
    font-size: 12px;
    padding: 6px 12px;
    cursor: pointer;
    margin: 6px 0 10px;
}

.comment-load-more-btn:hover,
.comment-load-replies-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.comment-load-more-btn[disabled],
.comment-load-replies-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-item {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.comment-item.is-reply {
    margin-left: calc(14px + (var(--reply-depth, 1) * 14px));
}

.comment-children {
    margin-top: 8px;
}

.comment-item.is-reply::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(143, 214, 255, 0.55), rgba(143, 214, 255, 0.08));
}

.comment-item.comment-focused .comment-body {
    border-color: rgba(143, 214, 255, 0.65);
    box-shadow: 0 0 0 1px rgba(143, 214, 255, 0.2);
}

.comment-avatar-image,
.comment-avatar-pill {
    width: 30px;
    height: 30px;
    font-size: 10px;
}

.comment-body {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 8px 10px;
}

.comment-author-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 2px;
}

.comment-body strong {
    display: inline;
    font-size: 12px;
    color: #f5f9ff;
}

.comment-username {
    font-size: 11px;
    color: var(--feed-muted, #7a90b0);
    line-height: 1;
}

.comment-body p {
    margin: 0;
    font-size: 13px;
    color: #d7e5ff;
    line-height: 1.35;
}

.comment-body small {
    display: block;
    margin-top: 3px;
    color: var(--feed-muted);
    font-size: 11px;
}

.comment-reply-target {
    font-size: 11px;
    color: #abc7f5;
    margin-bottom: 4px;
}

.comment-reply-target span {
    color: #d8e8ff;
}

.comment-actions {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-actions button {
    background: transparent;
    border: 0;
    color: #b7c5e2;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.comment-actions button:hover {
    color: #fff;
}

.comment-actions .comment-like-btn.liked {
    color: #ff7b98;
}

.comment-actions button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.replying-indicator {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #bfd5fa;
}

.replying-indicator .reply-cancel-btn {
    border: 0;
    background: transparent;
    color: #8fd6ff;
    font-size: 12px;
    padding: 0;
    cursor: pointer;
}

.comment-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(7, 12, 24, 0.92);
    color: #e4eeff;
    font-size: 13px;
    padding: 8px 12px;
    outline: none;
}

.comment-form button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

.comment-form button:hover {
    background: rgba(255, 255, 255, 0.16);
}

.comment-form input[disabled],
.comment-form button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.community-profile-card {
    margin-bottom: 14px;
}

.community-profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-image,
.profile-avatar-pill {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    font-size: 22px;
    border-radius: 50%;
}

.community-profile-head .cp-info {
    flex: 1;
    min-width: 0;
}

.community-profile-head h3 {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 700;
    color: #f4f9ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-profile-head p {
    margin: 0 0 4px;
    color: #778;
    font-size: 13px;
}

.community-profile-head small.muted-note {
    font-size: 11px;
    color: #556;
    display: block;
    margin-bottom: 8px;
}

.community-follow-btn.is-following {
    background: rgba(143, 214, 255, 0.12);
    border-color: rgba(143, 214, 255, 0.35);
    color: #8fd6ff;
}

.community-stats-grid {
    margin-top: 14px;
    display: flex;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.community-stats-grid div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.community-stats-grid strong {
    font-size: 17px;
    font-weight: 700;
    color: #f4f9ff;
    line-height: 1;
}

.community-stats-grid span {
    color: #778;
    font-size: 12px;
}

.cp-tabs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cp-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #9aa7c4;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 10px;
    transition: all 0.15s;
    background: rgba(255,255,255,0.03);
}

.cp-tab-btn em {
    font-style: normal;
    font-size: 11px;
    color: #7e8aa8;
}

.cp-tab-btn:hover {
    color: #dde6ff;
    border-color: rgba(255,255,255,0.2);
}

.cp-tab-btn.active {
    color: #ffffff;
    border-color: rgba(230, 57, 70, 0.45);
    background: rgba(230, 57, 70, 0.12);
}

.cp-tab-btn.active em {
    color: #ffd4da;
}

.mini-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    padding: 6px 10px;
}

.suggest-rail-card {
    overflow: hidden;
}

.suggest-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    min-width: 0;
}

.suggest-rail-head h4 {
    margin: 0;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.suggest-rail-head a {
    color: #8fd6ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.suggest-rail-wrap {
    position: relative;
}

.suggest-rail-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    padding: 0 1px 6px;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scroll-behavior: smooth;
    cursor: grab;
}

.suggest-rail-scroll.is-dragging {
    cursor: grabbing;
}

.suggest-rail-scroll.is-dragging,
.suggest-rail-scroll.is-dragging * {
    user-select: none;
}

.suggest-rail-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.suggest-rail-scroll::-webkit-scrollbar {
    display: none;
}

.suggest-rail-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 13, 27, 0.82);
    color: #e8f1ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.suggest-rail-arrow-right {
    right: 6px;
}

.suggest-rail-arrow-left {
    left: 6px;
}

.suggest-rail-arrow:hover {
    border-color: rgba(143, 214, 255, 0.55);
    background: rgba(34, 50, 88, 0.9);
}

.suggest-rail-arrow[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.suggest-rail-item {
    flex: 0 0 142px;
    width: 142px;
    min-width: 142px;
    max-width: 142px;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    background: rgba(8, 13, 27, 0.72);
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.suggest-rail-media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(51, 167, 255, 0.28), rgba(255, 75, 75, 0.22));
    overflow: hidden;
}

.suggest-rail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.suggest-rail-photo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    color: #f2f8ff;
}

.suggest-rail-user-body {
    padding: 10px 10px 6px;
    min-width: 0;
}

.suggest-rail-user-name {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-rail-user-meta {
    display: block;
    margin-top: 4px;
    color: var(--feed-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-rail-user-action {
    margin: 0 10px 10px;
    width: calc(100% - 20px);
    min-height: 32px;
    border-radius: 8px !important;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.suggest-rail-user-action:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.suggest-rail-user-action.is-following {
    background: rgba(143, 214, 255, 0.22);
    border-color: rgba(143, 214, 255, 0.5);
    color: #e9f4ff;
}

.suggest-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.suggest-item strong {
    display: block;
    font-size: 14px;
    color: #fff;
}

.suggest-item small {
    color: var(--feed-muted);
}

/* .feed-bottom-nav: estilos movidos para assets/css/bottom-nav.css */

.suggest-item button {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
}

.suggest-item button:hover {
    border-color: rgba(255, 255, 255, 0.35);
}

.suggest-item .suggest-follow-btn.is-following {
    background: rgba(143, 214, 255, 0.22);
    border-color: rgba(143, 214, 255, 0.5);
}

.calendar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.calendar-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dce8ff;
    margin-bottom: 10px;
    font-size: 14px;
}

.calendar-list span {
    width: 34px;
    text-align: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #0f1730;
    background: #cde8ff;
    padding: 3px 0;
}

@media (max-width: 1100px) {
    .anime-social-grid {
        grid-template-columns: 1fr;
    }

    .anime-social-left,
    .anime-social-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .anime-social-left .social-card,
    .anime-social-right .social-card {
        margin-bottom: 0;
    }
}

@media (max-width: 700px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .anime-social-area {
        padding: 22px 0 92px;
    }

    .anime-social-left {
        display: none;
    }

    /* No perfil: mostra o sidebar empilhado acima do main */
    .cp-page .anime-social-left {
        display: block;
        grid-column: 1;
        order: -1;
    }
    .cp-page .anime-social-grid {
        display: flex;
        flex-direction: column;
    }
    /* Oculta o card de navegacao no sidebar do perfil mobile (redundante com barra inferior) */
    .cp-page .anime-social-left .social-card:not(.community-profile-card) {
        display: none;
    }

    .anime-social-right {
        grid-template-columns: 1fr;
    }

    .social-card {
        border-radius: 14px;
        padding: 14px;
    }

    .composer-actions {
        flex-wrap: wrap;
    }

    .feed-post-btn {
        width: 100%;
    }

    .feed-search-form {
        grid-template-columns: 1fr;
    }

    .community-profile-head {
        gap: 12px;
    }

    .profile-avatar-image,
    .profile-avatar-pill {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }

    .community-profile-head h3 {
        font-size: 16px;
    }

    .community-stats-grid {
        gap: 16px;
    }

    .community-stats-grid strong {
        font-size: 15px;
    }

    .suggest-rail-item {
        flex-basis: 132px;
        width: 132px;
        min-width: 132px;
        max-width: 132px;
    }

    .suggest-rail-arrow {
        width: 30px;
        height: 30px;
    }

    .suggest-rail-arrow-right {
        right: 4px;
    }

    .suggest-rail-arrow-left {
        left: 4px;
    }

    .suggest-rail-user-body {
        padding: 8px 8px 6px;
    }

    .suggest-rail-user-action {
        margin: 0 8px 8px;
        width: calc(100% - 16px);
    }

}

/* ── Menu "..." de ações (editar/deletar) ─────────────────────────────── */
.post-more-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
}

.post-more-btn {
    background: rgba(20, 25, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #aab;
    border-radius: 6px;
    padding: 3px 9px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s, color 0.15s;
}

.post-more-btn:hover {
    background: rgba(60, 70, 100, 0.95);
    color: #fff;
}

.post-more-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #1a2035;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    min-width: 120px;
    z-index: 100;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.post-more-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #ccd;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.12s;
}

.post-more-menu button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/* Variante dentro do comment-item (sem alterar o grid) */
.comment-more-wrap {
    /* Herdado de post-more-wrap via classe dupla; garante alinhamento correto */
    top: 6px;
    right: 6px;
}

/* Formulários inline de edição */
.post-edit-form,
.comment-edit-form {
    margin: 6px 0;
}

.post-edit-textarea,
.comment-edit-textarea {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #e0e6f0;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}

.post-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.post-edit-save-btn,
.comment-edit-save-btn {
    padding: 6px 16px;
    background: var(--primary, #e63946);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.post-edit-cancel-btn,
.comment-edit-cancel-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.07);
    color: #ccd;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

/* Search users section */
.search-users-card {
    padding: 14px 16px;
}

.search-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #aab;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-users-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-user-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 10px;
}

.search-user-avatar-link {
    display: inline-block;
}

.search-user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.search-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #eef;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-user-name:hover {
    text-decoration: underline;
}

.search-user-handle {
    font-size: 12px;
    color: #778;
}

.search-user-stats {
    font-size: 11px;
    color: #556;
    margin-top: 2px;
}

.search-anime-cover {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.search-follow-btn {
    padding: 5px 14px;
    font-size: 12px;
    border-radius: 20px;
    border: 1px solid var(--primary, #e63946);
    background: transparent;
    color: var(--primary, #e63946);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.search-follow-btn:hover {
    background: var(--primary, #e63946);
    color: #fff;
}

.search-follow-btn.is-following {
    background: rgba(230, 57, 70, 0.12);
    color: #aab;
    border-color: rgba(255, 255, 255, 0.1);
}

.search-follow-btn.is-following:hover {
    background: rgba(230, 57, 70, 0.25);
    color: #e63946;
    border-color: #e63946;
}

/* ── Bio no perfil ──────────────────────────────────────────────────────── */
.cp-bio {
    margin: 6px 0 8px;
    font-size: 13px;
    color: #ccd;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ── Edit Profile page ──────────────────────────────────────────────────── */
.anime-social-grid.ep-single-col {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
}

.anime-social-grid.ep-single-col .anime-social-main {
    max-width: 100%;
    width: 100%;
}

.ep-card {
    padding: 22px 22px 18px;
}

.ep-title {
    font-size: 17px;
    font-weight: 700;
    color: #eef;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ep-avatar-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.ep-avatar-large {
    width: 88px !important;
    height: 88px !important;
    font-size: 28px !important;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.12);
    object-fit: cover;
}

.ep-avatar-change-label {
    cursor: pointer;
    font-size: 12px;
    color: var(--primary, #e63946);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border: 1px solid var(--primary, #e63946);
    border-radius: 20px;
    transition: background 0.15s;
}

.ep-avatar-change-label:hover {
    background: rgba(230, 57, 70, 0.1);
}

.ep-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ep-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ep-field label {
    font-size: 12px;
    font-weight: 600;
    color: #aab;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ep-char-count {
    font-weight: 400;
    color: #556;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
}

.ep-input,
.ep-textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 12px;
    color: #eef;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    resize: none;
    transition: border-color 0.15s;
    font-family: inherit;
}

.ep-input:focus,
.ep-textarea:focus {
    outline: none;
    border-color: var(--primary, #e63946);
}

.ep-input-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ep-hint {
    font-size: 11px;
    color: #556;
}

.ep-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 6px;
}

.ep-cancel-btn {
    font-size: 13px;
    color: #778;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s;
}

.ep-cancel-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #aab;
}

.ep-save-btn {
    min-width: 100px;
}

/* ══════════════════════════════════════════════════════════
   DM — Mensagens Privadas
   ══════════════════════════════════════════════════════════ */

/* Container principal: 2 colunas */
.dm-wrapper {
    display: flex;
    height: calc(100vh - 148px);
    min-height: 500px;
    background: var(--feed-card);
    border: 1px solid var(--feed-stroke);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}

/* ── Sidebar ──────────────────────────────────────────── */
.dm-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--feed-stroke);
    overflow: hidden;
}

.dm-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--feed-stroke);
    flex-shrink: 0;
}

.dm-sidebar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dm-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #eef;
}

.dm-new-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #aab;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.15s, color 0.15s;
}
.dm-new-btn:hover { background: rgba(255,255,255,0.08); color: #eef; }

.dm-group-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #aab;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.15s, color 0.15s;
}
.dm-group-btn:hover { background: rgba(255,255,255,0.08); color: #eef; }

/* Caixa de busca */
.dm-search-box {
    padding: 10px 12px;
    border-bottom: 1px solid var(--feed-stroke);
    flex-shrink: 0;
}
.dm-search-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 7px 14px;
    color: #eef;
    font-size: 13px;
}
.dm-search-input:focus { outline: none; border-color: var(--primary, #e63946); }
.dm-search-results {
    margin-top: 6px;
    max-height: 240px;
    overflow-y: auto;
}
.dm-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s;
}
.dm-search-item:hover { background: rgba(255,255,255,0.07); }
.dm-no-results { font-size: 12px; color: #556; text-align: center; padding: 8px 0 4px; margin: 0; }

.dm-group-create-box {
    padding: 10px 12px;
    border-bottom: 1px solid var(--feed-stroke);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dm-group-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dm-group-panel-head strong {
    font-size: 13px;
    color: #eef4ff;
}

.dm-group-panel-close {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #b8c7e9;
}

.dm-group-panel-close:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.22);
}

.dm-group-image-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px dashed rgba(255,255,255,0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.dm-group-image-picker:hover {
    border-color: rgba(255,255,255,0.32);
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    transform: translateY(-1px);
}

.dm-group-image-picker.has-file {
    border-style: solid;
    border-color: rgba(255, 89, 103, 0.46);
    background: linear-gradient(180deg, rgba(255, 89, 103, 0.12), rgba(255,255,255,0.04));
}

.dm-group-image-picker-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #ff5967, #ff8c4b);
    flex-shrink: 0;
}

.dm-group-image-picker-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.dm-group-image-picker-copy strong {
    font-size: 13px;
    color: #f4f7ff;
}

.dm-group-image-picker-copy small {
    font-size: 11px;
    color: #a8b6d6;
}

.dm-group-image-picker-cta {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    color: #eef4ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dm-group-image-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}

.dm-group-image-preview img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.dm-group-image-preview-meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dm-group-image-preview-meta strong {
    font-size: 12px;
    color: #f8fbff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-group-image-preview-meta small {
    font-size: 11px;
    color: #9eabc7;
}

.dm-group-image-remove {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #d7e5ff;
    flex-shrink: 0;
}

.dm-group-image-remove:hover {
    background: rgba(255, 89, 103, 0.14);
    border-color: rgba(255, 89, 103, 0.3);
    color: #fff;
}

.dm-group-members {
    max-height: 210px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dm-group-member-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
}

.dm-group-member-item:hover {
    background: rgba(255,255,255,0.09);
}

.dm-group-member-item input {
    accent-color: var(--primary, #e63946);
}

.dm-group-create-submit {
    border: none;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff5967, var(--primary, #e63946));
    color: #fff;
    cursor: pointer;
}

.dm-group-create-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Lista de conversas */
.dm-conv-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}
.dm-no-convs {
    text-align: center;
    color: #556;
    font-size: 13px;
    padding: 24px 16px;
    margin: 0;
    line-height: 1.6;
}

.dm-conv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.12s;
    border-left: 3px solid transparent;
}
.dm-conv-item:hover { background: rgba(255,255,255,0.05); }
.dm-conv-item.active {
    background: rgba(230, 57, 70, 0.08);
    border-left-color: var(--primary, #e63946);
}

.dm-conv-item-avatar { flex-shrink: 0; }

.dm-conv-item-info {
    flex: 1;
    min-width: 0;
}
.dm-conv-item-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px;
}
.dm-conv-item-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: #dde;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dm-user-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 8px;
    background: #4b5563;
    box-shadow: 0 0 0 2px rgba(10, 14, 24, 0.9);
}
.dm-user-status-dot.is-online {
    background: #22c55e;
}
.dm-user-status-dot.is-offline {
    background: #6b7280;
}
.dm-conv-item-time {
    font-size: 11px;
    color: #556;
    white-space: nowrap;
}
.dm-conv-item-preview {
    font-size: 12px;
    color: #778;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.dm-preview-mine { color: #556; }

.dm-unread-badge {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    background: var(--primary, #e63946);
    color: #fff;
    border-radius: 20px;
    padding: 1px 6px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── Main ─────────────────────────────────────────────── */
.dm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.dm-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #556;
    gap: 12px;
}
.dm-empty i { font-size: 48px; color: #334; }
.dm-empty p { text-align: center; font-size: 14px; margin: 0; line-height: 1.7; }

/* Cabeçalho da conversa ativa */
.dm-conversation {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.dm-conv-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--feed-stroke);
    flex-shrink: 0;
}
.dm-back-btn {
    background: none;
    border: none;
    color: #aab;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 6px;
    display: none; /* visível só no mobile */
}
.dm-conv-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.dm-conv-user strong {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #eef;
    font-weight: 600;
}
.dm-conv-user #dm-conv-username {
    display: block;
    font-size: 11px;
    color: #778;
}
.dm-conv-profile-link {
    color: #778;
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: color 0.12s, border-color 0.12s;
}
.dm-conv-profile-link:hover { color: #eef; border-color: rgba(255,255,255,0.25); }

.dm-conv-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dm-conv-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #dce7ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.dm-conv-action-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.24);
    color: #fff;
}

.dm-conv-action-btn-danger {
    color: #ffb2b2;
}

.dm-conv-action-btn-danger:hover {
    color: #fff0f0;
    border-color: rgba(255, 98, 98, 0.38);
    background: rgba(255, 98, 98, 0.14);
}

/* Área de mensagens */
.dm-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dm-no-msgs {
    text-align: center;
    color: #556;
    font-size: 13px;
    margin: auto;
}
.dm-loading {
    text-align: center;
    color: #556;
    padding: 24px;
    font-size: 18px;
}
.dm-date-sep {
    text-align: center;
    font-size: 11px;
    color: #556;
    margin: 10px 0 6px;
    position: relative;
}
.dm-date-sep::before, .dm-date-sep::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255,255,255,0.07);
}
.dm-date-sep::before { left: 0; }
.dm-date-sep::after  { right: 0; }

.dm-msg {
    display: flex;
    flex-direction: column;
    max-width: 72%;
    margin-bottom: 4px;
}
.dm-msg-mine {
    align-self: flex-end;
    align-items: flex-end;
}
.dm-msg-theirs {
    align-self: flex-start;
    align-items: flex-start;
}
.dm-msg-bubble {
    padding: 9px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}
.dm-group-sender {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 2px 4px;
    color: #c4d1ea;
    font-size: 11px;
}
.dm-group-sender-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
}
.dm-group-sender-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dm-msg-mine .dm-msg-bubble {
    background: var(--primary, #e63946);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.dm-msg-theirs .dm-msg-bubble {
    background: rgba(255,255,255,0.08);
    color: #dde;
    border-bottom-left-radius: 4px;
}
.dm-msg-time {
    font-size: 10px;
    color: #556;
    margin-top: 3px;
    padding: 0 4px;
}
.dm-audio-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(310px, 78vw);
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(180deg, rgba(34,42,61,0.92), rgba(23,29,44,0.92));
    box-shadow: 0 12px 28px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05);
}
.dm-msg-mine .dm-audio-wrap {
    border-color: rgba(255,255,255,0.2);
    background: linear-gradient(180deg, rgba(170,33,49,0.95), rgba(137,23,38,0.95));
}
.dm-audio-play {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    color: #f4f7ff;
    font-size: 12px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}
.dm-audio-play:hover {
    transform: scale(1.05);
}
.dm-audio-card.is-playing .dm-audio-play {
    background: linear-gradient(180deg, rgba(120,238,162,0.35), rgba(120,238,162,0.2));
}
.dm-audio-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.dm-audio-wave-row {
    --dm-audio-progress: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(16, minmax(3px, 1fr));
    align-items: center;
    column-gap: 3px;
    height: 24px;
    width: 100%;
    padding: 0 2px;
    margin-bottom: -2px;
    overflow: hidden;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}
.dm-audio-wave-row::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
}
.dm-audio-wave-row::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: calc(var(--dm-audio-progress) * 100%);
    height: 2px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(124,242,163,0.95), rgba(124,242,163,0.72));
    box-shadow: 0 0 10px rgba(124,242,163,0.22);
}
.dm-audio-wave-bar {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 4px;
    justify-self: center;
    min-height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.28);
    opacity: 0.85;
    transform-origin: center;
    animation: dmWavePulse 1.1s ease-in-out infinite;
    animation-play-state: paused;
    transition: background 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}
.dm-audio-card.is-playing .dm-audio-wave-bar {
    animation-play-state: running;
    background: rgba(124,242,163,0.95);
    opacity: 1;
}
.dm-audio-wave-bar.is-progressed {
    background: rgba(124,242,163,0.92);
    opacity: 1;
    box-shadow: 0 0 8px rgba(124,242,163,0.18);
}
.dm-msg-mine .dm-audio-wave-bar {
    background: rgba(255,255,255,0.34);
}
.dm-msg-mine .dm-audio-wave-row::before {
    background: rgba(255,255,255,0.16);
}
.dm-msg-mine .dm-audio-wave-row::after {
    background: linear-gradient(90deg, rgba(215,255,227,0.98), rgba(215,255,227,0.76));
    box-shadow: 0 0 10px rgba(215,255,227,0.18);
}
.dm-msg-mine .dm-audio-card.is-playing .dm-audio-wave-bar {
    background: rgba(206,255,221,0.96);
}
.dm-msg-mine .dm-audio-wave-bar.is-progressed {
    background: rgba(226,255,235,0.98);
}
.dm-audio-duration {
    font-size: 10px;
    color: #dfe8ff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dm-audio-el {
    display: none;
}

@keyframes dmWavePulse {
    0%, 100% {
        transform: scaleY(0.45);
        opacity: 0.6;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@media (max-width: 520px) {
    .dm-audio-wrap {
        width: min(280px, 82vw);
        padding: 8px 10px;
    }
    .dm-audio-play {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Input de mensagem */
.dm-input-wrap {
    padding: 12px 16px;
    border-top: 1px solid var(--feed-stroke);
    flex-shrink: 0;
}
.dm-composer {
    position: relative;
    width: 100%;
}
.dm-record-hint {
    position: absolute;
    right: 98px;
    top: -30px;
    z-index: 22;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(13, 17, 28, 0.95);
    border: 1px solid rgba(255,255,255,0.12);
    color: #d6dded;
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 12px 24px rgba(0,0,0,0.28);
    backdrop-filter: blur(6px);
}
.dm-record-hint i {
    font-size: 10px;
    opacity: 0.8;
}
.dm-record-hint.is-cancel-intent {
    color: #ffd8dd;
    border-color: rgba(255,89,103,0.5);
    box-shadow: 0 12px 24px rgba(255,89,103,0.18);
}
.dm-record-status {
    position: absolute;
    left: 14px;
    top: -36px;
    z-index: 22;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(141, 21, 35, 0.94);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff3f4;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 14px 28px rgba(110, 16, 27, 0.28);
    backdrop-filter: blur(8px);
}
.dm-record-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.45);
    animation: dmRecordPulse 1.15s ease-out infinite;
}
.dm-record-status-time {
    min-width: 38px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #ffe2e5;
}
.dm-record-status.is-cancel-intent {
    background: rgba(74, 15, 21, 0.96);
    color: #ffd8dd;
}
.dm-composer.is-recording .dm-input {
    border-color: rgba(255,89,103,0.55);
    box-shadow: 0 0 0 4px rgba(255,89,103,0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,89,103,0.07));
    padding-right: 104px;
}
.dm-input {
    width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 24px;
    padding: 12px 96px 12px 16px;
    color: #eef;
    font-size: 14px;
    resize: none;
    line-height: 1.4;
    min-height: 48px;
    max-height: 120px;
    overflow-y: auto;
    font-family: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.dm-input:focus {
    outline: none;
    border-color: rgba(230,57,70,0.7);
    box-shadow: 0 0 0 4px rgba(230,57,70,0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
}
.dm-input::placeholder {
    color: #7f869a;
}
.dm-composer-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(calc(-50% - 3px));
    display: flex;
    align-items: center;
    gap: 6px;
}
.dm-emoji-btn,
.dm-sticker-btn,
.dm-mic-btn,
.dm-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.15s, background 0.15s, color 0.15s;
}
.dm-emoji-btn {
    background: rgba(255,255,255,0.06);
    color: #c2c8d6;
}
.dm-emoji-btn:hover,
.dm-emoji-btn.is-active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.dm-sticker-btn {
    background: rgba(255,255,255,0.06);
    color: #c2c8d6;
}
.dm-sticker-btn:hover,
.dm-sticker-btn.is-active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.dm-mic-btn {
    background: rgba(255,255,255,0.06);
    color: #c2c8d6;
}
.dm-mic-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.dm-mic-btn.is-recording {
    background: linear-gradient(135deg, #ff5967, var(--primary, #e63946));
    color: #fff;
    box-shadow: 0 0 0 5px rgba(255,89,103,0.14), 0 8px 20px rgba(230,57,70,0.34);
}
.dm-mic-btn.is-pressing {
    transform: scale(0.95);
}
.dm-mic-btn.is-cancel-intent {
    background: rgba(255,89,103,0.18);
    color: #ffd8dd;
}
.dm-send-btn {
    background: linear-gradient(135deg, #ff5967, var(--primary, #e63946));
    color: #fff;
    box-shadow: 0 6px 14px rgba(230,57,70,0.28);
}
.dm-emoji-btn:hover,
.dm-sticker-btn:hover,
.dm-mic-btn:hover,
.dm-send-btn:hover {
    transform: translateY(-1px);
}
.dm-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.dm-send-btn:disabled:hover {
    transform: none;
}
.dm-mic-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dm-sticker-btn:disabled { opacity: 0.5; cursor: not-allowed; }

@keyframes dmRecordPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0.42);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255,255,255,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0);
    }
}

@media (max-width: 720px) {
    .dm-record-hint {
        right: 86px;
        top: -28px;
    }
    .dm-record-status {
        left: 12px;
        top: -34px;
        padding: 6px 10px;
    }
}
.dm-emoji-picker {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(280px, calc(100vw - 32px));
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(13, 17, 28, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 32px rgba(0,0,0,0.38);
    backdrop-filter: blur(10px);
    z-index: 20;
}
.dm-sticker-picker {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(320px, calc(100vw - 32px));
    max-height: 240px;
    overflow-y: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(13, 17, 28, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 32px rgba(0,0,0,0.38);
    backdrop-filter: blur(10px);
    z-index: 21;
}
.dm-sticker-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: #aab4cc;
    font-size: 12px;
    text-align: center;
    padding: 10px 0;
}
.dm-sticker-option {
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    padding: 8px;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}
.dm-sticker-option:hover {
    background: rgba(255,255,255,0.11);
    transform: translateY(-1px);
}
.dm-sticker-option img {
    width: 100%;
    height: 64px;
    object-fit: contain;
    display: block;
}
.dm-sticker-wrap {
    padding: 6px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
}
.dm-msg-mine .dm-sticker-wrap {
    background: rgba(255,255,255,0.18);
}
.dm-sticker-img {
    width: 124px;
    max-width: 34vw;
    height: 124px;
    object-fit: contain;
    display: block;
}
.dm-emoji-option {
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    padding: 10px 0;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}
.dm-emoji-option:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* ── DM modo imersivo (estilo app) ─────────────────────── */
body.dm-page .hf-header {
    display: none;
}

body.dm-page .anime-social-area {
    padding: 0;
    min-height: 100vh;
}

body.dm-page .anime-social-area > .container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

body.dm-page .dm-wrapper {
    position: fixed;
    inset: env(safe-area-inset-top, 0px) 0 calc(64px + env(safe-area-inset-bottom, 0px)) 0;
    height: auto;
    min-height: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    z-index: 850;
}

/* ── DM badge no header ───────────────────────────────── */
.dm-header-badge {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    background: var(--primary, #e63946);
    color: #fff;
    border-radius: 20px;
    padding: 1px 5px;
    margin-left: 3px;
    vertical-align: middle;
    line-height: 1.4;
}

/* ── Responsivo ──────────────────────────────────────────*/
@media (max-width: 700px) {
    .dm-wrapper {
        height: calc(100vh - 110px);
        border-radius: 12px;
    }

    body.dm-page .dm-wrapper {
        inset: env(safe-area-inset-top, 0px) 0 calc(64px + env(safe-area-inset-bottom, 0px)) 0;
        border-radius: 0;
        height: auto;
    }

    .dm-sidebar {
        width: 100%;
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 2;
        transition: transform 0.22s ease;
        border-right: none;
    }
    .dm-sidebar.dm-sidebar-hidden {
        transform: translateX(-110%);
    }
    .dm-main {
        width: 100%;
    }
    .dm-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .dm-msg { max-width: 85%; }
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 700px) {
        body.dm-page .dm-wrapper {
            inset: max(env(safe-area-inset-top, 0px), 44px) 0 calc(64px + env(safe-area-inset-bottom, 0px)) 0;
        }
    }
}

/* ══════════════════════════════════════════════════════════
   HF Header — Header exclusivo da rede social
   ══════════════════════════════════════════════════════════ */

.hf-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(8, 8, 20, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 900px) {
        .hf-header {
            padding-top: max(env(safe-area-inset-top, 0px), 44px);
        }
    }
}

.hf-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo */
.hf-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.hf-logo img { height: 34px; width: auto; }

/* Nav central */
.hf-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 2px;
}
.hf-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 5px 22px;
    border-radius: 10px;
    color: #667;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.hf-nav-link i { font-size: 17px; line-height: 1; }
.hf-nav-link:hover { color: #bbc; background: rgba(255,255,255,0.05); }
.hf-nav-link.active { color: #fff; border-bottom-color: var(--primary, #e63946); }

/* Ações direita */
.hf-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

/* Botões de ícone (notificações, DMs) */
.hf-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #667;
    text-decoration: none;
    font-size: 17px;
    transition: background 0.15s, color 0.15s;
}
.hf-action-btn:hover { background: rgba(255,255,255,0.08); color: #ccd; }
.hf-action-btn.active { color: var(--primary, #e63946); }

/* Badge de contagem */
.hf-badge {
    font-style: normal;
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--primary, #e63946);
    color: #fff;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid rgba(8, 8, 20, 0.92);
    pointer-events: none;
}

/* Avatar button */
.hf-user-menu { position: relative; }
.hf-avatar-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 4px;
}
.hf-avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15);
    transition: border-color 0.15s;
    display: block;
}
.hf-avatar-btn:hover .hf-avatar-img,
.hf-avatar-btn:focus .hf-avatar-img { border-color: var(--primary, #e63946); outline: none; }
.hf-avatar-pill {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary, #e63946);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.15);
}

/* Dropdown */
.hf-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: #13131f;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    z-index: 1100;
    animation: hf-dd-in 0.14s ease;
}
.hf-dropdown.open { display: block; }

@keyframes hf-dd-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Perfil no topo do dropdown */
.hf-dd-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 12px;
}
.hf-dd-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.hf-dd-avatar-pill {
    background: var(--primary, #e63946);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}
.hf-dd-names strong {
    display: block;
    font-size: 14px;
    color: #eef;
    font-weight: 600;
    line-height: 1.3;
}
.hf-dd-names span {
    display: block;
    font-size: 12px;
    color: #667;
}

.hf-dd-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 4px 0;
}

/* Itens do menu */
.hf-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #bbc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
}
.hf-dd-item i { width: 16px; text-align: center; font-size: 13px; color: #556; flex-shrink: 0; }
.hf-dd-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.hf-dd-item:hover i { color: #99a; }
.hf-dd-item-muted { color: #556; }
.hf-dd-item-danger { color: #e63946; }
.hf-dd-item-danger i { color: #e63946; }
.hf-dd-item-danger:hover { background: rgba(230,57,70,0.1); color: #ff6b78; }

.hf-dd-badge {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    background: var(--primary, #e63946);
    color: #fff;
    border-radius: 20px;
    padding: 1px 6px;
    margin-left: auto;
}

/* Botão de login */
.hf-login-btn {
    padding: 7px 18px;
    border-radius: 20px;
    background: var(--primary, #e63946);
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.15s;
}
.hf-login-btn:hover { opacity: 0.85; }

/* ── Responsivo ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .hf-nav-link span { display: none; }
    .hf-nav-link { padding: 8px 14px; }
}

@media (max-width: 600px) {
    /* Bottom nav já cuida da navegação no mobile — esconde o hf-nav */
    .hf-nav { display: none; }
    .hf-inner { padding: 0 12px; gap: 6px; }
    .hf-logo img { height: 28px; }
    .hf-action-btn { width: 34px; height: 34px; font-size: 16px; }
    /* Dropdown encostado na borda direita */
    .hf-dropdown { right: -8px; min-width: 200px; }
}

/* ── Conquistas (perfil) ─────────────────────────────────── */
.cp-conquistas-card h4 {
    margin-bottom: 10px;
}

.cp-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 8px;
}

.cp-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 9px 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform .14s ease, background .14s ease, border-color .14s ease;
    min-height: 86px;
}

.cp-badge-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.cp-badge-item.az-badge-rarity-common { border-color: rgba(148, 163, 184, .30); }
.cp-badge-item.az-badge-rarity-uncommon { border-color: rgba(34, 197, 94, .35); }
.cp-badge-item.az-badge-rarity-rare { border-color: rgba(59, 130, 246, .45); }
.cp-badge-item.az-badge-rarity-epic { border-color: rgba(168, 85, 247, .50); }
.cp-badge-item.az-badge-rarity-legendary {
    border-color: rgba(245, 184, 46, .65);
    box-shadow: 0 0 10px rgba(245, 184, 46, .18);
}

.cp-badge-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cp-badge-icon .az-badge,
.cp-badge-icon img {
    max-width: 30px;
    max-height: 30px;
}

.cp-badge-label {
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    color: #d2d9e8;
    word-break: break-word;
}

@media (max-width: 575px) {
    .cp-badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    }
    .cp-badge-item {
        min-height: 82px;
        padding: 8px 4px;
    }
    .cp-badge-label {
        font-size: 10px;
    }
}
