:root {
  --bg-color: #0f0f13;
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --accent-1: #00f260;
  --accent-2: #0575e6;
  --accent-3: #f12711;
  --accent-4: #8e2de2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* --- TEXTURE OVERLAY --- */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0f0f13;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
  border: 2px solid #0f0f13;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}

/* --- BACKGROUND GLOW --- */
.background-glow {
  position: fixed;
  top: -20%;
  left: -20%;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(5, 117, 230, 0.2), transparent 70%);
  filter: blur(100px);
  z-index: -1;
  animation: float 10s infinite alternate;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(100px, 50px);
  }
}

/* --- HEADER & TYPOGRAPHY --- */
header {
  text-align: center;
  margin: 4rem 0 3rem;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(to right, #fff, #a0a0a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo i {
  font-size: 2.5rem;
  color: var(--accent-2);
  -webkit-text-fill-color: var(--accent-2);
}

.subtitle {
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Widget Jam Digital */
.system-time {
  margin-top: 1.5rem;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--accent-2);
  background: rgba(5, 117, 230, 0.1);
  padding: 8px 16px;
  border-radius: 50px;
  display: inline-block;
  border: 1px solid rgba(5, 117, 230, 0.3);
  box-shadow: 0 0 10px rgba(5, 117, 230, 0.1);
}

.system-time .divider {
  margin: 0 8px;
  color: var(--text-secondary);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .system-time {
    font-size: 0.8rem;
    padding: 6px 12px;
    margin-top: 1rem;
  }
}

/* --- GRID LAYOUT --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 90%;
  max-width: 1200px;
  margin-bottom: 4rem;
}

/* --- WIDGET CARD (Main Style) --- */
.widget-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;

  /* Efek Kaca */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Layout Flexbox */
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 220px;
  position: relative;
  overflow: hidden;

  /* Performance & Animation Init */
  will-change: transform, opacity;
  opacity: 0; /* Mulai dari invisible */
  /* Animation dijalankan disini */
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Staggered Animation Delay */
.widget-card:nth-child(1) {
  animation-delay: 0.1s;
}
.widget-card:nth-child(2) {
  animation-delay: 0.2s;
}
.widget-card:nth-child(3) {
  animation-delay: 0.3s;
}
.widget-card:nth-child(4) {
  animation-delay: 0.4s;
}
.widget-card:nth-child(5) {
  animation-delay: 0.5s;
}

/* Wide card (Desktop) */
.widget-card.wide {
  grid-column: span 1;
}
@media (min-width: 900px) {
  .widget-card.wide {
    grid-column: span 2;
  }
}

/* Hover Effect */
.widget-card:hover {
  transform: translateY(
    -5px
  ); /* Note: Ini bisa sedikit konflik dengan animasi di bawah, tapi biasanya aman setelah animasi selesai */
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

/* --- ANIMASI MASUK (OPTIMIZED) --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    /* Mulai dari bawah */
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    /* PENTING: translate3d(0,0,0) mengaktifkan GPU, menjaga bug fix HP tetap aktif */
    transform: translate3d(0, 0, 0);
  }
}

/* --- WIDGET COMPONENTS --- */
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

.icon-box {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

/* Warna-warni Icon */
.color-1 {
  background: linear-gradient(135deg, var(--accent-1), #02aab0);
}
.color-2 {
  background: linear-gradient(135deg, var(--accent-2), #00c6ff);
}
.color-3 {
  background: linear-gradient(135deg, var(--accent-3), #ff9a9e);
}
.color-4 {
  background: linear-gradient(135deg, var(--accent-4), #4a00e0);
}
.color-5 {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.status-indicator {
  font-size: 0.75rem;
  color: var(--accent-1);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 242, 96, 0.1);
  padding: 4px 8px;
  border-radius: 20px;
}

.ping {
  width: 6px;
  height: 6px;
  background-color: var(--accent-1);
  border-radius: 50%;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Widget Content */
.widget-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 1rem 0;
  z-index: 2;
}

.widget-content.row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.widget-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.widget-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Dekorasi Visual */
.mini-chart {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 30px;
  opacity: 0.8;
}
.mini-chart .bar {
  width: 6px;
  background: white;
  border-radius: 2px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  background: var(--accent-2);
}

.tags span {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 4px;
  display: inline-block;
}

.tech-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tech-lines span {
  height: 3px;
  background: var(--text-secondary);
  opacity: 0.5;
  border-radius: 2px;
}
.tech-lines span:nth-child(1) {
  width: 60%;
}
.tech-lines span:nth-child(2) {
  width: 30%;
}
.tech-lines span:nth-child(3) {
  width: 80%;
}

/* Widget Footer */
.widget-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.widget-card:hover .widget-footer i {
  color: white;
  transform: translateX(3px);
  transition: transform 0.2s;
}

/* --- SYSTEM FOOTER --- */
.system-footer {
  width: 90%;
  max-width: 1200px;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: "Courier New", monospace;
}

.footer-right {
  display: flex;
  gap: 15px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
}

.status-item.active {
  color: var(--accent-1);
  background: rgba(0, 242, 96, 0.05);
}

.dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-1);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--accent-1);
}

@media (max-width: 768px) {
  .system-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    margin-bottom: 1rem;
  }
  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =========================================
   MOBILE RESPONSIVE FIX (CLEANED)
   ========================================= */

@media (max-width: 768px) {
  header {
    margin: 2.5rem 0 2rem;
    padding: 0 1rem;
  }

  .logo {
    font-size: 2rem;
  }
  .subtitle {
    font-size: 0.75rem;
  }

  /* Grid 1 Kolom */
  .dashboard-grid {
    grid-template-columns: 1fr;
    width: 90%;
    gap: 1rem;
  }

  .widget-card.wide {
    grid-column: span 1 !important;
  }

  /* Card Adjustment */
  .widget-card {
    min-height: auto;
    height: auto;
    padding: 1.5rem;

    /* Background lebih solid di HP */
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Konten HP Alignment */
  .widget-content {
    justify-content: flex-start;
    margin: 1.5rem 0;
  }

  /* Fix LegalDoc */
  .widget-content.row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .shield-icon {
    font-size: 2.5rem;
    align-self: flex-end;
    margin-top: -10px;
    opacity: 0.8;
  }

  /* Touch Interaction */
  .widget-card:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
  }

  /* Disable Desktop Hover */
  .widget-card:hover {
    transform: none;
    box-shadow: none;
  }

  .background-glow {
    opacity: 0.6;
    filter: blur(80px);
  }
}

/* =========================================
   CUSTOM CURSOR (DESKTOP ONLY)
   ========================================= */

@media (pointer: fine) {
  /* Sembunyikan kursor panah bawaan */
  body {
    cursor: none;
  }

  /* Kursor Link (tangan) juga disembunyikan agar konsisten */
  a,
  button,
  .widget-card {
    cursor: none;
  }

  /* Titik Kecil (Inti Kursor) */
  .cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--accent-2); /* Warna Biru Neon */
  }

  /* Lingkaran Besar (Outline) */
  .cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }

  /* Posisi & Animasi Dasar */
  .cursor-dot,
  .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(
      -50%,
      -50%
    ); /* Agar mouse ada tepat di tengah lingkaran */
    border-radius: 50%;
    z-index: 999999; /* Pastikan selalu paling atas */
    pointer-events: none; /* Agar klik tetap tembus ke elemen di bawahnya */
  }

  /* Efek saat Hover Link (Membesar) */
  body.hovering .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-1); /* Berubah jadi Hijau saat hover */
  }
}

/* =========================================
   MOBILE POLISH (TAP HIGHLIGHT)
   ========================================= */

/* Menghilangkan kotak biru kedip saat tombol ditekan di Android/iOS */
/* Biar rasanya seperti aplikasi native */
* {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================
   SYSTEM BOOT PRELOADER
   ========================================= */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #050507; /* Hitam pekat */
  z-index: 99999; /* Pastikan paling atas menutupi semuanya */
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.8s ease-out,
    visibility 0.8s;
}

/* Biar preloader hilang dengan smooth */
.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  font-family: "Courier New", monospace;
  color: var(--accent-2);
}

/* Animasi Spinner Lingkaran */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(5, 117, 230, 0.3);
  border-top: 3px solid var(--accent-2); /* Warna Biru */
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

.loader-content p {
  font-size: 0.8rem;
  letter-spacing: 2px;
  animation: blink 1.5s infinite;
}

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

@keyframes blink {
  50% {
    opacity: 0.5;
  }
}

/* --- UPDATE WARNA IKON BARU --- */
/* Tambahkan .color-6 untuk Pelip (Gradasi Pink/Merah agar kontras) */
.color-6 {
  background: linear-gradient(135deg, #ec008c, #fc6767);
}

/* --- UPDATE ANIMASI DELAY (Agar kartu ke-6 muncul belakangan) --- */
.widget-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* --- TAMBAHAN DEKORASI VISUAL PELIP --- */
/* Garis-garis simpel menyerupai slip gaji */
.payslip-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0.5;
  margin-top: auto; /* Dorong ke bawah */
}
.payslip-lines span {
  height: 3px;
  background: white;
  border-radius: 2px;
}
.payslip-lines span:nth-child(1) {
  width: 40%;
}
.payslip-lines span:nth-child(2) {
  width: 70%;
}
.payslip-lines span:nth-child(3) {
  width: 50%;
}

/* --- UPDATE WARNA BARU (Qardo) --- */
/* Gradasi Cyan/Teal yang terlihat modern & secure */
.color-7 {
  background: linear-gradient(135deg, #00c9ff, #92fe9d);
}

/* Update delay animasi untuk kartu ke-7 */
.widget-card:nth-child(7) {
  animation-delay: 0.7s;
}

/* --- DEKORASI VISUAL QARDO (Mini ID Card) --- */
.id-card-visual {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 6px;
  width: fit-content;
}

.id-photo {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
}

.id-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.id-lines span {
  height: 3px;
  background: white;
  border-radius: 2px;
}
.id-lines span:nth-child(1) {
  width: 40px;
}
.id-lines span:nth-child(2) {
  width: 25px;
}

/* =========================================
   SYSTEM LOGS CONSOLE
   ========================================= */

.console-container {
  /* Ukuran tetap seperti kotak CMD */
  width: 90%;
  max-width: 450px;

  /* --- PERUBAHAN POSISI KE KANAN --- */
  /* 2rem (Atas) */
  /* 5% (Kanan) -> Agar lurus dengan tepi grid kartu (karena grid width 90%) */
  /* 3rem (Bawah) */
  /* auto (Kiri) -> Mendorong elemen mentok ke kanan */
  margin: 2rem 5% 3rem auto;

  /* Styling Visual (Tetap sama) */
  background: rgba(10, 10, 12, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  font-family: "Courier New", monospace;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.console-header {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.console-title {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  font-weight: bold;
}

.console-controls {
  display: flex;
  gap: 5px;
}

.console-controls .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.console-controls .red {
  background: #ff5f56;
}
.console-controls .yellow {
  background: #ffbd2e;
}
.console-controls .green {
  background: #27c93f;
}

.console-body {
  height: 140px; /* Tinggi dibuat compact (persegi panjang) */
  padding: 12px;
  overflow-y: hidden;
  color: var(--accent-1);
  font-size: 0.75rem; /* Font sedikit lebih kecil agar muat rapi */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  line-height: 1.4;
}

.log-line {
  margin-bottom: 4px; /* Sedikit renggang biar rapi saat turun baris */
  opacity: 0.7;

  /* --- PERBAIKAN UTAMA DI SINI --- */
  white-space: normal; /* Izinkan teks turun ke baris baru */
  word-wrap: break-word; /* Pastikan kata panjang tidak menabrak batas */
  line-height: 1.3; /* Jarak antar baris agar nyaman dibaca */
}

/* Biar log baris terakhir (terbaru) lebih terang */
.log-line:last-child {
  opacity: 1;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 5px var(--accent-1);
}

/* --- UPDATE WARNA OTOSEN --- */
/* Gradasi Oranye Semangat */
.color-9 {
  background: linear-gradient(135deg, #ff512f, #f09819);
}

/* Update Animasi Delay untuk kartu ke-9 (Developer sekarang jadi ke-9) */
.widget-card:nth-child(9) {
  animation-delay: 0.9s;
}

/* --- DEKORASI VISUAL OTOSEN (Paper Plane Trail) --- */
.send-visual {
  position: relative;
  width: 100%;
  height: 10px;
  margin-top: auto;
  opacity: 0.6;
}

.send-visual::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 60%;
  height: 2px;
  background: linear-gradient(to right, transparent, white);
  border-radius: 2px;
}

.send-visual i {
  position: absolute;
  right: 35%; /* Posisi pesawat di ujung garis */
  top: -6px;
  font-size: 1rem;
  transform: rotate(45deg);
}

/* --- UPDATE WARNA OG GEN --- */
/* Gradasi Ungu-Pink Social Media */
.color-10 {
  background: linear-gradient(135deg, #833ab4, #fd1d1d);
}

/* Update Animasi Delay untuk kartu ke-9 & 10 */
.widget-card:nth-child(9) {
  animation-delay: 0.9s;
}
.widget-card:nth-child(10) {
  animation-delay: 1s;
}

/* --- DEKORASI VISUAL OG GEN (Meta Card Preview) --- */
.meta-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0.6;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px;
  border-radius: 4px;
  width: 60%;
}
.meta-img-box {
  width: 100%;
  height: 15px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}
.meta-lines span {
  display: block;
  height: 2px;
  background: white;
  margin-top: 3px;
  border-radius: 2px;
}

/* Responsif Mobile */
@media (max-width: 768px) {
  .console-container {
    width: 92%;
    margin: 0 auto 2rem; /* Di HP kembalikan ke Tengah (Center) */
    max-width: none; /* Biar lebar penuh di HP */
  }
  .console-body {
    height: 120px;
    font-size: 0.7rem;
  }
}

/* --- Widget 8: Developer --- */
.color-8 {
  background: linear-gradient(135deg, #606c88, #3f4c6b);
} /* Metalik */
.widget-card:nth-child(8) {
  animation-delay: 0.8s;
}

/* Dekorasi Sosmed Mini */
.social-mini {
  display: flex;
  gap: 10px;
  margin-top: auto;
  font-size: 1.2rem;
  opacity: 0.7;
}
.social-mini i {
  transition:
    transform 0.2s,
    color 0.2s;
}
.widget-card:hover .social-mini i:nth-child(1) {
  color: #fff;
  transform: translateY(-3px);
}
.widget-card:hover .social-mini i:nth-child(2) {
  color: #0077b5;
  transform: translateY(-3px);
  transition-delay: 0.1s;
}
.widget-card:hover .social-mini i:nth-child(3) {
  color: #e1306c;
  transform: translateY(-3px);
  transition-delay: 0.2s;
}

/* Efek kursor mengetik */
.subtitle::after {
  content: "|";
  animation: blinkCursor 1s infinite;
  margin-left: 2px;
  color: var(--accent-2);
}

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

/* =========================================
   SPECIAL CARD: DEVELOPER PROFILE
   ========================================= */

/* Base Style Override */
.developer-card {
  background: linear-gradient(
    145deg,
    rgba(255, 215, 0, 0.05),
    rgba(0, 0, 0, 0.4)
  ); /* Sedikit nuansa emas */
  border: 1px solid rgba(255, 215, 0, 0.2); /* Border Emas */
  overflow: hidden;
}

/* Efek Glow di Background */
.dev-bg-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
  transition: all 0.5s ease;
}

.developer-card:hover .dev-bg-glow {
  top: -20%;
  right: -20%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 70%);
}

/* Avatar Style */
.profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(45deg, #ffd700, #fff); /* Ring Emas */
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1a1a1a;
  object-fit: cover;
}

/* Tech Stack Badges */
.dev-badges {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.dev-badges span {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Footer & Socials */
.social-row {
  display: flex;
  gap: 12px;
  font-size: 1.3rem;
  color: var(--text-secondary);
}

.developer-card:hover .social-row i {
  color: #ffd700; /* Berubah jadi emas saat hover */
  transform: scale(1.1);
  transition: transform 0.2s;
}

/* Connect Button Text */
.connect-btn {
  font-size: 0.75rem;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  opacity: 0.8;
}

.developer-card:hover .connect-btn {
  opacity: 1;
  transform: translateX(-5px);
  transition: transform 0.3s;
}
/* =========================================
   LEGAL CONSENT MODAL
   ========================================= */

.legal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 7, 0.95); /* Hampir solid untuk fokus */
  z-index: 10000; /* Di atas segalanya (kecuali Preloader) */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  backdrop-filter: blur(10px);
}

/* Class untuk memunculkan modal */
.legal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.legal-box {
  width: 90%;
  max-width: 500px;
  background: rgba(20, 20, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 40px rgba(0, 242, 96, 0.1); /* Glow hijau tipis */
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.legal-overlay.show .legal-box {
  transform: scale(1);
}

/* Header */
.legal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  color: var(--accent-1); /* Hijau */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.legal-header i {
  font-size: 1.5rem;
}
.legal-header h3 {
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

/* Content */
.legal-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.legal-links {
  display: flex;
  gap: 15px;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 6px;
}

.legal-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
}
.legal-link:hover {
  color: var(--accent-2);
}

/* Checkbox Kustom (Cyberpunk Style) */
.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  user-select: none;
}

.checkbox-container input {
  display: none; /* Sembunyikan checkbox asli */
}

.checkmark {
  height: 20px;
  width: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  transition: all 0.3s;
}

/* Saat dicentang */
.checkbox-container input:checked ~ .checkmark {
  background-color: var(--accent-1);
  border-color: var(--accent-1);
  box-shadow: 0 0 10px var(--accent-1);
}

/* Tanda centang */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid black;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* Button */
.btn-access {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: var(--accent-1);
  color: #000;
  font-weight: bold;
  font-family: "Courier New", monospace;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-access:hover {
  background: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Disabled State */
.btn-access.disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  box-shadow: none;
}

/* Animasi Shake kalau user maksa klik sebelum centang */
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}

.shake-animation {
  animation: shake 0.3s ease-in-out;
}
/* =========================================
   MOBILE RESPONSIVE FIX (LEGAL MODAL)
   ========================================= */

@media (max-width: 600px) {
  .legal-box {
    /* Kecilkan lebar agar ada ruang napas di kiri-kanan */
    width: 85%;
    max-width: none;

    /* Kurangi padding (jarak dalam) agar tidak boros tempat */
    padding: 1.25rem;

    /* Jaga-jaga jika layar HP pendek, konten bisa discroll */
    max-height: 85vh;
    overflow-y: auto;
  }

  /* Kecilkan ukuran Header */
  .legal-header {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
  }
  .legal-header h3 {
    font-size: 0.95rem;
  }
  .legal-header i {
    font-size: 1.2rem;
  }

  /* Kecilkan teks paragraf */
  .legal-content p {
    font-size: 0.8rem;
    line-height: 1.4; /* Rapatkan sedikit spasi baris */
    margin-bottom: 0.8rem;
  }

  /* Tombol Link (ToS & Privacy) disusun ke bawah agar rapi */
  .legal-links {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding: 5px; /* Hapus padding container */
    background: transparent; /* Hilangkan bg container */
  }

  /* Tombol Link Individual dipercantik */
  .legal-link {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08); /* Beri background tiap tombol */
    padding: 10px;
    border-radius: 6px;
    justify-content: center; /* Teks di tengah */
  }

  /* Penyesuaian Checkbox */
  .checkbox-container {
    font-size: 0.8rem;
    align-items: flex-start; /* Checkbox sejajar dengan baris pertama teks */
    gap: 8px;
  }

  .checkmark {
    /* Sesuaikan ukuran checkbox agar tidak terlalu besar di HP */
    height: 18px;
    width: 18px;
    margin-right: 0; /* Kita pakai gap di container */
    margin-top: 2px; /* Geser dikit biar pas sama teks */
    flex-shrink: 0; /* Mencegah checkbox gepeng */
  }

  /* Tombol Grant Access */
  .btn-access {
    padding: 10px;
    font-size: 0.9rem;
  }
}
/* =========================================
   LEGAL PAGES (ToS & Privacy) STYLING
   ========================================= */

.legal-page-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background: rgba(20, 20, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.legal-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-1); /* Hijau */
  font-family: "Courier New", monospace;
}

.legal-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-text h2 {
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.legal-text p,
.legal-text li {
  color: #b0b0b0;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-text ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.back-btn-container {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back:hover {
  background: var(--accent-2); /* Biru */
  border-color: var(--accent-2);
}

/* Responsif Mobile untuk Halaman Legal */
@media (max-width: 768px) {
  .legal-page-container {
    width: 90%;
    margin: 2rem auto;
    padding: 1.5rem;
  }
  .legal-title {
    font-size: 1.5rem;
  }
}
/* --- UPDATE WARNA SIGNA --- */
/* Gradasi Biru Tinta / Professional Blue */
.color-11 {
  background: linear-gradient(135deg, #2c3e50, #3498db);
}

/* Update Animasi Delay untuk kartu ke-10 & 11 */
.widget-card:nth-child(10) {
  animation-delay: 1s;
}
.widget-card:nth-child(11) {
  animation-delay: 1.1s;
}

/* --- DEKORASI VISUAL SIGNA (Signature Line) --- */
.sign-visual {
  margin-top: auto;
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Garis tempat tanda tangan */
.sign-line {
  width: 60%;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  position: relative;
  margin-top: 10px;
}

/* Simulasi goresan pena */
.sign-curve {
  width: 40px;
  height: 15px;
  border: 2px solid transparent;
  border-bottom: 2px solid white; /* Lengkungan bawah */
  border-radius: 50%;
  transform: rotate(-10deg) translate(5px, -5px);
}
/* --- UPDATE WARNA BINDER --- */
/* Gradasi Merah Crimson (Khas PDF) */
.color-12 {
  background: linear-gradient(135deg, #e52d27, #b31217);
}

/* Update Animasi Delay untuk kartu ke-11 & 12 */
.widget-card:nth-child(11) {
  animation-delay: 1.1s;
}
.widget-card:nth-child(12) {
  animation-delay: 1.2s;
}

/* --- DEKORASI VISUAL BINDER (Stacked Pages) --- */
.binder-stack {
  position: relative;
  margin-top: auto;
  width: 35px;
  height: 25px; /* Ukuran tumpukan */
  margin-right: 10px; /* Geser dikit biar ga mepet kanan */
}

.b-page {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

/* Efek Tumpukan (Layering) */
.b-page:nth-child(1) {
  bottom: 0;
  left: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.1);
}
.b-page:nth-child(2) {
  bottom: 4px;
  left: 4px;
  z-index: 2;
  opacity: 0.6;
}
.b-page:nth-child(3) {
  bottom: 8px;
  left: 8px;
  z-index: 1;
  opacity: 0.3;
}

/* --- UPDATE WARNA MARKA --- */
/* Gradasi Kuning Emas / Warning (Anti-Pinjol) */
.color-13 {
  background: linear-gradient(135deg, #ffc371, #ff5f6d);
}

/* Update Animasi Delay untuk kartu ke-12 & 13 */
.widget-card:nth-child(12) {
  animation-delay: 1.2s;
}
.widget-card:nth-child(13) {
  animation-delay: 1.3s;
}

/* --- DEKORASI VISUAL MARKA (Watermark Text) --- */
.watermark-pattern {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0.4;
  transform: rotate(-5deg); /* Miringkan sedikit */
  margin-left: -5px;
}

.wm-text {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8); /* Efek outline teks */
  letter-spacing: 2px;
}

.wm-text.fill {
  color: rgba(255, 255, 255, 0.5);
  -webkit-text-stroke: 0;
} /* --- UPDATE WARNA ATSO --- */
/* Gradasi Ungu AI / Intelligence */
.color-14 {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Update Animasi Delay untuk kartu ke-13 & 14 */
.widget-card:nth-child(13) {
  animation-delay: 1.3s;
}
.widget-card:nth-child(14) {
  animation-delay: 1.4s;
}

/* --- DEKORASI VISUAL ATSO (Scanning Laser) --- */
.scan-visual {
  position: relative;
  width: 40px;
  height: 30px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

/* Garis Laser */
.scan-line {
  width: 100%;
  height: 2px;
  background: #00f260; /* Laser Hijau */
  box-shadow: 0 0 5px #00f260;
  position: absolute;
  top: 0;
  animation: scanning 2s infinite ease-in-out;
}

@keyframes scanning {
  0% {
    top: 0%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
/* --- UPDATE WARNA ICOACH --- */
/* Gradasi Magenta / Neon Pink (Communication & AI) */
.color-15 {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* Update Animasi Delay untuk kartu ke-14 & 15 */
.widget-card:nth-child(14) {
  animation-delay: 1.4s;
}
.widget-card:nth-child(15) {
  animation-delay: 1.5s;
}

/* --- DEKORASI VISUAL ICOACH (Audio Equalizer) --- */
.voice-visual {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 25px;
  margin-top: auto;
  opacity: 0.7;
}

.voice-bar {
  width: 4px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transform-origin: bottom;
  animation: equalize 1s infinite alternate ease-in-out;
}

/* Mengatur tinggi dan delay agar gerakannya acak/natural */
.voice-bar:nth-child(1) {
  height: 40%;
  animation-delay: 0.1s;
}
.voice-bar:nth-child(2) {
  height: 100%;
  animation-delay: 0.4s;
}
.voice-bar:nth-child(3) {
  height: 60%;
  animation-delay: 0.2s;
}
.voice-bar:nth-child(4) {
  height: 80%;
  animation-delay: 0.5s;
}
.voice-bar:nth-child(5) {
  height: 30%;
  animation-delay: 0s;
}

@keyframes equalize {
  0% {
    transform: scaleY(0.3);
  }
  100% {
    transform: scaleY(1);
  }
}
/* --- UPDATE WARNA LITERATUR & TEMP MAIL --- */
/* LiteraturSearch (Academic Teal/Mint) */
.color-16 {
  background: linear-gradient(135deg, #1d976c, #93f9b9);
}

/* Temp Mail (Disposable Icy Blue) */
.color-17 {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

/* Update Animasi Delay untuk kartu ke-15, 16, & 17 */
.widget-card:nth-child(15) {
  animation-delay: 1.5s;
}
.widget-card:nth-child(16) {
  animation-delay: 1.6s;
}
.widget-card:nth-child(17) {
  animation-delay: 1.7s;
}

/* --- DEKORASI VISUAL LITERATUR (Mini Search Bar) --- */
.search-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 20px;
  width: 80%;
  opacity: 0.7;
}

.search-visual i {
  font-size: 0.9rem;
  color: #fff;
}

.search-visual .s-line {
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: searchPulse 1.5s infinite ease-in-out;
}

@keyframes searchPulse {
  0% {
    width: 10%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 10%;
  }
}

/* --- DEKORASI VISUAL TEMP MAIL (Expiring Timer Bar) --- */
.temp-mail-visual {
  margin-top: auto;
  width: 85%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.8;
}

.tm-address {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.tm-timer {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.tm-timer-bar {
  height: 100%;
  width: 100%;
  animation: burnDown 4s linear infinite;
}

@keyframes burnDown {
  0% {
    width: 100%;
    background: #00f260;
  }
  70% {
    background: #ffbd2e;
  }
  100% {
    width: 0%;
    background: #ff5f56;
  }
}
