* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #fff; color: #333; }
a { color: #0d6b2c; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: #0d6b2c;
  color: #fff;
  padding: 1.25rem 1rem;
  text-align: center;
}
.site-header h1 { margin: 0 0 0.25rem; font-size: 1.5rem; font-weight: 700; }
.site-header .tagline { margin: 0; font-size: 0.875rem; opacity: 0.95; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  justify-content: center;
  border-bottom: 1px solid #e8e8e8;
}
.filters button {
  padding: 0.5rem 1rem;
  border: 1px solid #b8e0c4;
  background: #fff;
  color: #0d6b2c;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.filters button:hover { background: #e8f5ec; }
.filters button.active { background: #0d6b2c; color: #fff; border-color: #0d6b2c; }

/* Package grid */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .packages {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
  }
}
.package-card {
  border: 1px solid #b8e0c4;
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}
@media (max-width: 768px) {
  .package-card {
    padding: 0.75rem;
    min-height: 120px;
  }
  .package-card .title { font-size: 0.95rem; }
  .package-card .desc { font-size: 0.75rem; }
  .package-card .price { font-size: 1.1rem; }
  .package-card .btn-buy { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
}
.package-card .tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #d4f0dc;
  color: #0d6b2c;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
}
.package-card .title { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.25rem; }
.package-card .desc { font-size: 0.8rem; color: #666; margin: 0 0 0.75rem; flex: 1; }
.package-card .row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.package-card .price { font-size: 1.25rem; font-weight: 700; color: #0d6b2c; }
.package-card .btn-buy {
  background: #0d6b2c;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.package-card .btn-buy:hover { background: #0a5522; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.875rem;
  color: #666;
  border-top: 1px solid #e8e8e8;
  margin-top: 2rem;
}

/* Payment modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-header {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 { margin: 0; font-size: 1.1rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
}
.modal-body { padding: 1rem; overflow-y: auto; flex: 1; }
.modal-body .form-group { margin-bottom: 0.75rem; }
.modal-body label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.modal-body input[type="tel"],
.modal-body input[type="text"],
.modal-body input[type="email"] { width: 100%; padding: 0.5rem; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; }
.modal-body .radio-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.modal-body .radio-label { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; cursor: pointer; margin-bottom: 0; }
.modal-body .radio-label input[type="radio"] { width: auto; margin: 0; }
.modal-body .btn-submit {
  width: 100%;
  padding: 0.75rem;
  background: #0d6b2c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
}
.modal-body .btn-submit:hover { background: #0a5522; }
.modal-body .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Iframe step */
.payment-iframe-wrap {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
}
.payment-iframe-wrap.open { display: flex; }
.payment-form-wrap { display: flex; flex-direction: column; }
.payment-form-wrap.hide { display: none; }
.payment-iframe-wrap iframe {
  width: 100%;
  flex: 1;
  min-height: 450px;
  border: none;
  border-radius: 0 0 12px 12px;
}

/* Callback / success message */
.callback-msg { padding: 1rem; text-align: center; }
.callback-msg.success { color: #0d6b2c; }
.callback-msg.error { color: #c00; }

/* Admin */
.admin-page { max-width: 800px; margin: 0 auto; padding: 1rem; }
.admin-page h1 { color: #0d6b2c; }
.admin-actions { margin-bottom: 1rem; }
.admin-actions a, .admin-actions button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #0d6b2c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}
.admin-actions a.secondary, .admin-actions button.secondary { background: #666; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.admin-table th, .admin-table td { padding: 0.5rem; text-align: left; border-bottom: 1px solid #eee; }
.admin-table th { background: #f5f5f5; }
.admin-form .form-group { margin-bottom: 0.75rem; }
.admin-form label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.admin-form input, .admin-form select { width: 100%; max-width: 400px; padding: 0.5rem; border: 1px solid #ccc; border-radius: 6px; }
.admin-form button[type=submit] { padding: 0.5rem 1rem; background: #0d6b2c; color: #fff; border: none; border-radius: 8px; cursor: pointer; }
