:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --coral: #fb7185;
  --coral-dark: #e11d48;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: linear-gradient(135deg, var(--teal) 0%, var(--coral) 100%);
  color: white;
  padding: 1.25rem 0;
  box-shadow: var(--shadow);
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 1.5rem; font-weight: 700; text-decoration: none; color: white; display: flex; align-items: center; gap: .5rem; }
.brand .dot { width: 10px; height: 10px; background: white; border-radius: 50%; display: inline-block; }
.header nav a { color: rgba(255,255,255,.9); text-decoration: none; margin-left: 1rem; font-size: .9rem; }
.header nav a:hover { color: white; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; width: 100%; }

main { flex: 1; padding: 2rem 0 3rem; }

.hero { text-align: center; margin-bottom: 2.5rem; }
.hero h1 { font-size: 2rem; margin: 0 0 .5rem; }
.hero p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.package-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.package-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.package-card h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.package-card .duration { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.package-card .desc { color: var(--muted); font-size: .85rem; margin-bottom: 1.25rem; flex: 1; }
.package-card .price { font-size: 1.6rem; font-weight: 700; color: var(--teal-dark); }
.package-card .price small { color: var(--muted); font-size: .75rem; font-weight: 500; margin-left: .25rem; }
.package-card .btn { margin-top: 1rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 0 auto;
}
.card h2 { margin: 0 0 1.5rem; font-size: 1.5rem; }

.summary {
  background: linear-gradient(135deg, rgba(13, 148, 136, .08), rgba(251, 113, 133, .08));
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.summary .row { display: flex; justify-content: space-between; align-items: center; }
.summary .name { font-weight: 600; }
.summary .price { font-size: 1.4rem; font-weight: 700; color: var(--teal-dark); }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .35rem; }
.form-group input {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, .15);
}
.form-group .hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

.btn {
  display: inline-block;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 8px;
  padding: .8rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  font-family: inherit;
}
.btn:hover { background: var(--teal-dark); }
.btn-block { width: 100%; }
.btn-secondary { background: white; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg); }

.alert {
  padding: .9rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-info  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.voucher-box {
  background: linear-gradient(135deg, var(--teal) 0%, var(--coral) 100%);
  color: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 1.5rem 0;
}
.voucher-box .label { text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; opacity: .9; margin-bottom: .5rem; }
.voucher-box .code {
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: .15em;
  margin: .25rem 0 .75rem;
  word-break: break-all;
}
.voucher-box .expires { font-size: .85rem; opacity: .9; }

.status-badge {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.status-SUCCESS  { background: #dcfce7; color: var(--success); }
.status-PENDING  { background: #fef9c3; color: #a16207; }
.status-FAILED   { background: #fee2e2; color: var(--danger); }
.status-CANCELLED{ background: #f1f5f9; color: var(--muted); }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
th { background: var(--bg); font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; }
tr:last-child td { border-bottom: none; }
code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-size: .85em; }

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  .card { padding: 1.5rem 1.25rem; }
  .voucher-box .code { font-size: 1.6rem; }
}
