/* ═══════════════════════════════════════════════════════════════
   Portal SIM — Sekolah Tinggi Katolik Santo Yakobus Merauke
   Main Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  --gold:          #F5A623;
  --gold-dark:     #D4861A;
  --gold-light:    #FFF8EC;
  --gold-glow:     rgba(245,166,35,.25);

  --navy:          #1C1C2E;
  --navy-dark:     #0F0F1A;
  --navy-mid:      #252540;

  --white:         #FFFFFF;
  --gray-50:       #F9FAFB;
  --gray-100:      #F3F4F6;
  --gray-200:      #E5E7EB;
  --gray-400:      #9CA3AF;
  --gray-600:      #6B7280;
  --gray-800:      #1F2937;

  --radius:        12px;
  --radius-lg:     16px;
  --radius-xl:     20px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 20px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl:  0 20px 40px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);

  --ease:       cubic-bezier(.4, 0, .2, 1);
  --transition: all .25s var(--ease);

  /* Tinggi navbar — dipakai filter-bar sticky offset */
  --navbar-h: 48px;
}

/* ─── RESET & BASE ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  /* Subtle gradient orbs — memberi depth agar glass card terlihat */
  background:
    radial-gradient(ellipse 70% 55% at 8%  25%, rgba(139, 92,246,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 92% 75%, rgba(245,166, 35,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 55% 5%,  rgba( 59,130,246,.04) 0%, transparent 55%),
    var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .3s var(--ease);
}

/* Cegah elemen manapun melebihi lebar viewport */
*, *::before, *::after { max-width: 100%; }

a { color: inherit; }
img { display: block; max-width: 100%; }

/* Hapus tap-highlight biru/abu di iOS & Android */
a, button, [role="button"], .sim-card, .filter-tab, .scroll-top {
  -webkit-tap-highlight-color: transparent;
}

/* ─── NAVBAR ────────────────────────────────────────────────────── */
.portal-navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  /* background-color terpisah agar background-image tidak tertimpa saat .scrolled */
  background-color: rgba(15,15,26,.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(245,166,35,.18);
  transition: padding .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
  padding: .5rem 0;
  /* ── Motif zigzag Papua (serrated / chevron) ── */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cpolyline points='0,9 10,2 20,9 30,2 40,9 50,2 60,9 70,2 80,9' fill='none' stroke='rgba(245,166,35,.28)' stroke-width='1.5' stroke-linejoin='miter'/%3E%3Cpolyline points='0,31 10,38 20,31 30,38 40,31 50,38 60,31 70,38 80,31' fill='none' stroke='rgba(245,166,35,.28)' stroke-width='1.5' stroke-linejoin='miter'/%3E%3Cpolygon points='40,15 50,20 40,25 30,20' fill='none' stroke='rgba(245,166,35,.22)' stroke-width='1.2'/%3E%3Ccircle cx='10' cy='2' r='2' fill='rgba(245,166,35,.25)'/%3E%3Ccircle cx='30' cy='2' r='2' fill='rgba(245,166,35,.25)'/%3E%3Ccircle cx='50' cy='2' r='2' fill='rgba(245,166,35,.25)'/%3E%3Ccircle cx='70' cy='2' r='2' fill='rgba(245,166,35,.25)'/%3E%3Ccircle cx='10' cy='38' r='2' fill='rgba(245,166,35,.25)'/%3E%3Ccircle cx='30' cy='38' r='2' fill='rgba(245,166,35,.25)'/%3E%3Ccircle cx='50' cy='38' r='2' fill='rgba(245,166,35,.25)'/%3E%3Ccircle cx='70' cy='38' r='2' fill='rgba(245,166,35,.25)'/%3E%3C/svg%3E");
  background-size: 80px 40px;
  background-repeat: repeat;
}

.portal-navbar.scrolled {
  background-color: rgba(15,15,26,.97);
  padding: .35rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.45);
  border-bottom-color: rgba(245,166,35,.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 1;   /* boleh menyusut agar tidak overflow di HP */
  min-width: 0;     /* izinkan flex child menyusut di bawah konten */
  overflow: hidden;
}

.navbar-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;   /* logo jangan ikut menyusut */
  filter: drop-shadow(0 2px 6px rgba(245,166,35,.3));
  transition: transform .3s var(--ease);
}

.navbar-brand:hover .navbar-logo { transform: rotate(-5deg) scale(1.05); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;        /* izinkan flex child menyusut */
  overflow: hidden;
}

.brand-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-style: italic;
  font-size: .98rem;
  color: #fff;
  letter-spacing: .08em;
  text-shadow: 0 1px 8px rgba(0,0,0,.8), 0 0 24px rgba(0,0,0,.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;  /* potong graceful di layar kecil */
}

.brand-sub {
  font-size: .64rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .01em;
}

/* SSO Login Button */
.sso-login-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(15,15,26,.55);
  border: 1.5px solid rgba(245,166,35,.65);
  color: #fff;
  border-radius: 8px;
  padding: .42rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.sso-login-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245,166,35,.15);
  text-shadow: none;
}

.sso-pill {
  font-size: .58rem;
  background: rgba(245,166,35,.18);
  color: var(--gold);
  border: 1px solid rgba(245,166,35,.3);
  padding: .08rem .35rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ─── NAVBAR CENTER: Nama Institusi ─────────────────────────────── */
.nav-center-institution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  white-space: nowrap;
  /* subtle separator lines on both sides via pseudo-elements */
  position: relative;
}

.nav-inst-name {
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.72);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  transition: color .25s;
}

.portal-navbar.scrolled .nav-inst-name {
  color: rgba(255,255,255,.55);
}

.nav-inst-ornament {
  font-size: .65rem;
  color: var(--gold);
  opacity: .55;
  line-height: 1;
  transition: opacity .25s;
}

.portal-navbar.scrolled .nav-inst-ornament {
  opacity: .35;
}

/* ─── HERO ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/brand-kampus.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Gradient gelap dasar + accent orbs berwarna */
  background:
    radial-gradient(ellipse 55% 50% at 12%  38%, rgba( 99,102,241,.22) 0%, transparent 68%),
    radial-gradient(ellipse 45% 55% at 88%  62%, rgba(245,166, 35,.16) 0%, transparent 68%),
    radial-gradient(ellipse 40% 35% at 52%  5%,  rgba( 14,165,233,.12) 0%, transparent 60%),
    linear-gradient(145deg, rgba(15,15,26,.93) 0%, rgba(28,28,46,.84) 45%, rgba(15,15,26,.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 9rem 0 6rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1.5rem;
  text-align: center;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
}

.hero-logo-wrap {
  margin-bottom: 1.75rem;
}

.hero-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(245,166,35,.45));
  animation: heroFloat 3.5s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(1deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(245,166,35,.12);
  border: 1px solid rgba(245,166,35,.3);
  color: var(--gold);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 var(--gold-glow); }
  50%       { opacity: .7; transform: scale(.85); box-shadow: 0 0 0 4px transparent; }
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: .65rem;
  letter-spacing: -.025em;
}

.hero-title .text-gold {
  color: var(--gold);
  display: block;
}

.hero-institution {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.6);
  margin-bottom: .4rem;
  font-weight: 400;
}

.hero-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(.95rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,.4);
  font-style: italic;
  font-weight: 300;
  letter-spacing: .03em;
  margin-bottom: 3rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 0 2rem;
  border-right: 1px solid rgba(255,255,255,.12);
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { border-right: none; }

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .2rem;
}

.stat-label {
  font-size: .7rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  z-index: 2;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

.scroll-cue span {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

.scroll-cue i {
  font-size: .9rem;
  color: rgba(245,166,35,.5);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── SECTION MAIN ──────────────────────────────────────────────── */
.section-main {
  padding: 3.5rem 0 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.section-header { margin-bottom: 2rem; }

.section-eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: .4rem;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: .9rem;
}

/* ─── FILTER STICKY BAR ─────────────────────────────────────────── */
.filter-bar {
  position: sticky;
  top: var(--navbar-h);
  z-index: 200;
  background: rgba(249,250,251,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
  padding: .65rem 0;
  margin-bottom: 2rem;
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* Wrapper scroller — menampung fade gradient kiri/kanan */
.filter-tabs-scroller {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* Fade kanan — selalu ada di mobile (ada tabs yang tersembunyi) */
.filter-tabs-scroller::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, rgba(249,250,251,.98));
  pointer-events: none;
  transition: opacity .25s;
  z-index: 1;
}

/* Fade kiri — muncul saat user sudah scroll ke kanan */
.filter-tabs-scroller::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(to left, transparent, rgba(249,250,251,.98));
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
  z-index: 1;
}

.filter-tabs-scroller.can-scroll-left::before  { opacity: 1; }
.filter-tabs-scroller.at-scroll-end::after     { opacity: 0; }

/* Sembunyikan fade di desktop (tabs tidak perlu scroll) */
@media (min-width: 769px) {
  .filter-tabs-scroller::before,
  .filter-tabs-scroller::after { display: none; }
}

.filter-tabs {
  display: flex;
  gap: .4rem;
  flex: 1;
  flex-wrap: wrap;
  -webkit-overflow-scrolling: touch; /* smooth scroll di iOS */
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem 1rem;
  min-height: 40px;          /* touch target min */
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
}

.filter-tab:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-light);
}

.filter-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(245,166,35,.4);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 .35rem;
  border-radius: 50px;
  background: rgba(0,0,0,.08);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
}

.filter-tab.active .tab-count { background: rgba(0,0,0,.18); }

/* Search */
.search-wrap {
  position: relative;
  flex-shrink: 0;
}

.search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: .8rem;
  pointer-events: none;
  transition: color .2s;
}

.search-input {
  width: 210px;
  padding: .5rem 1rem .5rem 2.4rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  font-size: .82rem;
  color: var(--gray-800);
  transition: width .3s var(--ease), border-color .2s, box-shadow .2s;
  outline: none;
  font-family: inherit;
}

.search-input:focus {
  width: 260px;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,.14);
}

.search-wrap:focus-within .search-icon { color: var(--gold); }

/* Tombol clear (×) di dalam search */
.search-clear {
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--gray-400);
  color: var(--white);
  font-size: .65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.search-clear:hover { background: var(--gray-600); }
.search-clear[hidden] { display: none; }
.search-input:not(:placeholder-shown) { padding-right: 2.2rem; }

/* ─── SIM GRID ───────────────────────────────────────────────────── */
.sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.35rem;
}

/* ─── SIM CARD ───────────────────────────────────────────────────── */
.sim-card {
  border-radius: var(--radius-lg);
  /* Accent strip atas sesuai warna icon masing-masing SIM */
  border-top: 3px solid var(--card-color, var(--gray-200));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform .3s var(--ease),
    border-color .25s,
    box-shadow .3s var(--ease),
    opacity .4s ease;

  /* ── Glassmorphism ── */
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow:
    0 4px 24px rgba(0,0,0,.07),
    0 1px 2px  rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,.65);
}

@supports (backdrop-filter: blur(1px)) {
  .sim-card {
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
  }
}

.sim-card.animate-init {
  opacity: 0;
  transform: translateY(18px);
}

.sim-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.sim-card.coming-soon.animate-in { opacity: .6; }

/* Hover hanya aktif di perangkat yang punya pointer (desktop/laptop) */
@media (hover: hover) and (pointer: fine) {
  .sim-card:not(.coming-soon):hover {
    border-top-color: var(--card-color, var(--gold));
    border-color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.88);
    box-shadow:
      /* ── Animated gradient border effect: glow dari atas ── */
      0 -5px 22px -4px var(--card-color, rgba(245,166,35,.55)),
      0 20px 48px rgba(0,0,0,.12),
      0 8px 16px  rgba(0,0,0,.06),
      0 0 0 1px var(--card-color, rgba(245,166,35,.28)),
      inset 0 1px 0 rgba(255,255,255,.9);
    transform: translateY(-6px);
  }
}

/* ── Shimmer sweep on hover ── */
.sim-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent 15%,
    rgba(255,255,255,.22) 50%,
    transparent 85%
  );
  background-size: 260% 100%;
  background-position: 160% 0;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  border-radius: inherit;
  transition: background-position .7s var(--ease), opacity .25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .sim-card:not(.coming-soon):hover::after {
    background-position: -60% 0;
    opacity: 1;
  }
}

/* Screenshot Thumbnail */
.card-thumb {
  position: relative;
  height: 158px;
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .45s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .sim-card:not(.coming-soon):hover .card-thumb img { transform: scale(1.06); }
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,.38));
  pointer-events: none;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.thumb-placeholder i {
  font-size: 2.75rem;
  color: var(--gray-400);
  opacity: .35;
}

.thumb-placeholder svg {
  width: 52px;
  height: 52px;
  color: var(--card-color, var(--gray-400));
  opacity: .28;
  stroke-width: 1.25;
}

/* Category ribbon */
.card-ribbon {
  position: absolute;
  top: 10px;
  right: 0;
  padding: .22rem .65rem .22rem .45rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 4px 0 0 4px;
  color: var(--white);
  box-shadow: -2px 2px 8px rgba(0,0,0,.2);
}

.ribbon-umum         { background: #3B82F6; }
.ribbon-akademik     { background: #8B5CF6; }
.ribbon-mahasiswa    { background: #10B981; }
.ribbon-administrasi { background: #F59E0B; }
.ribbon-coming       { background: #9CA3AF; }

/* Coming Soon Overlay */
.coming-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(2px);
  z-index: 3;
}

.coming-badge {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: var(--navy);
  color: var(--white);
  padding: .45rem 1.1rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}

/* Card Body */
.card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-head {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .85rem;
  min-width: 0;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: .1rem;
  /* Gunakan CSS variable warna per-kartu */
  background: var(--card-bg, var(--gray-100));
  color: var(--card-color, var(--gray-600));
  transition: transform .25s var(--ease);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* Card name + live dot wrapper */
.card-name-wrap {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
  flex: 1;
}

/* Titik hijau berdenyut untuk sistem LIVE */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,.5);
  animation: livePulse 2.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  60%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

@media (hover: hover) and (pointer: fine) {
  .sim-card:not(.coming-soon):hover .card-icon { transform: scale(1.1) rotate(-4deg); }
}

.card-name {
  font-family: 'Poppins', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
}

.card-desc {
  font-size: .8rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Role Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .95rem;
  margin-top: auto;
}

.role-tag {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .18rem .5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.role-mahasiswa { background: #DBEAFE; color: #1E40AF; }
.role-dosen     { background: #D1FAE5; color: #065F46; }
.role-admin     { background: #FEE2E2; color: #991B1B; }

/* CTA */
.card-cta { margin-top: auto; }

.btn-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  padding: .55rem 1rem;
  min-height: 44px;
  /* Warna tombol sesuai icon_color masing-masing SIM */
  background: var(--card-color, var(--gold));
  color: var(--white);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-shadow: 0 1px 3px rgba(0,0,0,.2);
  letter-spacing: .02em;
}

.btn-open:hover {
  filter: brightness(.88);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

.btn-open i { transition: transform .2s var(--ease); font-size: .75rem; }

@media (hover: hover) and (pointer: fine) {
  .btn-open:hover i { transform: translateX(3px); }
}

.btn-disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  padding: .55rem 1rem;
  min-height: 44px;          /* touch target min */
  background: var(--gray-100);
  color: var(--gray-400);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  cursor: not-allowed;
  font-family: inherit;
}

/* No Results */
#no-results {
  grid-column: 1 / -1;
  display: none;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--gray-400);
}

#no-results.show { display: block; }

#no-results i    { font-size: 3rem; margin-bottom: 1rem; display: block; }
#no-results p    { font-size: .9rem; }

/* Hidden by filter/search */
.sim-card.filter-hidden { display: none !important; }

/* ─── COMING SOON SECTION DIVIDER ───────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.75rem;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.section-divider-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  white-space: nowrap;
  padding: .35rem .85rem;
  border-radius: 50px;
  border: 1.5px dashed var(--gray-200);
  background: var(--white);
}

/* ─── HELP SECTION ──────────────────────────────────────────────── */
.help-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy) 100%);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.help-section::before,
.help-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.help-section::before {
  width: 450px;
  height: 450px;
  top: -30%;
  right: -5%;
  background: radial-gradient(circle, rgba(245,166,35,.1) 0%, transparent 65%);
}

.help-section::after {
  width: 300px;
  height: 300px;
  bottom: -20%;
  left: 5%;
  background: radial-gradient(circle, rgba(99,102,241,.08) 0%, transparent 65%);
}

.help-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.help-icon-wrap {
  width: 62px;
  height: 62px;
  background: rgba(245,166,35,.12);
  border: 2px solid rgba(245,166,35,.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.help-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}

.help-subtitle {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  margin-bottom: 2rem;
  max-width: 460px;
}

.help-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}

.btn-email {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--gold);
  color: var(--white);
  padding: .72rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
}

.btn-email:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,166,35,.4);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.15);
  padding: .72rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-wa:hover {
  background: rgba(37,211,102,.12);
  border-color: #25D366;
  color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,.2);
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  padding: 3.5rem 0 0;
  border-top: 1px solid rgba(245,166,35,.1);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: .75rem;
}

.footer-brand-name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: .95rem;
  margin-bottom: .25rem;
}

.footer-brand-tagline {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  font-style: italic;
  margin-bottom: .75rem;
}

.footer-brand-desc {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
  max-width: 240px;
}

.footer-col-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.38);
  font-size: .8rem;
  text-decoration: none;
  padding: .22rem 0;
  transition: color .2s, padding-left .2s;
}

.footer-link i { font-size: .65rem; flex-shrink: 0; }

.footer-link:hover {
  color: var(--gold);
  padding-left: .3rem;
}

/* Developer card */
.dev-card {
  background: rgba(245,166,35,.05);
  border: 1px solid rgba(245,166,35,.14);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(245,166,35,.14);
  color: var(--gold);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .18rem .5rem;
  border-radius: 4px;
  margin-bottom: .65rem;
}

.dev-name {
  font-weight: 700;
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  margin-bottom: .2rem;
}

.dev-tagline {
  font-size: .74rem;
  color: rgba(255,255,255,.35);
  margin-bottom: .85rem;
  line-height: 1.5;
}

.dev-links a {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--gold);
  font-size: .76rem;
  text-decoration: none;
  margin-bottom: .3rem;
  word-break: break-all;
  transition: color .2s;
}

.dev-links a:hover { color: var(--white); }

.dev-links a i { flex-shrink: 0; font-size: .72rem; }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 1rem 0;
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.25);
}

.footer-bottom a {
  color: rgba(255,255,255,.4);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.footer-bottom a:hover { color: var(--gold); }

/* ─── SCROLL TO TOP ─────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(245,166,35,.45);
  opacity: 0;
  visibility: hidden;
  z-index: 500;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245,166,35,.5);
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand-desc { max-width: none; }
}

@media (max-width: 768px) {
  .hero-bg { background-attachment: scroll; }
  /* Kurangi padding hero atas — konten langsung terlihat di HP */
  .hero-content { padding-top: 5.5rem; padding-bottom: 3.5rem; }
  .hero-logo { width: 72px; height: 72px; }
  .hero-stats { flex-direction: row; }
  .stat-item { padding: 0 1.25rem; }
  /* Filter bar mobile: stack tabs di atas, search di bawah — tapi kompak */
  .filter-bar-inner { flex-direction: column; align-items: stretch; gap: .5rem; }
  .filter-tabs-scroller { overflow: hidden; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .2rem;
                 -ms-overflow-style: none; scrollbar-width: none; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { flex-shrink: 0; }
  .search-wrap { width: 100%; }
  .search-input, .search-input:focus { width: 100%; }
  .sim-grid { grid-template-columns: 1fr; }
  .help-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 540px) {
  /* Di HP kecil: sembunyikan teks brand, tampilkan logo saja */
  .brand-text { display: none; }
  .brand-sub { display: none; }
  /* Hero lebih compact di HP kecil */
  .hero-content { padding-top: 4.5rem; padding-bottom: 3rem; }
  .stat-item { padding: 0 .85rem; }
  .hero-stats { row-gap: .75rem; }
  /* Kartu lebih compact di HP kecil */
  .card-thumb { height: 130px; }
  .card-body { padding: 1rem; }
}

@media (max-width: 900px) and (min-width: 769px) {
  /* Tablet: shrink center text */
  .nav-inst-name { font-size: .7rem; }
}

@media (min-width: 640px) {
  .sim-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .sim-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── THEME PILL TOGGLE ─────────────────────────────────────────── */
.theme-pill {
  position: relative;
  display: flex;
  align-items: center;
  width: 68px;
  height: 30px;
  border-radius: 50px;
  border: 1.5px solid rgba(245,166,35,.45);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.theme-pill:hover {
  border-color: var(--gold);
  background: rgba(245,166,35,.1);
}

/* Ikon ☀️ dan 🌙 — posisi absolut kiri & kanan */
.theme-pill-sun,
.theme-pill-moon {
  position: absolute;
  font-size: .68rem;
  z-index: 2;
  transition: opacity .35s ease, color .35s ease;
  pointer-events: none;
}

.theme-pill-sun  { left:  .55rem; }
.theme-pill-moon { right: .52rem; }

/* Thumb (lingkaran geser) */
.theme-pill-thumb {
  position: absolute;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 2px 10px rgba(245,166,35,.5);
  z-index: 3;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), background .3s;
  pointer-events: none;
}

/* ── State: LIGHT MODE — thumb di kiri (☀️) ── */
body:not(.dark-mode) .theme-pill-sun  { color: var(--navy); opacity: 1; }
body:not(.dark-mode) .theme-pill-moon { color: rgba(255,255,255,.45); opacity: .6; }
body:not(.dark-mode) .theme-pill-thumb { transform: translateX(0); }

/* ── State: DARK MODE — thumb di kanan (🌙) ── */
body.dark-mode .theme-pill-sun  { color: rgba(255,255,255,.4); opacity: .55; }
body.dark-mode .theme-pill-moon { color: var(--gold); opacity: 1; }
body.dark-mode .theme-pill-thumb {
  transform: translateX(38px);
  background: var(--gold);
}

/* ─── DARK MODE ──────────────────────────────────────────────────── */
body.dark-mode {
  color-scheme: dark;
  /* Override token warna */
  --white:    #1e1e32;
  --gray-50:  #13131f;
  --gray-100: #1c1c2e;
  --gray-200: rgba(255,255,255,.1);
  --gray-400: rgba(255,255,255,.35);
  --gray-600: rgba(255,255,255,.55);
  --gray-800: rgba(255,255,255,.88);
  --navy:     rgba(255,255,255,.9);

  /* Gradient orbs lebih terlihat di background gelap */
  background:
    radial-gradient(ellipse 70% 55% at 8%  25%, rgba( 99,102,241,.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 92% 75%, rgba(245,166, 35,.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 55% 5%,  rgba( 14,165,233,.07) 0%, transparent 55%),
    #13131f;

  color: rgba(255,255,255,.85);
}

/* Section title & subtitle */
body.dark-mode .section-title    { color: rgba(255,255,255,.92); }
body.dark-mode .section-subtitle { color: rgba(255,255,255,.48); }

/* Filter bar */
body.dark-mode .filter-bar {
  background: rgba(19,19,31,.95);
  border-bottom-color: rgba(255,255,255,.08);
}

body.dark-mode .filter-tabs-scroller::after {
  background: linear-gradient(to right, transparent, rgba(19,19,31,.98));
}
body.dark-mode .filter-tabs-scroller::before {
  background: linear-gradient(to left,  transparent, rgba(19,19,31,.98));
}

body.dark-mode .filter-tab {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
}
body.dark-mode .filter-tab:hover {
  background: rgba(245,166,35,.1);
  border-color: rgba(245,166,35,.4);
  color: var(--gold);
}

/* Search input */
body.dark-mode .search-input {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
}
body.dark-mode .search-input::placeholder { color: rgba(255,255,255,.28); }
body.dark-mode .search-input:focus {
  background: rgba(255,255,255,.09);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,.12);
}
body.dark-mode .search-wrap:focus-within .search-icon { color: var(--gold); }
body.dark-mode .search-icon { color: rgba(255,255,255,.3); }
body.dark-mode .search-clear { background: rgba(255,255,255,.25); }

/* Cards — glass di atas background gelap */
body.dark-mode .sim-card {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
  box-shadow:
    0 4px 24px rgba(0,0,0,.35),
    0 1px 2px  rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.07);
}

@media (hover: hover) and (pointer: fine) {
  body.dark-mode .sim-card:not(.coming-soon):hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.18);
    box-shadow:
      0 24px 52px rgba(0,0,0,.5),
      0 8px 16px  rgba(0,0,0,.3),
      0 0 0 1px var(--card-color, rgba(245,166,35,.3)),
      inset 0 1px 0 rgba(255,255,255,.1);
  }
}

body.dark-mode .card-name { color: rgba(255,255,255,.92); }
body.dark-mode .card-desc { color: rgba(255,255,255,.5);  }

body.dark-mode .thumb-placeholder {
  background: linear-gradient(135deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 100%);
}

body.dark-mode .coming-overlay { background: rgba(0,0,0,.5); }

/* Role tags dark */
body.dark-mode .role-mahasiswa { background: rgba(30,58,138,.45);  color: #93c5fd; }
body.dark-mode .role-dosen     { background: rgba(6,78,59,.45);    color: #6ee7b7; }
body.dark-mode .role-admin     { background: rgba(127,29,29,.45);  color: #fca5a5; }

/* Btn disabled dark */
body.dark-mode .btn-disabled {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.28);
}

/* Section divider dark */
body.dark-mode .section-divider-line  { background: rgba(255,255,255,.08); }
body.dark-mode .section-divider-label {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.32);
}

/* No results */
body.dark-mode #no-results { color: rgba(255,255,255,.28); }

/* Scroll top */
body.dark-mode .scroll-top { color: #fff; box-shadow: 0 4px 14px rgba(245,166,35,.35); }

/* Tab count badge */
body.dark-mode .tab-count { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }
body.dark-mode .filter-tab.active .tab-count { background: rgba(0,0,0,.25); color: #fff; }

/* ── Fix: --white di-override ke gelap, tapi elemen berikut harus tetap putih ── */
/* Hero title "Satu Portal," */
body.dark-mode .hero-title { color: #fff; }
/* Tombol Buka Sistem — teks di atas warna SIM harus tetap putih */
body.dark-mode .btn-open   { color: #fff; }
/* Coming-soon badge */
body.dark-mode .coming-badge { color: #fff; }

/* Dark mode hover — top glow tetap terlihat di background gelap */
@media (hover: hover) and (pointer: fine) {
  body.dark-mode .sim-card:not(.coming-soon):hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.18);
    box-shadow:
      0 -5px 22px -4px var(--card-color, rgba(245,166,35,.65)),
      0 24px 52px rgba(0,0,0,.5),
      0 8px 16px  rgba(0,0,0,.3),
      0 0 0 1px var(--card-color, rgba(245,166,35,.35)),
      inset 0 1px 0 rgba(255,255,255,.1);
  }
  body.dark-mode .sim-card:not(.coming-soon):hover::after {
    /* Shimmer lebih redup di dark mode agar tidak terlalu kontras */
    opacity: .55;
  }
}

/* ─── QUICK INFO TOOLTIP ─────────────────────────────────────────── */
#sim-tooltip {
  position: fixed;
  z-index: 9999;
  width: 272px;
  background: rgba(13,13,24,.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid var(--tip-color, var(--gold));
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: 0 24px 64px rgba(0,0,0,.45), 0 4px 14px rgba(0,0,0,.25);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-6px) scale(.97);
  transition: opacity .2s ease, transform .2s ease;
}

#sim-tooltip.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Panah kecil ke kiri (default: tooltip di kanan kartu) */
#sim-tooltip::before {
  content: '';
  position: absolute;
  top: 22px;
  left: -7px;
  width: 12px;
  height: 12px;
  background: rgba(13,13,24,.96);
  border-left: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transform: rotate(45deg);
}

/* Panah di kanan saat tooltip tampil di kiri kartu */
#sim-tooltip.tip-left::before {
  left: auto;
  right: -7px;
  border-left: none;
  border-bottom: none;
  border-right: 1px solid rgba(255,255,255,.1);
  border-top: 1px solid rgba(255,255,255,.1);
}

.stt-name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  margin-bottom: .6rem;
  line-height: 1.3;
}

.stt-desc {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin: 0 0 .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stt-url {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .67rem;
  color: var(--tip-color, var(--gold));
  margin-bottom: .75rem;
  opacity: .85;
  overflow: hidden;
}

.stt-url i { flex-shrink: 0; font-size: .6rem; }

.stt-url-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.stt-tag {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .15rem .45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.stt-tag.tag-mahasiswa { background: rgba(30,58,138,.55);  color: #93c5fd; }
.stt-tag.tag-dosen     { background: rgba(6,78,59,.55);    color: #6ee7b7; }
.stt-tag.tag-admin     { background: rgba(127,29,29,.55);  color: #fca5a5; }

/* Divider tipis antara desc dan url */
.stt-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: .65rem 0;
}
