:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --text: #121527;
  --muted: #5b6178;
  --border: #e3e6f0;
  --primary: #4f46e5;
  --primary-2: #0ea5e9;
  --free: #059669;
  --free-bg: #dcfce9;
  --apc: #c2410c;
  --apc-bg: #ffedd5;
  --unk: #64748b;
  --unk-bg: #eef1f6;
  --scopus: #ea6a1f;
  --shadow: 0 1px 2px rgba(18, 21, 39, .05), 0 8px 24px -12px rgba(18, 21, 39, .15);
  --shadow-lg: 0 2px 4px rgba(18, 21, 39, .06), 0 20px 40px -16px rgba(18, 21, 39, .25);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d17;
    --surface: #141727;
    --surface-2: #1b1f33;
    --text: #e9ebf5;
    --muted: #9aa0b8;
    --border: #262b43;
    --primary: #818cf8;
    --primary-2: #38bdf8;
    --free: #34d399;
    --free-bg: rgba(52, 211, 153, .14);
    --apc: #fb923c;
    --apc-bg: rgba(251, 146, 60, .14);
    --unk: #94a3b8;
    --unk-bg: rgba(148, 163, 184, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 20px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 45%, #0e7490 100%);
  padding: 28px 0 92px;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(56, 189, 248, .35), transparent 70%),
    radial-gradient(500px 260px at 10% 90%, rgba(167, 139, 250, .35), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image: radial-gradient(rgba(255, 255, 255, .8) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.hero-inner { position: relative; z-index: 1; }

/* Hero illustration (top right on wide screens, hidden on small ones). */
.hero-art {
  position: absolute; top: 46px; right: 10px; width: 320px; pointer-events: none; z-index: -1;
  animation: rise .6s ease both;
}
.hero-art svg { width: 100%; height: auto; display: block; stroke: none; overflow: visible; }
.ha-float { animation: float 6s ease-in-out infinite; transform-box: fill-box; }
.ha-twinkle { animation: twinkle 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ha-d2 { animation-delay: -2s; }
.ha-d3 { animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@media (min-width: 1021px) { .hero h1 { max-width: calc(100% - 340px); } .tagline { max-width: calc(100% - 360px); } }
@media (max-width: 1020px) { .hero-art { display: none; } }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand { flex-wrap: wrap; row-gap: 12px; }
/* Faculty affiliation above the headline (transparent UNTAN logo, animated entrance). */
.affil { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; }
.affil-logo { position: relative; flex: none; width: 56px; height: 56px; animation: affilPop .8s cubic-bezier(.2, .9, .3, 1.3) both; }
.affil-logo::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(253, 224, 71, .55), rgba(253, 224, 71, 0) 70%);
  animation: affilGlow 3.2s ease-in-out infinite;
}
.affil-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); animation: affilFloat 5s ease-in-out 1s infinite; }
.affil-text { display: flex; flex-direction: column; line-height: 1.15; }
.affil-text b {
  font-size: 19px; font-weight: 800; letter-spacing: -.01em;
  background: linear-gradient(100deg, #fff 0%, #fff 40%, #fde68a 50%, #fff 60%, #fff 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: affilSlide .7s ease .25s both, affilShine 4.5s ease-in-out 1.2s infinite;
}
.affil-text span {
  font-size: 14px; font-weight: 600; letter-spacing: .03em; color: rgba(255, 255, 255, .82);
  animation: affilSlide .7s ease .45s both;
}
.affil + h1 { margin-top: 16px; }
@keyframes affilPop { 0% { opacity: 0; transform: scale(.4) rotate(-20deg); } 100% { opacity: 1; transform: none; } }
@keyframes affilGlow { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: .9; transform: scale(1.1); } }
@keyframes affilFloat { 50% { transform: translateY(-3px) rotate(-2deg); } }
@keyframes affilSlide { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes affilShine { 0%, 60% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (max-width: 640px) {
  .affil { margin-top: 22px; gap: 12px; }
  .affil-logo { width: 46px; height: 46px; }
  .affil-text b { font-size: 16.5px; }
  .affil-text span { font-size: 12.5px; }
}
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 99px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
}
.lang button {
  font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; cursor: pointer;
  color: rgba(255, 255, 255, .8); background: transparent; border: 0; border-radius: 99px; padding: 5px 11px;
}
.lang button[aria-pressed="true"] { background: #fff; color: #3730a3; }
@media (max-width: 640px) { .nav-link span { display: none; } .nav-link { padding: 8px 10px; } }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: #fff;
  font-size: 14px; font-weight: 700; padding: 8px 15px; border-radius: 99px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px); transition: background .15s, transform .15s;
}
.nav-link:hover { background: rgba(255, 255, 255, .26); transform: translateY(-1px); }
.nav-link svg { font-size: 15px; }
.nav-link-hl { color: #064e3b; background: linear-gradient(135deg, #6ee7b7, #34d399); border-color: transparent; }
.nav-link-hl:hover { background: linear-gradient(135deg, #a7f3d0, #6ee7b7); }
.top-nav { flex-wrap: wrap; justify-content: flex-end; }
.logo {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 6px 16px -4px rgba(16, 185, 129, .7);
  font-size: 20px; color: #fff;
}
.logo svg { stroke-width: 3; }
.hero h1 {
  margin: 34px 0 10px; font-size: clamp(28px, 5vw, 46px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; max-width: 760px;
}
.hl {
  background: linear-gradient(90deg, #6ee7b7, #67e8f9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-note {
  display: inline-flex; align-items: center; gap: 8px; margin: -12px 0 24px; padding: 7px 14px;
  font-size: 13.5px; color: #fef3c7; background: rgba(251, 191, 36, .14);
  border: 1px solid rgba(251, 191, 36, .35); border-radius: 99px;
}
.hero-note svg { flex: none; font-size: 16px; color: #fcd34d; }
.hero-note b { color: #fff; }
.tagline { margin: 0 0 26px; font-size: clamp(15px, 2vw, 17px); color: rgba(255, 255, 255, .82); max-width: 640px; }

/* Search */
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: #121527; border-radius: 14px; padding: 6px 8px 6px 16px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55);
}
.search-icon { font-size: 20px; color: #6b7190; flex: none; }
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit;
  font: inherit; font-size: 16px; padding: 12px 0;
}
.search-box input::placeholder { color: #8a90a8; }
.kbd {
  flex: none; font: 600 12px/1 inherit; color: #6b7190; border: 1px solid #d9dceb; border-bottom-width: 2px;
  border-radius: 6px; padding: 5px 8px; margin-right: 4px;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.select {
  position: relative; flex: 1 1 180px; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px;
  padding: 7px 12px 6px; backdrop-filter: blur(6px); transition: background .15s;
}
.select:hover, .select:focus-within { background: rgba(255, 255, 255, .2); }
.select-wide { flex-basis: 260px; }
.filters .select { flex: 1 1 calc(25% - 10px); min-width: 170px; }
.filters .select-half { flex-basis: calc(50% - 10px); min-width: 240px; }
.filters .select-third { flex-basis: calc(33.333% - 10px); }
.select span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .7); }
.select select {
  appearance: none; -webkit-appearance: none; border: 0; outline: 0; background: transparent; color: #fff;
  font: inherit; font-weight: 600; padding: 2px 22px 2px 0; width: 100%; cursor: pointer;
}
.select select option, .select select optgroup { color: #121527; background: #fff; }
.select::after {
  content: ""; position: absolute; right: 14px; bottom: 14px; width: 7px; height: 7px;
  border-right: 2px solid rgba(255, 255, 255, .8); border-bottom: 2px solid rgba(255, 255, 255, .8);
  transform: rotate(45deg); pointer-events: none;
}
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.quick-label { font-size: 13px; color: rgba(255, 255, 255, .7); }
.chip {
  font: inherit; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 99px; padding: 6px 13px; transition: background .15s, transform .15s;
}
.chip:hover { background: rgba(255, 255, 255, .26); transform: translateY(-1px); }
.chip.active { background: #fff; color: #3730a3; border-color: #fff; }
.chip-ghost { background: transparent; border-style: dashed; }

/* Journal finder page */
.hero-finder { padding-bottom: 40px; }
.brand-home { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.finder-form {
  margin-top: 6px; padding: 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px);
}
.f-field { display: block; margin-bottom: 12px; }
.f-field > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: rgba(255, 255, 255, .9); }
.f-field em { font-style: normal; font-weight: 500; color: rgba(255, 255, 255, .65); }
.f-field textarea {
  width: 100%; resize: vertical; font: inherit; font-size: 15.5px; line-height: 1.5; color: #121527;
  background: #fff; border: 0; border-radius: 12px; padding: 12px 14px; outline: 0;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .5);
}
.f-field textarea:focus { box-shadow: 0 0 0 3px rgba(110, 231, 183, .7); }
.finder-form .filters { margin-top: 4px; align-items: stretch; }
.find-btn {
  flex: 1 1 100%; padding: 13px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; color: #064e3b; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #6ee7b7, #34d399); box-shadow: 0 10px 24px -10px rgba(16, 185, 129, .9);
  transition: transform .15s, filter .15s;
}
.find-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.find-btn:disabled { opacity: .7; cursor: wait; }
.find-btn svg { font-size: 18px; stroke-width: 2.6; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.finder-intro { text-align: left; line-height: 1.6; }
.finder-intro b { margin-bottom: 6px; }
.rank { display: inline-block; min-width: 34px; margin-right: 8px; color: var(--muted); font-weight: 800; }
.match { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
.match-label { font-weight: 700; color: var(--muted); }
.match-track { flex: 0 1 220px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.match-bar { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.match-pct { font-weight: 800; }
.match-why { color: var(--muted); }
.papers { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.papers > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.papers ul { margin: 4px 0 0; padding-left: 20px; }
.papers li { margin: 2px 0; }
.papers a { color: var(--text); text-decoration: none; }
.papers a:hover { color: var(--primary); text-decoration: underline; }
.papers .muted { color: var(--muted); }

/* About page */
.about-h { margin: 34px 0 14px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: var(--shadow); animation: rise .4s ease both;
  transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.f-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 20px;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent);
}
.feature h3 { margin: 12px 0 6px; font-size: 16px; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.source {
  display: block; text-decoration: none; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; transition: border-color .15s;
}
.source:hover { border-color: var(--primary); }
.source b { display: block; font-size: 14.5px; }
.source span { color: var(--muted); font-size: 13px; }
.about-note { margin: 26px 0 0 !important; line-height: 1.55; }

/* Notice */
.notice {
  position: relative; z-index: 2; margin: -64px 0 16px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--apc); border-left-width: 5px; border-radius: 12px; box-shadow: var(--shadow);
}
.notice:not([hidden]) + .stats { margin-top: 0; }
.hero-finder ~ main .notice { margin: 20px 0 0; }
.notice code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }

/* Stats */
.stats {
  position: relative; z-index: 2; margin-top: -64px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
}
.stat {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.stat-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; font-size: 20px;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent);
}
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.stat span { color: var(--muted); font-size: 13px; line-height: 1.3; display: block; }

/* Duration statistics */
.duration {
  margin-top: 18px; padding: 18px 20px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.duration-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.duration h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.duration-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.chip-clear {
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent); border: 0; border-radius: 99px; padding: 6px 12px;
}
.duration-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.d-tile { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.d-tile b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.d-tile span { color: var(--muted); font-size: 12.5px; }

.histogram { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 150px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.h-col {
  position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  background: none; border: 0; padding: 0 4px; cursor: pointer; font: inherit; color: inherit;
}
.h-col:disabled { cursor: default; }
.h-track { flex: 1; display: flex; align-items: flex-end; border-radius: 4px 4px 0 0; transition: background .15s; }
.h-col:hover:not(:disabled) .h-track { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.h-bar {
  display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0;
  background: var(--primary); transition: height .35s ease, opacity .15s;
}
.h-col.dim .h-bar { opacity: .3; }
.h-col.selected .h-bar { background: var(--primary-2); }
.h-label { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.h-unit { position: absolute; right: 0; bottom: -40px; font-size: 11.5px; color: var(--muted); }
.h-tip {
  position: absolute; bottom: calc(100% - 6px); left: 50%; transform: translate(-50%, 4px); z-index: 3;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s;
  background: var(--text); color: var(--surface); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px;
}
.h-col:hover .h-tip, .h-col:focus-visible .h-tip { opacity: 1; transform: translate(-50%, 0); }
.h-col:first-child .h-tip { left: 0; transform: none; }
.h-col:nth-last-child(2) .h-tip { left: auto; right: 0; transform: none; }
.duration-hint { margin: 26px 0 0; color: var(--muted); font-size: 12px; }

@media (max-width: 640px) {
  .duration { padding: 16px 14px 12px; }
  .duration-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-label { font-size: 10.5px; }
}

/* Results */
.results-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.summary { margin: 0; font-weight: 700; font-size: 15px; }
.summary .muted { color: var(--muted); font-weight: 500; }
.results { display: grid; gap: 12px; }
.journal {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px 16px 24px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  animation: rise .3s ease both;
}
.journal::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--unk-bg); }
.journal.fee-free::before { background: linear-gradient(var(--free), #10b981); }
.journal.fee-apc::before { background: linear-gradient(var(--apc), #f59e0b); }
.journal:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.journal h2 { grid-column: 1; font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -.01em; line-height: 1.35; overflow-wrap: anywhere; }
.journal h2 a { color: var(--text); text-decoration: none; }
.journal h2 a:hover { color: var(--primary); }
.journal h2 .ext { font-size: 13px; color: var(--muted); margin-left: 4px; vertical-align: 1px; }
/* SJR quartile pill, SCImago's own green→red convention, always labelled. */
.q {
  display: inline-block; margin-left: 8px; vertical-align: 2px; cursor: help;
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: #fff;
  padding: 2px 8px; border-radius: 6px;
}
.q1 { background: #16a34a; }
.q2 { background: #ca8a04; }
.q3 { background: #ea580c; }
.q4 { background: #dc2626; }
.fee {
  grid-column: 2; grid-row: 1 / span 2; align-self: start; text-align: right;
}
.fee-pill {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px;
  padding: 7px 12px; border-radius: 99px; white-space: nowrap;
}
.fee-pill svg { stroke-width: 2.8; }
.fee-free .fee-pill { color: var(--free); background: var(--free-bg); }
.fee-apc .fee-pill { color: var(--apc); background: var(--apc-bg); }
.fee-unknown .fee-pill { color: var(--unk); background: var(--unk-bg); }
.fee-est { display: block; margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--apc); white-space: nowrap; }
.fee-amount { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); max-width: 220px; overflow-wrap: anywhere; }
.meta { grid-column: 1; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.meta .sep { margin: 0 6px; opacity: .5; }
.country { vertical-align: bottom; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; color: var(--text); }
.flag {
  width: 20px; height: 15px; object-fit: cover; border-radius: 3px; flex: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 15%, transparent);
}
.tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  font-size: 12px; font-weight: 600; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent); padding: 3px 9px; border-radius: 7px;
}
.tag { display: inline-flex; align-items: center; gap: 5px; }
.tag-on { outline: 2px solid var(--primary); outline-offset: -2px; }
.foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--border);
}
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.b-scopus { color: #fff; background: linear-gradient(135deg, #f97316, #ea580c); }
.b-inactive { color: var(--unk); background: var(--unk-bg); }
.b-info { color: var(--muted); background: var(--surface-2); }
.b-warn { color: var(--apc); background: var(--apc-bg); }
.b-platform { color: #0f766e; background: color-mix(in srgb, #14b8a6 14%, transparent); }
@media (prefers-color-scheme: dark) { .b-platform { color: #5eead4; } }
.b-safe { color: #047857; background: color-mix(in srgb, #10b981 15%, transparent); cursor: help; }
@media (prefers-color-scheme: dark) { .b-safe { color: #6ee7b7; } }
.b-danger { color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626); }
.b-time { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.warn-box {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 2px 0 4px;
  padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: #b91c1c; background: color-mix(in srgb, #ef4444 12%, transparent); border: 1px solid color-mix(in srgb, #ef4444 35%, transparent);
}
.warn-box svg { flex: none; font-size: 16px; }
.warn-hijack, .warn-beall { align-items: flex-start; font-weight: 500; line-height: 1.45; }
.warn-hijack svg, .warn-beall svg { margin-top: 2px; }
.warn-hijack b, .warn-beall b { font-weight: 800; }
.fake-list { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 2px; }
.fake-list code { font-size: 12px; padding: 1px 6px; border-radius: 5px; background: color-mix(in srgb, #ef4444 15%, transparent); text-decoration: line-through; }
.warn-beall { color: #92400e; background: color-mix(in srgb, #f59e0b 14%, transparent); border-color: color-mix(in srgb, #f59e0b 40%, transparent); }
@media (prefers-color-scheme: dark) { .warn-beall { color: #fcd34d; } }
@media (prefers-color-scheme: dark) { .warn-box { color: #fca5a5; } }
.links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.btn-link {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; text-decoration: none;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 9px; transition: background .15s, color .15s, border-color .15s;
}
.btn-link:hover { color: var(--primary); border-color: var(--primary); }
.btn-link svg { font-size: 12px; }

.empty {
  text-align: center; padding: 48px 16px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty b { display: block; font-size: 18px; color: var(--text); margin-bottom: 4px; }

/* Loading */
.loader {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 36px 16px 30px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); animation: rise .4s ease both;
}
.loader-orb { position: relative; width: 84px; height: 84px; margin-bottom: 14px; }
.ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 25%, var(--primary) 60%, var(--primary-2) 85%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: spin 1.1s linear infinite;
}
.ring-2 {
  inset: 12px; animation-duration: 1.6s; animation-direction: reverse;
  background: conic-gradient(from 90deg, transparent 0 30%, #10b981 70%, #6ee7b7 95%, transparent 100%);
}
.loader-logo {
  position: absolute; inset: 26px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 20px;
  background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 6px 18px -4px rgba(16, 185, 129, .7);
  animation: pulse 1.6s ease-in-out infinite;
}
.loader-logo svg { stroke-width: 3; stroke-dasharray: 24; animation: draw 1.6s ease-in-out infinite; }
.loader-title { font-size: 17px; font-weight: 800; }
.loader-text { color: var(--muted); font-size: 14px; }
.dots i { font-style: normal; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
.loader-bar { width: min(280px, 80%); height: 6px; margin-top: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.loader-bar span {
  display: block; width: 40%; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), #10b981);
  animation: slide 1.3s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(.9); } }
@keyframes draw { 0% { stroke-dashoffset: 24; } 45%, 100% { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

.skeleton, .skeleton-card i {
  background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.stat.skeleton { height: 82px; }
.skeleton-card { display: flex; flex-direction: column; gap: 12px; }
.skeleton-card::before { background: var(--surface-2); }
.skeleton-card i { display: block; height: 14px; border-radius: 7px; }
.skeleton-card i:nth-child(1) { width: 55%; height: 18px; }
.skeleton-card i:nth-child(2) { width: 80%; }
.skeleton-card i:nth-child(3) { width: 35%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.search-spinner {
  display: none; width: 20px; height: 20px; flex: none; margin-left: -30px; border-radius: 50%;
  border: 2.5px solid #e0e3f0; border-top-color: #4f46e5; animation: spin .7s linear infinite;
  background: #fff;
}
.search-box.searching .search-spinner { display: block; }
.results { transition: opacity .2s; }
.results.is-busy { opacity: .45; pointer-events: none; }

/* Pager */
.pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 26px 0 8px; flex-wrap: wrap; }
.pager span { color: var(--muted); font-size: 14px; font-weight: 600; }
.pager button {
  font: inherit; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 11px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: border-color .15s, color .15s;
}
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button:disabled { opacity: .4; cursor: default; box-shadow: none; }

/* Footer */
.site-footer { margin-top: 36px; padding: 26px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0 0 6px; }
.updated:empty { display: none; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 14px; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: var(--shadow-lg);
}
.to-top[hidden] { display: none; }

@media (max-width: 640px) {
  .hero { padding-bottom: 84px; }
  .hero h1 { margin-top: 26px; }
  .kbd { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 12px; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; font-size: 17px; }
  .stat b { font-size: 18px; }
  .journal { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 14px 20px; }
  .fee { grid-column: 1; grid-row: auto; text-align: left; }
  .fee-amount { max-width: none; }
  .links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
