/* ==========================================================================
   VERGI YORUM — MEVZUAT MODULE
   Shared list/detail UI. No inline style dependencies required for new UI.
   ========================================================================== */




  .legislation-content svg, .mevzuat-body svg, article svg, main svg {
      width: 18px !important;
      height: 18px !important;
      max-width: 20px !important;
      max-height: 20px !important;
      display: inline-block !important;
      vertical-align: middle !important;
  }
  @media print {
    .mev-detail-hero__bg,
    .mev-detail-actions,
    .mev-detail-sidebar,
    .mev-detail-breadcrumb,
    .mev-article-nav-bar,
    .mev-notice-banner,
    header, footer, nav, .btn { display: none !important; }
    .mev-detail-hero { padding: 0 !important; background: none !important; color: #000 !important; }
    .mev-detail-hero__title { color: #000 !important; font-size: 1.5rem !important; }
    .mev-detail-layout { display: block !important; }
    .mev-reading-pane { width: 100% !important; box-shadow: none !important; border: none !important; padding: 0 !important; color: #000 !important; }
  }

  .mev-official-content {
      white-space: normal !important;
  }
  .mev-official-content b,
  .mev-official-content strong {
      
      color: #0f172a !important;
  }
  .mev-official-content p {
      margin-bottom: 1rem !important;
      margin-top: 0 !important;
  }
  /* Remove excessive margins from headings */
  .mev-official-content h3,
  .mev-official-content h4,
  .mev-official-content h5,
  .mev-official-content h6 {
      margin-top: 2rem !important;
      margin-bottom: 0.75rem !important;
      
      color: #1e293b !important;
  }



.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.auth-modal-overlay.show { opacity: 1; }
.auth-modal-content {
    background: var(--color-bg-white, white); color: var(--color-dark, #334155);
    border-radius: 0;
    padding: 2.5rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}
.auth-modal-overlay.show .auth-modal-content { transform: translateY(0); }
.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}
.auth-modal-close:hover { color: #0f172a; }



.forum-modal-overlay {

    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Dark semi-transparent overlay */
    z-index: 99999;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.forum-modal-overlay.show { opacity: 1; }

.forum-modal-container {
    background: var(--color-bg-white, white); color: var(--color-dark, #334155);
    width: 100%;
    max-width: 100vw;
    height: 100%;
    border-radius: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.forum-header {
    background: #12867a;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.forum-close {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.forum-close:hover { background: rgba(255,255,255,0.2); }

.forum-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: transparent;
}

.forum-card {
    background: var(--color-bg-white, white); color: var(--color-dark, #334155);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.forum-topic-list-item {
    cursor: pointer;
    transition: border-color 0.2s;
}
.forum-topic-list-item:hover {
    border-color: #3b82f6;
}

.forum-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-family: inherit;
}



.ai-tab-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.ai-tab-btn:hover {
    color: #0f172a;
    background: rgba(0,0,0,0.02);
}
.ai-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: white;
}
.ai-tab-content {
    line-height: 1.6;
    color: #334155;
}
@media print {
    #ai-modal {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999999;
        display: block !important;
        background: white !important;
    }
    .forum-header, .ai-tab-btn:not(.active) {
        display: none !important;
    }
    .forum-body {
        padding: 0 !important;
    }
}


.mev-i-9325951056{margin-top: 0.5rem; margin-bottom: 1.25rem;}
.mev-i-a3794cfcf0{display: flex; flex-wrap: wrap; gap: 0.75rem;}
.mev-i-a14db7638d{background: rgba(18, 134, 122, 0.1); border-color: rgba(18, 134, 122, 0.3); color: white;}
.mev-i-3f2f811bee{border-color: rgba(255,255,255,0.5); color: white; display: inline-flex; align-items: center; gap: 0.5rem;}
.mev-i-f9136614bb{opacity: 0.7;}
.mev-i-c0dd40a57e{border-color: rgba(255,255,255,0.5); color: white;}
.mev-i-c18dfe288b{margin-top: 1.5rem; display: block;}
.mev-i-f8fe67f77e{width: 100%; max-width: 100%;}
.mev-i-2af0ef4b21{background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); border: 1px solid rgba(226, 232, 240, 0.8); border-radius: 0; padding: 1.5rem; margin-bottom: 2rem; box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02); position: relative; overflow: hidden;}
.mev-i-7ce724e0f2{position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%); border-radius: 50%; filter: blur(30px); pointer-events: none;}
.mev-i-084804b4df{display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid rgba(226, 232, 240, 0.6); padding-bottom: 1rem; position: relative; z-index: 1;}
.mev-i-711dd35ca8{ font-size: 1.1rem; color: #0f172a; display: inline-flex; align-items: center; gap: 0.5rem; letter-spacing: -0.01em;}
.mev-i-da64cacd61{display: flex; gap: 0.5rem; margin-left: auto;}
.mev-i-b550c1c30e{color: #25d366;}
.mev-i-4984bd26a9{color: #0077b5;}
.mev-i-62c7c1aa70{color: #000000;}
.mev-i-d801fb7736{color: #1877f2;}
.mev-i-728784a71b{display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; position: relative; z-index: 1;}
.mev-i-9e5e7688dd{background: var(--color-bg-white, white); color: var(--color-dark, #334155); border: 1px solid rgba(203, 213, 225, 0.5); padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.9rem; color: #334155; display: inline-flex; align-items: center; gap: 0.5rem;}
.mev-i-a28d1ba2f4{color: #64748b; }
.mev-i-64bb30298d{ color: #0f172a;}
.mev-i-00c4a86326{text-align: center; padding: 4rem 1rem; color: #64748b;}
.mev-i-250c71dd77{margin-top: 3rem; margin-bottom: 2rem; padding: 1rem; background: rgba(245, 158, 11, 0.1); border-left: 4px solid #f59e0b; border-radius: 0.5rem; color: #78350f; font-size: 0.9rem; text-align: center;}
.mev-i-f0b24eea08{margin-bottom: 1.5rem;}
.mev-i-ce8ec9897e{margin: 0 auto;}
.mev-i-5fa9f18961{font-size: 1.5rem; color: #0f172a; margin-bottom: 0.5rem; }
.mev-i-1f0e349fd3{color: #64748b; margin-bottom: 2rem;}
.mev-i-960be6ad0c{display: flex; gap: 1rem; justify-content: center;}
.mev-i-10bd66bb2c{margin: 0; font-size: 1.25rem;}
.mev-i-2159940b01{margin: 0; font-size: 0.85rem; color: #93c5fd;}
.mev-i-acc837837d{display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem;}
.mev-i-a1119f5b65{margin: 0; color: #0f172a;}
.mev-i-2a62cc6916{display: flex; gap: 1rem; margin-bottom: 1rem;}
.mev-i-633ee0b460{margin-bottom: 0; flex: 1;}
.mev-i-fc4e785463{width: auto; margin-bottom: 0; flex-shrink: 0;}
.mev-i-f2892a2e8a{display: none;}
.mev-i-d5651a2268{display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;}
.mev-i-499ee57c98{padding: 0.5rem; color: #0f172a; border: 1px solid #0f172a; background: transparent;}
.mev-i-1388a87807{border-left: 4px solid #18A999; word-wrap: break-word; margin-bottom: 2rem;}
.mev-i-142333c891{font-size: 0.85rem; color: #64748b; margin-bottom: 0.5rem;}
.mev-i-a8783627e3{line-height: 1.6; word-wrap: break-word; padding-top: 0.5rem;}
.mev-i-a71a1ab0a2{display:flex; justify-content:space-between; align-items:center; margin-bottom: 1rem;}
.mev-i-a8ed3d0739{margin:0; color:#0f172a;}
.mev-i-9d4a2b3ee7{text-align:center; color:#64748b; padding: 2rem;}
.mev-i-e90410c94e{margin-left: 2rem; word-wrap: break-word; margin-bottom: 1rem;}
.mev-i-97f26cb417{display:flex; justify-content:center; gap:1rem; margin-top:1.5rem; align-items:center;}
.mev-i-f6553fb670{font-size:0.95rem;  color:#475569;}
.mev-i-cee5c5825a{margin-top: 2rem;}
.mev-i-02841b7558{margin: 0 0 1rem 0;}
.mev-i-41cee38c77{background: #0f172a;}
.mev-i-be68d71bb2{margin: 0; font-size: 1.25rem;color: #94a3b8;}
.mev-i-385d9c40e7{margin: 0; font-size: 0.85rem; color: #94a3b8;}
.mev-i-0522ff3e97{display: flex; gap: 0.5rem;}
.mev-i-1f5ed1406b{background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);}
.mev-i-5add2623e6{background: #f8fafc; padding: 2rem;}
.mev-i-0b00134fa7{background: white; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); overflow: hidden;}
.mev-i-e2d737de15{display: flex; border-bottom: 1px solid #e2e8f0; background: #f1f5f9; overflow-x: auto;}
.mev-i-a4812596aa{padding: 2rem;}
.mev-i-048b9a2b26{display: block;}
.mev-i-4b579f9611{margin-top: 0; color: #0f172a;}
.mev-i-f60c3575ef{font-size: 1rem; color: #334155; line-height: 1.6;}
.mev-i-b1e136ab6a{display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0, 0.6); z-index:9999999; opacity:0; transition:opacity 0.3s ease;}
.mev-i-4d4d0a3f08{position:fixed; bottom:-100%; left:50%; transform:translateX(-50%); width:100%; max-width:500px; background:var(--color-bg-white, white); border-radius:1rem 1rem 0 0; z-index:10000000; transition:bottom 0.3s ease; padding:1.5rem; box-shadow:0 -10px 25px -5px rgba(0,0,0,0.1); color: var(--color-dark);}
.mev-i-80b663cb32{display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--color-border, #e2e8f0); padding-bottom:1rem; margin-bottom:1rem;}
.mev-i-59f0f0341f{margin:0; color:var(--color-dark);}
.mev-i-54279f29b1{background:none; border:none; font-size:1.5rem; cursor:pointer; color:var(--color-dark-muted);}
.mev-i-2c023fea9c{display:flex; gap:1rem;}
.mev-i-7623f05545{flex:1;}
.mev-i-a468e10629{ color: #2563eb;}
.mev-i-9aca243557{ color: #0f172a;}
.mev-i-feca51266f{display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: var(--color-bg-white, white); color: var(--color-dark, #334155); border: 1px solid #e2e8f0; border-left: 4px solid #1e3a8a; border-radius: 0.75rem; margin-bottom: 1.75rem;}
.mev-i-dd891e0633{display: flex; align-items: center; gap: 0.75rem; flex: 1;}
.mev-i-a57db75377{ font-size: 0.9rem;}
.mev-i-6ab44c467a{padding: 0.5rem 0.875rem; border-radius: 0.5rem; flex: 1;}
.mev-i-933521b7cc{line-height: 1.8; font-size: 1.05rem; color: #334155;}
.mev-i-2d1bf0d5c9{font-size: 1.5rem; color: #1e293b; margin-top: 0; margin-bottom: 20px;  padding-bottom: 10px; border-bottom: 2px solid #e2e8f0;}
.mev-i-073235795f{color: white; opacity: 1;}
.mev-i-a67575f8c7{cursor: pointer; outline: none; list-style-type: none; }
.mev-i-bf5baa2c12{float: right; width: 16px; height: 16px;}
.mev-i-15cab252a3{font-size: 0.85rem; color: var(--text-muted, #475569);}
.mev-i-c43d5c4857{font-size: 0.85rem; color: var(--text-muted, #475569); margin-top: 0.25rem;}
.mev-i-b288169a96{margin-top: 0.5rem; width: 100%; padding: 0.375rem; justify-content: center;}
.mev-i-84094d993c{width: 100%; padding: 0.5rem 0.75rem; border-radius: 0.5rem; border: 1px solid var(--border-color, #e2e8f0); background-color: var(--bg-card, #fff);}
.mev-i-b645e6685b{display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;}
.mev-i-648149cea2{margin-bottom: 0;}
.mev-i-d060887357{font-size: 0.875rem; color: #64748b; margin-top: 0.5rem; margin-bottom: 1rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;}
.mev-i-101e0706b7{display: flex; justify-content: space-between; align-items: center; width: 100%;}
.mev-i-178ccff6c8{display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; padding: 0.25rem 0.5rem; border-color: rgba(0,0,0,0.1); color: #475569; background: white; border-radius: 4px;}
.mev-i-093687ce27{margin-top: 1rem; padding-right: 5px;}
.mev-i-85056bada5{display: flex; align-items: center; gap: 0.5rem;}
.mev-i-ad3c34b419{font-size: 0.875rem;  color: var(--text-muted, #64748b); white-space: nowrap;}
.mev-i-8c85d1edcd{font-size: 0.875rem; padding: 0.375rem 0.75rem; border-radius: 0.375rem; border: 1px solid var(--border-color, #cbd5e1); background-color: var(--bg-card, #fff);}

/* ---------- Shared foundations ---------- */
.mev-hero, .mev-detail-hero { position:relative; overflow:hidden; color:#fff; background:linear-gradient(135deg,#0b1630 0%,#102b58 28%,#0b6f73 70%); }
.mev-hero { padding:2.75rem 0 3.25rem; margin-bottom:2.25rem; }
.mev-detail-hero { padding:2.2rem 0 3rem; }
.mev-hero__bg, .mev-detail-hero__bg { position:absolute; inset:0; pointer-events:none; opacity:1; background:radial-gradient(circle at 85% 20%,rgba(45,212,191,.22),transparent 28%),radial-gradient(circle at 15% 35%,rgba(59,130,246,.22),transparent 32%),linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px); background-size:auto,auto,42px 42px,42px 42px; mask-image:linear-gradient(to bottom,black 0%,black 78%,transparent 100%); }
.mev-hero__inner, .mev-detail-hero__content { position:relative; z-index:1; max-width:100%; }
.mev-hero__title, .mev-detail-hero__title { margin:1rem 0 .85rem !important; color:#fff !important; font-size:clamp(2rem,3.8vw,3.25rem) !important; line-height:1.07 !important; letter-spacing:-.035em !important;  }
.mev-hero__title-accent { color:#5eead4; }
.mev-hero__subtitle { max-width:820px; color:rgba(255,255,255,.78) !important; font-size:1.05rem !important; line-height:1.75 !important; margin:0 0 1.4rem !important; }
.mev-hero__signals { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:1rem; }
.mev-signal { display:inline-flex; align-items:center; gap:.45rem; padding:.52rem .75rem; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.08); color:rgba(255,255,255,.9); border-radius:999px; font-size:.8rem; backdrop-filter:blur(12px); }
.mev-search-form { margin-top:1.25rem; }
.mev-search-form__inner { display:flex; align-items:center; gap:.75rem; padding:.65rem .7rem .65rem 1rem; background:rgba(255,255,255,.98); border:1px solid rgba(255,255,255,.25); border-radius:18px; box-shadow:0 18px 50px rgba(2,6,23,.22); }
.mev-search-form__icon { color:#2563eb; display:grid; place-items:center; flex:0 0 auto; }
.mev-search-form__input { flex:1; min-width:0; border:0 !important; outline:0 !important; background:transparent !important; color:#0f172a !important; font-size:1rem !important; box-shadow:none !important; }
.mev-search-form__input::placeholder { color:#94a3b8 !important; }
.mev-search-form__btn { flex:0 0 auto; border:0; border-radius:12px; padding:.85rem 1.15rem;  background:linear-gradient(135deg,#2563eb,#0ea5e9); color:#fff; cursor:pointer; transition:transform .2s ease,box-shadow .2s ease; box-shadow:0 8px 18px rgba(37,99,235,.24); }
.mev-search-form__btn:hover { transform:translateY(-1px); box-shadow:0 12px 24px rgba(37,99,235,.3); }

/* ---------- Lists ---------- */
.mev-layout { display:grid; grid-template-columns:280px minmax(0,1fr); gap:2rem; align-items:start; padding-bottom:4rem; }
.mev-sidebar--modern { position:sticky; top:92px; background:linear-gradient(180deg, #0f1e3b 0%, #0d8275 100%); color:#fff; border:1px solid rgba(15,23,42,.12); border-radius:20px; padding:1rem; box-shadow:0 20px 45px rgba(15,23,42,.12); overflow:hidden; }
.mev-sidebar--modern::before { content:""; display:block; height:3px; margin:-1rem -1rem 1rem; background:linear-gradient(90deg,#2563eb,#2dd4bf,#f59e0b); }
.page-mevzuat .mev-sidebar--modern{position: static;}
.mev-sidebar__section { border-bottom:1px solid rgba(255,255,255,.1); padding:.3rem 0 1rem; margin-bottom:1rem; }
.mev-sidebar__section:last-child { border-bottom:0; margin-bottom:0; padding-bottom:0; }
.mev-sidebar__heading { color:#e2f4f4 !important; font-size:.86rem !important; letter-spacing:.02em; text-transform:uppercase; }
.mev-sidebar__nav { padding-right:0 !important; }
.mev-sidebar__link { display:flex; align-items:center; justify-content:space-between; min-height:38px; padding: 0 .7rem; margin:.2rem 0; border-radius:12px; color:rgba(255,255,255,.74) !important; transition:background .18s ease,color .18s ease,transform .18s ease; }
.mev-sidebar__link:hover { background:rgba(255,255,255,.08); color:#fff !important; transform:translateX(2px); }
.mev-sidebar__link.is-active { background:linear-gradient(135deg,rgba(37,99,235,.55),rgba(13,148,136,.38)); color:#fff !important; box-shadow:inset 0 0 0 1px rgba(255,255,255,.1); }
.mev-sidebar__select, .mev-sidebar .form-control { width:100%; border:1px solid rgba(255,255,255,.15) !important; background:rgba(255,255,255,.08) !important; color:#fff !important; }
.mev-sidebar option { color:#0f172a; }
.mev-sidebar label { color:rgba(255,255,255,.7) !important; }
.mev-results__header { padding:.35rem 0 1rem; border-bottom:1px solid #e2e8f0; }
.mev-results__count { font-size:.95rem; color:#64748b; }
.mev-results__count strong { color:#0f172a; font-size:1.2rem; }
.mev-sort-label { color:#64748b !important; }
.mev-sort-select { min-width:210px; border-radius:12px !important; }
.mev-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem; padding:0; margin:1.25rem 0 0; list-style:none; }
.mev-card { position:relative; display:flex; flex-direction:column; min-width:0; padding:1.25rem; background:#fff; border:1px solid #e2e8f0; border-radius:18px; box-shadow:0 8px 24px rgba(15,23,42,.05); transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease; overflow:hidden; }
.mev-card::before { content:""; position:absolute; inset:0 0 auto; height:3px; background:linear-gradient(90deg,#2563eb,#14b8a6); opacity:.9; }
.mev-card:hover { transform:translateY(-4px); box-shadow:0 18px 36px rgba(15,23,42,.1); border-color:#cbd5e1; }
.mev-card__meta--modern { display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; margin-bottom:.9rem; }
.mev-chip { display:inline-flex; align-items:center; border-radius:999px; padding:.28rem .55rem; font-size:.72rem;  line-height:1.2; background:#f1f5f9; color:#475569; border:1px solid; }
.mev-chip--muted { background:#f8fafc; }
.mev-card__title { margin:0; font-size:1.08rem !important; line-height:1.45 !important; }
.mev-card__link { color:#0d2e64; }
.mev-card__link:hover { color:#2563eb; }
.mev-card__preview { margin-top:.75rem !important; color:#64748b !important; line-height:1.65 !important; }
.mev-card__footer--modern { gap:.75rem; margin-top:auto; padding-top:1rem; border-top:1px solid #eef2f7; }
.mev-card__read-btn { display:inline-flex; align-items:center; gap:.4rem;  color:#2563eb; }
.mev-active-filters { display:flex; flex-wrap:wrap; gap:.45rem; }
.mev-active-filter { display:inline-flex; align-items:center; gap:.35rem; background:rgba(45,212,191,.15); color:#d8fffb; border:1px solid rgba(45,212,191,.2); border-radius:999px; padding:.4rem .6rem; font-size:.75rem; }
.mev-active-filters__clear { color:#cbd5e1 !important; font-size:.78rem;  }
.mev-empty { border:1px dashed #cbd5e1; border-radius:20px; padding:4rem 1.5rem !important; background:linear-gradient(180deg,#fff,#f8fafc); }

/* ---------- Detail pages ---------- */
.mev-detail-page { background:#f8fafc; min-height:100%; }
.mev-detail-hero__content { max-width:1180px; }
.mev-detail-hero__title { max-width:1000px; }
.mev-detail-actions { display:flex; flex-wrap:wrap; gap:.6rem !important; }
.mev-detail-actions .btn { min-height:44px; border-radius:12px !important; color:#14B8A6;}
.mev-detail-actions .btn--outline { background:rgba(255,255,255,.08) !important; border-color:rgba(255,255,255,.2) !important; color:#fff !important; backdrop-filter:blur(12px); }
.mev-detail-actions .btn--outline:hover { background:rgba(255,255,255,.14) !important; transform:translateY(-1px); }
.mev-detail-layout { display:grid !important; grid-template-columns:minmax(0,1fr) 280px !important; gap:1.5rem !important; align-items:start; margin-top:1.5rem !important; padding-bottom:4rem; }
.mev-reading-pane { min-width:0; background:#fff !important; border:1px solid #e2e8f0 !important; border-radius:22px !important; box-shadow:0 14px 45px rgba(15,23,42,.06) !important; overflow:hidden; }
.mev-gib-banner { margin:0 !important; border:0 !important; border-bottom:1px solid #e2e8f0 !important; border-radius:0 !important; padding:1.35rem 0rem !important; box-shadow:none !important; }
.mev-gib-badges { gap:.5rem !important; }
.mev-gib-badges > div { background:#f8fafc !important; border:1px solid #e2e8f0 !important; border-radius:999px !important; padding:.45rem .7rem !important; }
.mev-official-content { padding:2rem 2rem; color:#1e293b; font-size:1rem; line-height:1.85; }
.mev-official-content p { max-width:76ch; }
.mev-official-content h2 { font-size:1.6rem; line-height:1.25; margin:2rem 0 .8rem !important; color:#0f172a !important; }
.mev-official-content h3 { font-size:1.3rem; margin:1.8rem 0 .6rem !important; }
.mev-official-content blockquote { margin:1.5rem 0; padding:1rem 1.2rem; border-left:4px solid #14b8a6; background:#f0fdfa; color:#134e4a; border-radius:0 14px 14px 0; }
.mev-official-content a { color:#2563eb; text-underline-offset:3px; text-decoration: underline!important;}
.mev-official-content table { width:100% !important; border-collapse:collapse; min-width:620px; }
.mev-table-scroll { overflow:auto; margin:1.2rem 0; border:1px solid #e2e8f0; border-radius:14px; }
.mev-official-content th,.mev-official-content td { padding:.7rem .8rem; border-bottom:1px solid #e2e8f0; text-align:left; vertical-align:top; }
.mev-official-content th { background:#f8fafc; color:#334155;  }
.mev-detail-sidebar{position:sticky; top:92px;z-index: 3}
.mev-detail-sidebar > * { background:#fff; border:1px solid #e2e8f0; border-radius:18px; box-shadow:0 10px 28px rgba(15,23,42,.05); }
.mev-article-nav-bar { border-radius:16px !important; overflow:hidden; }

/* ---------- Forum / AI modals ---------- */
#forum-modal, #ai-modal, #auth-modal { backdrop-filter:blur(7px); background:rgba(2,6,23,.62) !important; }
#forum-modal .modal-content, #ai-modal .modal-content, .forum-modal-content, .auth-modal-content { border:1px solid rgba(148,163,184,.18) !important; border-radius:22px !important; box-shadow:0 30px 80px rgba(2,6,23,.28) !important; overflow:hidden; }
#forum-modal .modal-header, #ai-modal .modal-header { background:linear-gradient(135deg,#0f1e3b,#0b5360) !important; color:#fff !important; }
#forum-modal .forum-card, .forum-card { background:#fff; border:1px solid #e2e8f0 !important; border-radius:16px !important; box-shadow:none !important; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
#forum-modal .forum-card:hover { transform:translateY(-1px); border-color:#cbd5e1 !important; box-shadow:0 8px 20px rgba(15,23,42,.06) !important; }
#forum-modal .forum-form-control { min-height:44px; border-radius:12px !important; border:1px solid #cbd5e1 !important; }
.ai-modal-header { background:linear-gradient(135deg,#0f1e3b,#0b5360) !important; }
.markdown-body { font-size:1rem; line-height:1.8; color:#334155; }
.markdown-body pre { overflow:auto; padding:1rem; border-radius:12px; background:#0f172a; color:#e2e8f0; }
.markdown-body table { width:100%; border-collapse:collapse; }
.markdown-body th,.markdown-body td { border:1px solid #e2e8f0; padding:.65rem .75rem; }
.markdown-body th { background:#f8fafc; }

/* ---------- Motion ---------- */
.mev-card,.mev-reading-pane,.mev-detail-sidebar > *, .mev-sidebar { animation:mev-rise .5s ease both; }
@keyframes mev-rise { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } }

/* ---------- Responsive ---------- */
@media (max-width:1100px) {
    .mev-layout { grid-template-columns:240px minmax(0,1fr); gap:1.25rem; }
    .mev-grid { grid-template-columns:1fr; }
    .mev-detail-layout { grid-template-columns:1fr !important; }
    .mev-detail-sidebar { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
}
@media (max-width:820px) {
    .mev-hero { padding:2.5rem 0 2rem; }
    .mev-hero__title { font-size:2rem !important; }
    .mev-detail-hero { padding: 1.5rem 0 2rem !important; }
    .mev-detail-hero__title { font-size: clamp(1.35rem, 4vw, 1.85rem) !important; line-height: 1.25 !important; word-break: break-word !important; }
    .mev-layout { grid-template-columns:1fr; }
    .mev-sidebar--modern { position:static; }
    .mev-detail-layout { margin-top:1rem !important; }
    .mev-official-content { padding:0 1.1rem 1.4rem; font-size:.98rem; }
    .mev-detail-sidebar { display:block; }
}
@media (max-width:560px) {
    .mev-search-form__inner { flex-wrap:wrap; padding:.65rem; }
    .mev-search-form__btn { width:100%; }
    .mev-hero__signals { gap:.4rem; }
    .mev-signal { font-size:.72rem; }
    .mev-results__header { align-items:flex-start !important; }
    .mev-sort-form { width:100%; }
    .mev-sort-select { flex:1; min-width:0; }
    .mev-card { padding:1rem; }
    .mev-card__footer--modern { align-items:flex-start !important; flex-direction:column; }
    .mev-card__footer--modern .btn,.mev-card__read-btn { width:100%; justify-content:center; }
    .mev-gib-badges > div { width:100%; justify-content:space-between; }
    .mev-search-form__icon {display:none;}

    /* Detail Hero Mobile Layout Optimization */
    .mev-detail-hero { padding: 1.15rem 0 1.45rem !important; }
    .mev-detail-hero__title { font-size: clamp(1.15rem, 4.8vw, 1.5rem) !important; line-height: 1.28 !important; margin: 0.35rem 0 0.85rem !important; letter-spacing: -0.02em !important; word-break: break-word !important; }
    .mev-detail-hero .breadcrumb { margin-bottom: 0.45rem !important; font-size: 0.74rem !important; gap: 0.25rem 0.4rem !important; }
    
    .mev-detail-actions { display: flex !important; flex-wrap: wrap !important; gap: 0.45rem !important; }
    .mev-detail-actions .btn {
        flex: 1 1 calc(50% - 0.25rem) !important;
        min-height: 40px !important;
        padding: 0.45rem 0.6rem !important;
        font-size: 0.77rem !important;
        font-weight: 600 !important;
        border-radius: 11px !important;
        justify-content: center !important;
        white-space: nowrap !important;
        text-align: center !important;
        gap: 0.4rem !important;
    }
    .mev-detail-actions .btn span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .mev-detail-actions .btn svg {
        width: 15px !important;
        height: 15px !important;
        flex-shrink: 0 !important;
    }
    .mev-detail-actions .btn svg.mev-i-f9136614bb {
        width: 13px !important;
        height: 13px !important;
        margin-left: 2px !important;
        flex-shrink: 0 !important;
    }
    .mev-detail-actions #mev-action-back-list {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-height: 38px !important;
        justify-content: flex-start !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        margin-bottom: 0.15rem !important;
        padding: 0.45rem 0.85rem !important;
        font-size: 0.8rem !important;
    }
    .mev-detail-actions [data-mev-action="source"] {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-height: 38px !important;
        margin-top: 0.15rem !important;
        font-size: 0.8rem !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }
}
@media (max-width:380px) {
    .mev-detail-actions .btn {
        flex: 0 0 100% !important;
        width: 100% !important;
        font-size: 0.8rem !important;
        min-height: 40px !important;
        justify-content: center !important;
    }
}


/* 3B.4 v6 list hero: stable corporate visual, independent from corporate.css. */
.mev-hero .mev-hero__inner{position:relative;min-height:340px;overflow:visible;}
.mev-hero .mev-hero__inner > .corp-hero__visual{position:absolute;right:0;top:64px;width:min(36%,380px);height:230px;display:grid;place-items:center;z-index:2;pointer-events:none;}
.mev-hero .mev-hero__inner > nav,
.mev-hero .mev-hero__inner > .breadcrumb,
.mev-hero .mev-hero__title,
.mev-hero .mev-hero__subtitle,
.mev-hero .mev-search-form,
.mev-hero .mev-hero__signals{position:relative;z-index:4;max-width:62%;}
.mev-hero .mev-hero__title{font-size:clamp(2rem,3.2vw,3.15rem);line-height:1.08;letter-spacing:-.035em;}
.mev-hero .mev-hero__subtitle{font-size:1.05rem;line-height:1.75;max-width:60%;color:rgba(226,232,240,.88);}
.mev-hero .corp-hero__visual-orb{position:absolute;border-radius:999px;filter:blur(.2px);}
.mev-hero .corp-hero__visual-orb--a{width:210px;height:210px;background:radial-gradient(circle,rgba(59,130,246,.34),rgba(59,130,246,0) 70%);animation:mevOrbA 8s ease-in-out infinite;}
.mev-hero .corp-hero__visual-orb--b{width:160px;height:160px;right:0;bottom:6px;background:radial-gradient(circle,rgba(45,212,191,.26),rgba(45,212,191,0) 70%);animation:mevOrbB 7s ease-in-out infinite;}
.mev-hero .corp-hero__visual-card{position:relative;z-index:3;width:min(330px,100%);display:flex;align-items:center;gap:14px;padding:18px 20px;border:1px solid rgba(255,255,255,.18);border-radius:20px;background:linear-gradient(145deg,rgba(255,255,255,.15),rgba(255,255,255,.07));box-shadow:0 24px 60px rgba(2,6,23,.32);backdrop-filter:blur(18px);animation:mevFloat 5s ease-in-out infinite;}
.mev-hero .corp-hero__visual-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,#2563eb,#14b8a6);color:#fff;box-shadow:0 14px 30px rgba(20,184,166,.22);flex:0 0 auto;font-size:22px;}
.mev-hero .corp-hero__visual-card > span:last-child strong{display:block;color:#fff;font-size:1rem;line-height:1.3;}
.mev-hero .corp-hero__visual-card > span:last-child small{display:block;margin-top:5px;color:rgba(226,232,240,.78);font-size:.78rem;line-height:1.5;}
.mev-hero .corp-hero__visual-line{position:absolute;height:1px;width:170px;border-radius:999px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent);opacity:.65;}
.mev-hero .corp-hero__visual-line--1{right:0;top:18%;transform:rotate(-15deg);}
.mev-hero .corp-hero__visual-line--2{left:0;bottom:12%;transform:rotate(15deg);}
@keyframes mevOrbA{0%,100%{transform:translate3d(-4px,3px,0)}50%{transform:translate3d(10px,-10px,0)}}
@keyframes mevOrbB{0%,100%{transform:translate3d(0,2px,0)}50%{transform:translate3d(-10px,-8px,0)}}
@keyframes mevFloat{0%,100%{transform:translate3d(0,4px,0)}50%{transform:translate3d(0,-5px,0)}}
.mev-card [data-mev-save]{position:relative;z-index:6;cursor:pointer;}
.mev-card [data-mev-save].is-loading{opacity:.62;pointer-events:none;}
.mev-card [data-mev-save] svg{flex:none;}
@media (max-width:1050px){
  .mev-hero .mev-hero__inner > .corp-hero__visual{width:32%;}
  .mev-hero .mev-hero__inner > nav,.mev-hero .mev-hero__inner > .breadcrumb,.mev-hero .mev-hero__title,.mev-hero .mev-hero__subtitle,.mev-hero .mev-search-form,.mev-hero .mev-hero__signals{max-width:66%;}
}
@media (max-width:820px){
  .mev-hero .mev-hero__inner{min-height:0;}
  .mev-hero .mev-hero__inner > .corp-hero__visual{display:none;}
  .mev-hero .mev-hero__inner > nav,.mev-hero .mev-hero__inner > .breadcrumb,.mev-hero .mev-hero__title,.mev-hero .mev-hero__subtitle,.mev-hero .mev-search-form,.mev-hero .mev-hero__signals{max-width:100%;}
}
@media (prefers-reduced-motion:reduce){.mev-hero .corp-hero__visual-orb,.mev-hero .corp-hero__visual-card{animation:none!important;}}

/* ==========================================================================
   3B.4 FORUM + AI — CSS-ONLY REDESIGN
   Functional JS/DOM contracts intentionally untouched.
   ========================================================================== */

/* ---------- Shared modal shell ---------- */
#forum-modal.forum-modal-overlay,
#ai-modal.forum-modal-overlay {
    padding: 24px !important;
    background:
        radial-gradient(circle at 12% 8%, rgba(37,99,235,.16), transparent 28%),
        radial-gradient(circle at 88% 88%, rgba(20,184,166,.14), transparent 26%),
        rgba(2,6,23,.72) !important;
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
}

#forum-modal .forum-modal-container,
#ai-modal .forum-modal-container {
    width: min(1180px, 100%) !important;
    height: min(92vh, 920px) !important;
    max-width: 1180px !important;
    max-height: 92vh !important;
    border: 1px solid rgba(148,163,184,.22) !important;
    border-radius: 26px !important;
    background: #f8fafc !important;
    box-shadow:
        0 40px 100px rgba(2,6,23,.34),
        0 12px 35px rgba(2,6,23,.18) !important;
    overflow: hidden !important;
    transform: translateY(10px) scale(.985);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s ease;
}

#forum-modal.show .forum-modal-container,
#ai-modal.show .forum-modal-container {
    transform: translateY(0) scale(1);
}

/* ---------- Forum header ---------- */
#forum-modal .forum-header {
    position: relative;
    min-height: 112px;
    padding: 22px 26px !important;
    display: flex;
    align-items: center;
    gap: 20px;
    background:linear-gradient(135deg, #2a3859 0%, #0f766e 100%);
    overflow: hidden;
}

#forum-modal .forum-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to right, rgba(0,0,0,.9), transparent 90%);
    pointer-events: none;
}

#forum-modal .forum-header > * { position: relative; z-index: 1; }
#forum-modal .forum-header h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
    line-height: 1.25 !important;
    letter-spacing: -.02em;
    
}

#forum-modal .forum-header p {
    margin: 7px 0 0 !important;
    color: rgba(226,232,240,.82) !important;
    font-size: .92rem !important;
    line-height: 1.5;
}

#forum-modal .forum-close {
    min-height: 42px;
    padding: 9px 13px !important;
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 12px !important;
    color: #fff !important;
    
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

#forum-modal .forum-close:hover {
    background: rgba(255,255,255,.16) !important;
    transform: translateY(-1px);
}

/* ---------- Forum body / navigation ---------- */
#forum-modal .forum-body {
    padding: 22px !important;
    background:
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

#forum-view-topics > .mev-i-acc837837d,
#forum-view-topic-detail > .mev-i-d5651a2268,
#forum-view-create-topic > .mev-i-d5651a2268 {
    padding: 14px 16px;
    margin-bottom: 14px !important;
    background: rgba(255,255,255,.82);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

#forum-view-topics > .mev-i-acc837837d h3,
#forum-view-topic-detail > .mev-i-d5651a2268 h3,
#forum-view-create-topic > .mev-i-d5651a2268 h3 {
    font-size: 1.05rem !important;
    
}

#forum-view-topics > .mev-i-acc837837d .btn,
#forum-view-create-topic > .mev-i-d5651a2268 .btn {
    min-height: 42px;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #2a3859 0%, #0f766e 100%);
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(37,99,235,.18);
}

#forum-view-topics > .mev-i-2a62cc6916 {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 240px;
    gap: 12px !important;
    padding: 2px;
    margin-bottom: 18px !important;
}

#forum-modal .forum-form-control {
    min-height: 46px !important;
    margin-bottom: 0 !important;
    padding: 11px 14px !important;
    border: 1px solid #d7e0ea !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15,23,42,.03);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#forum-modal .forum-form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59,130,246,.12) !important;
    outline: none !important;
}

/* ---------- Topic cards: also overrides inline generated styles ---------- */
#forum-modal .forum-topic-list-item {
    position: relative !important;
    padding: 18px 20px !important;
    margin-bottom: 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg,#fff 0%,#fbfdff 100%) !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.05) !important;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

#forum-modal .forum-topic-list-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg,#2563eb,#14b8a6);
}

#forum-modal .forum-topic-list-item:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe !important;
    box-shadow: 0 16px 34px rgba(15,23,42,.09) !important;
}

#forum-modal .forum-topic-list-item h4 {
    margin: 0 0 10px !important;
    padding-right: 10px;
    color: #0f172a !important;
    font-size: 1.02rem !important;
    line-height: 1.45 !important;
}

#forum-modal .forum-topic-list-item > div {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b !important;
    font-size: .82rem !important;
}

/* ---------- Topic detail ---------- */
#forum-view-topic-detail .forum-card {
    position: relative;
    padding: 22px !important;
    margin-bottom: 14px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(15,23,42,.05) !important;
}

#forum-view-topic-detail #forum-replies-container > .forum-card:first-child {
    border-top: 3px solid #2563eb !important;
    box-shadow: 0 16px 36px rgba(15,23,42,.08) !important;
}

#forum-view-topic-detail .forum-card > div[style*="position: absolute"] {
    top: 14px !important;
    right: 14px !important;
    gap: 5px !important;
    padding: 4px !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: rgba(248,250,252,.92);
    backdrop-filter: blur(8px);
}

#forum-view-topic-detail .forum-card > div[style*="position: absolute"] button {
    background: transparent !important;
    color: #475569 !important;
}

#forum-view-topic-detail .forum-card > div[style*="position: absolute"] button:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

#forum-view-topic-detail .forum-card > div[style*="font-size: 0.85rem"] {
    margin-bottom: 10px !important;
    padding-right: 190px;
    color: #64748b !important;
    font-size: .82rem !important;
}

#forum-view-topic-detail .forum-card > div[style*="line-height: 1.6"] {
    padding-top: 10px !important;
    color: #1e293b !important;
    font-size: 1rem !important;
    line-height: 1.82 !important;
}

/* ---------- Reply cards ---------- */
#forum-modal #forum-replies-list > .forum-card {
    margin: 0 0 12px 20px !important;
    padding: 18px !important;
    border-left: 3px solid #cbd5e1 !important;
    border-radius: 16px !important;
}

#forum-modal #forum-replies-list > .forum-card:hover {
    border-left-color: #14b8a6 !important;
}

#forum-modal #forum-replies-list > .forum-card > div[style*="position: absolute"] {
    top: 10px !important;
    right: 10px !important;
    gap: 4px !important;
    padding: 3px !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

#forum-modal #forum-replies-list > .forum-card > div[style*="position: absolute"] button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
}

#forum-modal #forum-replies-list > .forum-card > div[style*="font-size: 0.85rem"] {
    padding-right: 175px;
    color: #64748b !important;
    font-size: .8rem !important;
}

#forum-modal #forum-replies-list > .forum-card > div[style*="line-height: 1.6"] {
    padding-top: 9px !important;
    color: #334155 !important;
    line-height: 1.75 !important;
}

/* ---------- Composer ---------- */
#forum-view-topic-detail > .forum-card:last-child {
    position: relative;
    margin-top: 18px !important;
    padding: 20px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    background:
        linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%) !important;
    box-shadow: 0 14px 35px rgba(15,23,42,.07) !important;
}

#forum-view-topic-detail > .forum-card:last-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 20px 0 0 20px;
    background: linear-gradient(180deg,#2563eb,#14b8a6);
}

#forum-view-topic-detail > .forum-card:last-child h4 {
    font-size: 1.1rem !important;
    color: #0f172a !important;
}

#forum-view-topic-detail > .forum-card:last-child textarea {
    min-height: 128px !important;
    resize: vertical;
    padding: 14px 15px !important;
}

#forum-view-topic-detail > .forum-card:last-child .btn {
    min-height: 44px;
    margin-top: 5px;
    padding: 10px 16px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #2a3859 0%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37,99,235,.18);
}

/* ---------- Create topic ---------- */
#forum-view-create-topic .forum-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 18px 40px rgba(15,23,42,.07) !important;
}

#forum-view-create-topic .forum-card input,
#forum-view-create-topic .forum-card textarea {
    margin-bottom: 14px !important;
}

#forum-view-create-topic .forum-card textarea {
    min-height: 180px !important;
    resize: vertical;
}

#forum-view-create-topic .forum-card .btn {
    width: 100%;
    min-height: 46px;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--teal-700);
    color: #fff !important;
}

/* ---------- AI shell ---------- */
#ai-modal .forum-header {
    position: relative;
    min-height: 118px;
    padding: 22px 26px !important;
    background:
        radial-gradient(circle at 82% 8%, rgba(168,85,247,.26), transparent 24%),
        radial-gradient(circle at 10% 85%, rgba(45,212,191,.18), transparent 24%),
        linear-gradient(135deg,#111827 0%,#1e3a8a 52%,#0f766e 100%) !important;
}

#ai-modal .forum-header h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
    line-height: 1.25 !important;
}

#ai-modal .forum-header p {
    color: rgba(226,232,240,.82) !important;
}

#ai-modal .mev-i-0522ff3e97 {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

#ai-modal .mev-i-1f5ed1406b,
#ai-modal .forum-close {
    min-height: 40px;
}

#ai-modal .forum-body {
    padding: 0 !important;
    background: #f8fafc !important;
}

#ai-modal .mev-i-0b00134fa7 {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

#ai-modal .mev-i-e2d737de15 {
    display: flex !important;
    gap: 4px;
    overflow-x: auto;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    scrollbar-width: thin;
}

#ai-modal .ai-tab-btn {
    min-height: 44px;
    padding: 10px 15px !important;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: .86rem;
    
}

#ai-modal .ai-tab-btn:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}

#ai-modal .ai-tab-btn.active {
    background: linear-gradient(135deg,#eff6ff,#ecfeff) !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
    box-shadow: 0 5px 16px rgba(37,99,235,.08);
}

#ai-modal .mev-i-a4812596aa {
    flex: 1;
    min-height: 0;
    padding: 24px;
    overflow-y: auto;
}

#ai-modal .ai-tab-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 30px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 14px 35px rgba(15,23,42,.06);
}

#ai-modal .ai-tab-content h2 {
    margin: 0 0 18px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a !important;
    font-size: 1.3rem !important;
}

#ai-modal .markdown-body {
    font-size: 1.02rem !important;
    line-height: 1.9 !important;
    color: #334155 !important;
}

#ai-modal .markdown-body p { margin: 0 0 1rem; }
#ai-modal .markdown-body h1,
#ai-modal .markdown-body h2,
#ai-modal .markdown-body h3,
#ai-modal .markdown-body h4 {
    color: #0f172a;
    line-height: 1.35;
    margin-top: 1.7rem;
}

#ai-modal .markdown-body blockquote {
    margin: 1.3rem 0;
    padding: 14px 16px;
    border-left: 4px solid #14b8a6;
    border-radius: 0 14px 14px 0;
    background: #f0fdfa;
    color: #134e4a;
}

#ai-modal .markdown-body ul,
#ai-modal .markdown-body ol {
    padding-left: 1.35rem;
}

#ai-modal .markdown-body li + li { margin-top: .45rem; }

/* ---------- Modals: loading / empty / pagination helpers ---------- */
#forum-modal #forum-topics-container,
#forum-modal #forum-replies-list-container {
    min-height: 40px;
}

#forum-modal [style*="text-align:center"] {
    border-radius: 16px !important;
    border: 1px dashed #cbd5e1;
    background: #fff !important;
}

#forum-modal nav[aria-label="Forum sayfalama"] {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 18px 0 !important;
}

/* ---------- Auth mini modal inside forum flows ---------- */
#auth-modal .auth-modal-content {
    width: min(460px, calc(100vw - 32px));
    border-radius: 22px !important;
    padding: 28px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    #forum-modal.forum-modal-overlay,
    #ai-modal.forum-modal-overlay { padding: 12px !important; }
    #forum-modal .forum-modal-container,
    #ai-modal .forum-modal-container {
        height: calc(100vh - 24px) !important;
        max-height: calc(100vh - 24px) !important;
        border-radius: 20px !important;
    }
    #forum-view-topics > .mev-i-2a62cc6916 { grid-template-columns: 1fr; }
    #forum-modal .forum-header,
    #ai-modal .forum-header { min-height: 100px; padding: 18px !important; }
    #forum-modal .forum-body { padding: 14px !important; }
    #ai-modal .mev-i-a4812596aa { padding: 14px; }
    #ai-modal .ai-tab-content { padding: 22px 18px; }
}

@media (max-width: 640px) {
    #forum-modal.forum-modal-overlay,
    #ai-modal.forum-modal-overlay { padding: 0 !important; }
    #forum-modal .forum-modal-container,
    #ai-modal .forum-modal-container {
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }
    #forum-modal .forum-header,
    #ai-modal .forum-header {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px 12px !important;
        gap: 6px 8px !important;
        min-height: auto !important;
    }
    #forum-modal .forum-header > .mev-modal-share,
    #forum-modal .forum-header > .forum-close {
        order: 1 !important;
    }
    #forum-modal .forum-header > .mev-modal-share {
        margin-left: auto !important;
        margin-right: 4px !important;
    }
    #ai-modal .forum-header > .mev-i-0522ff3e97 {
        order: 1 !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    #forum-modal .forum-header > div:first-child,
    #ai-modal .forum-header > div:first-child {
        order: 2 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-top: 2px !important;
    }
    #forum-modal .forum-header h2,
    #ai-modal .forum-header h2 {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        letter-spacing: -0.015em !important;
        margin: 0 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    #forum-modal .forum-header p,
    #ai-modal .forum-header p {
        font-size: 0.75rem !important;
        line-height: 1.38 !important;
        margin: 3px 0 0 !important;
        color: rgba(226, 232, 240, 0.82) !important;
    }
    #forum-modal .forum-close,
    #ai-modal .forum-close {
        min-height: 34px !important;
        padding: 5px 9px !important;
        font-size: 0.75rem !important;
        border-radius: 9px !important;
        gap: 4px !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
    }
    #forum-modal .forum-close svg,
    #ai-modal .forum-close svg {
        width: 15px !important;
        height: 15px !important;
        flex-shrink: 0 !important;
    }
    .mev-modal-share > summary,
    .mev-modal-share__trigger {
        width: 34px !important;
        height: 34px !important;
        border-radius: 9px !important;
    }
    .mev-modal-share > summary svg,
    .mev-modal-share__trigger svg {
        width: 15px !important;
        height: 15px !important;
    }
    #forum-modal #forum-replies-list > .forum-card { margin-left: 0 !important; }
    #forum-view-topic-detail .forum-card > div[style*="position: absolute"] {
        position: static !important;
        justify-content: flex-end;
        margin-bottom: 10px;
    }
    #forum-view-topic-detail .forum-card > div[style*="font-size: 0.85rem"],
    #forum-modal #forum-replies-list > .forum-card > div[style*="font-size: 0.85rem"] {
        padding-right: 0;
    }
    #ai-modal .ai-tab-btn {
        flex: 0 0 auto;
        font-size: .78rem;
    }
    #ai-modal .ai-tab-content { border-radius: 16px; padding: 18px 15px; }
    #ai-modal .markdown-body { font-size: .95rem !important; line-height: 1.8 !important; }
    #forum-view-create-topic .forum-card { padding: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
    #forum-modal .forum-modal-container,
    #ai-modal .forum-modal-container,
    #forum-modal .forum-topic-list-item {
        transition: none !important;
        transform: none !important;
    }
}


/* ========================================================================
   3B.4 MICRO REFINEMENT v3 — CLEAN CASCADE
   Fixes the previous malformed CSS tail and polishes pagination, metadata
   aside, and modal share controls without changing JS/HTML contracts.
   ======================================================================== */

/* ---------- Pagination ---------- */
nav[aria-label="Sayfalama"] {
    width: 100%;
    margin: 22px 0 4px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}
nav[aria-label="Sayfalama"] .pagination {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    padding: 6px !important;
    list-style: none !important;
    border: 1px solid #dce6f0 !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.92) !important;
    box-shadow: 0 8px 24px rgba(15,23,42,.06) !important;
}
nav[aria-label="Sayfalama"] .pagination li { margin: 0 !important; padding: 0 !important; }
nav[aria-label="Sayfalama"] .pagination-item {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: .9rem !important;
    
    line-height: 1 !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease !important;
}
nav[aria-label="Sayfalama"] a.pagination-item:hover {
    color: #1d4ed8 !important;
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    transform: translateY(-1px);
}
nav[aria-label="Sayfalama"] .pagination-item.is-active {
    color: #fff !important;
    background: linear-gradient(135deg,#1d4ed8,#2563eb) !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 7px 16px rgba(37,99,235,.24) !important;
}
nav[aria-label="Sayfalama"] .pagination-item.is-disabled {
    color: #cbd5e1 !important;
    background: #f8fafc !important;
    border-color: #eef2f7 !important;
}
nav[aria-label="Sayfalama"] .pagination-dots {
    width: 28px;
    text-align: center;
    color: #94a3b8 !important;
    
}
.pagination-jump {
    margin: 0 !important;
    min-height: 50px !important;
    padding: 7px 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid #dce6f0 !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 8px 24px rgba(15,23,42,.06) !important;
}
.pagination-jump label { margin: 0 !important; color:#64748b !important; font-size:.78rem !important;  }
.pagination-jump input {
    width: 58px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    text-align: center !important;
    font: 700 .9rem/1 inherit !important;
}
.pagination-jump span { margin: 0 !important; color:#94a3b8 !important; font-size:.78rem !important;  }
.pagination-jump button {
    height: 36px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #0f172a !important;
    color: #fff !important;
    
    cursor: pointer !important;
    transition: background .18s ease, transform .18s ease !important;
}
.pagination-jump button:hover { background:#2563eb !important; transform:translateY(-1px); }

/* ---------- Detail metadata / künye ---------- */
.mev-detail-sidebar__card {
    position: relative;
    overflow: hidden !important;
    background: linear-gradient(180deg,#ffffff 0%,#f8fbff 100%) !important;
    border: 1px solid #dce7f1 !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 42px rgba(15,23,42,.08) !important;
}
.mev-detail-sidebar__card::before {
    content:"";
    position:absolute;
    inset:0 0 auto;
    height:4px;
    background:linear-gradient(90deg,#2563eb,#14b8a6);
}
.mev-detail-sidebar__card .mev-i-084804b4df {
    padding:22px 22px 16px !important;
    border-bottom:1px solid #e8eef5 !important;
}
.mev-detail-sidebar__card .mev-i-084804b4df .mev-i-711dd35ca8 {
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    color:#0f172a !important;
    
}
.mev-detail-sidebar__card .mev-i-da64cacd61 {
    margin:13px 0 0 !important;
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
}
.mev-detail-sidebar__card .mev-share-link {
    width:34px !important;
    height:34px !important;
    display:grid !important;
    place-items:center !important;
    border:1px solid #d9e4ee !important;
    border-radius:10px !important;
    background:#fff !important;
}
.mev-detail-sidebar__card .mev-i-728784a71b {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    padding:16px 22px 20px !important;
}
.mev-detail-sidebar__card .mev-i-9e5e7688dd {
    display:grid !important;
    grid-template-columns:minmax(78px,auto) minmax(0,1fr) !important;
    align-items:center !important;
    gap:12px !important;
    min-height:52px !important;
    padding:10px 12px !important;
    border:1px solid #e5edf5 !important;
    border-radius:12px !important;
    background:#fff !important;
}
.mev-detail-sidebar__card .mev-i-9e5e7688dd strong { color:#64748b !important; font-size:.72rem !important; text-transform:uppercase; letter-spacing:.04em; }
.mev-detail-sidebar__card .mev-i-9e5e7688dd span { margin:0 !important; text-align:right !important; overflow-wrap:anywhere; color:#0f172a !important;  }

/* ---------- Modal header action area ---------- */
#forum-modal .forum-header,
#ai-modal .forum-header {
    overflow:visible !important;
}
#forum-modal .forum-header > .mev-modal-share,
#forum-modal .forum-header > .forum-close,
#ai-modal .forum-header > .mev-i-0522ff3e97 { flex:0 0 auto !important; }
#ai-modal .mev-i-0522ff3e97 { display:flex !important; align-items:center !important; gap:8px !important; }
#forum-modal .forum-header > .mev-modal-share { margin-left:auto; }
#forum-modal .forum-header > .mev-modal-share + .forum-close { margin-left:0 !important; }
.mev-modal-share {
    position:relative !important;
    display:inline-flex !important;
    align-items:center !important;
}
.mev-modal-share > summary,
.mev-modal-share__trigger {
    list-style:none !important;
    -webkit-appearance:none !important;
    appearance:none !important;
    display:grid !important;
    place-items:center !important;
    width:42px !important;
    height:42px !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid rgba(255,255,255,.20) !important;
    border-radius:12px !important;
    background:rgba(255,255,255,.10) !important;
    color:#fff !important;
    cursor:pointer !important;
    box-sizing:border-box !important;
}
.mev-modal-share > summary::marker,
.mev-modal-share > summary::-webkit-details-marker { display:none !important; content:"" !important; }
.mev-modal-share[open] > summary,
.mev-modal-share > summary:hover { background:rgba(255,255,255,.18) !important; }
.mev-modal-share__menu {
    display:none !important;
    position:absolute !important;
    top:calc(100% + 10px) !important;
    right:0 !important;
    width:246px !important;
    max-width:min(246px,calc(100vw - 28px)) !important;
    margin:0 !important;
    padding:8px !important;
    border:1px solid #d8e3ed !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 22px 50px rgba(15,23,42,.22) !important;
    z-index:99999 !important;
    box-sizing:border-box !important;
}
.mev-modal-share[open] .mev-modal-share__menu { display:grid !important; gap:4px !important; }
.mev-modal-share__menu a,
.mev-modal-share__menu button {
    min-height:44px !important;
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 !important;
    padding:0 12px !important;
    border:0 !important;
    border-radius:10px !important;
    background:#fff !important;
    color:#334155 !important;
    text-decoration:none !important;
    text-align:left !important;
    font:700 .86rem/1 inherit !important;
    box-sizing:border-box !important;
}
.mev-modal-share__menu a:hover,
.mev-modal-share__menu button:hover { background:#f1f5f9 !important; color:#0f172a !important; }
.mev-modal-share__menu a::before,
.mev-modal-share__menu button::before {
    content:"";
    width:28px;
    height:28px;
    flex:0 0 28px;
    display:grid;
    place-items:center;
    border-radius:8px;
    background:#eff6ff;
}
.mev-modal-share__menu a[data-share="whatsapp"]::before { content:"W"; color:#16a34a; background:#ecfdf5;  }
.mev-modal-share__menu a[data-share="linkedin"]::before { content:"in"; color:#0a66c2; background:#eff6ff;  }
.mev-modal-share__menu a[data-share="x"]::before { content:"X"; color:#0f172a; background:#f1f5f9;  }
.mev-modal-share__menu a[data-share="facebook"]::before { content:"f"; color:#1877f2; background:#eff6ff;  }
.mev-modal-share__menu .mev-modal-share__copy::before { content:"↗"; color:#2563eb; background:#eff6ff;  }

/* AI action group (desktop): keep title intact and actions on one compact row. */
@media (min-width: 641px) {
    #ai-modal .forum-header > div:first-child { min-width:0 !important; flex:1 1 auto !important; }
    #ai-modal .forum-header > .mev-i-0522ff3e97 { flex:0 0 auto !important; }
    #ai-modal .forum-header > .mev-i-0522ff3e97 .forum-close { white-space:nowrap !important; }
}

@media (max-width:760px) {
    nav[aria-label="Sayfalama"] { gap:10px; }
    nav[aria-label="Sayfalama"] .pagination { max-width:100%; overflow-x:auto; justify-content:flex-start; }
    .pagination-jump { width:100% !important; justify-content:center !important; }
    .mev-detail-sidebar__card .mev-i-728784a71b { grid-template-columns:1fr !important; }
    #forum-modal .forum-header > .mev-modal-share,
    #forum-modal .forum-header > .forum-close,
    #ai-modal .forum-header > .mev-i-0522ff3e97 { margin-top:0 !important; }
    #ai-modal .forum-header > .mev-i-0522ff3e97 .forum-close { padding-inline:10px !important; }
    .mev-modal-share__menu { right:0 !important; width:230px !important; }
}

@media (prefers-reduced-motion: reduce) {
    nav[aria-label="Sayfalama"] .pagination-item,
    .pagination-jump button,
    .mev-modal-share > summary,
    .mev-share-link { transition:none !important; }
}

/* ==========================================================================
   FORUM AI REPLY & FALLBACK STYLES (PREMIUM UI)
   ========================================================================== */

/* AI Generate Button on Topic Card */
.btn-ai-generate {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
    text-decoration: none !important;
}

.btn-ai-generate i {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.btn-ai-generate:hover:not(:disabled) {
    background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transform: translateY(-3px);
}

.btn-ai-generate:hover:not(:disabled) i {
    transform: rotate(25deg) scale(1.1);
}

.btn-ai-generate.is-disabled,
.btn-ai-generate:disabled {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.btn-ai-generate.is-disabled i,
.btn-ai-generate:disabled i {
    color: #10b981 !important;
}

.btn-ai-generate.is-loading {
    opacity: 0.9;
    cursor: wait !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

/* AI Loading & Notice Banner (0-120 sec waiting notice) */
.ai-loading-notice {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    color: #1e40af;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.925rem;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
    animation: aiNoticePulse 2.5s infinite ease-in-out;
}

.ai-loading-notice i {
    font-size: 1.35rem;
    color: #2563eb;
    flex-shrink: 0;
}

@keyframes aiNoticePulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1); border-left-color: #2563eb; }
    50% { box-shadow: 0 6px 24px rgba(37, 99, 235, 0.25); border-left-color: #4f46e5; }
}

/* Premium AI Reply Card */
.forum-reply-item.is-ai-reply {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%) !important;
    border: 1px solid #bfdbfe !important;
    border-left: 4px solid var(--brand-600, #2563EB) !important;
    border-radius: 0.85rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.08) !important;
    position: relative;
    margin-left: 0 !important;
    margin-bottom: 1.5rem !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.forum-reply-item.is-ai-reply:hover {
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.14) !important;
    border-color: #93c5fd !important;
}

.ai-reply-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(191, 219, 254, 0.6);
}

.badge-ai {
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    color: #ffffff !important;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    text-transform: uppercase;
}

.badge-ai i {
    font-size: 0.8rem;
    animation: robotGlow 2s infinite ease-in-out;
}

@keyframes robotGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 1px #fff); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 4px #93c5fd); }
}

.ai-model-tag {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    padding: 0.2rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    display: inline-flex;
    align-items: center;
}

.ai-content-body {
    color: #1e293b;
    font-size: 0.985rem;
    line-height: 1.75;
    word-wrap: break-word;
}

.ai-content-body p {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.ai-content-body p:last-child {
    margin-bottom: 0;
}

.ai-content-body ul, 
.ai-content-body ol {
    margin: 0.75rem 0 1rem;
    padding-left: 1.5rem;
}

.ai-content-body li {
    margin-bottom: 0.35rem;
}

.ai-content-body blockquote, 
.ai-quote {
    border-left: 3px solid #2563eb;
    background: #ffffff;
    padding: 0.85rem 1.15rem;
    margin: 0.85rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #334155;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ai-content-body strong {
    color: #0f172a;
    font-weight: 700;
}

.ai-content-body h1,
.ai-content-body h2,
.ai-content-body h3,
.ai-content-body h4 {
    color: #0f172a;
    margin-top: 1.25rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

@keyframes aiCardHighlight {
    0% { background: #dbeafe; transform: scale(1.01); }
    100% { background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%); transform: scale(1); }
}

/* ==========================================================================
   Category Forum Hub Modal & Trigger Styles
   ========================================================================== */
.btn-open-forum-hub {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-open-forum-hub:hover {
    background-color: #f8fafc !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

/* Category Modal Overlay & Box */
#category-forum-modal.forum-modal-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.65);
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
}

.category-forum-container {
    max-width: 920px !important;
    width: 100% !important;
    height: 88vh !important;
    max-height: 860px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

#category-forum-modal.show .category-forum-container {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.cat-forum-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.cat-forum-header__left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cat-forum-header__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
    flex-shrink: 0;
}

.cat-forum-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.cat-forum-header p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 3px 0 0 0;
}

.cat-forum-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-forum-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Modal Toolbar */
.cat-forum-toolbar {
    padding: 0.875rem 1.75rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
}

.cat-forum-sort-group {
    display: inline-flex;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 10px;
    gap: 2px;
}

.cat-forum-sort-btn {
    border: none;
    background: transparent;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cat-forum-sort-btn:hover {
    color: #1e293b;
}

.cat-forum-sort-btn.is-active {
    background: #ffffff;
    color: #2563eb;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cat-forum-search-wrap {
    position: relative;
    min-width: 240px;
    flex: 1;
    max-width: 320px;
}

.cat-forum-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
}

.cat-forum-search-wrap input {
    width: 100%;
    padding: 0.45rem 2rem 0.45rem 2.1rem;
    font-size: 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}

.cat-forum-search-wrap input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.cat-forum-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}

.cat-forum-search-clear:hover {
    color: #0f172a;
}

/* Topic Card */
.cat-forum-topic-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.15rem 1.35rem;
    margin-bottom: 0.85rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: inherit;
    position: relative;
}

.cat-forum-topic-card:hover {
    border-color: #93c5fd;
    border-left-color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
    background: #fafcff;
}

.cat-forum-topic-card:last-child {
    margin-bottom: 0;
}

.cat-forum-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.cat-forum-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    max-width: 520px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-forum-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.4rem 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    transition: color 0.15s ease;
}

.cat-forum-topic-card:hover .cat-forum-card-title {
    color: #2563eb;
}

.cat-forum-card-preview {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.85rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-forum-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8125rem;
    color: #64748b;
}

.cat-forum-author {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-forum-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cat-forum-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.cat-forum-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.cat-forum-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.8125rem;
}

/* Loading & Empty States */
.cat-forum-loading-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #64748b;
}

.cat-forum-loading-state p {
    margin-top: 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.cat-forum-empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    color: #64748b;
}

.cat-forum-empty-state svg {
    margin-bottom: 1rem;
    color: #cbd5e1;
}

/* Footer / Pagination */
.cat-forum-footer {
    padding: 0.875rem 1.75rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

.cat-forum-count-info {
    font-weight: 500;
}

.cat-forum-pagination-btns {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cat-forum-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cat-forum-page-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.cat-forum-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cat-forum-page-indicator {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #1e293b;
    padding: 0 0.25rem;
}

/* =========================================================
   Pinned / Sabitlenmiş Mevzuat & Tebliğ Kart Stilleri
   ========================================================= */
.mev-card--pinned {
    position: relative;
    border: 1.5px solid #fde68a !important;
    border-left: 5px solid #f59e0b !important;
    background: linear-gradient(135deg, #fffdf8 0%, #ffffff 100%) !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mev-card--pinned:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    border-color: #f59e0b !important;
}

.mev-badge-pinned {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    letter-spacing: 0.01em;
}

.mev-badge-pinned svg {
    color: #d97706;
}

@media (max-width: 640px) {
    #category-forum-modal.forum-modal-overlay {
        padding: 0;
    }
    .category-forum-container {
        max-width: 100vw !important;
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
    }
    .cat-forum-header {
        padding: 1rem;
    }
    .cat-forum-toolbar {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    .cat-forum-search-wrap {
        max-width: none;
        width: 100%;
    }
    .cat-forum-sort-group {
        width: 100%;
        display: flex;
    }
    .cat-forum-sort-btn {
        flex: 1;
        justify-content: center;
        padding: 0.4rem 0.25rem;
        font-size: 0.75rem;
    }
    .cat-forum-footer {
        padding: 0.75rem 1rem;
    }
}


