* {
    box-sizing: border-box;
}

:root {
    --header-h: 90px;
    --navy: #060d1a;
    --navy2: #0b1629;
    --navy3: #0f1e38;
    --teal: #1D9E75;
    --teal2: #5DCAA5;
    --blue: #185FA5;
    --blue2: #378ADD;
    --border: rgba(29, 158, 117, 0.18);
    --border2: rgba(29, 158, 117, 0.08);
    --dim: rgba(255, 255, 255, 0.38);
    --mid: rgba(255, 255, 255, 0.65);
    --bg: #f6f7f9;
    --bg2: #ffffff;
    --ink: #0f1e38;
    --ink-mid: #6b7a90;
    --ink-dim: #9aa5b8;
    --line: #e3e7ed;
    --line2: #eef1f4;
    --accent: #1D9E75;
    --accent2: #147a5a;
    --accent-bg: rgba(29, 158, 117, 0.06);
    --live-red: #ef4444;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #eef2f7;
    color: #0f172a;
    min-height: 100vh;
    width: 100%;
    display: block !important;
}

.ara-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    padding-top: var(--header-h); 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ara-hero {
    background: linear-gradient(180deg, #0b1f3a 0%, #11294d 100%);
    padding: 11px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    overflow: hidden;
}

.ara-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 50%, rgba(46, 204, 113, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 45%);
    pointer-events: none;
}

.ap-index-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-radius: 3px;
    border: 1px solid;
    line-height: 1.5;
    vertical-align: middle;
    white-space: nowrap;
    font-family: system-ui, -apple-system, sans-serif;
}

.ap-index-sci      { background: #e8f5ee; color: #0f5132; border-color: #b6dfc4; }
.ap-index-sci-exp  { background: #f0faf3; color: #198754; border-color: #cdebd6; }
.ap-index-ssci     { background: #fff4e6; color: #b35900; border-color: #ffd9a8; }
.ap-index-ahci     { background: #f3eaff; color: #5a2d8c; border-color: #e0ccf5; }
.ap-index-esci     { background: #e8f4ff; color: #1a6b9d; border-color: #c5e0f5; }
.ap-index-scopus   { background: #fde8ec; color: #c0392b; border-color: #f5c6cd; }
.ap-index-tr       { background: #fff8e1; color: #8a6d00; border-color: #f5e3a1; }
.ap-index-default  { background: #f1f3f5; color: #495057; border-color: #dee2e6; }

.ara-hero-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    position: relative;
    z-index: 1;
}

.ara-hero-logo-img {
    height: 67px;
    width: auto;
    display: block;
}

.ara-hero-search {
    flex: 1;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 3px 6px 3px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ara-hero-search:focus-within {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(46, 204, 113, 0.45);
}

.ara-hero-search-icon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 17px;
}

.ara-hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 14px;
    padding: 10px 0;
}

.ara-hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ara-hero-search-btn {
    background: #2ECC71;
    color: white;
    border: none;
    border-radius: 7px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ara-hero-search-btn:hover {
    background: #27ae60;
}

.ara-grid {
    display: flex;
    background: #f8fafc;
    align-items: flex-start;
    flex: 1; 
}

.ara-sidebar {
    width: 280px;
    border-right: 1px solid #e5e9f0;
    flex-shrink: 0;
    overflow-x: hidden;
    position: sticky;
    top: var(--header-h);
    align-self: flex-start;
    height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
}

.ara-sidebar form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.ara-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 16px 12px;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #2ECC71 transparent;
}

.ara-sidebar-scroll::-webkit-scrollbar        { width: 6px; }
.ara-sidebar-scroll::-webkit-scrollbar-track  { background: transparent; }
.ara-sidebar-scroll::-webkit-scrollbar-thumb  { background: linear-gradient(180deg, #2ECC71, #27ae60); border-radius: 100px; }
.ara-sidebar-scroll::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #27ae60, #1e8e4d); }

.ara-sidebar-cta {
    padding: 12px 16px 16px;
    background: #f8fafc;
    border-top: 1px solid #e5e9f0;
    flex-shrink: 0;
}

.filter-summary-card {
    background: #ffffff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.filter-summary-label {
    font-size: 11px;
    font-weight: 600;
    color: #2ECC71;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.filter-summary-count {
    font-size: 30px;
    font-weight: 700;
    color: #0b1f3a;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.filter-summary-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.filter-card {
    background: #ffffff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 12px;
}

.filter-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 8px;
    cursor: pointer;
    user-select: none;
}

.filter-card-header.collapsible:hover .filter-card-title { color: #2ECC71; }

.filter-card-title {
    font-size: 11px;
    font-weight: 700;
    color: #0b1f3a;
    letter-spacing: 0.08em;
    transition: color 0.15s ease;
}

.filter-card-toggle {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.filter-card.collapsed .filter-card-toggle    { transform: rotate(-90deg); }
.filter-card.collapsed .filter-card-body      { display: none; }

.filter-card-clear {
    font-size: 11px;
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
    margin-right: 8px;
}

.filter-card-clear:hover { text-decoration: underline; }

.filter-card-head-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 6px;
    margin-bottom: 2px;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease;
    user-select: none;
}

.filter-option:hover:not(.empty) { background: #f8fafc; }

.filter-option.active {
    background: linear-gradient(90deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.02));
}

.filter-option.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: #2ECC71;
    border-radius: 0 2px 2px 0;
}

.filter-option.empty {
    opacity: 0.45;
    cursor: not-allowed;
}

.filter-option-check { display: none; }

#indeksCard .filter-option-check {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    flex-shrink: 0;
}

.filter-option-label {
    font-size: 13px;
    color: #475569;
    font-weight: 400;
    flex: 1;
    padding-left: 4px;
}

.filter-option.active .filter-option-label {
    color: #0b1f3a;
    font-weight: 600;
}

.filter-option-badge {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 9px;
    border-radius: 10px;
    min-width: 30px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.filter-option-badge.badge-active {
    background: #2ECC71;
    color: white;
}

.filter-card-soon { opacity: 0.75; pointer-events: none; }

.filter-card-soon-badge {
    font-size: 9px;
    font-weight: 700;
    background: rgba(46, 204, 113, 0.12);
    color: #1e8e4d;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.filter-range-wrap { padding: 4px 10px 10px; }

.filter-range-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.filter-range-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 1px solid #e5e9f0;
    border-radius: 6px;
    padding: 7px 8px;
    font-size: 12px;
    color: #94a3b8;
    background: #f8fafc;
    text-align: center;
}

.filter-range-sep {
    font-size: 11px;
    color: #cbd5e1;
    flex-shrink: 0;
}

.filter-range-bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    position: relative;
}

.filter-range-bar-fill {
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, #2ECC71, #27ae60);
    border-radius: 2px;
    opacity: 0.35;
}

.filter-index-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px 10px 10px;
}

.filter-index-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-index-check {
    width: 14px;
    height: 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 3px;
    flex-shrink: 0;
}

.filter-index-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.filter-index-name {
    font-size: 12px;
    color: #94a3b8;
}

.filter-dropdown-placeholder {
    background: #f8fafc;
    border: 1px solid #e5e9f0;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 10px 10px;
}

.filter-apply-btn {
    width: 100%;
    background: linear-gradient(135deg, #2ECC71, #27ae60);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.25);
}

.filter-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.35);
}

.ara-main {
    flex: 1;
    padding: 22px 28px;
    background: white;
    min-width: 0;
    min-height: calc(100vh - var(--header-h)); /* masaüstü */
}

.ara-aka-header {
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 18px;
}

.ara-aka-title {
    font-size: 17px;
    font-weight: 600;
    color: #0b1f3a;
    margin: 0 0 3px;
}

.ara-aka-sub {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.ara-aka-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.ara-aka-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.ara-aka-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #2ECC71, #27ae60);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ara-aka-card:hover {
    border-color: #2ECC71;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.15);
}

.ara-aka-avatar {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #f1f5f9;
}

.ara-aka-avatar-initial {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2ECC71, #27ae60);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.25);
}

.ara-aka-info {
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

.ara-aka-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 3px;
}

.ara-aka-dept {
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ara-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ara-results-count {
    font-size: 14px;
    color: #475569;
}

.ara-results-count b {
    color: #0b1f3a;
    font-weight: 700;
}

.ara-yayin-row {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f8fafc;
}

.ara-yayin-accent {
    width: 3px;
    background: #2ECC71;
    border-radius: 2px;
    flex-shrink: 0;
}

.ara-yayin-body {
    flex: 1;
    min-width: 0;
}

.ara-yayin-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.ara-yayin-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(46, 204, 113, 0.12);
    color: #1e8e4d;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ara-yayin-year {
    font-size: 11px;
    color: #94a3b8;
}

.ara-yayin-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 4px;
}

.ara-yayin-title a {
    color: inherit;
    text-decoration: none;
}

.ara-yayin-title a:hover { color: #2ECC71; }

.ara-yayin-title .ap-makale-detay-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.ara-yayin-title .ap-makale-detay-link:hover {
    color: #2ECC71;
    text-decoration: underline;
    text-decoration-color: rgba(46, 204, 113, 0.5);
    text-underline-offset: 3px;
}

.ara-yayin-authors {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

.ara-yayin-icons {
    display: flex;
    gap: 5px;
    margin-top: 6px;
    align-items: center;
}

.ara-yayin-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ara-yayin-icon img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.ara-empty {
    text-align: center;
    padding: 60px 20px;
}

.filter-option.hidden-extra { display: none; }

.filter-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #2ECC71;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease;
    user-select: none;
}

.filter-show-more:hover { background: rgba(46, 204, 113, 0.08); }

.filter-show-more .chev {
    font-size: 9px;
    transition: transform 0.2s ease;
}

.filter-show-more.is-open .chev { transform: rotate(180deg); }

.ara-yazar-more-btn {
    display: inline-block;
    background: rgba(46, 204, 113, 0.12);
    color: #1e8e4d;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    margin-left: 4px;
    transition: background 0.15s ease;
}

.ara-yazar-more-btn:hover { background: rgba(46, 204, 113, 0.22); }

/* ── YAZAR MODAL ── */
.ara-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 58, 0.55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.ara-modal-backdrop.is-open { display: flex; }

.ara-modal {
    background: white;
    border-radius: 14px;
    max-width: 720px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(11, 31, 58, 0.3);
}

.ara-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
}

.ara-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #0b1f3a;
}

.ara-modal-close {
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ara-modal-close:hover {
    background: #e2e8f0;
    color: #0b1f3a;
}

.ara-modal-body {
    padding: 18px 22px;
    overflow-y: auto;
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
}

.ara-bm-icon {
    position: relative;
    cursor: help;
}

.ara-bm-tooltip {
    text-align: center;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #fff;
    color: white;
    padding: 10px;
    border-radius: 8px;
    width: 220px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.3);
}

.ara-bm-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #0b1f3a;
}

.ara-bm-icon:hover .ara-bm-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.ara-bm-tooltip-img {
    width: 140px !important;
    height: 140px !important;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 6px;
    background: white;
}

.ap-metric-icon-bi {
    display: block !important;
    font-size: 24px !important;
    line-height: 1 !important;
    margin: 4px auto 8px !important;
    color: #6f42c1 !important;
}

.ara-bm-tooltip-text {
    font-size: 13px;
    line-height: 1.4;
    color: #0b1f3a;
}

.ara-yazar-link {
    color: #185fa5;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ara-yazar-link:hover {
    color: #2ECC71;
    text-decoration: underline;
}

.ara-yazar-plain { color: #64748b; }

.ara-modal-yazar-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ara-modal-yazar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.ara-modal-yazar-item:hover { background: #f8fafc; }

.ara-modal-yazar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.ara-modal-yazar-sira {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ara-modal-yazar-name {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    text-decoration: none;
}

.ara-modal-yazar-name:hover { color: #2ECC71; }

.ara-modal-yazar-bolum {
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
    flex-shrink: 0;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── FOOTER ── */
.ara-footer {
    flex-shrink: 0;
    background: linear-gradient(180deg, #0b1f3a 0%, #081628 100%);
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    overflow: hidden;
}

.ara-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 0%, rgba(46, 204, 113, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.ara-footer-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 48px 40px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.ara-footer-img { flex-direction: row; }

.ara-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ara-footer-logo {
    height: 44px;
    width: auto;
    margin-right: 20px;
}

.ara-footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    max-width: 360px;
}

.ara-footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ara-footer-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #2ECC71;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ara-footer-col a,
.ara-footer-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ara-footer-col a:hover { color: #2ECC71; }

.ara-footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 40px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {

    .ara-hero {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 14px;
    }

    .ara-wrapper {
        padding-top: 0;
    }

    .ara-grid {
        flex-direction: column;
        min-height: 0;
    }

    .ara-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e9f0;
        position: static;
        height: auto;
        max-height: none;
    }

    .ara-sidebar-scroll {
        overflow: visible;
        padding: 18px 16px 0;
        max-height: none;
    }

    .ara-sidebar-cta {
        position: sticky;
        bottom: 0;
        z-index: 50;
        background: #f8fafc;
        box-shadow: 0 -4px 12px rgba(11, 31, 58, 0.08);
    }

    .ara-main {
        min-height: 0;
        padding: 16px 14px;
    }

    .ara-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 36px 24px 24px;
    }

    .ara-footer-brand { grid-column: 1 / -1; }

    .ara-footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 16px 24px;
    }
}

@media (max-width: 540px) {

    .ara-footer-inner { grid-template-columns: 1fr; }

    .ara-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .ara-hero-logo { min-width: unset; }

    .ara-hero-search { width: 100%; }
}

.ap-paper-dialog { max-width: 820px; }

.ap-paper-modal {
    position: relative;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(6, 13, 26, 0.12);
    overflow: hidden;
}

.ap-paper-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    opacity: 0.6;
    transition: all 0.2s ease;
    background-color: var(--bg);
    border-radius: 50%;
    padding: 10px;
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    color: #000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3E%3Cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1em;
    border: 0;
    cursor: pointer;
}

.ap-paper-close:hover {
    opacity: 1;
    background-color: var(--line2);
}

.ap-paper-body {
    background: var(--bg2);
    padding: 50px 60px 40px 60px;
}

.ap-paper-loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--ink-mid);
}

.ap-paper-head { margin-bottom: 24px; }

.ap-paper-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 18px;
}

.ap-paper-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy);
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
}

.ap-paper-journal {
    font-size: 15px;
    font-weight: 500;
    color: var(--blue);
    margin-bottom: 16px;
    line-height: 1.5;
}

.ap-paper-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 8px;
}

.ap-paper-chip {
    background: var(--bg);
    color: var(--ink-mid);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid var(--line2);
    display: inline-flex;
    align-items: center;
}

.ap-paper-chip-link {
    text-decoration: none;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ap-paper-chip-link.wos {
    background: #f3eaff;
    color: #5a2d8c;
    border-color: #e0ccf5;
    line-height: 4px !important;
}

.ap-paper-chip-link.wos:hover {
    background: #5a2d8c;
    color: #fff;
    border-color: #5a2d8c;
}

.ap-paper-chip-link.scopus {
    background: #fde8ec;
    color: #c0392b;
    border-color: #f5c6cd;
    line-height: 4px !important;
}

.ap-paper-chip-link.scopus:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.ap-chip-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 2px;
    border-radius: 50%;
}

.ap-paper-metrics-section { margin-bottom: 28px; }

.ap-paper-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #7e8299;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ap-paper-section-label::before {
    content: '';
    width: 4px;
    height: 14px;
    background: #198754;
    border-radius: 2px;
}

.ap-paper-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    background: transparent;
    border: none;
}

.ap-metric-card {
    position: relative;
    padding: 18px 10px 14px 10px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
}

.ap-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(6, 13, 26, .08);
    border-color: #d0d4dc;
}

.ap-metric-num {
    font-size: 26px;
    font-weight: 700;
    color: var(--blue2);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -.5px;
}

.ap-metric-card img {
    display: block;
    width: 45px;
    height: 26px;
    margin: 4px auto 8px;
    object-fit: contain;
    opacity: .85;
}

.ap-metric-label {
    font-size: 11px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: .6px;
    line-height: 1.3;
}

.ap-metric-sublabel {
    display: block;
    font-size: 9px;
    color: #a1a5b7;
    margin-top: 3px;
    font-weight: 600;
    letter-spacing: .5px;
}

.ap-paper-section { margin-bottom: 32px; }

.ap-paper-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--line);
}

.ap-paper-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    background: var(--bg2);
}

.ap-paper-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ap-paper-info-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ap-paper-info-value {
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
    word-break: break-word;
}

.ap-paper-abstract {
    background: var(--bg);
    padding: 24px 32px;
    border-left: 4px solid var(--accent);
    border-radius: 0 6px 6px 0;
    font-size: 15px;
    line-height: 1.85;
    color: var(--ink);
    text-align: justify;
    hyphens: auto;
}

.ap-paper-footer {
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 20px 32px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

.btn-ap-primary,
.btn-ap-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ap-primary {
    background-color: var(--accent);
    color: #ffffff !important;
    border: 1px solid var(--accent);
}

.btn-ap-primary:hover {
    background-color: var(--accent2);
    border-color: var(--accent2);
}

.btn-ap-secondary {
    background-color: var(--bg2);
    color: var(--ink-mid);
    border: 1px solid var(--line);
}

.btn-ap-secondary:hover {
    background-color: var(--line2);
    color: var(--ink);
}

@media (max-width: 768px) {
    .ap-paper-body    { padding: 40px 30px 24px 30px; }
    .ap-paper-title   { font-size: 22px; }
    .ap-paper-metrics { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .ap-metric-card   { padding: 14px 8px 12px; }
    .ap-metric-num    { font-size: 22px; }
    .ap-paper-abstract { padding: 20px; }
}

@media (max-width: 576px) {
    .ap-paper-dialog  { margin: 12px; }
    .ap-paper-body    { padding: 32px 20px 20px 20px; }
    .ap-paper-metrics { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ap-paper-info-grid { grid-template-columns: 1fr; gap: 12px 0; }
    .ap-paper-abstract  { text-align: left; }

    .ap-paper-footer {
        flex-direction: column-reverse;
        padding: 16px;
    }

    .btn-ap-primary,
    .btn-ap-secondary { width: 100%; }
}