* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f6fa;
  color: #1f2430;
}

a {
  color: #0f766e;
}

/* Hero landing (halaman utama sebelum login) */
.hero-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
  z-index: 2;
}

.hero-navbar-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.hero-landing {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 20px 60px;
  overflow: hidden;
  background-color: #0a4741;
  /* Layer 1 (paling atas): gradient warna brand — juga jadi "tint" di atas logo di layer 3.
     Layer 2: pola geometris halus (garis diagonal tipis) — tekstur, bukan gambar.
     Layer 3 (paling belakang): logo, sangat transparan, cuma jadi watermark latar. */
  background-image:
    linear-gradient(160deg, rgba(8, 46, 42, 0.94) 0%, rgba(15, 118, 110, 0.9) 55%, rgba(10, 71, 65, 0.95) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0, rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 28px),
    url('/images/logo-ckrukuk.png');
  background-size: cover, auto, 50% auto;
  background-position: center, center, center 42%;
  background-repeat: no-repeat, repeat, no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.hero-headline {
  color: #fff;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.hero-subtext {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0 0 36px;
}

.hero-cta {
  display: inline-block;
  padding: 15px 42px;
  border-radius: 999px;
  background: #fff;
  color: #0f766e;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.hero-cta:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

@media (max-width: 480px) {
  .hero-navbar {
    padding: 18px 20px;
  }
  .hero-landing {
    padding: 90px 20px 50px;
  }
  .hero-headline {
    font-size: 2rem;
  }
  .hero-subtext {
    font-size: 1rem;
    margin-bottom: 28px;
  }
  .hero-cta {
    padding: 13px 34px;
    font-size: 1rem;
  }
}

/* Nav bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.navbar .brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f766e;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: #1f2430;
}

.nav-links a:hover {
  color: #0f766e;
}

.nav-balance {
  font-weight: 600;
  color: #0f766e;
}

.inline-form {
  display: inline;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #1f2430;
  cursor: pointer;
}

.link-button:hover {
  color: #0f766e;
}

/* Hero (homepage) */
.hero {
  background: #0f766e;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.hero p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.container-narrow {
  max-width: 560px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Product catalog */
.category {
  margin-bottom: 36px;
}

.category h2 {
  font-size: 1.25rem;
  border-left: 4px solid #0f766e;
  padding-left: 10px;
  margin-bottom: 12px;
}

.operator-group {
  margin-bottom: 22px;
}

.operator-group h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}

.pln-pascabayar-cta {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-top: 8px;
}

.pln-pascabayar-cta h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #1f2430;
  text-transform: none;
  letter-spacing: normal;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.product-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.product-card:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.product-card .name {
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card .product-desc {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-intro {
  text-align: center;
  color: #4b5563;
  font-size: 0.95rem;
  margin: 0 0 24px;
}

.product-card .price {
  color: #0f766e;
  font-weight: 700;
  margin-bottom: 10px;
}

.empty {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Cards & forms */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
}

.hint {
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: -8px;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: #0f766e;
  color: #fff;
}

.btn-primary:hover {
  background: #0d5f58;
}

.btn-secondary {
  background: #e5e7eb;
  color: #1f2430;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eef0f3;
  font-size: 0.9rem;
}

.table th {
  background: #f9fafb;
  font-weight: 600;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.detail-table th,
.detail-table td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid #eef0f3;
  font-size: 0.9rem;
}

.detail-table th {
  width: 40%;
  color: #6b7280;
  font-weight: 600;
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-paid,
.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-unpaid,
.badge-pending,
.badge-processing {
  background: #fef9c3;
  color: #854d0e;
}

.badge-failed,
.badge-expired {
  background: #fee2e2;
  color: #991b1b;
}

.badge-refunded {
  background: #e0e7ff;
  color: #3730a3;
}

/* Footer */
footer {
  background: #1f2430;
  color: #e5e7eb;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9rem;
}

footer p {
  margin: 4px 0;
}
