/* =========================================
   1. FONT E RESET GLOBALE
   ========================================= */
@font-face {
    font-family: ZZZ-Font;
    src: url(fonts/ZZZ-Font.woff2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #000000;
    background-image: url(InterKnotBackground169.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top 100px;
    background-attachment: fixed;
    font-family: ZZZ-Font, sans-serif;
    color: #ffffff;
}

button,
input,
select,
textarea {
    font-family: ZZZ-Font, sans-serif;
}

button:not(.create-close-login-window-btn):not(.miui-switch):not(.dm-top-btn):not(.search-open-btn) {
    transition: border-color 0.2s ease, transform 0.15s ease;
}

button:not(.create-close-login-window-btn):not(.miui-switch):not(.dm-top-btn):not(.search-open-btn):hover {
    border-color: #c8ff00;
    transform: scale(1.05);
}

/* =========================================
   2. BARRA SUPERIORE, TASTO LIKED, TASTO DM, RICERCA E MAKE A POST
   ========================================= */
.top-bar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 25px;
}

.top-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Tasto quadrato Liked Posts subito alla destra della UserPlate */
.liked-posts-btn {
    display: none;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    padding: 0;
    background-image: linear-gradient(to bottom, #292929, #131313);
    border: 2.5px solid #111111;
    border-radius: 18px;
    color: #dcdcdc;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.liked-posts-btn:hover:not(:disabled) {
    border-color: #c8ff00;
    color: #c8ff00;
    transform: scale(1.05);
}

.UserPlate {
    display: flex;
    align-items: center;
    min-width: 200px;
    height: 55px;
    padding: 5px 15px 5px 5px;
    background-image: linear-gradient(to bottom, #292929, #131313);
    border: 2.5px solid #111111;
    border-radius: 40px;
    font-size: 15px;
    text-align: left;
    color: #dcdcdc;
    cursor: pointer;
    overflow: hidden;
}

.UserImg {
    border: 2.5px solid #111111;
    border-radius: 50%;
    object-fit: cover;
}

.UserText {
    padding: 4px 10px;
}

/* Tasto DM (Knock Knock) centrato orizzontalmente e allineato verticalmente con UserPlate e Log In */
.dm-top-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 55px;
    padding: 5px 22px;
    background-image: linear-gradient(to bottom, #292929, #131313);
    border: 2.5px solid #111111;
    border-radius: 40px;
    font-size: 15px;
    color: #dcdcdc;
    cursor: pointer;
    overflow: visible;
    transition: border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.dm-top-btn:hover {
    border-color: #c8ff00;
    transform: translateX(-50%) scale(1.05);
}

.kk-top-icon {
    flex-shrink: 0;
    color: #9e9e9e;
    transition: color 0.2s ease;
}

.dm-top-btn:hover .kk-top-icon {
    color: #c8ff00;
}

/* Pallino rosso con numero nuovi messaggi non letti sul tasto Knock Knock */
.dm-unread-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background-color: #ff2e4c;
    border: 2px solid #0d0d0d;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

/* Tasto RICERCA distanziato a destra di Knock Knock */
.search-open-btn {
    position: absolute;
    left: calc(50% + 114px);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    padding: 0;
    background-image: linear-gradient(to bottom, #292929, #131313);
    border: 2.5px solid #111111;
    border-radius: 18px;
    color: #dcdcdc;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.search-open-btn:hover {
    border-color: #c8ff00;
    color: #c8ff00;
    transform: scale(1.05);
}

.create-open-login-window-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 55px;
    padding: 5px;
    background-image: linear-gradient(to bottom, #292929, #131313);
    border: 2.5px solid #111111;
    border-radius: 40px;
    font-size: 15px;
    text-align: center;
    color: #dcdcdc;
    cursor: pointer;
    overflow: hidden;
}

/* Tasto MAKE A POST quadrato (1:1) fisso in basso a destra */
.make-post-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 50;
    display: none;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    padding: 0;
    background-image: linear-gradient(to bottom, #292929, #131313);
    border: 2.5px solid #111111;
    border-radius: 18px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.make-post-btn:hover {
    border-color: #c8ff00;
    transform: scale(1.05);
}

.make-post-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    pointer-events: none;
}

/* =========================================
   3. GRIGLIA E CARD DEI POST
   ========================================= */
.Posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 30px;
    padding: 40px 5%;
}

.PostPreview {
    position: relative;
    flex-shrink: 0;
    width: 250px;
    height: 420px;
    background-color: #1d1d1d;
    border: 5px solid #000000;
    border-radius: 30px 30px 5px 30px;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.PostPreview:hover {
    border-color: #c8ff00;
    transform: translateY(-4px);
}

.PostImageDiv {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.PostMediaWrapper {
    position: relative;
    width: 100%;
    height: 270px;
    overflow: hidden;
    background-color: #111111;
}

.PostImage {
    display: block;
    width: 100%;
    height: 270px;
    object-fit: cover;
    object-position: center;
}

.PostImage.nsfw-blur {
    filter: blur(18px);
    transform: scale(1.14);
}

.ik-card-media-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    pointer-events: none;
}

.PostProfileImageDiv {
    position: absolute;
    top: 242px;
    left: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    width: calc(100% - 24px);
}

.PostHeaderUser {
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.PostProfileImage {
    flex-shrink: 0;
    background-color: #1d1d1d;
    border: 4px solid #1d1d1d;
    border-radius: 50%;
    object-fit: cover;
}

.PostAuthorBox {
    flex-grow: 1;
    min-width: 0;
    margin-left: 8px;
    padding-bottom: 4px;
    border-bottom: 1.5px solid #3d3d3d;
    overflow: visible;
}

.PostAuthor {
    max-width: calc(100% + 8px);
    padding: 4px 8px;
    margin-left: -8px;
    font-size: 13px;
    color: #8c8c8c;
    vertical-align: bottom;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.PostText {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.25;
    text-align: left;
    color: #dcdcdc;
    word-break: break-word;
    overflow: hidden;
}

.PostDescription {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.2;
    text-align: left;
    color: #9e9e9e;
    word-break: break-word;
    overflow: hidden;
}

/* =========================================
   4. FINESTRE MODALI (LOGIN, REGISTER, POST)
   ========================================= */
.login-background {
    position: fixed;
    inset: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background-color: #000000bf;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.login-background.attiva {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.create-close-login-window-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.close-btn {
    width: 100%;
    height: auto;
}

.login {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: min(700px, 90vw);
    max-height: 92vh;
    overflow-y: auto;
    padding: 35px 20px;
    background-color: #000000;
    color: #dcdcdc;
    border: 2.5px solid #3a3a3a;
    border-radius: 25px 1px 25px 25px;
    transform: translate(-50%, -50%) scale(0.85);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.login-background.attiva .login {
    transform: translate(-50%, -50%) scale(1);
}

.post-create-modal {
    width: min(760px, 92vw);
    max-height: 94vh;
    padding: 28px 24px;
    justify-content: flex-start;
}

.post-create-modal form {
    max-width: 100%;
}

.login form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.login form input[type="text"],
.login form input[type="email"],
.login form input[type="password"] {
    width: 100%;
    height: 48px;
    margin-bottom: 16px;
    padding: 0 20px;
    background-color: #2e2e2e;
    border: 2.5px solid #4e4e4e;
    border-radius: 40px;
    color: #dcdcdc;
    outline: none;
}

.login form textarea {
    width: 100%;
    height: 110px;
    margin-bottom: 16px;
    padding: 14px 20px;
    background-color: #2e2e2e;
    border: 2.5px solid #4e4e4e;
    border-radius: 24px;
    color: #dcdcdc;
    resize: none;
    outline: none;
}

/* Stile quadrato con icona di upload per avatar e media del post */
.avatar-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px auto;
    background-color: #2e2e2e;
    border: 2.5px dashed #4e4e4e;
    border-radius: 20px;
    color: #8c8c8c;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.avatar-upload-label:hover {
    border-color: #c8ff00;
    background-color: #353535;
    color: #c8ff00;
}

.upload-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    margin-bottom: 6px;
}

.avatar-upload-label span {
    font-size: 11px;
    text-align: center;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

.avatar-upload-label input[type="file"] {
    display: none;
}

.login form input[type="submit"] {
    width: 100%;
    height: 55px;
    margin-top: 15px;
    background-color: #000000;
    border: 2.5px solid #4e4e4e;
    border-radius: 40px;
    font-size: 20px;
    color: #dcdcdc;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.login form input[type="submit"]:hover:not(:disabled) {
    background-color: #c8ff00;
    border-color: #c8ff00;
    color: #000000;
}

.login form input[type="submit"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.form-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    font-size: 14px;
    color: #dcdcdc;
}

.login a {
    color: #dcdcdc;
    text-decoration: none;
    transition: color 0.15s ease;
}

.login a:hover {
    color: #c8ff00;
}

/* =========================================
   5. PAGINA PROFILO UTENTE & LIKED POSTS
   ========================================= */
.profile-modal,
.liked-posts-modal {
    width: min(900px, 94vw);
    max-height: 92vh;
    padding: 28px 30px;
    gap: 18px;
    justify-content: flex-start;
}

.profile-modal-title {
    text-align: center;
    color: #dcdcdc;
    word-break: break-word;
}

.profile-top-section {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
}

.profile-avatar-box {
    flex-shrink: 0;
    width: 135px;
    height: 135px;
    background-color: #1d1d1d;
    border: 2.5px solid #4e4e4e;
    border-radius: 24px;
    overflow: hidden;
}

.profile-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info-column {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
    min-width: 0;
}

.profile-username-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 42px;
    padding: 0 18px;
    background-color: #2e2e2e;
    border: 2.5px solid #4e4e4e;
    border-radius: 30px;
    font-size: 16px;
    color: #ffffff;
    text-align: left;
    overflow: hidden;
}

.profile-username-bar span {
    max-width: calc(100% + 8px);
    padding: 4px 8px;
    margin-left: -8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-bio-box {
    width: 100%;
    min-height: 82px;
    max-height: 110px;
    padding: 12px 18px;
    background-color: #2e2e2e;
    border: 2.5px solid #4e4e4e;
    border-radius: 22px;
    font-size: 13px;
    line-height: 1.35;
    color: #dcdcdc;
    text-align: left;
    overflow-y: auto;
    word-break: break-word;
}

.profile-dot-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 32px;
}

.profile-edit-dot,
.profile-delete-dot {
    display: none;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background-color: #2e2e2e;
    border: 2.5px solid #4e4e4e;
    border-radius: 50%;
    color: #dcdcdc;
    cursor: pointer;
}

.profile-edit-dot:hover:not(:disabled) {
    background-color: #c8ff00;
    border-color: #c8ff00;
    color: #000000;
}

.profile-delete-dot:hover:not(:disabled) {
    background-color: #ff4d4d;
    border-color: #ff4d4d;
    color: #000000;
}

.profile-posts-box {
    width: 100%;
    height: 462px;
    padding: 18px;
    background-color: #2e2e2e;
    border: 2.5px solid #4e4e4e;
    border-radius: 22px;
    overflow-y: auto;
}

.profile-posts-box::-webkit-scrollbar {
    width: 6px;
}

.profile-posts-box::-webkit-scrollbar-track {
    background: #1f1f1f;
    border-radius: 10px;
    margin: 10px 0;
}

.profile-posts-box::-webkit-scrollbar-thumb {
    background: #8c8c8c;
    border-radius: 10px;
}

.profile-posts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

/* =========================================
   6. FINESTRA SINGOLO POST E COMMENTI (STILE IN-GAME ZZZ)
   ========================================= */
.ik-post-modal {
    width: min(980px, 94vw);
    height: min(600px, 88vh);
    padding: 0;
    background-color: #121212;
    border: 3px solid #2b2b2b;
    border-radius: 22px;
    overflow: hidden;
    justify-content: flex-start;
}

.ik-post-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 68px;
    padding: 0 24px;
    background-color: #1f1f1f;
    border-bottom: 2px solid #0a0a0a;
    flex-shrink: 0;
}

.ik-post-author-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.ik-post-author-pill img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2.5px solid #000000;
    background-color: #141414;
    object-fit: cover;
}

.ik-post-author-pill span {
    padding: 4px 8px;
    margin-left: -8px;
    font-size: 16px;
    color: #bababa;
    transition: color 0.15s ease;
}

.ik-post-author-pill:hover span:not(.ember-username) {
    color: #c8ff00;
}

.ik-post-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ik-post-date {
    font-size: 13px;
    color: #8c8c8c;
    white-space: nowrap;
}

/* Tastino tondo Like nell'header del post */
.ik-like-post-btn {
    display: none;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background-color: #292929;
    border: 2px solid #4e4e4e;
    border-radius: 50%;
    color: #9e9e9e;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.ik-like-post-btn:hover:not(:disabled) {
    border-color: #c8ff00;
    color: #ff2e4c;
}

.ik-like-post-btn.liked {
    background-color: #2e151b;
    border-color: #ff2e4c;
    color: #ff2e4c;
}

.ik-delete-post-btn {
    display: none;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background-color: #292929;
    border: 2px solid #4e4e4e;
    border-radius: 50%;
    color: #dcdcdc;
    cursor: pointer;
}

.ik-delete-post-btn:hover:not(:disabled) {
    background-color: #ff4d4d;
    border-color: #ff4d4d;
    color: #000000;
}

.ik-post-body-split {
    display: flex;
    width: 100%;
    height: calc(100% - 68px);
    padding: 20px;
    gap: 20px;
}

/* Colonna sinistra: Media del post */
.ik-post-left-media {
    position: relative;
    flex: 0 0 42%;
    height: 100%;
    background-color: #070707;
    border: 3px solid #232323;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.ik-post-modal-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Plate del Tag */
.ik-tag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.4px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

.ik-post-media-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    pointer-events: none;
}

/* Colonna destra: Testo del post + Commenti + Form di risposta */
.ik-post-right-column {
    flex: 1;
    height: 100%;
    background-color: #0b0b0b;
    border: 2px solid #1f1f1f;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ik-post-right-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.ik-post-right-scroll::-webkit-scrollbar {
    width: 6px;
}

.ik-post-right-scroll::-webkit-scrollbar-track {
    background: #161616;
    border-radius: 10px;
}

.ik-post-right-scroll::-webkit-scrollbar-thumb {
    background: #8c8c8c;
    border-radius: 10px;
}

.ik-post-detail-title {
    font-size: 17px;
    line-height: 1.35;
    color: #ffffff;
    margin-bottom: 10px;
    word-break: break-word;
}

.ik-post-detail-text {
    font-size: 13.5px;
    line-height: 1.45;
    color: #bdbdbd;
    white-space: pre-wrap;
    word-break: break-word;
}

.ik-comments-divider {
    width: 100%;
    height: 1.5px;
    background-color: #242424;
    margin: 18px 0 10px 0;
}

.ik-comments-list {
    display: flex;
    flex-direction: column;
}

.no-comments-msg {
    font-size: 13px;
    color: #6e6e6e;
    padding: 12px 0;
}

.ik-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1.5px solid #222222;
}

.ik-comment-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #2e2e2e;
    background-color: #1a1a1a;
    object-fit: cover;
    cursor: pointer;
}

.ik-comment-content {
    flex: 1;
    min-width: 0;
}

.ik-comment-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.ik-comment-author {
    min-width: 0;
    padding: 3px 6px;
    margin-left: -6px;
    font-size: 13.5px;
    color: #dcdcdc;
    cursor: pointer;
    transition: color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ik-comment-author:hover:not(.ember-username) {
    color: #c8ff00;
}

.ik-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ik-comment-date {
    font-size: 11px;
    color: #787878;
    white-space: nowrap;
}

/* Cuoricino + numero like nei commenti (al posto di 1F, 2F) */
.ik-comment-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    background-color: transparent;
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-size: 11.5px;
    color: #8c8c8c;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ik-comment-like-btn:hover:not(:disabled) {
    border-color: #c8ff00;
    color: #ff2e4c;
}

.ik-comment-like-btn.liked {
    color: #ff2e4c;
}

.ik-comment-like-btn.is-author {
    cursor: default;
}

.ik-comment-text {
    font-size: 13px;
    line-height: 1.38;
    color: #b0b0b0;
    word-break: break-word;
    white-space: pre-wrap;
}

.ik-post-modal .ik-comment-form {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1.5px solid #242424;
}

.ik-post-modal .ik-comment-form input[type="text"] {
    flex: 1;
    height: 42px;
    margin-bottom: 0;
    padding: 0 16px;
    background-color: #1d1d1d;
    border: 2px solid #3d3d3d;
    border-radius: 30px;
    font-size: 13px;
    color: #ffffff;
}

.ik-post-modal .ik-comment-form input[type="text"]:focus {
    border-color: #c8ff00;
}

.ik-comment-send-btn {
    flex-shrink: 0;
    height: 42px;
    padding: 0 22px;
    background-color: #292929;
    border: 2px solid #4e4e4e;
    border-radius: 30px;
    font-size: 13px;
    color: #dcdcdc;
    cursor: pointer;
}

.ik-comment-send-btn:hover:not(:disabled) {
    background-color: #c8ff00;
    border-color: #c8ff00;
    color: #000000;
}

/* =========================================
   7. SELETTORE TAG CON INTERRUTTORI STILE XIAOMI / MIUI
   ========================================= */
.ik-tags-selector-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 6px;
    background-color: #161616;
    border: 2.5px solid #3a3a3a;
    border-radius: 22px;
}

.ik-tags-selector-title {
    font-size: 12px;
    color: #8c8c8c;
    margin-bottom: 10px;
    text-align: left;
}

.ik-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.ik-tag-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1 1 calc(50% - 10px);
    min-width: 180px;
    padding: 8px 12px;
    background-color: #262626;
    border: 2px solid #3d3d3d;
    border-radius: 30px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ik-tag-switch-row:hover {
    border-color: #c8ff00;
    background-color: #2e2e2e;
}

.ik-tag-switch-row.attivo {
    background-color: #2e2e2e;
}

.miui-switch {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    padding: 0;
    background-color: #3a3a3a;
    border: 2px solid #555555;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.25s ease;
}

.miui-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: #bdbdbd;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.25s ease,
                width 0.15s ease;
}

.miui-switch:active .miui-switch-knob {
    width: 20px;
}

.miui-switch.on .miui-switch-knob {
    transform: translateX(20px);
    background-color: #111111;
}

.miui-switch.on:active .miui-switch-knob {
    transform: translateX(16px);
}

/* =========================================
   8. EFFETTO BLU ELETTRICO ESCLUSIVO PER "Omeg"
   ========================================= */
.ember-username {
    display: inline-block;
    color: #ccf4ff !important;
    letter-spacing: 0.4px;
    animation: emberglow 1.7s ease-in-out infinite alternate;
}

@keyframes emberglow {
    0% {
        color: #b8eeff;
        text-shadow:
            0 0 2px #00d9ff,
            0 0 4px #0099ff,
            0 0 7px rgba(0, 119, 255, 0.65);
    }
    50% {
        color: #e6f9ff;
        text-shadow:
            0 0 2px #33e0ff,
            0 0 6px #00aaff,
            0 0 10px rgba(0, 136, 255, 0.85);
    }
    100% {
        color: #c4f1ff;
        text-shadow:
            0 0 2px #00ccff,
            0 0 5px #0088ff,
            0 0 8px rgba(0, 102, 255, 0.75);
    }
}

/* =========================================
   9. FINESTRA MODALE DI RICERCA (UTENTI & POST)
   ========================================= */
.ik-search-modal {
    width: min(760px, 92vw);
    height: min(840px, 94vh);
    max-height: 94vh;
    padding: 28px 24px;
    justify-content: flex-start;
}

.ik-search-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 14px;
}

.ik-search-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.ik-search-select {
    flex-shrink: 0;
    height: 46px;
    padding: 0 18px;
    background-color: #2e2e2e;
    border: 2.5px solid #4e4e4e;
    border-radius: 40px;
    font-size: 14px;
    color: #ffffff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.ik-search-select:hover,
.ik-search-select:focus {
    border-color: #c8ff00;
}

.ik-search-top-row input[type="text"] {
    flex: 1;
    height: 46px;
    padding: 0 20px;
    background-color: #2e2e2e;
    border: 2.5px solid #4e4e4e;
    border-radius: 40px;
    font-size: 14px;
    color: #dcdcdc;
    outline: none;
    transition: border-color 0.2s ease;
}

.ik-search-top-row input[type="text"]:focus {
    border-color: #c8ff00;
}

.ik-search-date-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.ik-search-date-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 170px;
    height: 40px;
    padding: 0 14px;
    background-color: #1f1f1f;
    border: 2px solid #3a3a3a;
    border-radius: 30px;
    font-size: 12px;
    color: #9e9e9e;
}

.ik-search-date-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    font-size: 12px;
    color: #dcdcdc;
    color-scheme: dark;
    outline: none;
}

.ik-search-reset-btn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 18px;
    background-color: #292929;
    border: 2px solid #4e4e4e;
    border-radius: 30px;
    font-size: 12px;
    color: #dcdcdc;
    cursor: pointer;
}

.ik-search-reset-btn:hover {
    background-color: #c8ff00;
    border-color: #c8ff00;
    color: #000000;
}

.ik-search-tags-list {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.ik-search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    flex: 1;
    min-height: 160px;
    padding: 14px;
    background-color: #161616;
    border: 2.5px solid #3a3a3a;
    border-radius: 22px;
    overflow-y: auto;
}

.ik-search-results::-webkit-scrollbar {
    width: 6px;
}

.ik-search-results::-webkit-scrollbar-track {
    background: #111111;
    border-radius: 10px;
    margin: 8px 0;
}

.ik-search-results::-webkit-scrollbar-thumb {
    background: #8c8c8c;
    border-radius: 10px;
}

.ik-search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px 14px;
    background-color: #262626;
    border: 2px solid #3d3d3d;
    border-radius: 18px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ik-search-result-item:hover {
    border-color: #c8ff00;
    background-color: #2e2e2e;
}

.ik-search-thumb-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid #111111;
    background-color: #0a0a0a;
    overflow: hidden;
}

.ik-search-result-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ik-search-result-thumb.nsfw-blur {
    filter: blur(7px);
    transform: scale(1.16);
}

.ik-search-result-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #111111;
    background-color: #0a0a0a;
    object-fit: cover;
}

.ik-search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.ik-search-result-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ik-search-result-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ik-search-result-title {
    padding: 2px 6px;
    margin-left: -6px;
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ik-search-result-date {
    flex-shrink: 0;
    font-size: 11px;
    color: #787878;
    white-space: nowrap;
}

.ik-search-result-author-line {
    font-size: 12px;
    color: #9e9e9e;
}

.ik-search-result-author-line span {
    padding: 2px 6px;
}

.ik-search-result-sub {
    font-size: 12px;
    color: #9e9e9e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   10. FINESTRA MODALE DM "KNOCK KNOCK" (STILE ZZZ)
   ========================================= */
.kk-modal {
    width: min(980px, 94vw);
    height: min(630px, 88vh);
    padding: 0;
    background-color: #161616;
    border: 3px solid #2b2b2b;
    border-radius: 22px;
    overflow: hidden;
    justify-content: flex-start;
}

.kk-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 62px;
    padding: 0 22px;
    background-color: #0d0d0d;
    border-bottom: 2px solid #232323;
    flex-shrink: 0;
}

.kk-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kk-brand-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1c1c1c;
    border: 2px solid #333333;
    border-radius: 50%;
}

.kk-brand-title {
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.kk-body-split {
    display: flex;
    width: 100%;
    height: calc(100% - 62px);
    padding: 16px;
    gap: 16px;
}

.kk-left-sidebar {
    flex: 0 0 275px;
    height: 100%;
    background-color: #0e0e0e;
    border: 2px solid #222222;
    border-radius: 18px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.kk-left-tabs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 4px;
    background-color: #060606;
    border: 1.5px solid #222222;
    border-radius: 30px;
}

.kk-tab-pill-active {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 30px;
    background-color: #c8ff00;
    border-radius: 20px;
    color: #111111;
    flex-shrink: 0;
}

.kk-contact-search {
    flex: 1;
    min-width: 0;
    height: 30px;
    padding: 0 10px;
    background: transparent;
    border: none;
    font-size: 12px;
    color: #dcdcdc;
    outline: none;
}

.kk-contacts-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
}

.kk-contacts-list::-webkit-scrollbar {
    width: 5px;
}

.kk-contacts-list::-webkit-scrollbar-track {
    background: #141414;
    border-radius: 10px;
}

.kk-contacts-list::-webkit-scrollbar-thumb {
    background: #4e4e4e;
    border-radius: 10px;
}

.kk-contact-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 62px;
    padding: 6px 14px 6px 6px;
    background-color: #262626;
    border: 2.5px solid #080808;
    border-radius: 40px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.kk-contact-pill:hover:not(.attivo) {
    border-color: #c8ff00;
    background-color: #2f2f2f;
}

.kk-contact-pill.attivo {
    background-color: #b4e600;
    border-color: #d8ff4d;
}

.kk-contact-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
}

.kk-contact-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2.5px solid #111111;
    background-color: #141414;
    object-fit: cover;
}

.kk-contact-unread-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 13px;
    height: 13px;
    background-color: #ff2e4c;
    border: 2px solid #262626;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.kk-contact-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    text-align: left;
}

.kk-contact-name {
    padding: 2px 6px;
    margin-left: -6px;
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kk-contact-pill.attivo .kk-contact-name {
    color: #111111 !important;
    text-shadow: none !important;
}

.kk-contact-preview {
    font-size: 11.5px;
    color: #9e9e9e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kk-contact-pill.attivo .kk-contact-preview {
    color: #2b3800;
}

.kk-right-chat {
    flex: 1;
    height: 100%;
    background-color: #121212;
    border: 2.5px solid #99c200;
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kk-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 2px solid #262626;
    flex-shrink: 0;
}

.kk-chat-partner-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kk-chat-partner-pill span {
    padding: 2px 6px;
    font-size: 15px;
    color: #dcdcdc;
    transition: color 0.15s ease;
}

.kk-chat-partner-pill:hover span:not(.ember-username) {
    color: #c8ff00;
}

.kk-messages-scroll {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding: 16px 8px 10px 4px;
}

.kk-messages-scroll::-webkit-scrollbar {
    width: 6px;
}

.kk-messages-scroll::-webkit-scrollbar-track {
    background: #181818;
    border-radius: 10px;
}

.kk-messages-scroll::-webkit-scrollbar-thumb {
    background: #6e6e6e;
    border-radius: 10px;
}

.kk-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 82%;
}

.kk-msg-row.received {
    align-self: flex-start;
    flex-direction: row;
}

.kk-msg-row.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.kk-msg-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #2b2b2b;
    background-color: #1a1a1a;
    object-fit: cover;
    cursor: pointer;
}

.kk-msg-bubble {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13.5px;
    line-height: 1.38;
    word-break: break-word;
    white-space: pre-wrap;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.kk-msg-row.received .kk-msg-bubble {
    background-color: #e8e8e8;
    color: #141414;
    border-radius: 14px 18px 18px 6px;
}

.kk-msg-row.sent .kk-msg-bubble {
    background-color: #1668dc;
    color: #ffffff;
    border-radius: 18px 14px 6px 18px;
}

.kk-msg-media {
    max-width: 260px;
    max-height: 220px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
}

.kk-latest-footer {
    text-align: center;
    font-size: 11px;
    color: #555555;
    margin-top: auto;
    padding-top: 8px;
}

.kk-media-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 6px 14px;
    margin-top: 8px;
    background-color: #1f1f1f;
    border: 1.5px solid #c8ff00;
    border-radius: 20px;
    font-size: 12px;
    color: #c8ff00;
}

.kk-media-preview-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kk-media-remove-btn {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background-color: #2e2e2e;
    border: 1.5px solid #4e4e4e;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
}

.kk-media-remove-btn:hover {
    background-color: #ff4d4d;
    border-color: #ff4d4d;
    color: #000000;
}

.kk-chat-form {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100% !important;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1.5px solid #242424;
    flex-shrink: 0;
}

.kk-attach-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background-color: #292929;
    border: 2px solid #4e4e4e;
    border-radius: 50%;
    color: #dcdcdc;
    cursor: pointer;
}

.kk-attach-btn.has-file {
    border-color: #c8ff00;
    color: #c8ff00;
}

.kk-attach-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.kk-chat-form input[type="text"] {
    flex: 1;
    height: 42px !important;
    margin-bottom: 0 !important;
    padding: 0 16px !important;
    background-color: #1d1d1d !important;
    border: 2px solid #3d3d3d !important;
    border-radius: 30px !important;
    font-size: 13px;
    color: #ffffff;
}

.kk-chat-form input[type="text"]:focus {
    border-color: #c8ff00 !important;
}

.kk-send-btn {
    flex-shrink: 0;
    height: 42px;
    padding: 0 22px;
    background-color: #292929;
    border: 2px solid #4e4e4e;
    border-radius: 30px;
    font-size: 13px;
    color: #dcdcdc;
    cursor: pointer;
}

.kk-send-btn:hover:not(:disabled) {
    background-color: #c8ff00;
    border-color: #c8ff00;
    color: #000000;
}

.kk-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =========================================
   11. TASTO NOTIZIE, TASTO BUG REPORT, MODALE NEWS (16:7) E ADMIN BUGS
   ========================================= */
.top-right-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Tasto Notizie (Busta delle lettere) a sinistra dei DM */
/* Tasto Notizie (Busta delle lettere) a sinistra dei DM */
.news-open-btn {
    position: absolute;
    left: calc(50% - 169px);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    padding: 0;
    background-image: linear-gradient(to bottom, #292929, #131313);
    border: 2.5px solid #111111;
    border-radius: 18px;
    color: #dcdcdc;
    cursor: pointer;
    flex-shrink: 0;
    overflow: visible;
    transition: border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.news-open-btn:hover {
    border-color: #c8ff00;
    color: #c8ff00;
    transform: scale(1.05);
}

/* Pallino rosso senza numero quando ci sono nuove notizie non visualizzate */
.news-unread-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 13px;
    height: 13px;
    background-color: #ff2e4c;
    border: 2px solid #0d0d0d;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
    pointer-events: none;
}

/* Tasto + centrato nell'intestazione delle notizie */
.ik-add-news-btn {
    position: absolute;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0 0 3px 0;
    background-color: #2e2e2e;
    border: 2.5px solid #4e4e4e;
    border-radius: 50%;
    font-size: 24px;
    line-height: 0.85;
    color: #dcdcdc;
    cursor: pointer;
}

/* Tasto Bug Report (visibile solo agli utenti registrati) */
.bug-report-btn {
    display: none;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    padding: 0;
    background-image: linear-gradient(to bottom, #292929, #131313);
    border: 2.5px solid #111111;
    border-radius: 18px;
    color: #dcdcdc;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.bug-report-btn:hover:not(:disabled) {
    border-color: #c8ff00;
    color: #ff4d4d;
    transform: scale(1.05);
}

/* Finestra Modale Notizie */
.news-modal {
    width: min(940px, 94vw);
    max-height: 92vh;
    padding: 28px 30px;
    gap: 18px;
    justify-content: flex-start;
}

.ik-news-modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
}

.ik-add-news-btn {
    position: absolute;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: #2e2e2e;
    border: 2.5px solid #4e4e4e;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #dcdcdc;
    cursor: pointer;
}

.ik-add-news-btn:hover:not(:disabled) {
    background-color: #c8ff00;
    border-color: #c8ff00;
    color: #000000;
}

.ik-news-list-box {
    width: 100%;
    height: 540px;
    padding: 18px;
    background-color: #2e2e2e;
    border: 2.5px solid #4e4e4e;
    border-radius: 22px;
    overflow-y: auto;
}

.ik-news-list-box::-webkit-scrollbar {
    width: 6px;
}

.ik-news-list-box::-webkit-scrollbar-track {
    background: #1f1f1f;
    border-radius: 10px;
    margin: 10px 0;
}

.ik-news-list-box::-webkit-scrollbar-thumb {
    background: #8c8c8c;
    border-radius: 10px;
}

.ik-news-list-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Card Notizia larga con rapporto d'aspetto media 16:7 */
.ik-news-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #1d1d1d;
    border: 4px solid #000000;
    border-radius: 26px 26px 6px 26px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.ik-news-card:hover {
    border-color: #c8ff00;
    transform: translateY(-3px);
}

.ik-news-media-wrap {
    width: 100%;
    aspect-ratio: 16 / 7;
    background-color: #111111;
    overflow: hidden;
}

.ik-news-card-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ik-news-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 20px 18px 20px;
    text-align: left;
}

.ik-news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #3d3d3d;
}

.ik-news-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ik-news-card-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #111111;
    object-fit: cover;
}

.ik-news-card-author span {
    padding: 2px 6px;
    font-size: 13px;
    color: #dcdcdc;
}

.ik-news-card-date {
    font-size: 12px;
    color: #8c8c8c;
}

.ik-news-card-title {
    font-size: 17px;
    color: #ffffff;
    word-break: break-word;
}

.ik-news-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    line-height: 1.35;
    color: #9e9e9e;
    overflow: hidden;
    word-break: break-word;
}

/* Pagina Admin Bug Reports (bugs.html) */
.ik-admin-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(680px, 90vw);
    margin: 80px auto;
    padding: 32px;
    background-color: #0d0d0d;
    border: 2.5px solid #3a3a3a;
    border-radius: 24px;
    text-align: center;
}

.ik-bugs-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(960px, 92vw);
    margin: 20px auto 50px auto;
}

.ik-bugs-filters {
    display: flex;
    gap: 10px;
}

.bug-filter-btn.attivo {
    background-color: #c8ff00;
    border-color: #c8ff00;
    color: #000000;
}

.ik-bugs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ik-bug-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 24px;
    background-color: #161616;
    border: 2.5px solid #3a3a3a;
    border-radius: 22px;
    text-align: left;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.ik-bug-card.resolved {
    border-color: #99c200;
    opacity: 0.78;
}

.ik-bug-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #2b2b2b;
}

.ik-bug-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #ffffff;
}

.ik-bug-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #000000;
    object-fit: cover;
}

.ik-bug-date {
    font-size: 12px;
    color: #8c8c8c;
}

.ik-bug-resolve-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #dcdcdc;
}

.ik-bug-title {
    font-size: 16px;
    color: #ffffff;
}

.ik-bug-body {
    font-size: 13.5px;
    line-height: 1.45;
    color: #bdbdbd;
    white-space: pre-wrap;
    word-break: break-word;
}

.ik-bug-media-box {
    margin-top: 6px;
    max-width: 420px;
    border-radius: 14px;
    border: 2px solid #2b2b2b;
    overflow: hidden;
    background-color: #0a0a0a;
}

.ik-bug-media-box img,
.ik-bug-media-box video {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
}

/* Tastino lista Bug Reports visibile solo a Omeg nella modale Report a Bug */
.ik-bug-list-btn {
    position: absolute;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: #2e2e2e;
    border: 2.5px solid #4e4e4e;
    border-radius: 50%;
    color: #dcdcdc;
    cursor: pointer;
}

.ik-bug-list-btn:hover:not(:disabled) {
    background-color: #c8ff00;
    border-color: #c8ff00;
    color: #000000;
}