    /* ==========================================================================
       RESET & ROOT VARIABLES (CARLOS DIAS GEOMETRIC DESIGN - PADRÃO RIGOROSO)
       ========================================================================== */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

        :root, :root[data-theme="light"] {
      /* Fundo da Página & Molduras: Padrão Carlos Dias (Rejuvenescer) */
      --bg-canvas: #FFFFFF;
      --bg-glow: radial-gradient(circle at 50% -120px, rgba(2, 132, 199, 0.08) 0%, rgba(217, 119, 6, 0.03) 45%, transparent 70%);
      
      /* Superfícies & Cartões */
      --card-bg: #DEE7F0;
      --card-bg-elevated: #E9F1F8;
      --card-composer-bg: #E9F1F8;
      --border-card: #B6C8DC;
      --border-subtle: #CBD5E1;
      --border-input: #B6C8DC;
      --box-inner-bg: #FFFFFF;
      --zone-bg: #F1F5F9;
      --shadow-card: 0 4px 18px -2px rgba(12, 62, 117, 0.08), 0 2px 6px -1px rgba(12, 62, 117, 0.04);
      --shadow-card-hover: 0 14px 30px -4px rgba(12, 62, 117, 0.14), 0 0 16px rgba(2, 132, 199, 0.16);

      /* Tipografia */
      --text-white: #0C3E75;
      --text-body: #164E8C;
      --text-muted: #475569;
      --text-placeholder: #64748B;
      --text-subtle: #475569;
      --text-heading: #0C3E75;

      /* Controlos de Topo */
      --top-bar-bg: rgba(255, 255, 255, 0.92);
      --top-bar-border: #E2E8F0;
      --btn-control-bg: #FFFFFF;
      --btn-control-border: #CBD5E1;
      --btn-control-text: #0F172A;
      --btn-control-hover-bg: #F8FAFC;
      --btn-control-hover-border: #0284C7;
      --menu-bg: #FFFFFF;
      --menu-border: #E2E8F0;
      --menu-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
      --menu-item-text: #334155;
      --menu-item-hover: #F1F5F9;
      --menu-item-active-text: #0284C7;

      /* Destaques e Botões */
      --cyan-bright: #0284C7;
      --cyan-btn: #0284C7;
      --cyan-btn-hover: #0369A1;
      --green-reparador-top: #1fa851;
      --green-reparador-bot: #15803d;
      --red-destruidor-top: #db2728;
      --red-destruidor-bot: #b01919;
      --stats-bar-bg: #E2E8F0;
      --stats-bar-border: #B6C8DC;
      --game-box-bg: #FFFFFF;
      --game-box-left-bg: #F1F5F9;
      --game-box-border: #0284C7;
      --social-btn-hover: rgba(2, 132, 199, 0.08);
      --social-btn-color: #334155;
    }

    :root[data-theme="dark"] {
      --bg-canvas: #0b0f19;
      --bg-glow: radial-gradient(circle at 50% -120px, rgba(6, 182, 212, 0.12) 0%, rgba(255, 240, 75, 0.04) 45%, transparent 70%);
      
      --card-bg: #152238;
      --card-bg-elevated: #1e2c44;
      --card-composer-bg: #172033;
      --border-card: #23344e;
      --border-subtle: #2b3952;
      --border-input: #3c4f69;
      --box-inner-bg: #253347;
      --zone-bg: #1c2738;
      --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
      --shadow-card-hover: 0 12px 36px rgba(0, 0, 0, 0.6);

      --text-white: #FFFFFF;
      --text-body: #F1F5F9;
      --text-muted: #94A3B8;
      --text-placeholder: #71869E;
      --text-subtle: #64748B;
      --text-heading: #FFFFFF;

      --top-bar-bg: rgba(13, 19, 35, 0.88);
      --top-bar-border: rgba(255, 255, 255, 0.08);
      --btn-control-bg: #1E293B;
      --btn-control-border: rgba(255, 255, 255, 0.14);
      --btn-control-text: #F8FAFC;
      --btn-control-hover-bg: #27354D;
      --btn-control-hover-border: #00A3FF;
      --menu-bg: #0F172A;
      --menu-border: rgba(0, 163, 255, 0.4);
      --menu-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
      --menu-item-text: #F8FAFC;
      --menu-item-hover: rgba(0, 163, 255, 0.15);
      --menu-item-active-text: #00A3FF;

      --cyan-bright: #00A3FF;
      --cyan-btn: #0088CC;
      --cyan-btn-hover: #0299e6;
      --green-reparador-top: #1fa851;
      --green-reparador-bot: #15803d;
      --red-destruidor-top: #db2728;
      --red-destruidor-bot: #b01919;
      --stats-bar-bg: #111A2E;
      --stats-bar-border: #1F2D48;
      --game-box-bg: #0C1424;
      --game-box-left-bg: #09101C;
      --game-box-border: #0088CC;
      --social-btn-hover: rgba(255, 255, 255, 0.08);
      --social-btn-color: #CBD5E1;
    }

    body {
      background-color: var(--bg-canvas);
      background-image: var(--bg-glow);
      background-repeat: no-repeat;
      color: var(--text-body);
      font-family: 'Fira Sans Condensed', 'Fira Sans', sans-serif;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0 0 80px 0;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      transition: background-color 0.25s ease, color 0.25s ease;
    }

    /* Content Stream Centered: Mancha Normalizada do Ecossistema (880px úteis, <=1.5mm lateral) */
    .mybook-stream-container {
      width: 100%;
      max-width: 888px;
      padding: 0 4px 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    /* ==========================================================================
       BLOCO 1: FORMULÁRIO DE INSERIR NOVOS POSTS (COMPOSER DESCOMPLICADO)
       ========================================================================== */
    .composer-card {
      background: var(--card-composer-bg);
      border: 1px solid var(--border-card);
      border-radius: 14px;
      padding: 24px 28px;
      box-shadow: var(--shadow-card);
      position: relative;
    }

    /* Linha 1: Label Titulo + Caixa de Texto do Título */
    .composer-title-row {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-bottom: 18px;
    }

    .composer-title-label {
      font-size: 18px;
      font-weight: 700;
      color: var(--text-heading);
      letter-spacing: 0.02em;
      min-width: 56px;
      user-select: none;
    }

    .composer-title-input {
      flex: 1;
      height: 52px;
      background: var(--box-inner-bg);
      border: 1px solid var(--border-input);
      border-radius: 9px;
      padding: 0 18px;
      color: var(--text-heading);
      font-size: 17.5px;
      font-family: inherit;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .composer-title-input::placeholder {
      color: var(--text-placeholder);
    }
    .composer-title-input:focus {
      border-color: var(--cyan-bright);
      box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
    }
    .composer-title-input:focus {
      border-color: var(--cyan-bright);
    }
    .composer-title-input::placeholder {
      color: var(--text-placeholder);
    }

    /* Linha 2: Contentor Unificado de Texto e Zonas de Imagem */
    .composer-unified-box {
      border: 1px solid var(--border-input);
      border-radius: 9px;
      overflow: hidden;
      background: var(--box-inner-bg);
      display: flex;
      flex-direction: column;
      margin-bottom: 20px;
    }

    /* Linha Superior: Textarea + Espaço Lateral Dinâmico */
    .composer-split-upper {
      display: flex;
      border-bottom: 1px solid var(--border-subtle);
      min-height: 120px;
    }

    .composer-textarea-cell {
      flex: 1;
      padding: 18px 20px;
      display: flex;
    }

    .composer-textarea {
      width: 100%;
      height: 100%;
      min-height: 120px;
      background: transparent;
      border: none;
      padding: 18px 20px;
      font-size: 18px;
      line-height: 1.5;
      color: var(--text-heading);
      font-family: inherit;
      outline: none;
      resize: none;
    }
    .composer-textarea::placeholder {
      color: var(--text-placeholder);
    }
    .composer-textarea::placeholder {
      color: var(--text-placeholder);
    }

    /* Zona Lateral Dinâmica: Abre apenas quando o utilizador escolhe imagem lateral */
    .composer-zone-lateral {
      width: 240px;
      flex-shrink: 0;
      border-left: 1px solid var(--border-subtle);
      background: var(--zone-bg);
      display: none;
      align-items: center;
      justify-content: center;
      position: relative;
      cursor: pointer;
      transition: background 0.15s ease;
      overflow: hidden;
      padding: 6px;
    }
    .composer-zone-lateral.open {
      display: flex;
    }

    /* Zona Inferior Dinâmica: Abre apenas quando o utilizador escolhe imagem inferior */
    .composer-zone-inferior {
      min-height: 70px;
      background: var(--zone-bg);
      display: none;
      align-items: center;
      justify-content: center;
      position: relative;
      cursor: pointer;
      transition: background 0.15s ease;
      overflow: hidden;
      padding: 6px;
      border-top: 1px solid var(--border-subtle);
    }
    .composer-zone-inferior.open {
      display: flex;
    }

    .zone-preview-container {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .zone-preview-container img {
      max-width: 100%;
      max-height: 220px;
      object-fit: cover;
      border-radius: 7px;
      display: block;
      box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    }

    .btn-remove-zone-img {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: rgba(15, 23, 42, 0.9);
      border: 1px solid rgba(255, 255, 255, 0.5);
      color: #FFFFFF;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      transition: all 0.15s ease;
      z-index: 5;
    }
    .btn-remove-zone-img:hover {
      background: #EF4444;
      border-color: #EF4444;
      transform: scale(1.1);
    }

    /* Linha 3: Barra de Controlos (>, ●, ⌄, ◻, Inserir Imagem e Publicar) */
    .composer-bottom-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 18px;
    }

    .composer-controls-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .ctrl-unit {
      display: flex;
      align-items: center;
      gap: 9px;
      cursor: pointer;
      user-select: none;
    }

    .btn-ctrl-square {
      width: 38px;
      height: 38px;
      background: #364761;
      border: 1.5px solid #4A5F80;
      border-radius: 7px;
      color: #CBD5E1;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .btn-ctrl-square:hover {
      background: #415575;
      border-color: var(--cyan-bright);
      color: #FFFFFF;
    }
    .btn-ctrl-square.active {
      background: var(--cyan-btn);
      border-color: var(--cyan-bright);
      color: #FFFFFF;
    }

    .indicator-circle {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #253347;
      border: 1.5px solid #4A5F80;
      transition: all 0.15s ease;
    }
    .indicator-circle.active {
      background: var(--cyan-bright);
      border-color: #FFFFFF;
      box-shadow: 0 0 8px rgba(0, 163, 255, 0.85);
    }

    .indicator-square {
      width: 18px;
      height: 18px;
      border-radius: 4px;
      background: #253347;
      border: 1.5px solid #4A5F80;
      display: flex;
      align-items: center;
      justify-content: center;
      color: transparent;
      font-size: 11px;
      font-weight: 900;
      transition: all 0.15s ease;
    }
    .indicator-square.active {
      background: var(--cyan-bright);
      border-color: #FFFFFF;
      color: #FFFFFF;
      box-shadow: 0 0 8px rgba(0, 163, 255, 0.85);
    }

    .composer-label-insert {
      font-size: 17px;
      font-weight: 700;
      color: #FFFFFF !important;
      margin-left: 4px;
      user-select: none;
    }

    .btn-publicar {
      height: 48px;
      padding: 0 42px;
      background: var(--cyan-btn);
      border: none;
      border-radius: 9px;
      color: #FFFFFF !important;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: 0.02em;
      cursor: pointer;
      transition: all 0.15s ease;
      box-shadow: 0 2px 10px rgba(0, 136, 204, 0.4);
    }
    .btn-publicar:hover {
      background: var(--cyan-btn-hover);
      box-shadow: 0 4px 16px rgba(0, 163, 255, 0.6);
      transform: translateY(-1px);
    }
    .btn-publicar:active {
      transform: translateY(0);
    }


    /* ==========================================================================
       BLOCO 2: O POST MODELO VISUAL (ARQUITETURA GEOMÉTRICA CARLOS DIAS)
       ========================================================================== */
    .post-card {
      --card-pad-x: 20px;
      --card-pad-y: 16px;
      background: var(--card-bg);
      border: 1px solid var(--border-card);
      border-radius: 14px;
      padding: var(--card-pad-y) var(--card-pad-x);
      box-shadow: var(--shadow-card);
      position: relative;
      overflow: hidden;
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    @media (max-width: 640px) {
      .post-card {
        --card-pad-x: 12px;
        --card-pad-y: 12px;
        border-radius: 12px;
      }
    }

    /* Header Editorial: Avatar Grande que vai até à base do subtítulo */
    .post-header-editorial {
      display: flex;
      align-items: stretch;
      gap: 20px;
      margin-bottom: 14px;
    }

    /* Fotografia do utilizador: bem maior, com aro cyan vibrante */
    .author-avatar-large {
      width: 104px;
      height: 104px;
      min-width: 104px;
      border-radius: 50%;
      box-shadow: 0 0 0 3.5px var(--cyan-bright), 0 6px 18px rgba(0, 163, 255, 0.35);
      overflow: hidden;
      background: #0088CC;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .author-avatar-large img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* Coluna Lateral ao Avatar: Nome + Hora no topo e Subtítulo na base */
    .header-meta-col {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 104px;
    }

    .header-top-line {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
    }

    .author-name-time {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .author-name-text {
      font-family: 'Fira Sans Condensed', sans-serif;
      font-size: 22px;
      font-weight: 800;
      color: var(--text-heading);
      letter-spacing: 0.04em;
    }

    .author-time-text {
      font-size: 14.5px;
      color: var(--text-muted);
      font-weight: 500;
    }

    .post-ctrls-top {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-top: 4px;
    }

    /* 3 Barras Metálicas ||| */
    .btn-three-bars {
      display: flex;
      align-items: center;
      gap: 4px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 4px;
    }
    .bar-pill {
      width: 5px;
      height: 20px;
      border-radius: 3px;
      background: linear-gradient(180deg, #A0C4E2 0%, #4A7A9F 100%);
      box-shadow: inset 0 1px 1px #E2E8F0;
    }

    /* Botão X para Esconder/Fechar Post */
    .btn-close-dismiss {
      background: transparent;
      border: none;
      cursor: pointer;
      color: #94A3B8;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2px;
      transition: color 0.15s ease, transform 0.15s ease;
    }
    .btn-close-dismiss:hover {
      color: #EF4444;
      transform: scale(1.15);
    }

    /* Subtítulo / Título do Post: Alinhado à direita do avatar, exatamente na base */
    .post-title-text {
      font-family: 'Fira Sans Condensed', sans-serif;
      font-size: 24px;
      font-weight: 800;
      color: var(--text-heading);
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-top: auto;
      margin-bottom: 0;
      text-wrap: balance;
      line-height: 1.25;
    }

    /* Corpo de Texto Científico: Na sua posição normal, alinhado à esquerda e à direita com hifenização pt-pt */
    .post-body-text {
      font-size: 18.5px;
      line-height: 1.55;
      color: var(--text-body);
      font-weight: 400;
      margin-bottom: 22px;
      text-align: justify;
      text-justify: inter-word;
      hyphens: auto;
      -webkit-hyphens: auto;
      -moz-hyphens: auto;
      -ms-hyphens: auto;
    }

    /* Layout para Posts Criados pelo Utilizador com Imagens */
    .post-user-media-split {
      display: flex;
      gap: 20px;
      margin-bottom: 20px;
    }
    .post-user-media-split .user-text-col {
      flex: 1;
    }
    .post-user-media-split .user-img-col {
      width: 320px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--zone-bg);
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid var(--border-input);
    }
    .post-user-media-split .user-img-col img {
      max-width: 100%;
      max-height: 200px;
      object-fit: cover;
      display: block;
    }

    .post-user-bottom-img {
      width: 100%;
      margin-bottom: 20px;
      border-radius: 8px;
      overflow: hidden;
      background: var(--zone-bg);
      border: 1px solid var(--border-input);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .post-user-bottom-img img {
      max-width: 100%;
      max-height: 400px;
      object-fit: contain;
      display: block;
    }

    /* ==========================================================================
       PLUGIN FULL-WIDTH (A VERDADEIRA INTENÇÃO DOS PLUGINS)
       ========================================================================== */
    .post-plugin-full {
      margin-left: calc(-1 * var(--card-pad-x, 20px));
      margin-right: calc(-1 * var(--card-pad-x, 20px));
      width: calc(100% + (2 * var(--card-pad-x, 20px)));
      background: var(--card-bg-elevated);
      border-top: 1px solid var(--border-card);
      border-bottom: 1px solid var(--border-card);
      border-left: none;
      border-right: none;
      border-radius: 0;
      padding: 16px var(--card-pad-x, 20px);
      position: relative;
      margin-bottom: 18px;
      box-sizing: border-box;
    }

    /* Linha Superior do Plugin com Tab e Botão Straddle de Pin */
    .plugin-notch-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border-card);
      margin-bottom: 16px;
    }

    .plugin-notch-badge {
      font-family: 'Fira Sans Condensed', sans-serif;
      font-size: 13px;
      font-weight: 800;
      color: var(--text-muted);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      user-select: none;
    }

    /* Botão que cavalga a linha (Straddle): Remover do myBOOK / Adicionar ao myBOOK */
    .btn-plugin-pin-straddle {
      height: 30px;
      padding: 0 14px;
      border-radius: 9999px;
      background: var(--card-bg);
      border: 1.5px solid var(--cyan-btn);
      display: inline-flex;
      align-items: center;
      gap: 7px;
      cursor: pointer;
      transition: all 0.15s ease;
      user-select: none;
      flex-shrink: 0;
    }
    .btn-plugin-pin-straddle:hover {
      background: var(--btn-control-hover-bg);
      border-color: var(--cyan-bright);
    }
    .btn-plugin-pin-straddle .pin-text {
      font-family: 'Fira Sans Condensed', sans-serif;
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text-heading);
      letter-spacing: 0.02em;
    }
    .btn-plugin-pin-straddle:hover {
      background: #111C33;
      border-color: var(--cyan-bright);
      box-shadow: 0 0 12px rgba(0, 136, 204, 0.4);
    }
    .btn-plugin-pin-straddle .pin-icon {
      font-size: 14px;
      display: inline-block;
      transform: rotate(45deg);
    }
    .btn-plugin-pin-straddle .pin-text {
      font-family: 'Fira Sans Condensed', sans-serif;
      font-size: 13.5px;
      font-weight: 700;
      color: #FFFFFF !important;
      letter-spacing: 0.02em;
    }

    /* Título e Subtítulo do Jogo */
    .plugin-game-title {
      font-family: 'Fira Sans Condensed', sans-serif;
      font-size: 30px;
      font-weight: 800;
      color: var(--text-heading);
      margin-bottom: 6px;
      letter-spacing: -0.01em;
    }

    .plugin-game-subtitle {
      font-size: 15.5px;
      color: var(--text-muted);
      margin-bottom: 18px;
      line-height: 1.4;
    }

    /* Barra de Estatísticas em Pílula Unificada */
    .plugin-stats-pill-bar {
      background: var(--stats-bar-bg);
      border: 1px solid var(--stats-bar-border);
      border-radius: 9px;
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-around;
      margin-bottom: 20px;
      font-family: 'Fira Sans Condensed', sans-serif;
      font-size: 16.5px;
      font-weight: 700;
      letter-spacing: 0.02em;
      color: var(--text-heading);
    }

    .stat-val-score { color: var(--cyan-bright); font-weight: 800; }
    .stat-val-combo { color: #FACC15; font-weight: 800; }
    .stat-val-hits { color: #4ADE80; font-weight: 800; }
    .stat-val-rem { color: #F8FAFC; font-weight: 800; }

    /* Caixa Central do Jogo com Borda Cyan 2px */
    .plugin-game-box {
      border: 2px solid var(--game-box-border);
      border-radius: 9px;
      background: var(--game-box-bg);
      display: flex;
      overflow: hidden;
      margin-bottom: 20px;
    }

    .game-box-left-col {
      width: 210px;
      background: var(--game-box-left-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
      border-right: 1px solid var(--border-card);
      flex-shrink: 0;
    }
    .game-box-left-col img {
      max-width: 165px;
      height: auto;
      display: block;
      filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
    }

    .game-box-right-col {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .game-item-title-box {
      padding: 14px 20px;
      text-align: center;
      border-bottom: 1px solid var(--game-box-border);
      font-family: 'Fira Sans Condensed', sans-serif;
      font-size: 25px;
      font-weight: 800;
      color: var(--text-heading);
      letter-spacing: 0.01em;
    }

    .game-item-desc-box {
      padding: 18px 24px;
      font-size: 16.5px;
      line-height: 1.45;
      color: var(--text-body);
      display: flex;
      align-items: center;
      flex: 1;
    }

    /* ==========================================================================
       BOTÕES DE AÇÃO (REGRA DE OURO CARLOS DIAS: ERGONÓMICOS, NÃO EXTENDIDOS)
       ========================================================================== */
    .plugin-actions-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      margin-bottom: 18px;
    }

    .btn-decision {
      min-width: 165px;
      padding: 0 28px;
      height: 52px;
      border-radius: 12px;
      border: none;
      color: #FFFFFF !important;
      font-family: 'Fira Sans Condensed', sans-serif;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }
    .btn-decision:active {
      transform: scale(0.97);
    }

    .btn-decision-reparador {
      background: linear-gradient(180deg, var(--green-reparador-top) 0%, var(--green-reparador-bot) 100%);
      border: 1px solid #22C55E;
      box-shadow: 0 4px 18px rgba(31, 168, 81, 0.4);
    }
    .btn-decision-reparador:hover {
      background: linear-gradient(180deg, #24bd5c 0%, var(--green-reparador-top) 100%);
      box-shadow: 0 6px 22px rgba(31, 168, 81, 0.6);
      transform: translateY(-1px);
    }

    .btn-decision-destruidor {
      background: linear-gradient(180deg, var(--red-destruidor-top) 0%, var(--red-destruidor-bot) 100%);
      border: 1px solid #EF4444;
      box-shadow: 0 4px 18px rgba(219, 39, 40, 0.4);
    }
    .btn-decision-destruidor:hover {
      background: linear-gradient(180deg, #ef3e3f 0%, var(--red-destruidor-top) 100%);
      box-shadow: 0 6px 22px rgba(219, 39, 40, 0.6);
      transform: translateY(-1px);
    }

    /* Rodapé do Plugin */
    .plugin-footer-meta {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      margin-top: 8px;
    }

    .plugin-chapter-ref {
      font-size: 13.5px;
      color: #94A3B8;
      font-weight: 500;
    }

    .plugin-ready-badge {
      font-size: 12.5px;
      font-weight: 800;
      color: var(--cyan-bright);
      letter-spacing: 0.05em;
    }

    /* Tags abaixo do Plugin */
    .post-tags-row {
      font-family: 'JetBrains Mono', monospace;
      font-size: 17px;
      font-weight: 600;
      color: var(--cyan-bright);
      margin-bottom: 16px;
      display: flex;
      gap: 16px;
    }

    /* Divisor de Fio de Cabelo */
    .post-hairline-divider {
      height: 1px;
      background: var(--border-card);
      margin: 18px 0;
    }

    /* Barra Social do Post */
    .post-social-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 17px;
      color: #94A3B8;
      font-weight: 600;
    }

    .social-left-group {
      display: flex;
      align-items: center;
      gap: 28px;
    }

    .btn-social-action {
      background: transparent;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--social-btn-color);
      font-size: 15px;
      font-weight: 600;
      padding: 6px 12px;
      border-radius: 8px;
      transition: all 0.15s ease;
      user-select: none;
    }
    .btn-social-action:hover {
      background: var(--social-btn-hover);
      color: var(--cyan-bright);
    }
    .btn-social-action:hover {
      color: #FFFFFF !important;
    }
    .btn-social-action.liked {
      color: #F43F5E;
    }
    .btn-social-action.saved {
      color: #F59E0B;
    }

    /* Toast Flutuante de Feedback */
    .mybook-toast-notify {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: #0F172A;
      border: 1px solid var(--cyan-bright);
      border-radius: 8px;
      padding: 12px 20px;
      color: #FFFFFF !important;
      font-size: 15px;
      font-weight: 600;
      max-width: calc(100% - 32px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.6);
      transform: translateY(100px);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 9999;
    }
    .mybook-toast-notify.show {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    /* ==========================================================================
       BARRA HORIZONTAL DO ILUSTRADOR: REDE SOCIAL myBOOK & PÁGINA PESSOAL
       ========================================================================== */
    .mybook-hero-banner-wrap {
      width: 100%;
      max-width: 888px;
      padding: 0 4px 0;
    }

    .mybook-hero-banner-card {
      width: 100%;
      background: var(--card-bg);
      border: 1.5px solid var(--border-card);
      border-top: none;
      border-radius: 0 0 14px 14px;
      overflow: visible;
      box-shadow: var(--shadow-card);
    }

    .mybook-hero-artwork {
      position: relative;
      width: 100%;
      height: 286px;
      overflow: hidden;
      background: #0B1325;
    }

    .mybook-hero-artwork img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 36%;
      display: block;
      filter: none;
      transition: transform 0.5s ease;
    }

    .mybook-hero-banner-card:hover .mybook-hero-artwork img {
      transform: scale(1.015);
    }

    .mybook-hero-gradient-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(6, 12, 26, 0.22) 0%, rgba(6, 12, 26, 0.0) 35%, rgba(6, 12, 26, 0.0) 68%, rgba(6, 12, 26, 0.36) 100%);
      pointer-events: none;
    }

    .mybook-hero-top-pills {
      display: none !important;
    }

    /* Seletor do filtro de livros/assuntos centrado e um pouco em cima do banner na parte de baixo */
    .mybook-book-filter-bar.mybook-hero-filter-bridge,
    .mybook-hero-filter-bridge {
      position: relative;
      z-index: 25;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      margin-top: -22px;
      padding: 0 14px 4px 14px !important;
      gap: 4px !important;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      border-radius: 0 !important;
    }

    .mybook-hero-filter-bridge .mybook-filter-dropdown-btn {
      height: 38px;
      min-height: 38px;
      padding: 0 16px 0 12px;
      border-radius: 999px;
      border: 2px solid #0284C7;
      background: #FFFFFF;
      color: #0C3E75;
      font-size: 0.98rem;
      font-weight: 800;
      box-shadow: 0 4px 14px rgba(11, 19, 37, 0.28);
    }

    :root[data-theme="dark"] .mybook-hero-filter-bridge .mybook-filter-dropdown-btn {
      background: #0F172A;
      border-color: #38BDF8;
      color: #F8FAFC;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
    }

    .mybook-hero-filter-bridge .mybook-filter-label-group {
      font-family: 'Fira Sans Condensed', 'Fira Sans', sans-serif;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-heading);
      line-height: 1.25;
      letter-spacing: 0.01em;
      text-align: center;
      margin-top: 1px;
    }

    .mybook-hero-personal-strip {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 4px 12px 10px 12px;
      background: var(--card-bg-elevated);
      border-radius: 0 0 13px 13px;
    }

    /* Vista de Visitante / Não Registado (Sem fotografia de utilizador, convite ao login/registo) */
    .mybook-guest-welcome-row {
      display: flex;
      align-items: center;
      gap: 14px;
      width: 100%;
    }

    .mybook-guest-globe-wrap {
      width: 68px;
      height: 68px;
      min-width: 68px;
      margin-top: -26px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 5;
      flex-shrink: 0;
    }

    .mybook-guest-globe-wrap img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.35));
    }

    .mybook-guest-text-wrap {
      flex: 1;
      min-width: 0;
    }

    .mybook-guest-invite-text {
      font-family: 'Fira Sans Condensed', 'Fira Sans', sans-serif;
      font-size: 16.5px;
      line-height: 1.35;
      color: var(--text-heading);
      margin: 0;
    }

    .mybook-guest-brand-title {
      font-size: 21px;
      font-weight: 800;
      color: var(--text-heading);
      letter-spacing: 0.01em;
    }

    .mybook-guest-login-link {
      color: var(--text-heading);
      font-weight: 700;
      text-decoration: underline;
      text-underline-offset: 2px;
      cursor: pointer;
    }

    .mybook-guest-login-link:hover {
      color: var(--cyan-bright);
    }

    .mybook-guest-register-link {
      color: var(--text-heading);
      font-weight: 800;
      text-decoration: underline;
      text-decoration-color: var(--cyan-bright);
      text-underline-offset: 2px;
      cursor: pointer;
    }

    .mybook-guest-register-link:hover {
      color: var(--cyan-bright);
    }

    /* Vista de Utilizador Autenticado / Registado */
    .mybook-logged-personal-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      width: 100%;
      flex-wrap: wrap;
    }

    .mybook-personal-left {
      display: flex;
      align-items: center;
      gap: 14px;
      flex: 1;
      min-width: 240px;
    }

    .mybook-personal-avatar-wrap {
      width: 68px;
      height: 68px;
      min-width: 68px;
      margin-top: -36px;
      border-radius: 50%;
      border: 3px solid var(--cyan-bright);
      background: #0F172A;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
      position: relative;
      z-index: 3;
    }

    .mybook-personal-avatar-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .mybook-personal-info {
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }

    .mybook-personal-title-row {
      display: flex;
      align-items: baseline;
      gap: 8px;
      flex-wrap: wrap;
    }

    .mybook-personal-name {
      font-size: 19px;
      font-weight: 800;
      color: var(--text-heading);
      line-height: 1.2;
    }

    .mybook-personal-handle {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12.5px;
      font-weight: 700;
      color: var(--cyan-bright);
    }

    .mybook-personal-bio {
      font-size: 14.5px;
      color: var(--text-body);
      line-height: 1.38;
    }

    .mybook-personal-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .btn-subscribe-channel {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 38px;
      padding: 0 15px;
      border-radius: 999px;
      border: 1.5px solid var(--cyan-bright);
      background: var(--cyan-btn);
      color: #FFFFFF !important;
      font-family: inherit;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
      transition: all 0.18s ease;
      box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
    }

    .btn-subscribe-channel:hover {
      background: var(--cyan-btn-hover);
      transform: translateY(-1px);
    }

    .btn-subscribe-channel.subscribed {
      background: rgba(16, 185, 129, 0.16);
      border-color: #10B981;
      color: var(--text-heading) !important;
      box-shadow: none;
    }

    .btn-personal-page-config {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 38px;
      padding: 0 14px;
      border-radius: 999px;
      border: 1.5px solid var(--border-input);
      background: var(--box-inner-bg);
      color: var(--text-heading);
      font-family: inherit;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.18s ease;
    }

    .btn-personal-page-config:hover {
      border-color: var(--cyan-bright);
    }

    /* Gaveta de Configuração da Página Pessoal */
    .mybook-personal-creator-drawer {
      display: none;
      padding: 18px 20px;
      background: var(--box-inner-bg);
      border-top: 1.5px solid var(--border-card);
    }

    .mybook-personal-creator-drawer.open {
      display: block;
    }

    .personal-creator-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .personal-creator-title {
      font-size: 17px;
      font-weight: 800;
      color: var(--text-heading);
      margin-bottom: 2px;
    }

    .personal-creator-sub {
      font-size: 13.5px;
      color: var(--text-muted);
    }

    .btn-close-personal-drawer {
      background: transparent;
      border: 1px solid var(--border-card);
      border-radius: 7px;
      padding: 4px 10px;
      font-size: 12.5px;
      font-weight: 700;
      color: var(--text-heading);
      cursor: pointer;
    }

    .personal-creator-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 14px;
    }

    .personal-field {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .personal-field-wide {
      grid-column: 1 / -1;
    }

    .personal-field label {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-heading);
    }

    .personal-input {
      height: 40px;
      padding: 0 12px;
      border-radius: 8px;
      border: 1px solid var(--border-input);
      background: var(--card-bg-elevated);
      color: var(--text-heading);
      font-family: inherit;
      font-size: 14.5px;
    }

    .personal-creator-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .personal-creator-hint {
      font-size: 13px;
      color: var(--text-muted);
    }

    .btn-save-personal-page {
      height: 38px;
      padding: 0 18px;
      border-radius: 9px;
      border: none;
      background: #10B981;
      color: #FFFFFF !important;
      font-family: inherit;
      font-size: 14.5px;
      font-weight: 800;
      cursor: pointer;
    }

    /* ==========================================================================
       SISTEMA INTELIGENTE DE DESCOBERTA, INTERESSES & ORDENAÇÃO DE POSTS
       ========================================================================== */
    .mybook-smart-discovery-bar {
      background: var(--card-bg);
      border: 1px solid var(--border-card);
      border-radius: 12px;
      padding: 8px 10px;
      box-shadow: var(--shadow-card);
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .smart-tabs-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }

    .smart-feed-tab {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 40px;
      padding: 6px 10px;
      border-radius: 9px;
      border: 1px solid var(--border-input);
      background: var(--box-inner-bg);
      color: var(--text-heading);
      font-family: inherit;
      font-size: 14.5px;
      font-weight: 800;
      cursor: pointer;
      transition: all 0.15s ease;
      text-align: center;
    }

    .smart-feed-tab small {
      font-weight: 600;
      opacity: 0.85;
      font-size: 12px;
    }

    .smart-feed-tab:hover {
      border-color: var(--cyan-bright);
    }

    .smart-feed-tab.active {
      background: var(--cyan-btn);
      border-color: var(--cyan-bright);
      color: #FFFFFF !important;
      box-shadow: 0 3px 10px rgba(2, 132, 199, 0.32);
    }

    .sub-count-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 20px;
      height: 20px;
      padding: 0 6px;
      border-radius: 999px;
      background: rgba(2, 132, 199, 0.18);
      color: inherit;
      font-size: 12px;
      font-weight: 800;
    }

    .smart-feed-tab.active .sub-count-pill {
      background: rgba(255, 255, 255, 0.25);
      color: #FFFFFF;
    }

    .smart-interest-radar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      padding-top: 8px;
      border-top: 1px dashed var(--border-card);
    }

    .radar-left {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .radar-badge {
      font-size: 13px;
      font-weight: 800;
      color: var(--text-heading);
    }

    .radar-chips-wrap {
      display: flex;
      align-items: center;
      gap: 8px 9px;
      flex-wrap: wrap;
    }

    .interest-chip {
      display: inline-flex;
      align-items: center;
      min-height: 32px;
      padding: 5px 12px;
      border-radius: 999px;
      border: 1px solid var(--border-input);
      background: var(--box-inner-bg);
      color: var(--text-body);
      font-size: 12.5px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .interest-chip:hover,
    .interest-chip.active {
      background: rgba(2, 132, 199, 0.15);
      border-color: var(--cyan-bright);
      color: var(--text-heading);
    }

    .radar-right {
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text-muted);
    }

    /* Badges de Visualizações, Match Para Ti e Botão Subscrever nos Posts (sem caixas arredondadas para poupar espaço em mobile) */
    .post-views-badge,
    .post-smart-match-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 0;
      border-radius: 0;
      font-size: 12.5px;
      font-weight: 700;
      background: transparent;
      border: none;
      color: var(--text-heading);
    }

    .post-smart-match-badge {
      color: #059669;
    }

    :root[data-theme="dark"] .post-smart-match-badge {
      color: #34D399;
    }

    .author-name-sub-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 2px;
    }

    .btn-post-subscribe {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 0;
      border-radius: 0;
      border: none;
      background: transparent;
      color: #0284C7 !important;
      font-family: inherit;
      font-size: 12.5px;
      font-weight: 800;
      cursor: pointer;
      transition: opacity 0.15s ease;
    }

    .btn-post-subscribe:hover {
      opacity: 0.8;
    }

    :root[data-theme="dark"] .btn-post-subscribe {
      color: #38BDF8 !important;
    }

    .btn-post-subscribe.subscribed {
      background: transparent;
      border: none;
      color: #059669 !important;
    }

    :root[data-theme="dark"] .btn-post-subscribe.subscribed {
      color: #34D399 !important;
    }

    @media (max-width: 720px) {
      .smart-tabs-row {
        grid-template-columns: repeat(2, 1fr);
      }
      .smart-feed-tab small {
        display: none;
      }
      .personal-creator-grid {
        grid-template-columns: 1fr;
      }
      .mybook-hero-artwork {
        height: 196px;
      }
      .mybook-hero-artwork img {
        object-position: center 0%;
      }
      .mybook-hero-filter-bridge {
        margin-top: -19px;
        padding: 0 8px 4px 8px;
      }
      .mybook-hero-filter-bridge .mybook-filter-dropdown-btn {
        height: 34px;
        min-height: 34px;
        font-size: 0.90rem;
        padding: 0 13px 0 9px;
      }
      .mybook-hero-filter-bridge .mybook-filter-label-group {
        font-size: 0.80rem;
      }
      .mybook-hero-personal-strip {
        padding: 4px 12px 12px 12px;
      }
      .mybook-guest-welcome-row {
        gap: 10px;
      }
      .mybook-guest-globe-wrap {
        width: 54px;
        height: 54px;
        min-width: 54px;
        margin-top: -12px;
      }
      .mybook-guest-brand-title {
        font-size: 18px;
      }
      .mybook-guest-invite-text {
        font-size: 14.5px;
        line-height: 1.32;
      }
    }

    /* Cartões de Resumo Diário PROJECT myBOOK NEWS dentro do Feed myBOOK */
    .mynews-teaser-card .mybook-news-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 10px;
      border-radius: 999px;
      background: #C81E32;
      color: #FFFFFF;
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: 0.03em;
    }
    .mynews-teaser-card .mybook-news-summary-box {
      background: var(--box-inner-bg);
      border-left: 4px solid var(--cyan-bright);
      border-radius: 0 10px 10px 0;
      padding: 12px 15px;
      margin: 6px 0 12px 0;
      font-size: 1.02rem;
      line-height: 1.54;
      color: var(--text-body);
    }
    .mynews-teaser-card .mybook-news-cta-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 12px;
    }
    .mynews-teaser-card .mybook-news-cta-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 9px 16px;
      border-radius: 10px;
      background: #0C3E75;
      color: #FFFFFF;
      font-size: 0.92rem;
      font-weight: 800;
      text-decoration: none;
    }
    :root[data-theme="dark"] .mynews-teaser-card .mybook-news-cta-btn {
      background: #0284C7;
    }
    .mynews-teaser-card .mybook-news-cta-btn:hover {
      background: #0369A1;
    }
    @media (max-width: 760px) {
      .mynews-teaser-card .mybook-news-summary-box,
      .mynews-teaser-card .mybook-news-summary-box .post-body-text {
        font-size: 1.16rem;
        line-height: 1.56;
      }
      .mynews-teaser-card .mybook-news-cta-btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        font-size: 1.04rem;
        padding: 11px 14px;
      }
    }
  
  
