  /* Reset dasar */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }

  body {
    background: #f0f0f0;
  }

  /* Header */
  header {
    background: linear-gradient(90deg, #004e92, #000428);
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;   /* <-- ini bikin semua elemen center vertikal */
    padding: 10px 40px;
  }

  .header-left {
    display: flex;
    align-items: center;   /* logo & teks di kiri sejajar tengah */
    gap: 10px;
  }

  .header-left img {
    height: 50px;
  }

  .header-left h1 {
    font-size: 20px;
    line-height: 1.2;      /* kecilkan biar lebih rapi */
    margin: 0;
  }

  .logo-kanan {
    height: 50px;
  }


  /* Main */
  main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px; /* jarak antar kolom */
    padding: 40px 60px;
    background: linear-gradient(135deg, #4facfe 0%, #43e97b 100%);
    min-height: calc(100vh - 70px);
    position: relative;}

    .left {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .left img {
      height: 280px;
      margin-bottom: 15px;
      animation: trukMasuk 1.2s ease-out forwards;
    }

    .left h2 {
      font-size: 50px;
      color: #FFA500;
      font-weight: bold;
      text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    }

    .left p {
      font-size: 28px;
      color: #FFA500;
      font-weight: bold;
      text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
      text-align: center;
    }

    .right {
      flex: 1;
      color: white;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      position: relative;
      max-width: 500px; /* batas agar teks tidak melebar */
    }

    .right p {
      font-size: 20px;
      line-height: 1.7;
      text-align: justify;
      margin-bottom: 30px;
      font-style: italic;
      text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    }

    .buttons {
      display: flex;
      flex-direction: column;
      gap: 15px;
      max-width: 280px;
      margin-bottom: 120px; /* ruang untuk karikatur */
    }

  /* Tombol */
  .btn {
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    color: white !important;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  }


  .btn-darkblue {
    background: linear-gradient(90deg, #004e92, #000428);
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  }

  .btn:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
  }

  .btn:active {
    transform: scale(0.95) !important;
  }

  /* ===================== TOMBOL GRADIENT KHUSUS ===================== */

  /* Base untuk semua tombol gradient */
  .btn.btn-gradient,
  .btn.btn-gradient-blue,
  .btn.btn-gradient-red {
    border: none !important;
    padding: 12px 22px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 15px;
    color: #fff !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  /* Efek umum hover */
  .btn.btn-gradient:hover,
  .btn.btn-gradient-blue:hover,
  .btn.btn-gradient-red:hover {
    transform: scale(1.08);
  }

  /* Gradient biru → cocok untuk aksi utama (misalnya: salin token) */
  .btn-gradient-blue {
    background: linear-gradient(90deg, #667eea, #764ba2);
  }
  .btn-gradient-blue:hover {
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
  }

  /* Gradient merah → cocok untuk aksi batal / kembali */
  .btn-gradient-red {
    background: linear-gradient(90deg, #ff512f, #dd2476);
  }
  .btn-gradient-red:hover {
    box-shadow: 0 0 15px rgba(255, 81, 47, 0.6);
  }

  /* Opsional: gradient hijau–ungu untuk variasi lain */
  .btn-gradient {
    background: linear-gradient(135deg, #1e88e5, #8e24aa);
  }
  .btn-gradient:hover {
    box-shadow: 0 0 15px rgba(142, 36, 170, 0.6);
  }


  .karikatur {
    position: fixed;
    bottom: 0px;   /* jarak dari bawah layar */
    right: 0px;    /* jarak dari kanan layar */
    z-index: 1000;  /* supaya selalu di atas elemen lain */
  }

  .karikatur img {
    height: 450px;
    width: auto;
  }


  /* Animasi truk */
  @keyframes trukMasuk {
    from {
      transform: translateX(-200px);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  /* ===================== Tablet (768px – 1023px) ===================== */
  @media (min-width: 768px) and (max-width: 1023px) {
    main {
      padding: 30px 50px; /* sedikit lebih rapat */
    }

    .left img {
      height: 110px; /* dari 120px → 110px */
    }

    .left h2 {
      font-size: 44px; /* dari 50px → 44px */
    }

    .left p {
      font-size: 18px; /* dari 28px → 24px */
    }

    .right p {
      font-size: 22px; /* dari 24px → 22px */
      line-height: 1.6;
    }

    .buttons {
      gap: 12px;
      max-width: 250px;
    }

    .btn {
      padding: 13px;
      font-size: 15px;
    }

    .karikatur img {
      height: 140px; /* sedikit lebih kecil dari PC (150px) */
    }
  }


  /* Responsive */
  @media (max-width: 736px) {
    main {
      flex-direction: column;
      text-align: center;
      padding: 20px;
    }

    .right {
      align-items: center;
      width: 100%;
    }

    .right p {
      text-align: center;
    }

    .buttons {
      flex-direction: column;
      gap: 15px;
      margin-bottom: 20px;
    }

    /* Karikatur hilang di HP */
    .karikatur {
      display: none !important;
    }

    /* Perkecil font header */
    .header-left h1 {
      font-size: 16px;
      line-height: 1.2;
    }
  }

  .form-wrapper {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .text-gradient {
    background: linear-gradient(135deg, #1e88e5, #43a047);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .btn-gradient {
    background: linear-gradient(135deg, #1e88e5, #8e24aa);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
  }
  .btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(142, 36, 170, 0.4);
  }

  .btn-cancel {
    background: linear-gradient(135deg, #9e9e9e, #616161);
    color: #fff;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .btn-cancel:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
  }

  /* Gradient text */
  .text-gradient {
    background: linear-gradient(45deg, #007bff, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Animasi masuk */
  .animate-fade-in { animation: fadeInUp 0.6s ease-in-out; }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Animasi token */
  .animate-pop { animation: popIn 0.5s ease-in-out; }
  @keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
  }

  /* Toast */
  .copy-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #198754;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: fadeInOut 2s ease-in-out forwards;
  }
  @keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(20px); }
  }

  /* === Tracking Form Custom Style === */
  .tracking-wrapper {
    min-height: 100vh; /* isi minimal layar penuh */
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #4facfe, #43e97b); /* biar nyatu sama bg */
    padding: 10px; /* biar aman di layar kecil */
    margin: 0;
  }

  /* Card tracking */
  .tracking-progress {
    position: relative;
    width: 100%;
    margin: 15px auto 20px;
  }

  .tracking-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 4px;
    transform: translateY(-50%);
    z-index: 1;
  }

  .tracking-line-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 6px;
    background: #3498db;
    border-radius: 4px;
    transform: translateY(-50%);
    z-index: 2;
  }

  .tracking-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
  }

  .tracking-step {
    text-align: center;
    width: 25%;
    position: relative;
  }

  /* Bulatan node */
  .tracking-step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: #ddd;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
  }

  .tracking-step.active::before,
  .tracking-step.completed::before {
    background: #3498db;
  }

  /* Icon di tengah bulatan */
  .tracking-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: #fff;
    z-index: 5;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Label di bawah */
  .tracking-label {
    margin-top: 120px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
  }

  /* Animasi pulse untuk step aktif */
  .tracking-step.active::before {
    animation: pulse 1.5s infinite;
  }

  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
  }
  /* Wrapper background */
  .tracking-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
  }

  /* Card Style */
  .tracking-card {
    background: rgba(255, 255, 255, 0.97); 
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 16px;
    padding: 36px 30px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.15);
    text-align: center;
    max-width: 450px;
    width: 100%;
    animation: fadeInUp 0.6s ease-in-out;
  }

  /* Gradient Text */
  .text-gradient {
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Input */
  .input-group .form-control {
    border-radius: 30px 0 0 30px;
    padding: 12px 18px;
    font-size: 15px;
  }

  .input-group-text {
    border-radius: 30px 0 0 30px;
    background: #fff;
    border: none;
    font-size: 16px;
    color: #555;
  }

  /* Button */
  .btn-gradient-blue {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0;
    padding: 12px 24px;
    font-weight: 600;
    transition: 0.3s ease;
  }

  .btn-gradient-blue:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 18px rgba(79, 172, 254, 0.6);
  }

  /* Animation */
  @keyframes fadeInUp {
    from {opacity: 0; transform: translateY(30px);}
    to {opacity: 1; transform: translateY(0);}
  }

/* ================= MEDIA QUERY LENGKAP ================= */

/* -------- Tablet (768px – 1023px) -------- */
@media (min-width: 768px) and (max-width: 1023px) {
  /* MAIN / HALO ARTIS */
  main {
    flex-direction: column;
    padding: 30px 40px;
  }
  .left img {
    height: 180px;
  }
  .left h2 {
    font-size: 40px;
  }
  .left p {
    font-size: 22px;
  }
  .right p {
    font-size: 20px;
    line-height: 1.5;
  }
  .buttons {
    max-width: 250px;
    gap: 12px;
    margin-bottom: 100px;
  }
  .btn {
    font-size: 15px;
    padding: 12px;
  }
  .karikatur img {
    height: 200px;
  }

  /* FORM PERMOHONAN */
  .form-wrapper {
    padding: 30px 20px;
  }
  .form-wrapper .form-floating input,
  .form-wrapper .form-floating textarea {
    font-size: 15px;
  }
  .btn-cancel, .btn-gradient {
    font-size: 14px;
    padding: 10px 18px;
  }

  /* VIEW TOKEN */
  .card-body h1 {
    font-size: 48px;
  }
  .btn-gradient-blue, .btn-gradient-red {
    font-size: 14px;
    padding: 10px 20px;
  }

  /* FORM LACAK & HASIL LACAK */
  .tracking-card {
    padding: 30px 24px;
    max-width: 400px;
  }
  .tracking-wrapper {
    padding: 10px;
  }
  .tracking-line-fill {
    height: 5px;
  }
  .tracking-step::before {
    width: 60px;
    height: 60px;
  }
  .tracking-icon {
    font-size: 28px;
    width: 60px;
    height: 60px;
  }
  .tracking-label {
    margin-top: 90px;
    font-size: 13px;
  }
}

/* -------- Mobile / HP (max-width: 767px) -------- */
@media (max-width: 767px) {
  /* MAIN / HALO ARTIS */
  main {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }
  .left img {
    height: 140px;
  }
  .left h2 {
    font-size: 32px;
  }
  .left p {
    font-size: 18px;
  }
  .right p {
    font-size: 16px;
    line-height: 1.4;
  }
  .buttons {
    max-width: 220px;
    gap: 10px;
    margin-bottom: 60px;
  }
  .btn {
    font-size: 14px;
    padding: 10px;
  }
  .karikatur {
    display: none;
  }

  /* FORM PERMOHONAN */
  .form-wrapper {
    padding: 20px 15px;
  }
  .form-wrapper .form-floating input,
  .form-wrapper .form-floating textarea {
    font-size: 14px;
  }
  .btn-cancel, .btn-gradient {
    font-size: 13px;
    padding: 8px 16px;
  }

  /* VIEW TOKEN */
  .card-body h1 {
    font-size: 36px;
  }
  .btn-gradient-blue, .btn-gradient-red {
    font-size: 13px;
    padding: 8px 18px;
  }

  /* FORM LACAK & HASIL LACAK */
  .tracking-card {
    padding: 25px 20px;
    max-width: 350px;
  }
  .tracking-wrapper {
    padding: 5px;
  }
  .tracking-line-fill {
    height: 4px;
  }
  .tracking-step::before {
    width: 50px;
    height: 50px;
  }
  .tracking-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
  }
  .tracking-label {
    margin-top: 100px;
    font-size: 12px;
  }

  /* Header */
  .header-left h1 {
    font-size: 16px;
    line-height: 1.2;
  }
  header {
    padding: 10px 20px;
  }
  .header-left img, .logo-kanan {
    height: 40px;
  }
}
