/* v1.40 Ikuti kami — porting styles/social.css website utama. Variabel website utama dipetakan ke tema portal. */
.social{--paper:var(--surface,#fff);--muted:var(--ink-2,#525252);--faint:var(--ink-3,#8a8a8a);--pad:0px;--accent:var(--aw-blue,#2442eb);
  --f-mono:Inter,-apple-system,system-ui,"Segoe UI",sans-serif;--f-body:Inter,-apple-system,system-ui,"Segoe UI",sans-serif}   /* sama dengan web.alwildan.sch.id */
.social .ikc, .social .ikc-name, .social .ikc-handle, .social .ikc-sub, .social .ikc-top{font-family:var(--f-body)}
.social .social-grid{border-bottom:0;padding:clamp(40px,6vw,80px) 0}
.social .social-text h2 em{font-style:normal;color:var(--aw-blue)}
.social .lede{color:var(--ink-2);font-size:17px;line-height:1.65;max-width:46ch}
/* Ikuti Kami — dua kartu profil (Instagram, TikTok): cincin foto berputar, status langsung, tombol api. */

.social-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: clamp(32px, 6vw, 80px); align-items: center;
  padding: clamp(56px, 8vw, 110px) var(--pad); border-bottom: 1px solid var(--line);
}
.social-text h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; max-width: 15ch; margin-bottom: 26px; }
.social-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .social-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .social-cards { grid-template-columns: 1fr; } }

.ikc {
  --c1: #feda75; --c2: #fa7e1e; --c3: #d62976; --c4: #962fbf; --dot: #d62976;
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 18px 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 18px 40px -24px rgb(9 9 11 / .3);
  transition: box-shadow .4s ease, transform .4s ease, border-color .4s ease;
}
.ikc-tt { --c1: #25f4ee; --c2: #25f4ee; --c3: #fe2c55; --c4: #fe2c55; --dot: #fe2c55; }
.ikc:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c3) 35%, var(--line));
  box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 28px 60px -26px color-mix(in srgb, var(--c3) 60%, transparent); }

.ikc-top { align-self: stretch; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font: 500 10px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ikc-tag { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-align: start; font-weight: 600; font-size: 11px; }

/* Logo merek: ubin warna asli Instagram / TikTok, dengan kilau yang lewat sesekali */
.ikc-logo, .ikc-badge { position: relative; display: grid; place-items: center; flex: none; overflow: hidden; }
.ikc-logo { width: 28px; height: 28px; border-radius: 8px; }
.ikc-logo svg { width: 16px; height: 16px; }
.ikc-ig :is(.ikc-logo, .ikc-badge) { background: radial-gradient(circle at 30% 107%, #fdf497 0 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 4px 14px -4px rgb(214 36 159 / .55); }
.ikc-tt :is(.ikc-logo, .ikc-badge) { background: #010101; box-shadow: -2px -1px 0 -1px #25f4ee, 2px 1px 0 -1px #fe2c55, 0 4px 14px -4px rgb(254 44 85 / .5); }
.ikc-logo::after, .ikc-badge::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / .55) 50%, transparent 65%);
  translate: -120% 0; animation: ikc-sheen 5.5s ease-in-out infinite; }
.ikc-tt .ikc-logo::after, .ikc-tt .ikc-badge::after { animation-delay: 1.4s; }
@keyframes ikc-sheen { 0%, 72% { translate: -120% 0; } 88%, 100% { translate: 120% 0; } }

/* Lencana merek di pojok foto profil */
.ikc-badge { position: absolute; right: -4px; bottom: 2px; z-index: 1; width: 38px; height: 38px; border-radius: 12px;
  outline: 3px solid var(--paper); scale: 0; rotate: -25deg; transition: rotate .4s cubic-bezier(.3, 1.6, .5, 1); }
.ikc-badge svg { width: 21px; height: 21px; }
.ikc.is-seen .ikc-badge { animation: ikc-badge-in .7s cubic-bezier(.3, 1.6, .5, 1) .25s forwards; }
.ikc:hover .ikc-badge { rotate: -10deg; }
@keyframes ikc-badge-in { to { scale: 1; rotate: 0deg; } }
.ikc-live { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ikc-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.ikc.is-live .ikc-live i { --on: #22c55e; background: var(--on); box-shadow: 0 0 0 0 var(--on); animation: ikc-pulse 1.8s ease-out infinite; }
.ikc.is-stale .ikc-live i { background: #ef4444; box-shadow: 0 0 0 3px color-mix(in srgb, #ef4444 22%, transparent); }
.ikc.is-stale .ikc-live { color: #dc2626; }
@keyframes ikc-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Foto profil dengan cincin gradien berputar ala "story" */
.ikc-avatar { position: relative; display: grid; place-items: center; width: 124px; height: 124px; margin: 26px 0 16px; border-radius: 50%; isolation: isolate; }
.ikc-ring { position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c1));
  animation: ikc-spin 6s linear infinite; }
.ikc-ring::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: inherit; filter: blur(16px); opacity: .35; z-index: -1; transition: opacity .4s; }
.ikc:hover .ikc-ring::after { opacity: .7; }
.ikc-avatar img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: #fff;
  border: 4px solid var(--paper); transition: opacity .22s ease, transform .22s ease; }
.ikc-avatar img.is-swap { opacity: 0; transform: scale(.94); }
@keyframes ikc-spin { to { rotate: 360deg; } }

.ikc-name { margin: 0; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.ikc-handle { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ikc-sub { margin: 6px 0 0; font-size: 12px; color: var(--faint); }
/* Jumlah pengikut: angka besar bercahaya warna merek, menghitung naik saat terlihat */
.ikc-stats { margin: 16px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ikc-stats[hidden] { display: flex; visibility: hidden; } /* ruang tetap, kartu sama tinggi */
.ikc-count { font: 800 clamp(30px, 3.4vw, 38px)/1 var(--f-body); letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ikc-label { font: 600 10px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.ikc-ig .ikc-count {
  background: linear-gradient(90deg, #fa7e1e, #d62976, #962fbf, #d62976, #fa7e1e) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: ikc-shimmer 4.5s linear infinite, ikc-glow-ig 2.6s ease-in-out infinite alternate;
}
@keyframes ikc-shimmer { to { background-position: -200% 0; } }
@keyframes ikc-glow-ig { from { filter: drop-shadow(0 0 6px rgb(214 41 118 / .25)); } to { filter: drop-shadow(0 0 16px rgb(214 41 118 / .55)); } }
.ikc-tt .ikc-count { color: var(--ink); text-shadow: -2px -1px 0 #25f4ee, 2px 1px 0 #fe2c55, 0 0 22px rgb(254 44 85 / .35);
  animation: ikc-glitch 3.4s steps(1) infinite; }
@keyframes ikc-glitch {
  0%, 86%, 100% { text-shadow: -2px -1px 0 #25f4ee, 2px 1px 0 #fe2c55, 0 0 22px rgb(254 44 85 / .35); translate: 0; }
  88% { text-shadow: -4px 0 0 #25f4ee, 4px 0 0 #fe2c55, 0 0 30px rgb(37 244 238 / .5); translate: 1px 0; }
  90% { text-shadow: 3px 1px 0 #25f4ee, -3px -1px 0 #fe2c55, 0 0 30px rgb(254 44 85 / .5); translate: -1px 0; }
  92% { text-shadow: -1px 0 0 #25f4ee, 1px 0 0 #fe2c55, 0 0 26px rgb(254 44 85 / .4); translate: 0; }
}
.ikc-count.is-pop { animation-name: ikc-shimmer, ikc-glow-ig, ikc-pop; animation-duration: 4.5s, 2.6s, .5s;
  animation-iteration-count: infinite, infinite, 1; animation-timing-function: linear, ease-in-out, cubic-bezier(.3, 1.6, .5, 1); animation-direction: normal, alternate, normal; }
.ikc-tt .ikc-count.is-pop { animation: ikc-pop .5s cubic-bezier(.3, 1.6, .5, 1), ikc-glitch 3.4s steps(1) .5s infinite; }
@keyframes ikc-pop { 0% { scale: 1; } 40% { scale: 1.12; } 100% { scale: 1; } }

/* Tombol api: pil gelap; canvas lebih besar di belakangnya tempat lidah api menjilat keluar */
.flame {
  position: relative; isolation: isolate; display: inline-flex; margin-top: 60px; border-radius: 999px;
  color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; outline: none;
}
.flame canvas { position: absolute; inset: -58px -30px -18px; width: calc(100% + 60px); height: calc(100% + 76px); z-index: -1; pointer-events: none; }
.flame-body {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px;
  font: 600 14px/1 var(--f-body); letter-spacing: .02em; border-radius: inherit;
  background: linear-gradient(180deg, #1c1c22, #09090b);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 0 0 1px color-mix(in srgb, var(--c3) 55%, #000),
    0 8px 24px -6px color-mix(in srgb, var(--c3) 55%, transparent);
  transition: transform .25s ease, box-shadow .3s ease;
}
.flame-body::before { /* garis tepi bercahaya */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .75;
}
.flame.is-hot .flame-body, .flame:focus-visible .flame-body { transform: translateY(-1px) scale(1.04);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 0 0 1px var(--c3), 0 10px 34px -4px color-mix(in srgb, var(--c3) 80%, transparent); }
.flame:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.flame:active .flame-body { transform: scale(.97); }
/* Gerak dikurangi: tanpa partikel, cukup cahaya statis */
.flame-still canvas { display: none; }
.flame-still .flame-body { box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 0 0 1px var(--c3), 0 -6px 26px -4px var(--c2), 0 8px 24px -6px var(--c3); }

@media (prefers-reduced-motion: reduce) {
  .ikc-ring, .ikc.is-live .ikc-live i, .ikc-count, .ikc-logo::after, .ikc-badge::after { animation: none !important; }
  .ikc-badge { scale: 1; rotate: 0deg; }
}
