:root {
  --brand: #06b6d4;
  --brand-2: #0891b2;
  --brand-3: #22d3ee;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --danger: #ef4444;
  --card: #ffffff;
  --tint: #ecfeff;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(900px 500px at 50% -180px, #cffafe 0%, rgba(207, 250, 254, 0) 70%),
    linear-gradient(180deg, #f3fdff 0%, #f8fafc 100%);
}

/* =========================
   WRAPPER
========================= */
.wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

/* =========================
   CARD (FIX FLEX LAYOUT)
========================= */
.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 26px;
  padding: 40px 30px 34px;
  box-shadow:
    0 30px 60px -25px rgba(8, 145, 178, 0.35),
    0 10px 24px -16px rgba(15, 23, 42, 0.25);

  display: flex;
  flex-direction: column;

  animation: rise 0.45s ease-out both;
  will-change: transform, opacity;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   BADGE
========================= */
.badge {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 24px -8px rgba(8, 145, 178, 0.5);
}

.badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   TYPO
========================= */
h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-accent {
  color: var(--brand-2);
}

.tagline {
  margin: 8px 0 26px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* =========================
   SEARCH
========================= */
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  transition: 0.2s ease;
}

.search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

.search .icon {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px; /* FIX MOBILE ZOOM */
  background: transparent;
  color: var(--ink);
}

.search input::placeholder {
  color: #94a3b8;
}

.search button {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  box-shadow: 0 10px 18px -8px rgba(8, 145, 178, 0.6);
  transition: 0.15s ease;
  user-select: none;
}

.search button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.search button:active {
  transform: scale(0.98);
}

/* =========================
   INFO BOX
========================= */
.info {
  margin-top: 26px;
  background: var(--tint);
  border: 1px solid #cffafe;
  border-radius: 18px;
  padding: 22px 20px;
  text-align: left;
}

/* =========================
   FOOTER (FIX PALING PENTING)
========================= */
.card-footer {
  margin-top: auto; /* 🔥 INI YANG NGE-LOCK KE BAWAH */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: #94a3b8;
  padding-top: 18px;
}

.card-footer a {
  color: var(--brand-2);
  font-weight: 600;
  text-decoration: none;
}

.card-footer a:hover {
  text-decoration: underline;
}

/* =========================
   FOOTER OLD CLASS (SAFE REMOVE)
========================= */
.footer {
  display: none;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 480px) {
  .card {
    padding: 30px 18px;
    border-radius: 20px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .search button {
    padding: 12px 18px;
  }
}