body {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
  }

:root {
  --image-preview-bg: #ffffff;
  --image-preview-border: rgba(0, 0, 0, 0.08);
  --image-preview-remove-bg: rgba(255, 102, 91, 0.9);
  --image-preview-remove-color: #ffffff;
}

  .login-page {
    --login-card-bg: rgba(255, 255, 255, 0.96);
    --login-card-border: rgba(227, 227, 231, 0.9);
    --login-card-shadow: 0 45px 80px -40px rgba(70, 80, 110, 0.22);
    --login-text-color: #2d2a31;
    --login-muted: #62606b;
    --login-field-bg: rgba(255, 255, 255, 0.98);
    --login-field-border: rgba(0, 0, 0, 0.06);
    --login-field-placeholder: #9a97a5;
    --login-hero-bg: radial-gradient(circle at top left, rgba(255, 102, 91, 0.16), transparent 60%), linear-gradient(135deg, #ffffff, #f5f1ff);
    --login-hero-text: #3f2a4b;
    --login-hero-bubble: rgba(255, 102, 91, 0.12);
  }

  .login-page .avatar-preview {
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 18px 36px -20px rgba(70, 80, 110, 0.2);
  }

  .login-page .avatar-feedback {
    color: #d44a5d;
  }

  .login-page .login-button.secondary {
    background: rgba(255, 102, 91, 0.16);
  }

  .login-page .login-button.ghost {
    border-color: rgba(255, 102, 91, 0.45);
    background: rgba(255, 102, 91, 0.05);
  }

  .login-page .login-button.ghost:hover {
    background: rgba(255, 102, 91, 0.12);
  }

  .login-page .login-button.is-success {
    background: rgba(47, 168, 103, 0.16);
    color: #2fa867;
    border-color: rgba(47, 168, 103, 0.4);
  }

  .login-page .handle-status {
    background: rgba(0, 0, 0, 0.05);
  }

  .login-page .handle-status.is-available {
    color: #2fa867;
    background: rgba(47, 168, 103, 0.16);
  }

  .login-page .handle-status.is-taken,
  .login-page .handle-status.is-error {
    color: #d44a5d;
    background: rgba(212, 74, 93, 0.16);
  }

  .login-page .handle-status.is-invalid {
    color: #cf8b32;
    background: rgba(207, 139, 50, 0.16);
  }

  .login-page .register-guidelines {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .login-page .login-toast {
    background: rgba(47, 168, 103, 0.16);
    border-color: rgba(47, 168, 103, 0.35);
    color: #2fa867;
  }

  .container {
        position: fixed;
        top: 0;
        left: 0;
        width: 230px;
        height: 100vh;
        padding: 20px 40px;
        display: flex;
        flex-direction: column;
        z-index: 0;
        overflow-y: hidden;
        overflow-x: hidden;
    }


  h1 {
    font-family: "Love Letter", cursive;
    margin: 0 20px 0 0;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  }

.profile-text {
  color: #666;
  cursor: default;
}

  h1 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s;
  }
  h1 a:hover { transform: scale(1.1); }
  
  .nav-links {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-links a {
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 50px;
    transition: background 0.3s, color 0.3s;
  }

  .nav-links a:hover {
    background: #f2e8e7;
    color: #FF665B;
  }

  .theme-switcher {
    --theme-switcher-bg: rgba(255, 255, 255, 0.95);
    --theme-switcher-bg-hover: #f2e8e7;
    --theme-switcher-border: rgba(0, 0, 0, 0.08);
    --theme-switcher-border-hover: rgba(0, 0, 0, 0.18);
    --theme-switcher-text: #666;
  }

  .theme-switcher__label {
    color: #FF665B;
  }
  
  @keyframes subtleGlow {
    from { box-shadow: 0 0 140px 0 rgba(248,126,113,0.10);}
    to   { box-shadow: 0 0 150px 10px rgba(248,126,113,0.15);}
  }

  .userBorderColor {
    border: 1px solid #e0e0e0;
  }

  .userBackgroundColor {
    background-color: #fff;
  }

  .threadBorderless {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    max-width: 680px;
    color: #333;
    font-family: "Arial", sans-serif;
    font-size: 14px;
    transition: background 0.2s;
  }


  .thread {
    border-bottom: 1px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    background: #fff;
    padding: 20px 20px;
    max-width: 680px;
    position: relative;
    color: #333;
    font-family: "Arial", sans-serif;
    font-size: 14px;
    transition: background 0.2s;
  }

  .thread::after {
    content: '';
    position: absolute;
    left: 45px;
    top: 78px;
    bottom: 0;
    width: 2px;
    background-color: #e1e8ed;
    z-index: 1;
  }

  .thread:not(:has(.comment))::after {
    display: none;
  }

  .thread:hover { background: #f8f8f8; cursor: pointer; }
  
  .post-twitter-layout { display: flex; align-items: flex-start; width: 100%; }
  .thread-avatar-container { flex-shrink: 0; }
  .thread-text-content { text-align: left; margin-bottom: 8px; }
  
  .thread-header-twitter {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap;
  }
  .user-info-twitter {
    display: flex; flex-direction: column; align-items: flex-start; margin-top: 14px; gap: 2px; flex: 1;
  }
  .display-name { font-weight: bold; font-size: 1.1em; color: #FF665B; }
  .username, .subject-twitter, .date-twitter {
    color: #657786; font-size: 0.9em;
  }
  .date-twitter { margin-left: auto; }
  .pin-icon-twitter { color: #FF665B; margin-left: 8px; }
  
  .post-content { margin: 0; padding: 0; }
  
  .avatar-img {
    width: 48px; height: 48px; border-radius: 50%; margin-right: 10px; margin-top: 10px;
  }
  
  .thread-image-container,
.comment-image-container {
  display: flex;
  justify-content: flex-start; /* align horizontally at start */
  align-items: flex-start;     /* align vertically at top */
  width: 100%;
  gap: 8px; /* spacing between multiple images */
  flex-wrap: wrap;
}

.post-image-centered {
  width: auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 16px;
  object-fit: contain;
  border: 1px solid #2B2532;
  background: #1C1820;
  transition: transform 0.2s;
  cursor: pointer;
}

.post-image-centered:hover {
  transform: scale(1.001);
}

  .post-interactions {
    display: flex;
    justify-content: left;
    align-items: center;
    margin-top: 15px;
    padding-left: 65px;
    width: 100%;
    max-width: none;
    gap: 24px;
    font-size: medium;
  }
  .interaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #657786;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 0.98em;
  }
  .interaction-btn:hover { color: #FF665B; }
  
  .notice {
    display: inline-block;
    background: #FF665B;
    border-radius: 20px;
    font-size: 0.85em;
    margin-top: 15px;
    color: #333;
  }
  
  /* FORM E INPUTS */
  .thread-form-container {
    max-width: 671px; 
    border: 1px solid #ddd; 
    padding: 24px; 
    z-index: 1000;
    position: relative;
    background: #fff;
}
  .form-header { display: flex; align-items: flex-start; }
  .form-content { flex: 1; }
  .input-row { display: flex; margin-left: 10px; margin-top: 5px; }
  .name-input, .subject-input {
    color: #333; width: 100%; border: none; margin-bottom: 8px; background: #fff;
  }
  .subject-input { margin-left: 10px; color: #666; }
  .input-textarea, .comment-textarea {
    margin-left: 3px; width: 100%; border: none; resize: none; min-height: 80px; background: #fff;
    font-size: 1.3em; line-height: 1.4em; color: #333; padding: 8px; font-family: Arial, Helvetica, sans-serif;
  }
  .input-textarea:focus, .comment-textarea:focus { outline: none; box-shadow: none; }
  .form-footer {
    display: flex; justify-content: space-between; align-items: center; margin-top: 20px; margin-left: 10px; margin-right: 10px;
  }
  .file-input-label, .file-input-label-comment {
    cursor: pointer; color: #FF665B; font-size: 0.9em;
  }
  .file-name-display { color: #FF665B; font-size: 0.9em; margin-left: 10px;}
  .post-btn {
    background: #FF665B; color: #fff; border: none; border-radius: 20px; padding: 8px 16px; font-weight: bold; cursor: pointer;
  }
  
  /* COMMENT MODERNO */
  .comment {
    position: relative;
    left: 8;
    padding-right: 80px;
    padding-top: 5px;
    padding-bottom: 25px;
    display: flex;
    align-items: flex-start;
    transition: background .2s;
    color: #333;
    font-family: "Arial", sans-serif;
    font-size: 14px;
  }

  .comment:last-child {
    padding-bottom: 0px;
  }

  .comment:last-child::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 47px;
    bottom: -20px;
    width: 2px;
    background-color: #fff;
    z-index: 3;
    transition: background-color 0.2s;
  }

  .comment:last-child:hover::after {
    background-color: #f6f6f6;
      transition: background-color 0.2s;
  }

  .comment:hover { background: #f6f6f6; }
  .comment-avatar-container .avatar-img {
    width: 38px; height: 38px; margin-top: 3px; margin-right: 0;
    position: relative;
    z-index: 2;
    margin-left: 0;
  }
  .comment-content-container { flex: 1;
   position: relative;
    z-index: 2;
    margin-left: 10px;
  }
  .comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; margin-left: 10px;}
  .comment-poster-name-regular, .comment-poster-name-admin { font-weight: bold; color: #FF665B; font-size: 1.04em; margin-bottom: -8px; margin-top: 5px; }
  .comment-date { color: #999; font-size: 0.92em;}
  .comment-text { font-size: 1.01em;  margin-left: 10px;}
  .comment-full-content { display: none; }
  .comment-interactions { display: flex; gap: 18px; margin-top: 8px; color: #a6a6a6; font-size: 0.98em;}
  .comment-interactions .interaction-btn { color: #999; gap: 6px;}
  .comment-interactions .interaction-btn:hover { color: #FF665B;}
  
  /* Outras pequenas correções */
  .break-word { overflow-wrap: break-word; word-break: break-all;}
  .reference { color: #FF665B; }
  .reference:hover { cursor: pointer; text-decoration: underline; }
  .pin-icon, .pin-icon-twitter { color: #FF665B; margin-left: 10px; cursor: pointer; }
  .poster-name-admin, .poster-name-regular { color: #FF665B; }
  .banned-notice, .rust-notice, .gleam-notice {
    margin-left: 10px; background: #FF665B; border-radius: 20px; padding: 10px; margin-top: -5px; cursor: pointer;
  }
  
  /* Dialog e modais seguem o padrão antigo */
  dialog {
    background: transparent; border: none; border-radius: 20px; padding: 20px;
    width: 800px; max-width: 90%; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  dialog::backdrop { background: rgba(0,0,0,0.5);}
  .dialog-container { background: #fff; border: none; border-radius: 20px; padding: 20px; width: 800px; max-width: 90%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
  
  .image-modal { position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); display:flex; justify-content:center; align-items:center; z-index:1000;}
  .image-modal .modal-content { max-width:90%; max-height:90%; border:5px solid #fff; border-radius:5px;}
  .image-modal .close { position:absolute; top:20px; right:35px; color:#fff; font-size:40px; font-weight:bold; cursor:pointer; z-index:1001; }
  
  .thread-content {
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .comments-container {
    position: relative;
    margin-top: 30px;
  }

    .comment-content,
    .comment-text,
    .comment-header {
    text-align: left !important;
    }

    .comment-id {
        color: #657786;
        font-size: 0.93em;
        margin-bottom: 2px;
        display: block;
      }

      .comment-form-container {
        max-width: 676px;
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        padding: 26px 22px 18px 22px;
        background: #fff;
      }
      
      .comment-form-container .reply-header {
        margin-bottom: 14px;
      }
      
      .comment-form-container .reply-info {
        color: #FF665B;
        font-weight: 600;
        font-size: 1.08em;
      }
      
      .comment-form-container form {
        width: 100%;
      }
      
      .comment-form-container .form-header {
        display: flex;
        align-items: flex-start;
        margin-bottom: 10px;
      }
      
      .comment-form-container .avatar-img {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        margin-right: 14px;
        margin-top: 4px;
      }
      
      .comment-form-container .form-content {
        flex: 1;
      }
      
      .comment-form-container .input-row {
        display: flex;
        margin-left: 4px;
        margin-top: 2px;
        gap: 10px;
      }
      
      .comment-form-container .comment-name-input {
        width: 100%;
        border: none;
        background: #fff;
        color: #333;
        margin-bottom: 8px;
        font-size: 1em;
        padding: 6px 8px;
        border-radius: 8px;
        border: none;
        transition: border 0.2s;
      }
      
      .comment-form-container .comment-name-input:focus {
        outline: none;
        border: none;
      }
      
      .comment-form-container .input-textarea,
      .comment-form-container .comment-textarea {
        width: 100%;
        border: none;
        resize: none;
        min-height: 74px;
        background: #fff;
        font-size: 1.04em;
        line-height: 1.54em;
        color: #333;
        padding: 8px;
        font-family: Arial, Helvetica, sans-serif;
        border-radius: 8px;
        margin-top: 6px;
        border: none;
        transition: border 0.2s;
      }
      
      .comment-form-container .input-textarea:focus,
      .comment-form-container .comment-textarea:focus {
        outline: none;
        border: none;
      }
      
      .comment-form-container .form-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 18px;
        margin-left: 4px;
        margin-right: 4px;
      }
      
      .comment-form-container .file-input-container {
        display: flex;
        align-items: center;
        gap: 10px;
      }
      
      .comment-form-container .file-input-label-comment {
        cursor: pointer;
        color: #FF665B;
        font-size: 1em;
        padding: 4px 10px;
        border-radius: 8px;
        transition: background 0.2s;
      }
      
      .comment-form-container .file-input-label-comment:hover {
        background: #fbeae8;
      }
      
      .comment-form-container .post-btn {
        background: #FF665B;
        color: #fff;
        border: none;
        border-radius: 20px;
        padding: 8px 18px;
        font-weight: bold;
        cursor: pointer;
        font-size: 1em;
        transition: background 0.2s;
      }
      
      .comment-form-container .post-btn:hover {
        background: #e36d5e;
      }
      
      .file-input-container {
        display: flex;
        align-items: center;
        gap: 10px;
      }
      
      .file-input-hidden {
        display: none;
      }
      
      .file-input-label {
        cursor: pointer;
        color: #FF665B;
        font-size: 1.2em;
        padding: 8px 12px;
        border-radius: 8px;
        transition: background 0.2s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
      
      .file-input-label:hover {
        background: rgba(248, 126, 113, 0.1);
      }
      
      .file-name-display {
        margin: 0;
        color: #666;
        font-size: 0.9em;
      }

@media all and (max-device-width: 768px) {
  .container {
    display: none !important;
  }
}