@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@400;500;600;700&display=swap');

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

:root {
  /* Colors - KV Raisha Premium Palette */
  --teal:       #0d9488;
  --teal-dark:  #0f766e;
  --teal-deeper:#134e4a;
  --teal-light: #f0fdfa; /* Softer teal light */
  --teal-accent:#5eead4;
  
  --cream:      #fafaf9; /* Warm stone */
  --stone-50:   #fafaf9;
  --stone-100:  #f5f5f4;
  --stone-200:  #e7e5e4;
  
  --white:      #ffffff;
  --text:       #1c1917;
  --text-soft:  #57534e;
  --text-light: #a8a29e;
  
  --success:    #10b981;
  --danger:     #ef4444;
  --warning:    #f59e0b;
  
  /* Utils */
  --r-sm:       12px;
  --r:          18px;
  --r-lg:       28px;
  --shadow:     0 4px 20px rgba(19, 78, 74, 0.05);
  --shadow-lg:  0 20px 50px rgba(19, 78, 74, 0.12);
  --glass:      rgba(255, 255, 255, 0.85);
  --border:     rgba(19, 78, 74, 0.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--stone-50);
  background-image: 
    radial-gradient(at 0% 0%, rgba(13, 148, 136, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(13, 148, 136, 0.03) 0px, transparent 50%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}
.logo-mark span { font-weight: 700; color: white; font-size: 1.2rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { 
  display: block; 
  font-family: 'DM Serif Display', serif; 
  font-size: 1.4rem; 
  color: var(--teal-deeper);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.logo-text strong span { color: var(--teal); font-style: italic; }
.logo-text small { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-link { 
  text-decoration: none; 
  color: var(--text-soft); 
  font-size: 0.95rem; 
  font-weight: 600; 
  transition: all 0.2s ease;
  position: relative;
}
.nav-link:hover { color: var(--teal); }
.btn-nav {
  background: var(--teal-deeper); color: white;
  padding: 12px 24px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(19, 78, 74, 0.15);
}
.btn-nav:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25); }
.btn-logout { background: var(--stone-200); color: var(--text-soft); box-shadow: none; }
.btn-logout:hover { background: var(--stone-300); color: var(--text); border-color: var(--text-light); }


/* ── MAIN CONTENT ── */
.main-content { padding-top: 120px; min-height: calc(100vh - 100px); }

/* ── STATUS CARD (THE RECEIPT LOOK) ── */
.status-wrap {
  padding: 40px 24px 80px;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}
.status-card {
  background: white;
  width: 100%;
  max-width: 540px;
  border-radius: var(--r-lg);
  padding: 64px 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--stone-100);
}
/* Receipt-like pattern at top */
.status-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 12px;
  background-image: radial-gradient(circle at 6px 0, transparent 6px, white 6px);
  background-size: 12px 12px;
}

.status-icon-wrap {
  width: 88px; height: 88px;
  margin: 0 auto 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.status-icon-wrap svg { width: 44px; height: 44px; }
.status-icon-wrap.paid    { background: #ecfdf5; color: var(--success); }
.status-icon-wrap.pending { background: #fffbeb; color: var(--warning); }
.status-icon-wrap.failed  { background: #fef2f2; color: var(--danger); }

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.status-badge.paid    { background: var(--success); color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); }
.status-badge.pending { background: var(--warning); color: white; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2); }
.status-badge.failed  { background: var(--danger); color: white; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2); }

.status-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--teal-deeper);
  margin-bottom: 12px;
  line-height: 1.2;
}
.status-subtitle {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.status-detail {
  background: var(--stone-50);
  border-radius: var(--r);
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  border: 1px dashed var(--stone-200);
}
.sd-row { display: flex; justify-content: space-between; align-items: center; }
.sd-label { font-size: 0.85rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.sd-val { font-size: 1rem; font-weight: 700; color: var(--teal-deeper); }
.sd-val.price { font-size: 1.3rem; color: var(--teal); font-family: 'DM Serif Display', serif; }

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--stone-100);
  color: var(--text-soft);
  padding: 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid var(--stone-200);
}
.btn-back:hover { background: var(--stone-200); color: var(--text); }
.btn-action-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--teal);
  color: white;
  padding: 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.2);
  margin-bottom: 12px;
}
.btn-action-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(13, 148, 136, 0.3); }

/* ── CHECKOUT OVERHAUL ── */
.checkout-wrap {
  max-width: 1080px; margin: 0 auto;
  padding: 40px 32px 100px;
  display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start;
}
.checkout-form-box {
  background: white; border-radius: var(--r-lg); padding: 56px;
  box-shadow: var(--shadow); border: 1px solid var(--stone-100);
}
.checkout-form-box h2 { font-family: 'DM Serif Display', serif; font-size: 2rem; color: var(--teal-deeper); margin-bottom: 40px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; color: var(--text-light); margin-bottom: 10px; }
.form-group input {
  width: 100%; padding: 16px 20px;
  border: 2px solid var(--stone-100); border-radius: 16px;
  background: var(--stone-50); transition: all 0.2s ease;
  font-size: 1rem; color: var(--text); font-family: inherit;
}
.form-group input:focus { border-color: var(--teal); background: white; box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.08); outline: none; }

.btn-bayar {
  width: 100%; padding: 18px;
  background: var(--teal); color: white; border: none; border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; margin-top: 12px;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.btn-bayar:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(13, 148, 136, 0.3); }
.btn-bayar:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }


.checkout-summary {
  background: linear-gradient(145deg, var(--teal-deeper) 0%, #0f766e 100%);
  border-radius: var(--r-lg); padding: 48px; color: white;
  position: sticky; top: 110px; box-shadow: var(--shadow-lg);
}
.cs-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: var(--teal-accent); margin-bottom: 12px; letter-spacing: 0.1em; }
.cs-name { font-family: 'DM Serif Display', serif; font-size: 1.8rem; margin-bottom: 24px; line-height: 1.2; }
.cs-total-wrap { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; margin-top: 32px; }
.cs-total-label { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.cs-total { font-family: 'DM Serif Display', serif; font-size: 2.8rem; color: white; font-weight: 400; }

/* ── FOOTER ── */
footer {
  background: var(--stone-100);
  border-top: 1px solid var(--border);
  padding: 48px 32px;
  text-align: center;
  margin-top: 0;
}
.footer-wrap p { color: var(--text-light); font-size: 0.95rem; font-weight: 500; }
.footer-wrap strong { color: var(--teal); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .checkout-wrap { grid-template-columns: 1fr; gap: 32px; }
  .checkout-summary { position: static; }
}
@media (max-width: 640px) {
  .nav-wrap { padding: 0 20px; }
  .checkout-form-box { padding: 32px; }
  .status-card { padding: 48px 24px; }
  .status-title { font-size: 1.8rem; }
}
