/* ============================================
   UGM DIGITAL SERVICES HUB - STYLES
   Extracted from public/index.php for better organization
   ============================================ */

/* ============================================
   ROOT VARIABLES & BASE STYLES
   ============================================ */
:root{ 
  --ugm-maroon:#7C0000; 
  --ugm-gold:#C8A951; 
  --accent-1:#2563eb; 
  --accent-2:#0ea5e9; 
  --accent-3:#10b981; 
  --accent-4:#f59e0b; 
  --accent-5:#ef4444; 
  --ink:#0f172a;
  /* P3-2: Dark mode (default) theme tokens */
  --bg-hero-from: #0f172a;
  --bg-hero-to: #1e1b4b;
  --bg-card: rgba(255,255,255,0.05);
  --bg-card-hover: rgba(255,255,255,0.10);
  --bg-input: rgba(255,255,255,0.1);
  --border-subtle: rgba(255,255,255,0.12);
  --border-medium: rgba(255,255,255,0.20);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.75);
  --text-muted: rgba(255,255,255,0.45);
  --text-on-dark: #ffffff;
  --badge-bg: rgba(255,255,255,0.15);
  --result-bg: #ffffff;
  --result-text: #1a1a1a;
  --result-border: #e2e8f0;
  --scrollbar-track: rgba(255,255,255,0.05);
  --scrollbar-thumb: rgba(255,255,255,0.2);
  --transition-theme: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* P3-2: Light mode theme tokens */
html.light-mode {
  --bg-hero-from: #e8f0fe;
  --bg-hero-to: #f3e8ff;
  --bg-card: rgba(0,0,0,0.04);
  --bg-card-hover: rgba(0,0,0,0.08);
  --bg-input: rgba(0,0,0,0.06);
  --border-subtle: rgba(0,0,0,0.10);
  --border-medium: rgba(0,0,0,0.18);
  --text-primary: #0f172a;
  --text-secondary: rgba(15,23,42,0.75);
  --text-muted: rgba(15,23,42,0.45);
  --text-on-dark: #0f172a;
  --badge-bg: rgba(0,0,0,0.08);
  --result-bg: #ffffff;
  --result-text: #1a1a1a;
  --result-border: #e2e8f0;
  --scrollbar-track: rgba(0,0,0,0.05);
  --scrollbar-thumb: rgba(0,0,0,0.2);
}

/* P3-2: Hero background responds to theme */
html.light-mode #heroSection,
html.light-mode .hero-bg {
  background: linear-gradient(135deg, var(--bg-hero-from) 0%, var(--bg-hero-to) 100%) !important;
}

/* P3-2: Search input light mode */
html.light-mode .search-wrapper {
  background: #1a1535 !important;                        /* tetap solid gelap di light mode */
  border-color: rgba(251, 191, 36, 0.55) !important;
}
html.light-mode .search-wrapper:focus-within {
  border-color: rgba(251, 191, 36, 0.95) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.60), 0 0 0 4px rgba(251,191,36,0.20) !important;
}
html.light-mode #searchInput {
  color: #fff !important;
  caret-color: #fff !important;
}
html.light-mode #searchInput::placeholder {
  color: rgba(255,255,255,0.40) !important;
}

/* P3-2: Browse shortcuts light mode — toggle stays solid dark, browse-btns keep their soft pastel */
html.light-mode #browseCategoriesToggle {
  background: rgba(20, 16, 50, 0.78) !important;
  border-color: rgba(255,255,255,0.20) !important;
  color: #fff !important;
}
html.light-mode #browseCategoriesToggle:hover {
  background: rgba(30, 24, 70, 0.88) !important;
}
/* Browse grid cards: light mode — add brightness/opacity layer, keep per-category colors */
html.light-mode .browse-btn {
  filter: brightness(1.30) saturate(0.95) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18) !important;
}
html.light-mode .browse-btn:hover {
  filter: brightness(1.45) saturate(1.0) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22) !important;
}
html.light-mode .browse-count-badge {
  background: rgba(0,0,0,0.15) !important;
  color: rgba(255,255,255,0.90) !important;
  border-color: rgba(255,255,255,0.25) !important;
}

/* P3-2: Trending section light mode */
html.light-mode #trendingSection {
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(168,85,247,0.08) 100%) !important;
  border-color: rgba(0,0,0,0.10) !important;
}
html.light-mode .trending-card {
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.10) !important;
}
html.light-mode .trending-card:hover {
  background: rgba(0,0,0,0.08) !important;
}
html.light-mode .trending-card-title {
  color: #0f172a !important;
}
html.light-mode .trending-card-meta {
  color: rgba(15,23,42,0.55) !important;
}
html.light-mode #trendingSection h2,
html.light-mode #trendingSection span {
  color: #0f172a !important;
}
html.light-mode #trendingSection a {
  color: #2563eb !important;
}

/* P3-2: Text that was white becomes dark in light mode */
html.light-mode .text-white { color: #0f172a !important; }
html.light-mode .text-white\/80 { color: rgba(15,23,42,0.80) !important; }
html.light-mode .text-white\/60 { color: rgba(15,23,42,0.60) !important; }
html.light-mode .text-white\/40 { color: rgba(15,23,42,0.40) !important; }
html.light-mode .text-white\/20 { color: rgba(15,23,42,0.20) !important; }

/* Pengecualian: elemen yang memang berada di atas latar gelap. Pembalikan .text-white
   di atas membuat label durasi (latar hitam 80%) dan ikon play pada thumbnail video
   ikut menjadi gelap sehingga tidak terbaca. */
html.light-mode .dsh-video-duration,
html.light-mode .dsh-video-play,
html.light-mode .dsh-video-play svg { color: #fff !important; }

/* P3-2: Backgrounds become light in light mode */
html.light-mode .bg-white\/10 { background-color: rgba(0,0,0,0.06) !important; }
html.light-mode .bg-white\/15 { background-color: rgba(0,0,0,0.09) !important; }
html.light-mode .bg-white\/5  { background-color: rgba(0,0,0,0.03) !important; }
html.light-mode .bg-white\/20 { background-color: rgba(0,0,0,0.12) !important; }

/* P3-2: Borders in light mode */
html.light-mode .border-white\/10 { border-color: rgba(0,0,0,0.10) !important; }
html.light-mode .border-white\/20 { border-color: rgba(0,0,0,0.18) !important; }
html.light-mode .border-white\/30 { border-color: rgba(0,0,0,0.24) !important; }

/* P3-2: Running text banner in light mode */
html.light-mode .running-text-wrapper {
  background: rgba(14, 18, 52, 0.92) !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
}
html.light-mode .running-text {
  color: rgba(190, 205, 240, 0.75) !important;
}
html.light-mode .running-text-label {
  background: rgba(30, 40, 90, 0.95) !important;
}

/* P3-2: Dark mode toggle button in light mode */
html.light-mode #darkModeToggle {
  background: rgba(0,0,0,0.06) !important;
  border-color: rgba(0,0,0,0.15) !important;
}

/* P3-2: Smooth theme transition on body */
body {
  transition: var(--transition-theme);
}

html{scroll-behavior:smooth} 

body{font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial,'Noto Sans';}

/* ============================================
   SPINNER ANIMATION (For search button)
   ============================================ */

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.search-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.search-spinner.hidden {
  display: none;
}

/* ============================================
   TOAST NOTIFICATIONS (P2-2)
   ============================================ */

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

#toastContainer {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  animation: slideInRight 0.3s ease-out forwards;
  pointer-events: auto;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.9375rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.toast.closing {
  animation: slideOutRight 0.3s ease-in forwards;
}

.toast-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.95));
  color: white;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.toast-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
  color: white;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
  color: white;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.toast-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
  color: white;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.toast-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}

.toast-close {
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

/* ============================================
   SKELETON LOADERS (P2-4)
   ============================================ */

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.06) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: 0.5rem;
}

.skeleton-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.skeleton-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.skeleton-badge {
  width: 5rem;
  height: 1.75rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.skeleton-title {
  width: 80%;
  height: 1.5rem;
  margin-bottom: 0.5rem;
}

.skeleton-text {
  width: 100%;
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
  margin-bottom: 0;
}

.skeleton-text-short {
  width: 60%;
  height: 1rem;
}

/* ============================================
   P3-1: TRENDING SECTION STYLES
   ============================================ */

#trendingSection {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

#trendingGrid {
  display: grid;
  gap: 1rem;
  animation: fadeIn 0.6s ease-out 0.1s both;
}

#trendingGrid .trending-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem;
  min-height: 160px;
}

#trendingGrid .trending-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

#trendingGrid .trending-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 193, 7, 0.9);
  color: #1a1a1a;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

#trendingGrid .trending-card-title {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

#trendingGrid .trending-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

#trendingGrid .trending-card-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  #trendingGrid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  #trendingGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  #trendingGrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   RUNNING TEXT NOTIFICATION
   ============================================ */

.running-text-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
}

.running-text {
  display: flex;
  animation: scroll-left 45s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.running-text > span {
  display: inline-flex;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

/* Pause animation on hover */
.running-text-container:hover .running-text {
  animation-play-state: paused;
}

/* Gradient background animation */
.running-text-wrapper {
  background: rgba(10, 13, 45, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.running-text-container {
  background: transparent;
  animation: none;
}

.running-text {
  color: rgba(190, 205, 240, 0.78);
}

.running-text svg {
  color: rgba(150, 175, 230, 0.65);
}

.running-text > span .font-medium {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .running-text {
    font-size: 0.8125rem; /* 13px - lebih kecil di mobile */
  }
  
  .running-text svg {
    width: 0.875rem; /* 14px */
    height: 0.875rem;
  }
  
  .running-text-container {
    padding-top: 0.375rem; /* py-1.5 = 6px */
    padding-bottom: 0.375rem;
  }
}

/* ============================================
   SEARCH HISTORY DROPDOWN ANIMATION - COMPACT
   ============================================ */

/* Smooth dropdown appearance - minimal */
#searchHistoryDropdown {
  animation: dropdown-appear 0.2s ease-out forwards;
  transform-origin: top center;
}

#searchHistoryDropdown.hidden {
  animation: dropdown-disappear 0.15s ease-in forwards;
}

@keyframes dropdown-appear {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdown-disappear {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* History item simple hover effect */
#searchHistoryList button:hover {
  padding-left: 0.875rem; /* slight indent on hover */
}

/* ============================================
   BERANDA SECTION - DIGITAL CAMPUS THEME
   ============================================ */

.vibrant-hero {
  position: relative;
  background:
    linear-gradient(rgba(10, 15, 60, 0.55), rgba(10, 15, 60, 0.45)),
    url('https://transformasidigital.ugm.ac.id/wp-content/uploads/sites/56/2026/05/balairung-search-ugm-white.png') center 35% / cover no-repeat;
  overflow: hidden;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

/* Mobile: sedikit lebih gelap agar teks terbaca, background lebih ke atas */
@media (max-width: 639px) {
  .vibrant-hero {
    background:
      linear-gradient(rgba(8, 12, 50, 0.65), rgba(8, 12, 50, 0.55)),
      url('https://transformasidigital.ugm.ac.id/wp-content/uploads/sites/56/2026/05/balairung-search-ugm-white.png') center 25% / cover no-repeat;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .vibrant-hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1280px) {
  .vibrant-hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Soft Gradient Overlay */
.vibrant-hero::before {
  display: none;
}

/* Animated Grid Pattern */
.vibrant-hero::after {
  display: none;
}

@keyframes grid-flow {
  0% { transform: translateY(0); }
  100% { transform: translateY(50px); }
}

/* Digital Campus Buildings Silhouette — hidden */
.digital-campus-bg {
  display: none;
}

.digital-campus-bg::before {
  display: none;
}

@keyframes building-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* Data Particles — hidden */
.data-particle {
  display: none;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  100% { transform: translateY(-100px) translateX(100px); opacity: 0; }
}

.data-particle:nth-child(1),
.data-particle:nth-child(2),
.data-particle:nth-child(3),
.data-particle:nth-child(4),
.data-particle:nth-child(5),
.data-particle:nth-child(6) { display: none; }

/* Connection Lines - Data Flow */
.connection-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.4), transparent);
  animation: line-flow 8s linear infinite;
  z-index: 2;
}

@keyframes line-flow {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.connection-line:nth-child(1) { top: 20%; width: 300px; left: 10%; animation-delay: 0s; }
.connection-line:nth-child(2) { top: 40%; width: 250px; right: 15%; animation-delay: 2s; animation-duration: 10s; }
.connection-line:nth-child(3) { top: 60%; width: 200px; left: 20%; animation-delay: 4s; animation-duration: 9s; }

/* Campus Digital Icons - Floating Animation */
.campus-icon {
  position: absolute;
  color: rgba(147, 197, 253, 0.3);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.4));
  animation: float-campus-icon 8s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes float-campus-icon {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-25px) translateX(15px) rotate(5deg);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-15px) translateX(-10px) rotate(-3deg);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-30px) translateX(20px) rotate(8deg);
    opacity: 0.6;
  }
}

/* Campus Icon Glow Effect */
.campus-icon svg {
  filter: drop-shadow(0 0 12px rgba(147, 197, 253, 0.5));
  animation: icon-glow 3s ease-in-out infinite;
}

@keyframes icon-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(196, 181, 253, 0.6));
  }
}

/* Position each campus icon */
.campus-icon-1 {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.campus-icon-2 {
  top: 25%;
  right: 12%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.campus-icon-3 {
  top: 45%;
  left: 15%;
  animation-delay: 0s;
  animation-duration: 14s;
}

.campus-icon-4 {
  top: 35%;
  right: 20%;
  animation-delay: 0s;
  animation-duration: 11s;
}

.campus-icon-5 {
  top: 60%;
  left: 25%;
  animation-delay: 0s;
  animation-duration: 13s;
}

.campus-icon-6 {
  top: 70%;
  right: 18%;
  animation-delay: 0s;
  animation-duration: 15s;
}

/* Ensure content is above background effects */
.vibrant-hero > .max-w-7xl {
  position: relative;
  z-index: 10;
}

/* Heading Animations */
@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes gradient-text {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 20px rgba(147, 197, 253, 0.6));
  }
  50% {
    filter: brightness(1.2) drop-shadow(0 0 30px rgba(196, 181, 253, 0.8));
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  -webkit-animation: fade-in-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out forwards;
  -webkit-animation: fade-in 0.8s ease-out forwards;
  opacity: 0;
}

.animate-gradient-text {
  animation: gradient-text 3s ease-in-out infinite;
  -webkit-animation: gradient-text 3s ease-in-out infinite;
}

.card{transition:transform .2s ease, box-shadow .2s ease; will-change:transform}
.card:hover{transform:translateX(2px); box-shadow:0 4px 16px rgba(0,0,0,0.08)}
.chip{border:1px solid rgba(15,23,42,.12)}
.chip[data-cat="Pendidikan"]{background:linear-gradient(90deg, rgba(37,99,235,.12), rgba(14,165,233,.12)); color:#1e3a8a}
.chip[data-cat="Penelitian"]{background:linear-gradient(90deg, rgba(16,185,129,.12), rgba(245,158,11,.12)); color:#065f46}
.chip[data-cat="Pengabdian"]{background:linear-gradient(90deg, rgba(239,68,68,.12), rgba(245,158,11,.12)); color:#7c2d12}
.chip[data-cat="Pendukung"]{background:linear-gradient(90deg, rgba(99,102,241,.12), rgba(16,185,129,.12)); color:#3730a3}
.section{scroll-margin-top:90px}
mark{padding:0 .15em;border-radius:.2rem}

/* ============================================
   HEADER DESIGN - PROFESSIONAL SOFT
   ============================================ */

header {
  background: linear-gradient(135deg, 
    rgba(30, 58, 138, 0.98) 0%,
    rgba(55, 48, 163, 0.96) 50%,
    rgba(79, 70, 229, 0.95) 100%
  );
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(30, 58, 138, 0.2),
              0 2px 8px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(147, 197, 253, 0.2);
  transition: all 0.3s ease;
  animation: header-slide-down 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes header-slide-down {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Header Subtle Grid Pattern */
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.5;
}

/* Header Glow Effect */
header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(147, 197, 253, 0.6) 50%,
    transparent
  );
  animation: header-glow 3s ease-in-out infinite;
}

@keyframes header-glow {
  0%, 100% {
    opacity: 0.3;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Logo Container Enhancement */
.items-center-iconheader {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(55, 48, 163, 0.6));
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(147, 197, 253, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.items-center-iconheader::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, 
    rgba(147, 197, 253, 0.4),
    rgba(196, 181, 253, 0.4)
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  animation: logo-shimmer 3s linear infinite;
  background-size: 200% 200%;
}

@keyframes logo-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.items-center-iconheader:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.items-center-iconheader:hover::before {
  opacity: 1;
}

/* ============================================
   LINK BADGES - Quick Access Links
   ============================================ */

/* Header Badge - Sticky Link */
.header-link-badge {
  position: relative;
  overflow: hidden;
  animation: badge-glow 3s ease-in-out infinite;
}

.header-link-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1),
    rgba(168, 85, 247, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-link-badge:hover::before {
  opacity: 1;
}

.header-link-badge::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.header-link-badge:hover::after {
  transform: translate(-50%, -50%) scale(2);
}

@keyframes badge-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(147, 197, 253, 0.3),
                0 0 20px rgba(147, 197, 253, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(147, 197, 253, 0.5),
                0 0 40px rgba(168, 85, 247, 0.2);
  }
}

/* Hero Section Badge - Large Link */
.hero-link-badge {
  position: relative;
  overflow: hidden;
  animation: hero-badge-float 4s ease-in-out infinite;
}

.hero-link-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.4),
    rgba(168, 85, 247, 0.4),
    rgba(236, 72, 153, 0.4)
  );
  border-radius: 1rem;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.hero-link-badge:hover::before {
  opacity: 1;
  animation: hero-badge-glow-pulse 1.5s ease-in-out infinite;
}

@keyframes hero-badge-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes hero-badge-glow-pulse {
  0%, 100% {
    filter: blur(8px);
    opacity: 0.6;
  }
  50% {
    filter: blur(12px);
    opacity: 1;
  }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .header-link-badge {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .hero-link-badge {
    flex-direction: column;
    gap: 8px !important;
    padding: 16px !important;
  }
  
  .hero-link-badge span {
    font-size: 16px !important;
  }
}

/* ============================================
   END LINK BADGES
   ============================================ */

/* Header Text Enhancement */
header .text-white {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

header h1 {
  background: linear-gradient(135deg, #ffffff, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Header Container Enhancement */
header .flex.items-center {
  position: relative;
  z-index: 10;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(147, 197, 253, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(147, 197, 253, 0.5);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(147, 197, 253, 0.3);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 56px; /* matches header h-14 = 56px */
  left: 0;
  right: 0;
  background: linear-gradient(135deg, 
    rgba(248, 250, 252, 0.98) 0%,
    rgba(241, 245, 249, 0.98) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 39; /* below header z-40 */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active {
  display: block;
  max-height: 680px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  color: rgba(51, 65, 85, 0.85);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  transition: all 0.2s ease;
  background: transparent;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  background: rgba(251, 191, 36, 0.08);
  color: rgba(31, 41, 55, 1);
  padding-left: 1.25rem;
  box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.7);
}

.mobile-nav a.active {
  background: rgba(251, 191, 36, 0.12);
  color: rgba(31, 41, 55, 1);
  font-weight: 600;
  box-shadow: inset 3px 0 0 rgba(251, 191, 36, 1);
}

/* Dashboard link in mobile nav — accent gradient */
.mobile-nav a.mobile-nav-dashboard {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.10));
  color: rgba(180, 83, 9, 1);
  border-top: 1px solid rgba(251, 191, 36, 0.2);
  margin-top: 2px;
  font-weight: 600;
}

.mobile-nav a.mobile-nav-dashboard:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.15));
  color: rgba(146, 64, 14, 1);
  padding-left: 1.25rem;
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.9);
}

/* Mobile nav section toggle — Jelajahi */
.mobile-nav-section-toggle {
  border: none;
  font-family: inherit;
  letter-spacing: 0;
}
.mobile-nav-section-toggle.open .mobile-nav-chevron {
  transform: rotate(180deg);
}

/* Mobile browse item */
.mobile-browse-item {
  border: none;
  font-family: inherit;
  background: transparent;
  cursor: pointer;
}
.mobile-browse-item:hover {
  background: rgba(251, 191, 36, 0.06) !important;
}

/* ============================================
   SIDEBAR LEFT — MOBILE BOTTOM SHEET
   ============================================ */

/* Desktop: sidebar shown as flex column */
@media (min-width: 1024px) {
  #sidebarLeft.flex {
    display: flex !important;
  }
  #mobileFilterFab {
    display: none !important;
  }
}

/* Mobile/Tablet: sidebar hidden from layout; FAB shown instead */
@media (max-width: 1023px) {
  #sidebarLeft {
    display: none !important;
  }
  #mobileFilterFab {
    display: flex !important;
  }
  /* Prevent body scroll when sheet is open */
  body.sheet-open {
    overflow: hidden;
  }
}

/* Mobile sheet tab buttons */
.mobile-sheet-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(200,151,58,0.20);
  background: rgba(255,248,230,0.7);
  font-size: 12px;
  font-weight: 600;
  color: #3d3020;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.mobile-sheet-tab-btn:hover,
.mobile-sheet-tab-btn.active {
  background: rgba(200,151,58,0.12);
  border-color: rgba(200,151,58,0.45);
  color: #1a2b5e;
}
.mobile-sheet-tab-btn.active {
  background: rgba(200,151,58,0.18);
  border-color: #c8973a;
  box-shadow: 0 0 0 2px rgba(200,151,58,0.15);
}

/* Bottom sheet open state */
#mobileFilterSheet.sheet-visible {
  transform: translateY(0) !important;
}

/* Header Scroll Effect Enhancement */
@keyframes header-scroll-glow {
  0%, 100% {
    box-shadow: 0 4px 24px rgba(30, 58, 138, 0.2),
                0 2px 8px rgba(0, 0, 0, 0.08);
  }
  50% {
    box-shadow: 0 6px 32px rgba(59, 130, 246, 0.3),
                0 4px 12px rgba(0, 0, 0, 0.12);
  }
}

/* header.scrolled: glow animation removed — light pill header handles scroll via box-shadow */

/* Logo Group Hover Effect */
header .flex.items-center.gap-3:hover .items-center-iconheader {
  transform: scale(1.05) rotate(2deg);
}

header .flex.items-center.gap-3:hover h1 {
  letter-spacing: 1px;
}

/* Desktop Nav Enhancement */
@media (min-width: 768px) {
  header nav {
    position: relative;
  }
  
  header nav::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, 
      transparent,
      rgba(147, 197, 253, 0.3),
      transparent
    );
  }
}

/* Responsive Header Adjustments */
@media (max-width: 640px) {
  header h1 {
    font-size: 0.875rem;
  }
  
  header .text-white.text-sm {
    font-size: 0.75rem;
  }
  
  .items-center-iconheader {
    height: 2rem;
  }
}

/* ============================================
   END HEADER DESIGN
   ============================================ */

/* ── LIGHT HEADER: pill-shaped floating nav ── */

/* Outer header: transparent, gives vertical padding for the floating pill */
#mainHeader {
  padding: 8px 16px !important;
  background-image: url('https://transformasidigital.ugm.ac.id/wp-content/uploads/sites/56/2026/05/balairung-search-ugm-white-mahasiswa-clean-tengah-final.png') !important;
  background-color: #f5f0e8 !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Scrolled state: pill shadow deepens slightly */
#mainHeader.scrolled > div {
  box-shadow: 0 6px 32px rgba(27,34,73,0.14), 0 2px 6px rgba(27,34,73,0.08) !important;
}

/* Light nav button — overrides futuristic dark defaults */
.futuristic-nav-btn.nav-light {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #1a2b5e !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 9999px;
  transition: background 0.18s, color 0.18s;
}
.futuristic-nav-btn.nav-light::before,
.futuristic-nav-btn.nav-light::after { display: none !important; }
.futuristic-nav-btn.nav-light:hover {
  background: rgba(27,34,73,0.07) !important;
  color: #1a2b5e !important;
  transform: none !important;
  box-shadow: none !important;
}
.futuristic-nav-btn.nav-light:active,
.futuristic-nav-btn.nav-light:focus {
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}
.futuristic-nav-btn.nav-light.active {
  background: rgba(27,34,73,0.10) !important;
  color: #1a2b5e !important;
  box-shadow: none !important;
}

/* Mobile hamburger — dark lines for light header */
#mainHeader .mobile-menu-btn {
  background: rgba(27,34,73,0.08) !important;
  border-color: rgba(27,34,73,0.15) !important;
}
#mainHeader .mobile-menu-btn span {
  background: #1a2b5e !important;
}
#mainHeader .mobile-menu-btn:hover {
  background: rgba(27,34,73,0.14) !important;
  border-color: rgba(27,34,73,0.25) !important;
  box-shadow: none !important;
}

.bg-innovation-pipeline { background: linear-gradient(135deg, #3d3e6dff 0%, #441d1dff 100%); }

/* ============================================
   CYBERPUNK CAROUSEL ANIMATIONS
   ============================================ */

/* Slow Pulse for Neon Orbs */
@keyframes pulse-slow {
  0%, 100% { 
    opacity: 0.3;
    transform: scale(1);
  }
  50% { 
    opacity: 0.5;
    transform: scale(1.1);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 6s ease-in-out infinite;
}

/* Bounce Slow for Welcome Icon */
@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 3s ease-in-out infinite;
}

/* Smooth Transition for Section Visibility */
#layanan {
  background-image: url('https://transformasidigital.ugm.ac.id/wp-content/uploads/sites/56/2026/05/section-result.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #fdf8ef !important;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#layanan.hidden {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Show state with animation */
#layanan:not(.hidden) {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contextual CTA Animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

#noResultsCTA {
  transition: all 0.3s ease-out;
}

#noResultsCTA:hover {
  transform: scale(1.02);
}

/* Cyberpunk Grid */
.cyberpunk-grid {
  background-image: 
    linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Scan Lines - Horizontal */
.scan-line-horizontal {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.6), transparent);
  animation: scan-horizontal 8s ease-in-out infinite;
}

@keyframes scan-horizontal {
  0%, 100% { 
    top: -2px;
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
  50% { 
    top: 100%;
  }
}

/* Scan Lines - Vertical */
.scan-line-vertical {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(236, 72, 153, 0.6), transparent);
  animation: scan-vertical 10s ease-in-out infinite;
}

@keyframes scan-vertical {
  0%, 100% { 
    left: -2px;
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
  50% { 
    left: 100%;
  }
}

/* Glitch Bars */
.glitch-bar {
  position: absolute;
  width: 100%;
  height: 3px;
  background: rgba(6, 182, 212, 0.3);
  animation: glitch 6s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes glitch {
  0%, 90%, 100% { 
    opacity: 0;
    transform: translateX(0);
  }
  91% {
    opacity: 1;
    transform: translateX(-10px);
  }
  93% {
    transform: translateX(10px);
  }
  95% {
    transform: translateX(-5px);
  }
  97% {
    transform: translateX(0);
  }
}

/* Neon Glow Effects (Original - Intense) */
.neon-glow-cyan {
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.8),
              0 0 20px rgba(6, 182, 212, 0.6),
              0 0 30px rgba(6, 182, 212, 0.4);
}

.neon-glow-pink {
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.8),
              0 0 20px rgba(236, 72, 153, 0.6),
              0 0 30px rgba(236, 72, 153, 0.4);
}

.neon-glow-purple {
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8),
              0 0 20px rgba(168, 85, 247, 0.6),
              0 0 30px rgba(168, 85, 247, 0.4);
}

/* Soft Neon Glow Effects (For Subtle Look) */
.neon-glow-cyan-soft {
  box-shadow: 0 0 8px rgba(103, 232, 249, 0.4),
              0 0 15px rgba(103, 232, 249, 0.3),
              0 0 20px rgba(103, 232, 249, 0.2);
}

.neon-glow-pink-soft {
  box-shadow: 0 0 8px rgba(249, 168, 212, 0.4),
              0 0 15px rgba(249, 168, 212, 0.3),
              0 0 20px rgba(249, 168, 212, 0.2);
}

.neon-glow-purple-soft {
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.4),
              0 0 15px rgba(192, 132, 252, 0.3),
              0 0 20px rgba(192, 132, 252, 0.2);
}

/* ============================================
   FUTURISTIC NAVIGATION BUTTON
   ============================================ */

.futuristic-nav-btn {
  position: relative;
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(147, 197, 253, 0.25);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 0 10px rgba(147, 197, 253, 0.15),
              0 0 20px rgba(147, 197, 253, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Animated Border Gradient */
.futuristic-nav-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, 
    rgba(147, 197, 253, 0.3),
    rgba(249, 168, 212, 0.3),
    rgba(192, 132, 252, 0.3),
    rgba(147, 197, 253, 0.3)
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
  background-size: 200% 100%;
  animation: border-flow 4s linear infinite;
}

@keyframes border-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Hover Glow Effect */
.futuristic-nav-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(147, 197, 253, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: inherit;
  pointer-events: none;
}

/* Hover State */
.futuristic-nav-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.5);
  color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 15px rgba(147, 197, 253, 0.3),
              0 0 30px rgba(147, 197, 253, 0.15),
              0 0 40px rgba(147, 197, 253, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
}

.futuristic-nav-btn:hover::before {
  opacity: 1;
}

.futuristic-nav-btn:hover::after {
  opacity: 1;
}

/* Active/Focus State */
.futuristic-nav-btn:active,
.futuristic-nav-btn:focus {
  outline: none;
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(147, 197, 253, 0.4),
              0 0 24px rgba(147, 197, 253, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Ensure text is above effects */
.futuristic-nav-btn span {
  position: relative;
  z-index: 10;
}

/* Active Navigation State */
.futuristic-nav-btn.active {
  background: linear-gradient(135deg, rgba(147, 197, 253, 0.25), rgba(147, 197, 253, 0.15));
  border-color: rgba(147, 197, 253, 0.7);
  box-shadow: 0 0 20px rgba(147, 197, 253, 0.4),
              0 0 40px rgba(147, 197, 253, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.futuristic-nav-btn.active::before {
  opacity: 1;
}

.futuristic-nav-btn.active::after {
  opacity: 0.5;
}

/* Float Animation for Particles */
@keyframes float {
  0%, 100% { 
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(-20px) translateX(10px);
  }
  66% {
    transform: translateY(-10px) translateX(-10px);
  }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* Circuit Lines Animation */
.circuit-line {
  stroke-dasharray: 10, 5;
  animation: circuit-flow 4s linear infinite;
}

.circuit-line-vertical {
  stroke-dasharray: 10, 5;
  animation: circuit-flow-vertical 5s linear infinite;
}

@keyframes circuit-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 100; }
}

@keyframes circuit-flow-vertical {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 100; }
}

/* Circuit Nodes Pulse */
.circuit-node {
  animation: node-pulse 2s ease-in-out infinite;
}

@keyframes node-pulse {
  0%, 100% { 
    opacity: 0.6;
    r: 4;
  }
  50% { 
    opacity: 1;
    r: 6;
  }
}

/* Edge Neon Glow */
.neon-edge-glow {
  animation: edge-pulse 3s ease-in-out infinite;
}

@keyframes edge-pulse {
  0%, 100% { 
    opacity: 0.3;
    filter: blur(2px);
  }
  50% { 
    opacity: 0.8;
    filter: blur(4px);
  }
}

/* Cyberpunk Border */
.cyberpunk-border {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3),
              0 0 40px rgba(6, 182, 212, 0.2),
              inset 0 0 20px rgba(6, 182, 212, 0.1);
  animation: border-glow 4s ease-in-out infinite;
}

@keyframes border-glow {
  0%, 100% { 
    border-color: rgba(6, 182, 212, 0.3);
  }
  50% { 
    border-color: rgba(236, 72, 153, 0.5);
  }
}

/* Corner Brackets Animation */
.corner-bracket {
  animation: bracket-glow 3s ease-in-out infinite;
}

@keyframes bracket-glow {
  0%, 100% { 
    opacity: 0.6;
  }
  50% { 
    opacity: 1;
  }
}

/* Holographic Scan */
.holographic-scan {
  animation: holo-scan 6s ease-in-out infinite;
}

@keyframes holo-scan {
  0%, 100% { 
    top: -2px;
    opacity: 0;
  }
  10%, 90% {
    opacity: 0.8;
  }
  50% { 
    top: 100%;
  }
}

/* Neon Icon Glow */
.neon-icon {
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5),
              0 0 30px rgba(168, 85, 247, 0.3);
  animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { 
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5),
                0 0 30px rgba(168, 85, 247, 0.3);
  }
  50% { 
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.8),
                0 0 50px rgba(168, 85, 247, 0.5);
  }
}

/* Neon Button */
.neon-button {
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
  transition: all 0.3s ease;
}

.neon-button:hover {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6),
              0 0 30px rgba(6, 182, 212, 0.4);
}

/* Neon CTA */
.neon-cta {
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4),
              0 0 30px rgba(236, 72, 153, 0.3);
  animation: cta-pulse 2s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { 
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4),
                0 0 30px rgba(236, 72, 153, 0.3);
  }
  50% { 
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.6),
                0 0 40px rgba(236, 72, 153, 0.5);
  }
}

/* ============================================
   END CYBERPUNK ANIMATIONS
   ============================================ */

/* ============================================
   BERANDA SEARCH & FILTER STYLING
   ============================================ */

/* Search Input - Glassmorphism to match hero */
#searchInput {
  background: transparent;
  color: #fff;
  caret-color: rgba(251, 191, 36, 0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#searchInput:hover {
  background: transparent;
}

#searchInput:focus {
  background: transparent;
  outline: none;
  box-shadow: none;
}

/* Focus glow pada wrapper search bar — amber/gold sesuai Balairung */
#searchInput:focus ~ div,
.relative:focus-within > div[style*="rgba(251"] {
  border-color: rgba(251, 191, 36, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18), 0 8px 32px rgba(0,0,0,0.35) !important;
}

/* Wrapper search bar: focus-within glow */
#beranda .relative:focus-within > .relative[style*="linear-gradient"] {
  border-color: rgba(251, 191, 36, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2), 0 8px 32px rgba(0,0,0,0.4) !important;
}

/* Filter Container - Soft Glass Morphism */
#beranda .bg-white\/10,
#beranda [class*="bg-white/"],
#filterContainer {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.15),
              0 4px 12px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

#beranda .bg-white\/10:hover,
#beranda [class*="bg-white/"]:hover,
#filterContainer:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.2),
              0 6px 16px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Filter Select Boxes - Enhanced Soft Design */
#beranda select {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

#beranda select:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15),
              0 2px 6px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

#beranda select:focus {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3),
              0 6px 16px rgba(59, 130, 246, 0.2);
}

/* CTA Buttons - Professional Soft Glow */
#beranda .bg-gradient-to-r {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2),
              0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#beranda .bg-gradient-to-r:hover {
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.35),
              0 8px 20px rgba(99, 102, 241, 0.2),
              0 0 60px rgba(147, 197, 253, 0.3);
}

#beranda button.border-2 {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

#beranda button.border-2:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25),
              0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Search Label Icon Animation */
#beranda label span:first-child {
  display: inline-block;
  animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) rotate(-5deg);
  }
  75% {
    transform: translateY(-2px) rotate(5deg);
  }
}

/* Filter Label Glow */
#beranda .flex.items-center.gap-2.text-white {
  text-shadow: 0 2px 8px rgba(147, 197, 253, 0.3);
}

#beranda .flex.items-center.gap-2.text-white span:first-child {
  display: inline-block;
  animation: filter-pulse 3s ease-in-out infinite;
}

@keyframes filter-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(147, 197, 253, 0.4));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.7));
  }
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
  .data-particle:nth-child(n+4) {
    display: none;
  }
  
  .connection-line:nth-child(n+2) {
    display: none;
  }
  
  .digital-campus-bg {
    height: 120px;
  }
  
  .digital-campus-bg::before {
    height: 80px;
    background-size: 800px 80px;
  }
}

/* ============================================
   END BERANDA SEARCH & FILTER STYLING
   ============================================ */

/* --- Futuristic Digital Campus Launchpad Design (CSS Only) --- */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15), 0 8px 24px rgba(2, 6, 23, .06); 
  }
  50% { 
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.25), 0 12px 36px rgba(168, 85, 247, .1); 
  }
}

.svc-card {
  position: relative;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  min-height: 62px;
}

/* RAG web source card — row-based layout, consistent with regular cards */
.rag-web-card {
  overflow: hidden;
}

/* Top shimmer line on hover */
.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(59, 130, 246, 0.5),
    rgba(168, 85, 247, 0.5),
    transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Remove old gradient border pseudo */
.svc-card::after {
  display: none;
}

.svc-card:hover {
  transform: translateX(2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.svc-card:hover::before {
  opacity: 1;
}

/* Holographic Chip Badge */
.svc-chip {
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15),
    rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #1e40af;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  display: inline-block;
  line-height: 1;
}

.chip[data-cat="Pendidikan"] {
  background: linear-gradient(90deg, rgba(37,99,235,.15), rgba(14,165,233,.15));
  border-color: rgba(37,99,235,.3);
  color: #1e3a8a;
}

.chip[data-cat="Penelitian"] {
  background: linear-gradient(90deg, rgba(16,185,129,.15), rgba(245,158,11,.15));
  border-color: rgba(16,185,129,.3);
  color: #065f46;
}

.chip[data-cat="Pengabdian"] {
  background: linear-gradient(90deg, rgba(239,68,68,.15), rgba(245,158,11,.15));
  border-color: rgba(239,68,68,.3);
  color: #7c2d12;
}

.chip[data-cat="Pendukung"] {
  background: linear-gradient(90deg, rgba(99,102,241,.15), rgba(16,185,129,.15));
  border-color: rgba(99,102,241,.3);
  color: #3730a3;
}

/* Description styling */
.svc-desc {
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 0;
  width: 100%;
}

/* Futuristic Icon Container */
.svc-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.12) 0%,
    rgba(168, 85, 247, 0.08) 100%);
  border: 2px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* Icon shine effect */
.svc-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%);
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

.svc-card:hover .svc-icon {
  transform: scale(1.08) rotate(3deg);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.svc-card:hover .svc-icon::before {
  transform: translateX(100%) rotate(45deg);
}

/* Icon SVG sizing */
.svc-icon > div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-icon svg {
  width: 20px;
  height: 20px;
}

.svc-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  font-size: 0.875rem;
}

/* --- Futuristic Launch Button (CSS Only) --- */
.btn-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* Button glass overlay */
.btn-launch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2),
    transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-launch .ico {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.btn-launch:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.45),
              0 4px 14px rgba(168, 85, 247, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-launch:hover::before {
  opacity: 1;
}

.btn-launch:hover .ico {
  transform: translateX(4px);
}

.btn-launch:active {
  transform: translateY(0);
}

/* --- Guide Button (Icon Only) ---
   Ukuran dipatok 2rem (32px) persegi supaya sebanding dengan tombol utama
   "Buka" di sebelahnya (px-2 py-1.5 text-xs ≈ 30px). Sebelumnya 2.75rem (44px),
   jauh lebih besar dari tombol pasangannya sehingga terlihat menonjol sendiri.
   Sudutnya disamakan (rounded-lg) — bukan bulat penuh — agar sepasang dengan
   tombol "Buka", dan ukurannya sama persis di tampilan list maupun grid. */
.btn-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  flex: 0 0 auto;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-weight: 600;
  transition: background .25s, box-shadow .25s, transform .25s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
/* Ikon di dalamnya ikut dipatok supaya tidak ikut mengembang. */
.btn-guide svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-guide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2),
    transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-guide svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 1;
}

/* Hover tidak lagi menaikkan dan membesarkan tombol (translateY + scale):
   di dalam baris tombol yang sempit, pembesaran itu membuat tombol menonjol
   keluar dari kartu. Cukup warnanya yang menegas. */
.btn-guide:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.38),
              inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-guide:hover::before {
  opacity: 1;
}

/* Ikon tidak diperbesar saat hover — ukurannya sudah dipatok 1rem. */

.btn-guide:active {
  transform: translateY(0) scale(1);
}

/* Search input enhanced */
#searchInput {
  transition: all 0.3s ease;
}

#searchInput:focus {
  transform: translateY(-1px);
}

/* Section Layanan Background Animations */
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 10px) scale(0.95); }
  75% { transform: translate(10px, 20px) scale(1.02); }
}

.floating-orb-1 {
  animation: floatOrb 20s ease-in-out infinite;
}

.floating-orb-2 {
  animation: floatOrb 25s ease-in-out infinite reverse;
  animation-delay: 2s;
}

.floating-orb-3 {
  animation: floatOrb 30s ease-in-out infinite;
  animation-delay: 4s;
}

/* Floating Icons Animation */
@keyframes floatIcon {
  0%, 100% { 
    transform: translateY(0) rotate(0deg);
    opacity: 0.15;
  }
  50% { 
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.25;
  }
}

@keyframes rotateIcon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.floating-icon {
  animation: floatIcon 6s ease-in-out infinite;
  will-change: transform, opacity;
}

.rotating-icon {
  animation: rotateIcon 20s linear infinite;
}

/* ============================================
   POPUP GUIDE MODAL ANIMATIONS & STYLING
   ============================================ */
@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Custom Scrollbar for Guide Modal */
#guideModal ::-webkit-scrollbar {
  width: 8px;
}

#guideModal ::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

#guideModal ::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

#guideModal ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ============================================
   LISA FLOATING BUBBLE - FUTURISTIC DESIGN
   ============================================ */

@keyframes futuristicPulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.8;
  }
  50% { 
    transform: scale(1.15); 
    opacity: 0.4;
  }
}

@keyframes orbitRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes neonGlow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6),
                0 0 40px rgba(99, 102, 241, 0.4),
                0 0 60px rgba(168, 85, 247, 0.3),
                inset 0 0 20px rgba(59, 130, 246, 0.2);
  }
  50% { 
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8),
                0 0 60px rgba(99, 102, 241, 0.6),
                0 0 90px rgba(168, 85, 247, 0.5),
                inset 0 0 30px rgba(59, 130, 246, 0.3);
  }
}

@keyframes holographicShift {
  0%, 100% { 
    background-position: 0% 50%;
  }
  50% { 
    background-position: 100% 50%;
  }
}

/* LISA Bubble - Fixed Floating Position */
#lisa-bubble-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  pointer-events: none;
}

#lisa-bubble {
  position: relative;
  pointer-events: auto;
  animation: neonGlow 3s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#lisa-bubble:hover {
  transform: scale(1.05);
}

#lisa-bubble::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(45deg, 
    transparent 0%, 
    rgba(59, 130, 246, 0.3) 25%, 
    rgba(168, 85, 247, 0.3) 50%, 
    rgba(236, 72, 153, 0.3) 75%, 
    transparent 100%);
  animation: orbitRing 4s linear infinite;
  pointer-events: none;
}

#lisa-bubble::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 60deg,
    rgba(59, 130, 246, 0.4) 60deg 120deg,
    transparent 120deg 180deg,
    rgba(168, 85, 247, 0.4) 180deg 240deg,
    transparent 240deg 300deg,
    rgba(236, 72, 153, 0.4) 300deg 360deg
  );
  animation: orbitRing 6s linear infinite reverse;
  pointer-events: none;
}

.futuristic-glow {
  animation: futuristicPulse 2s ease-in-out infinite;
}

.holographic-bg {
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #4facfe 75%,
    #00f2fe 100%
  );
  background-size: 200% 200%;
  animation: holographicShift 4s ease infinite;
}

#lisa-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 12px;
  min-width: 280px;
  backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 249, 255, 0.9) 50%,
    rgba(237, 233, 254, 0.95) 100%
  );
  border: 2px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3),
              0 10px 30px rgba(168, 85, 247, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  pointer-events: auto;
}

#lisa-menu.hidden {
  visibility: hidden;
  pointer-events: none;
}

#lisa-menu.menu-visible {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#lisa-menu a {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

#lisa-menu a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

#lisa-menu::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1rem;
  background: linear-gradient(45deg, 
    rgba(59, 130, 246, 0.5),
    rgba(168, 85, 247, 0.5),
    rgba(236, 72, 153, 0.5));
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
}

.ai-chip-icon {
  position: relative;
  display: inline-block;
}

.ai-chip-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #3b82f6, #a855f7, #ec4899);
  border-radius: 8px;
  animation: orbitRing 3s linear infinite;
  opacity: 0.6;
  filter: blur(4px);
}

/* LISA Bubble - Responsive Mobile */
@media (max-width: 768px) {
  #lisa-bubble-root {
    bottom: 16px;
    right: 16px;
  }
  
  #lisa-menu {
    min-width: 260px;
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 480px) {
  #lisa-bubble-root {
    bottom: 12px;
    right: 12px;
  }
  
  #lisa-menu {
    min-width: 240px;
    right: 0;
    left: auto;
    transform-origin: bottom right;
  }
}

/* ============================================
   TOAST NOTIFICATION ANIMATION
   ============================================ */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slide-up 0.3s ease-out forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================
   SEARCH HISTORY DROPDOWN STYLES
   ============================================ */
#searchHistoryDropdown {
  animation: slide-up 0.2s ease-out;
}

#fuzzySearchSuggestions {
  animation: slide-up 0.3s ease-out;
}

/* ============================================
   RESULT TABS - GROUPING BY SOURCE TYPE
   ============================================ */

/* Sticky tab bar — shadow when pinned to top */
#resultTabsContainer.sticky {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================
   FILTER TIPE — sidebar vertikal
   ============================================ */

/* Search input di dalam sidebar */
#cardSearchInput:focus {
  border-color: #3b82f6 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15) !important;
}
#cardSearchInput:hover:not(:focus) {
  border-color: #94a3b8 !important;
}

.tab-button {
  background: transparent;
  color: #4a5568;
  border: none;
  border-left: 3px solid transparent;
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  position: relative;
}

.tab-button::before { content: none; }

.tab-button:hover {
  background: rgba(200,151,58,0.08);
  color: #1a2b5e;
  border-left-color: rgba(200,151,58,0.35);
}

.tab-button.active {
  background: linear-gradient(90deg, rgba(200,151,58,0.12) 0%, rgba(200,151,58,0.04) 100%);
  color: #1a2b5e;
  border-left-color: #c8973a;
  font-weight: 700;
}

.tab-button.active:hover {
  background: linear-gradient(90deg, rgba(200,151,58,0.18) 0%, rgba(200,151,58,0.08) 100%);
}

.tab-button .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 2px 7px;
  background: #f0ebe0;
  color: #6b5b3a;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.tab-button:hover .badge {
  background: rgba(200,151,58,0.20);
  color: #1a2b5e;
}

.tab-button.active .badge {
  background: #c8973a;
  color: #1a2b5e;
  box-shadow: 0 1px 4px rgba(200,151,58,0.35);
}

/* Mobile: sidebar collapse ke atas sebagai horizontal scroll */
@media (max-width: 640px) {
  #resultsLayoutWrapper {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  #resultTabsContainer {
    width: 100% !important;
    position: static !important;
  }
  /* Sembunyikan card search di mobile — ruang terlalu sempit */
  #cardSearchInput { display: none !important; }
  #resultTabsContainer .flex-col {
    flex-direction: row !important;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 2px;
    gap: 2px;
  }
  #resultTabsContainer .flex-col::-webkit-scrollbar { display: none; }
  .tab-button {
    border-left: none !important;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 12px;
  }
  .tab-button.active {
    border-bottom-color: #c8973a;
    background: rgba(200,151,58,0.10) !important;
    color: #1a2b5e !important;
  }
}

/* Tablet (641px – 1023px): sidebar juga horizontal scroll */
@media (min-width: 641px) and (max-width: 1023px) {
  #resultsLayoutWrapper {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  #resultTabsContainer {
    width: 100% !important;
    position: static !important;
  }
  #cardSearchInput {
    display: block !important;
    max-width: 220px;
    margin-left: auto;
  }
  #resultTabsContainer .flex-col {
    flex-direction: row !important;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 4px 4px;
    gap: 4px;
    align-items: center;
  }
  #resultTabsContainer .flex-col::-webkit-scrollbar { display: none; }
  .tab-button {
    border-left: none !important;
    border-bottom: 3px solid transparent !important;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 8px !important;
    padding: 7px 12px !important;
  }
  .tab-button.active {
    border-bottom-color: #c8973a !important;
    background: rgba(200,151,58,0.10) !important;
    color: #1a2b5e !important;
  }
}

/* Desktop: lebar sidebar tetap */
@media (min-width: 1024px) {
  #resultTabsContainer {
    width: 14rem;
  }
}

/* ============================================
   LOADING PROGRESS INDICATOR
   ============================================ */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-shimmer {
  animation: shimmer 2s infinite;
}

#loadingProgress {
  animation: fadeInUp 0.3s ease-out;
}

#loadingProgress .step-active {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #3b82f6;
}

#loadingProgress .step-active .w-5 {
  border-color: #3b82f6;
  background: #3b82f6;
}

#loadingProgress .step-active span {
  color: #1e40af;
  font-weight: 600;
}

#loadingProgress .step-done {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #10b981;
}

#loadingProgress .step-done .w-5 {
  border-color: #10b981;
  background: #10b981;
}

#loadingProgress .step-done span {
  color: #065f46;
}

/* Pulse animation for loading spinner */
@keyframes pulse-loading {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

/* ============================================
   P3-3: REDUCED MOTION SUPPORT
   Respects user's OS "reduce motion" setting
   (battery saving + accessibility)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  /* Disable all keyframe animations */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep opacity fade-in but instant */
  .animate-fade-in { opacity: 1 !important; }

  /* Stop floating particles */
  .data-particle,
  .connection-line,
  .floating-orb { animation: none !important; }

  /* Stop background orb pulsing */
  .animate-pulse { animation: none !important; }

  /* Stop bounce animation */
  .animate-bounce,
  .animate-bounce-slow { animation: none !important; }

  /* Stop running-text scroll */
  .running-text { animation: none !important; transform: none !important; }

  /* Keep skeleton loader but static */
  .skeleton-loader,
  .skeleton-line,
  .skeleton-card { animation: none !important; background: rgba(255,255,255,0.08) !important; }
}

/* ============================================
   P3-4: CSS VARIABLE USAGE
   Apply :root token variables to key components
   ============================================ */

/* Hero section uses gradient tokens */
#heroSection {
  background: linear-gradient(135deg, var(--bg-hero-from) 0%, var(--bg-hero-to) 100%);
}

/* Trending section cards use token */
.trending-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.trending-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
}
.trending-card-title { color: var(--text-primary); }
.trending-card-meta  { color: var(--text-muted); }

/* Scrollbars use token */
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); }

/* ===== RAG ↔ Card Integration ===== */

/* RAG-highlighted card: subtle blue glow, allow slight height expansion for injected label */
.svc-card[data-rag-highlighted="true"] {
  animation: rag-highlight-pulse 2s ease-in-out 1;
  overflow: visible;
  min-height: unset;
}

@keyframes rag-highlight-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3); }
  50%  { box-shadow: 0 0 20px 4px rgba(59, 130, 246, 0.15); }
  100% { box-shadow: 0 8px 32px rgba(2, 6, 23, .06); }
}

/* Web source card injected from RAG */
.rag-web-card {
  animation: rag-card-enter 0.4s ease-out;
}

@keyframes rag-card-enter {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Relevance divider between matched and unmatched */
.rag-relevance-divider {
  animation: fade-in 0.5s ease;
}

/* RAG relevance label on card */
.rag-relevance-label span {
  animation: fade-in 0.3s ease;
}
/* ============================================
   DESKTOP OPTIMIZATIONS (1024px+)
   ============================================ */

/* Grid stays at 4 columns max on all wide screens */
@media (min-width: 1536px) {
  #servicesGrid {
    gap: 1.5rem;
  }
}

/* Sidebar tetap pada lebar tetap di desktop, tab button tidak perlu scaling */
@media (min-width: 1024px) {
  #resultTabsContainer {
    width: auto;
  }
}

/* Pagination buttons — consistent height */
.pagination-btn {
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination-btn:hover:not(:disabled) {
  background: rgba(200,151,58,0.08) !important;
  border-color: rgba(200,151,58,0.50) !important;
  color: #1a2b5e !important;
}
.pagination-btn.page-active {
  background: #1a2b5e !important;
  border-color: #1a2b5e !important;
  color: #fff !important;
}

/* Focus-visible accessibility ring */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #c8973a;
  outline-offset: 2px;
}

/* Smoother card hover on desktop */
@media (min-width: 1024px) {
  .svc-card {
    will-change: transform;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .svc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.10);
  }
}

/* ============================================
   CARD MOBILE RESPONSIVENESS (< 640px)
   ============================================ */
@media (max-width: 639px) {

  /* Section layanan — pastikan tidak overflow */
  #layanan {
    overflow-x: hidden;
  }
  #resultsLayoutWrapper {
    gap: 0;
  }
  #resultsContentCol {
    min-width: 0;
    overflow-x: hidden;
  }
  #servicesGrid {
    gap: 0.5rem;
  }

  /* Card base — kurangi min-height */
  .svc-card {
    min-height: 56px;
  }

  /* Thumbnail kolom — lebih kecil di mobile */
  .svc-card .dsh-thumb-col,
  .svc-card [class*="w-12"][class*="h-12"],
  .svc-card [class*="w-14"][class*="h-14"] {
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem !important;
  }

  /* CTA kolom — tampilkan hanya ikon panah, sembunyikan teks label */
  .svc-card .flex-shrink-0.flex.items-center.pr-3 a span:not(.sr-only),
  .svc-card .flex-shrink-0.flex.items-center.pr-3 a > span {
    display: none;
  }
  .svc-card .flex-shrink-0.flex.items-center.pr-3 a {
    padding: 6px !important;
    min-width: unset !important;
    border-radius: 8px !important;
  }
  /* Tapi tetap tampilkan ikon SVG */
  .svc-card .flex-shrink-0.flex.items-center.pr-3 a svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
  }

  /* Text kolom — pastikan tidak overflow */
  .svc-card .flex-1.flex.flex-col {
    min-width: 0;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  /* Judul — boleh 2 baris */
  .svc-card h4 {
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  /* Metadata row — wrap & shrink font */
  .svc-card .flex.items-center.gap-1\.5,
  .svc-card .flex.items-center.gap-2,
  .svc-card .flex.items-center.gap-x-2,
  .svc-card .flex.items-center.gap-x-3 {
    flex-wrap: wrap;
    gap: 3px !important;
  }

  /* Badge / chip — sedikit lebih kecil */
  .svc-card span[class*="px-1\.5"],
  .svc-card span[class*="px-2"] {
    font-size: 9px !important;
  }

  /* Acc-bar kiri — lebih tipis di mobile */
  .svc-card [class*="w-1\.5"] {
    width: 3px !important;
  }

  /* Avatar people — lebih kecil */
  .svc-card .acadstaff-photo-container .w-9,
  .svc-card .acadstaff-photo-container .h-9,
  .svc-card .acadstaff-img.w-9,
  .svc-card .acadstaff-img.h-9 {
    width: 2rem !important;
    height: 2rem !important;
  }

  /* Event mini-calendar — lebih compact */
  .svc-card .ev-cal-card {
    width: 2.5rem !important;
    height: 3rem !important;
    min-width: 2.5rem !important;
  }
  .svc-card .ev-cal-card .text-2xl {
    font-size: 1.25rem !important;
  }

  /* Pagination — ukuran tombol lebih kecil */
  .pagination-btn {
    min-width: 2rem;
    min-height: 2rem;
    font-size: 0.75rem;
    padding: 0 0.4rem;
  }

  /* Toolbar (view toggle + sort) */
  #viewToggleBar {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* Running text — thinner bar on desktop */
@media (min-width: 1024px) {
  .running-text-container {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
  }
  .running-text {
    font-size: 0.8125rem;
  }
}

/* Browse toggle — centered & max-width on desktop */
@media (min-width: 1024px) {
  #browseCategoriesToggle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================
   DSH SPLASH SCREEN — Premium intro
   ============================================================ */

.dsh-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    url('https://transformasidigital.ugm.ac.id/wp-content/uploads/sites/56/2026/05/search-ugm-intro.png')
    center center / cover no-repeat;
  background-color: #0a1628;
}

.dsh-splash--exit {
  animation: dshSplashExit 0.6s cubic-bezier(0.4, 0, 0.2, 1) both !important;
  pointer-events: none;
}

@keyframes dshSplashExit {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}

/* Particle canvas */
.dsh-splash__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Hilangkan ::before vignette — background tampil bersih */
.dsh-splash::before { display: none; }

/* Center stage */
.dsh-splash__stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Logo mark ── */
.dsh-splash__logo-wrap {
  margin-bottom: 28px;
  animation: dshLogoReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.dsh-splash__logo-svg {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 0 8px rgba(180,140,30,0.7))
          drop-shadow(0 2px 6px rgba(26,43,94,0.25));
  animation: dshLogoSpin 10s linear infinite;
}

@keyframes dshLogoReveal {
  from { opacity: 0; transform: scale(0.4) translateY(16px); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0);      filter: blur(0); }
}

@keyframes dshLogoSpin {
  to { transform: rotate(360deg); }
}

/* ── Text wrap ── */
.dsh-splash__text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Main title ── */
.dsh-splash__title {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  /* Gradient: navy-deep → deep-gold → navy, lapis shimmer */
  color: transparent;
  background: linear-gradient(
    135deg,
    #1a2b5e 0%,
    #1a3a6e 18%,
    #b8911e 38%,
    #d4a825 50%,
    #b8911e 62%,
    #1a3a6e 82%,
    #1a2b5e 100%
  );
  background-size: 250% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  /* Stroke outline putih tipis agar terbaca di atas bg terang */
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
  animation:
    dshTitleReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both,
    dshGoldShimmer 4s ease-in-out 1.4s infinite;
  filter:
    drop-shadow(0 3px 0 rgba(255,255,255,0.8))
    drop-shadow(0 6px 20px rgba(26,43,94,0.25))
    drop-shadow(0 1px 2px rgba(26,43,94,0.4));
}

@keyframes dshTitleReveal {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.94);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter:
      drop-shadow(0 3px 0 rgba(255,255,255,0.8))
      drop-shadow(0 6px 20px rgba(26,43,94,0.25))
      drop-shadow(0 1px 2px rgba(26,43,94,0.4));
  }
}

@keyframes dshGoldShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Tagline ── */
.dsh-splash__tagline {
  margin-top: 14px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(26, 43, 94, 0.70);
  text-shadow: 0 1px 4px rgba(255,255,255,0.8);
  animation: dshTaglineReveal 1.2s ease 1.1s both;
}

@keyframes dshTaglineReveal {
  from { opacity: 0; transform: translateY(8px); letter-spacing: 0.5em; }
  to   { opacity: 1; transform: translateY(0);   letter-spacing: 0.26em; }
}

/* ── Decorative divider line ── */
.dsh-splash__divider {
  margin-top: 24px;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #b8911e, #d4a825, #b8911e, transparent);
  animation: dshDividerGrow 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.3s both;
  box-shadow: 0 0 8px rgba(180,140,30,0.5);
}

@keyframes dshDividerGrow {
  from { width: 0; opacity: 0; }
  to   { width: min(300px, 58vw); opacity: 1; }
}

/* ── Loading bar ── */
.dsh-splash__loader {
  margin-top: 28px;
  width: min(280px, 55vw);
  height: 3px;
  background: rgba(26,43,94,0.10);
  border-radius: 3px;
  overflow: hidden;
  animation: dshFadeIn 0.4s ease 0.6s both;
}

.dsh-splash__loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1a2b5e, #b8911e, #d4a825, #b8911e, #1a2b5e);
  background-size: 300% 100%;
  border-radius: 3px;
  animation:
    dshLoadProgress 3.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both,
    dshBarShimmer 1.4s linear 0.6s infinite;
  box-shadow: 0 0 8px rgba(180,140,30,0.7);
}

@keyframes dshLoadProgress {
  0%   { width: 0%; }
  25%  { width: 40%; }
  65%  { width: 75%; }
  90%  { width: 94%; }
  100% { width: 100%; }
}

@keyframes dshBarShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

@keyframes dshFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Skip button ── */
.dsh-splash__skip {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(26,43,94,0.10);
  border: 1px solid rgba(26,43,94,0.25);
  border-radius: 999px;
  color: rgba(26, 43, 94, 0.70);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
  animation: dshFadeIn 0.6s ease 1.8s both;
  z-index: 3;
}

.dsh-splash__skip:hover {
  background: rgba(26,43,94,0.18);
  color: #1a2b5e;
  border-color: rgba(26,43,94,0.45);
  transform: translateY(-1px);
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .dsh-splash__logo-svg { width: 48px; height: 48px; }
  .dsh-splash__loader   { width: 70vw; }
  .dsh-splash__divider  { animation: none; width: 60vw; opacity: 1; }
  .dsh-splash__skip     { bottom: 20px; right: 16px; }
}


/* ============================================
   MOBILE / XS RESPONSIVE — SEARCH & BROWSE
   ============================================ */

/* Hero spacing: kurangi margin browse shortcuts */
@media (max-width: 640px) {
  #browseShortcuts {
    margin-top: 1.25rem !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }
}

/* Search bar: kompres padding kanan di HP kecil */
@media (max-width: 480px) {
  #searchInput {
    padding-right: 5rem !important; /* pr-20 = 80px */
  }
  .search-action-btn {
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
    font-size: 0.75rem !important;
    min-width: 0 !important;
  }
}

/* Browse grid: lebih rapat di layar sangat kecil */
@media (max-width: 400px) {
  .browse-btn {
    padding: 7px 3px 6px !important;
    gap: 3px !important;
  }
  .browse-btn-label {
    font-size: 0.6rem !important;
  }
  .browse-icon {
    width: 24px !important;
    height: 24px !important;
  }
  .browse-count-badge {
    font-size: 0.55rem !important;
    padding: 1px 4px !important;
  }
}

/* =====================================================
   Mobile Card Optimization - Larger CTA Buttons
   ===================================================== */
@media (max-width: 640px) {
  /* Perbesar tombol "Detail" di mobile untuk better tap target */
  .svc-card a[href] {
    padding: 10px 16px !important;  /* Dari px-2 py-1.5 (8px 6px) jadi 16px 10px */
    font-size: 14px !important;     /* Dari text-xs (12px) jadi 14px */
    min-width: 70px !important;     /* Ensure minimum touch target */
    min-height: 44px !important;    /* iOS minimum touch target */
    gap: 6px !important;            /* Lebih besar spacing icon */
  }
  
  /* Icon di tombol lebih besar */
  .svc-card a[href] svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  /* Adjust card padding for better layout */
  .svc-card .flex-1 {
    padding-left: 12px !important;
    padding-right: 8px !important;
  }
  
  /* Reduce icon column for more space */
  .svc-card > div:first-child:not(.w-1\.5) {
    width: 32px !important;
    height: 32px !important;
    margin-left: 10px !important;
  }
  
  .svc-card > div:first-child:not(.w-1\.5) svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* =====================================================
   RAG Source Chips — pastikan link selalu bisa diklik
   ===================================================== */
#ragSources,
#ragSourceChips {
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

.rag-src-chip {
  pointer-events: auto !important;
  cursor: pointer !important;
  text-decoration: none !important;  /* hilangkan underline default <a> dari prose */
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.rag-src-chip:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
