/* ===========================
   MBDx Store — Link Page CSS
   Mengikuti tema website mbdx.store
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Light Theme (default) ── */
:root {
  --bg-main: #ddeef8;
  --bg-light: #eaf5fc;
  --bg-card: #ffffff;
  --primary: #e8607a;
  --primary-dark: #d44d68;
  --primary-light: #f4899d;
  --primary-soft: #fde8ec;
  --accent: #6bbdd9;
  --accent-soft: #cce9f5;
  --accent-dark: #3a9ec4;
  --text-primary: #1e2d3a;
  --text-secondary: #4a6276;
  --text-muted: #7a9ab0;
  --text-on-primary: #ffffff;
  --card-border: #c5dff0;
  --card-shadow: 0 4px 24px rgba(100, 170, 210, 0.15);
  --card-shadow-hover: 0 10px 40px rgba(100, 170, 210, 0.28);
  --divider-color: rgba(100, 170, 210, 0.35);
  --badge-bg: #fde8ec;
  --badge-border: rgba(232, 96, 122, 0.25);
  --badge-color: #d44d68;
  --arrow-bg: #cce9f5;
  --arrow-border: #c5dff0;
  --arrow-color: #3a9ec4;
  --scrollbar-thumb: rgba(232, 96, 122, 0.35);
  --footer-color: #7a9ab0;
  --blob-1: #b8dff0;
  --blob-2: #f4a8b8;
  --blob-3: #a8d8f0;
  --body-bg: linear-gradient(170deg, #c8e6f5 0%, #ddeef8 40%, #e8f5fb 70%, #d0eaf7 100%);
  --toggle-bg: rgba(255,255,255,0.8);
  --toggle-border: #c5dff0;
  --toggle-shadow: 0 4px 16px rgba(100,170,210,0.2);

  /* ── Platform colors (tidak berubah antar tema) ── */
  --wa-green: #25d366;
  --wa-dark: #128c7e;
  --fb-blue: #1877f2;
  --ig-start: #f09433;
  --ig-end: #bc1888;
  --tiktok-dark: #010101;
  --x-dark: #14171a;

  /* ── Radius & Misc ── */
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 100px;
  --transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: all 0.2s ease;
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  --bg-main: #0a0818;
  --bg-light: #0f0c24;
  --bg-card: rgba(255, 255, 255, 0.045);
  --primary: #a855f7;
  --primary-dark: #7c3aed;
  --primary-light: #c084fc;
  --primary-soft: rgba(124, 58, 237, 0.18);
  --accent: #06b6d4;
  --accent-soft: rgba(6, 182, 212, 0.15);
  --accent-dark: #0891b2;
  --text-primary: #f0eeff;
  --text-secondary: #a89fc8;
  --text-muted: #6b6490;
  --text-on-primary: #ffffff;
  --card-border: rgba(255, 255, 255, 0.09);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 10px 40px rgba(124, 58, 237, 0.2);
  --divider-color: rgba(255, 255, 255, 0.1);
  --badge-bg: rgba(124, 58, 237, 0.18);
  --badge-border: rgba(124, 58, 237, 0.35);
  --badge-color: #c4b5fd;
  --arrow-bg: rgba(255,255,255,0.06);
  --arrow-border: rgba(255,255,255,0.1);
  --arrow-color: #a89fc8;
  --scrollbar-thumb: rgba(124, 58, 237, 0.4);
  --footer-color: #6b6490;
  --blob-1: #7c3aed;
  --blob-2: #06b6d4;
  --blob-3: #a855f7;
  --body-bg: linear-gradient(170deg, #08061a 0%, #0f0c29 40%, #0d0a22 70%, #08061a 100%);
  --toggle-bg: rgba(255,255,255,0.07);
  --toggle-border: rgba(255,255,255,0.12);
  --toggle-shadow: 0 4px 16px rgba(0,0,0,0.4);
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--body-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background 0.5s ease, color 0.4s ease;
}

/* Smooth transition for all themed elements */
*, *::before, *::after {
  transition: background-color 0.4s ease, border-color 0.4s ease,
              color 0.3s ease, box-shadow 0.4s ease;
}

/* =====================
   Decorative Background
   ===================== */

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 14s ease-in-out infinite;
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--blob-1), transparent 70%);
  top: -150px;
  left: -120px;
  animation-delay: 0s;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--blob-2), transparent 70%);
  top: 30%;
  right: -120px;
  animation-delay: -5s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--blob-3), transparent 70%);
  bottom: -80px;
  left: 25%;
  animation-delay: -9s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -25px) scale(1.05); }
  66% { transform: translate(-18px, 18px) scale(0.96); }
}

/* =====================
   Clouds
   ===================== */

.cloud {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: cloudDrift linear infinite;
}

/* Cloud shape using box-shadow + border-radius */
.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

/* Main body of cloud */
.cloud::before {
  width: 100%;
  height: 60%;
  bottom: 0;
  left: 0;
  border-radius: 50px;
  box-shadow:
    30px -18px 0 10px rgba(255,255,255,0.72),
    60px -10px 0 4px  rgba(255,255,255,0.6),
    -10px -8px 0 6px  rgba(255,255,255,0.55);
}

/* Puff top of cloud */
.cloud::after {
  width: 50%;
  height: 120%;
  bottom: 30%;
  left: 18%;
  box-shadow: 30px 0 0 5px rgba(255,255,255,0.65);
}

/* Individual cloud instances */
.cloud-1 {
  width: 160px;
  height: 50px;
  top: 8%;
  animation-duration: 55s;
  animation-delay: 0s;
  opacity: 0;
  filter: blur(1px);
}

.cloud-2 {
  width: 220px;
  height: 65px;
  top: 18%;
  animation-duration: 75s;
  animation-delay: -20s;
  filter: blur(0.5px);
}

.cloud-3 {
  width: 120px;
  height: 40px;
  top: 30%;
  animation-duration: 45s;
  animation-delay: -10s;
  filter: blur(1.5px);
}

.cloud-4 {
  width: 200px;
  height: 60px;
  top: 55%;
  animation-duration: 80s;
  animation-delay: -35s;
  filter: blur(0.8px);
}

.cloud-5 {
  width: 140px;
  height: 45px;
  top: 70%;
  animation-duration: 60s;
  animation-delay: -50s;
  filter: blur(1.2px);
}

.cloud-6 {
  width: 180px;
  height: 55px;
  top: 42%;
  animation-duration: 90s;
  animation-delay: -65s;
  filter: blur(0.6px);
}

@keyframes cloudDrift {
  0% {
    transform: translateX(-300px);
    opacity: 0;
  }
  5% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.75;
  }
  100% {
    transform: translateX(calc(100vw + 300px));
    opacity: 0;
  }
}

/* Hide clouds in dark mode */
[data-theme="dark"] .cloud {
  display: none;
}

/* =====================
   Starfield (dark mode)
   ===================== */

#starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: none;
}

[data-theme="dark"] #starfield {
  display: block;
}

/* Star base styles */
.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle linear infinite;
}

/* Small dim stars */
.star-sm {
  width: 1px;
  height: 1px;
  opacity: 0.4;
}

/* Medium stars */
.star-md {
  width: 2px;
  height: 2px;
  opacity: 0.65;
}

/* Bright large stars */
.star-lg {
  width: 3px;
  height: 3px;
  opacity: 0.9;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.6);
}

/* Occasional glowing star */
.star-glow {
  width: 3px;
  height: 3px;
  background: #e8d5ff;
  box-shadow: 0 0 6px 2px rgba(168, 85, 247, 0.7),
              0 0 12px 4px rgba(168, 85, 247, 0.3);
  animation: twinkleGlow linear infinite;
}

/* Cyan-tinted star */
.star-cyan {
  width: 2px;
  height: 2px;
  background: #a5f3fc;
  box-shadow: 0 0 4px 1px rgba(6, 182, 212, 0.6);
  animation: twinkleCyan linear infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: var(--star-min-opacity, 0.15); transform: scale(1); }
  50%       { opacity: var(--star-max-opacity, 0.9);  transform: scale(1.3); }
}

@keyframes twinkleGlow {
  0%, 100% {
    opacity: 0.3;
    box-shadow: 0 0 4px 1px rgba(168, 85, 247, 0.3);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 10px 4px rgba(168, 85, 247, 0.8),
                0 0 20px 8px rgba(168, 85, 247, 0.3);
  }
}

@keyframes twinkleCyan {
  0%, 100% {
    opacity: 0.3;
    box-shadow: 0 0 3px 1px rgba(6, 182, 212, 0.3);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 8px 3px rgba(6, 182, 212, 0.7),
                0 0 16px 6px rgba(6, 182, 212, 0.3);
  }
}

/* Shooting star */
.shooting-star {
  position: absolute;
  width: 150px;
  height: 1.5px;
  /* Head (bright) on left, tail fades to right — star travels left+down */
  background: linear-gradient(to right,
    rgba(255, 255, 255, 1)   0%,
    rgba(255, 255, 255, 0.5) 30%,
    rgba(255, 255, 255, 0.1) 70%,
    transparent              100%
  );
  border-radius: 2px;
  animation: shootStar linear infinite;
}

/* Glowing head at the front (left end) */
.shooting-star::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
  box-shadow:
    0 0 4px 2px rgba(255, 255, 255, 0.9),
    0 0 10px 4px rgba(200, 220, 255, 0.5);
}

@keyframes shootStar {
  0% {
    transform: translate(0px, 0px) rotate(-35deg);
    opacity: 0;
  }
  4%  { opacity: 1; }
  80% { opacity: 0.9; }
  100% {
    transform: translate(-650px, 380px) rotate(-35deg);
    opacity: 0;
  }
}



/* Particles Canvas */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* =====================
   Layout Container
   ===================== */

.container {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 44px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =====================
   Profile Section
   ===================== */

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  animation: fadeSlideUp 0.7s ease both;
}

.avatar-wrapper {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 6px;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary-light), var(--accent-dark), var(--primary));
  animation: spinRing 5s linear infinite;
  z-index: 0;
}

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

.avatar {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d44d68, #3a9ec4, #f47b9d, #5bbcd4, #e8607a, #3a9ec4);
  background-size: 400% 400%;
  animation: avatarBgAnim 5s ease infinite;
  box-shadow: 0 4px 20px rgba(100, 170, 210, 0.3);
}

.avatar svg {
  width: 86px;
  height: 86px;
}

.avatar-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
}

.verified-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  z-index: 2;
  border-radius: 50%;
  border: 2px solid var(--bg-light);
  overflow: hidden;
  display: flex;
}

.verified-badge svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.brand-tagline {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.2px;
}

.brand-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.badge {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-color);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.2px;
}

/* =====================
   Links Section
   ===================== */

.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* =====================
   Section Divider
   ===================== */

.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 2px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--divider-color), transparent);
}

.section-divider span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  white-space: nowrap;
}

/* =====================
   Link Cards
   ===================== */

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  animation: fadeSlideUp 0.6s ease both;
  animation-play-state: paused;
}

.link-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--card-shadow-hover);
}

.link-card:active {
  transform: translateY(0) scale(0.98);
}

/* Glow underline effect */
.card-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.link-card:hover .card-glow {
  opacity: 1;
}

/* Primary Website Card */
.primary-card {
  border-color: rgba(232, 96, 122, 0.35);
  background: linear-gradient(135deg, #fff5f7 0%, #ffffff 60%);
}
.primary-card .card-glow {
  background: linear-gradient(to right, var(--primary-light), var(--accent));
}
.primary-card:hover {
  border-color: rgba(232, 96, 122, 0.55);
  box-shadow: 0 10px 40px rgba(232, 96, 122, 0.18);
}
.primary-card .link-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  color: white;
}

/* Primary card — Dark mode overrides */
[data-theme="dark"] .primary-card {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(124, 58, 237, 0.12);
}
[data-theme="dark"] .primary-card:hover {
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.28);
}
[data-theme="dark"] .primary-card .card-glow {
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.2), transparent 70%);
}

/* WhatsApp Cards */
.whatsapp-card:hover {
  box-shadow: 0 10px 40px rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.4);
}
.whatsapp-card .card-glow {
  background: linear-gradient(to right, var(--wa-dark), var(--wa-green));
}
.whatsapp-card .link-icon {
  background: linear-gradient(135deg, var(--wa-dark), var(--wa-green));
  color: white;
}

/* Facebook Card */
.facebook-card:hover {
  box-shadow: 0 10px 40px rgba(24, 119, 242, 0.18);
  border-color: rgba(24, 119, 242, 0.4);
}
.facebook-card .card-glow {
  background: linear-gradient(to right, #0e6fcf, #1877f2);
}
.facebook-card .link-icon {
  background: linear-gradient(135deg, #0e6fcf, #1877f2);
  color: white;
}

/* Instagram Card */
.instagram-card:hover {
  box-shadow: 0 10px 40px rgba(220, 39, 67, 0.15);
  border-color: rgba(240, 148, 51, 0.4);
}
.instagram-card .card-glow {
  background: linear-gradient(to right, var(--ig-start), var(--ig-end));
}
.instagram-card .link-icon {
  background: linear-gradient(135deg, var(--ig-start), #e6683c, #dc2743, #cc2366, var(--ig-end));
  color: white;
}

/* TikTok Card */
.tiktok-card:hover {
  box-shadow: 0 10px 40px rgba(10, 10, 10, 0.12);
  border-color: rgba(0, 0, 0, 0.2);
}
.tiktok-card .card-glow {
  background: linear-gradient(to right, #fe2c55, #25f4ee);
}
.tiktok-card .link-icon {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: white;
}

/* Threads Card */
.threads-card:hover {
  box-shadow: 0 10px 40px rgba(10, 10, 10, 0.12);
  border-color: rgba(0, 0, 0, 0.2);
}
.threads-card .card-glow {
  background: linear-gradient(to right, #333, #555);
}
.threads-card .link-icon {
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: white;
}

/* X Card */
.x-card:hover {
  box-shadow: 0 10px 40px rgba(10, 10, 10, 0.12);
  border-color: rgba(0, 0, 0, 0.2);
}
.x-card .card-glow {
  background: linear-gradient(to right, #14171a, #272c30);
}
.x-card .link-icon {
  background: linear-gradient(135deg, #14171a, #2d3439);
  color: white;
}

/* Discord Card */
.discord-card:hover {
  box-shadow: 0 10px 40px rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.35);
}
.discord-card .card-glow {
  background: linear-gradient(to right, #5865f2, #7289da);
}
.discord-card .link-icon {
  background: linear-gradient(135deg, #5865f2, #7289da);
  color: white;
}

/* =====================
   Link Icon
   ===================== */

.link-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.link-icon svg {
  width: 22px;
  height: 22px;
}

.link-card:hover .link-icon {
  transform: scale(1.08) rotate(-3deg);
}

.website-icon {
  color: white;
}

/* =====================
   Link Content
   ===================== */

.link-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-label {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.1px;
}

.link-sub {
  font-size: 0.77rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* =====================
   Arrow Icon
   ===================== */

.link-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--arrow-bg);
  border: 1.5px solid var(--arrow-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arrow-color);
}

.link-arrow svg {
  width: 14px;
  height: 14px;
}

.link-card:hover .link-arrow {
  background: var(--primary-soft);
  border-color: rgba(232, 96, 122, 0.3);
  color: var(--primary);
  transform: translate(2px, -2px);
}

/* primary card arrow override */
.primary-card .link-arrow {
  background: var(--primary-soft);
  border-color: rgba(232, 96, 122, 0.3);
  color: var(--primary);
}
.primary-card:hover .link-arrow {
  background: var(--primary);
  color: white;
}

/* Primary card arrow — Dark mode */
[data-theme="dark"] .primary-card .link-arrow {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(168, 85, 247, 0.35);
  color: var(--primary-light);
}
[data-theme="dark"] .primary-card:hover .link-arrow {
  background: var(--primary);
  color: white;
}

/* =====================
   Footer
   ===================== */

.footer {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeSlideUp 0.8s ease 0.5s both;
  animation-play-state: running;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--footer-color);
  font-weight: 400;
}

.footer-text strong {
  color: var(--text-secondary);
  font-weight: 700;
}

.footer-sub {
  font-size: 0.76rem;
  color: var(--footer-color);
  opacity: 0.75;
}

/* =====================
   Animations
   ===================== */

@keyframes avatarBgAnim {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 50%; }
  50%  { background-position: 100% 0%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}


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

/* =====================
   Scrollbar
   ===================== */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

/* =====================
   Theme Toggle Button
   ===================== */

/* =====================
   Theme Controls
   ===================== */

.theme-controls {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Decorative icon — no interaction */
.theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--toggle-border);
  background: var(--toggle-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--toggle-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.toggle-icon {
  position: absolute;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Light mode: sun visible */
.light-icon { opacity: 1; transform: rotate(0deg) scale(1); }
.dark-icon  { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* Dark mode: moon visible */
[data-theme="dark"] .light-icon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .dark-icon  { opacity: 1; transform: rotate(0deg) scale(1); }

/* =====================
   Clock Widget
   ===================== */

.clock-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: var(--toggle-bg);
  border: 1.5px solid var(--toggle-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--toggle-shadow);
  border-radius: 12px;
  padding: 5px 10px;
  min-width: 56px;
  pointer-events: none;
  user-select: none;
}

.clock-time {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-primary);
  line-height: 1;
}

/* Blinking colon separator */
.clock-time .colon {
  animation: blinkColon 1s step-end infinite;
  display: inline-block;
}

@keyframes blinkColon {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

.clock-period {
  font-family: 'Outfit', sans-serif;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 1px;
}

/* Period accent color by time of day */
.clock-period.pagi   { color: #f59e0b; }
.clock-period.siang  { color: var(--primary); }
.clock-period.sore   { color: #f97316; }
.clock-period.malam  { color: #818cf8; }
.clock-period.dinihari { color: #64748b; }



/* =====================
   Music Control Button
   ===================== */

.music-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--toggle-border);
  background: var(--toggle-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--toggle-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.music-btn:active {
  transform: scale(0.92);
}

/* Icon visibility states */
.music-icon-on,
.music-icon-off {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Default: music OFF (waiting for interaction) */
.music-btn .music-icon-on { opacity: 0; transform: scale(0.5); }
.music-btn .music-icon-off { opacity: 1; transform: scale(1); }

/* Music PLAYING state */
.music-btn.playing .music-icon-on { opacity: 1; transform: scale(1); }
.music-btn.playing .music-icon-off { opacity: 0; transform: scale(0.5); }

/* Pulse ring when playing */
.music-btn.playing {
  animation: musicPulse 2.5s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: var(--toggle-shadow), 0 0 0 0 rgba(232, 96, 122, 0.35); }
  50%       { box-shadow: var(--toggle-shadow), 0 0 0 8px rgba(232, 96, 122, 0); }
}

[data-theme="dark"] .music-btn.playing {
  animation: musicPulseDark 2.5s ease-in-out infinite;
}

@keyframes musicPulseDark {
  0%, 100% { box-shadow: var(--toggle-shadow), 0 0 0 0 rgba(168, 85, 247, 0.4); }
  50%       { box-shadow: var(--toggle-shadow), 0 0 0 8px rgba(168, 85, 247, 0); }
}

/* Waiting-for-interaction: gentle bounce hint */
.music-btn.waiting {
  animation: musicWait 1.8s ease-in-out infinite;
}

@keyframes musicWait {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

/* Ripple element */
.music-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

/* =====================
   Welcome Modal
   ===================== */

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.welcome-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.welcome-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.welcome-modal {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  border-radius: 28px;
  padding: 40px 36px 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18),
              0 8px 24px rgba(0, 0, 0, 0.12);
  transform: scale(0.88) translateY(20px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
  opacity: 0;
}

.welcome-overlay.show .welcome-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.welcome-overlay.hide .welcome-modal {
  transform: scale(0.92) translateY(12px);
  opacity: 0;
}

/* Close button */
.welcome-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--card-border);
  background: var(--arrow-bg);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.welcome-close:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: rotate(90deg) scale(1.1);
}

/* Animated music icon */
.welcome-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: inline-block;
  animation: floatIcon 2.5s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-8px) rotate(5deg); }
}

/* Text content */
.welcome-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.welcome-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}

.welcome-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.3px;
}

.welcome-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--divider-color), transparent);
  margin: 20px 0;
}

.welcome-music-note {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 0 24px;
  font-weight: 500;
}

/* CTA Button */
.welcome-cta {
  width: 100%;
  padding: 14px 24px;
  border-radius: 100px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 20px rgba(232, 96, 122, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
}

.welcome-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(232, 96, 122, 0.45);
}

.welcome-cta:active {
  transform: scale(0.97);
}

/* Dark mode adjustments */
[data-theme="dark"] .welcome-modal {
  background: rgba(15, 12, 36, 0.92);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(168, 85, 247, 0.1);
}

[data-theme="dark"] .welcome-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

[data-theme="dark"] .welcome-cta:hover {
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.55);
}

/* =====================
   Responsive

   ===================== */

@media (max-width: 480px) {
  .container {
    padding: 30px 14px 50px;
  }

  .brand-name {
    font-size: 1.8rem;
  }

  .link-card {
    padding: 13px 14px;
    gap: 12px;
  }

  .link-icon {
    width: 44px;
    height: 44px;
  }

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

/* Selection Color */
::selection {
  background: rgba(232, 96, 122, 0.25);
  color: var(--text-primary);
}
