:root {
  --bg: #2b3327;
  --surface: #3a4735;
  --surface-hover: #455340;
  --border: #56654f;
  --text: #e6e6e6;
  --muted: #bac8b1;
  --accent: #7b9669;
  --accent-hover: #6c8480;
  --accent-text: #bac8b1;
}

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

body {
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }

/* Header / Nav */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--text);
}

nav h1 {
  color: var(--accent-text);
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  cursor: pointer;
}

/* Layout */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
  width: 100%;
}

/* Hero */
.hero {
  text-align: center;
  max-width: 1200px;
  margin: 56px auto 48px;
  padding: 64px 24px;
  background: radial-gradient(circle at top, rgba(123, 150, 105, 0.16), transparent 60%), var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}

.hero h2 {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero .btn {
  padding: 12px 28px;
  background: var(--accent);
  color: #05201d;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s;
  display: inline-block;
}

.hero .btn:hover {
  background: var(--accent-hover);
}

/* Section headings */
section h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 48px 0 4px;
}

.category-title,
.Service_Price h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 40px 0 18px;
}

.subhead {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-text);
  margin: 24px 0 14px;
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
  padding: 0;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.2s, background 0.2s;
}

.service-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.service-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Price grid + cards */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  margin: 0 0 16px;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.2s, background 0.2s;
}

.price-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.price-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.price-card-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.price-card .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-text);
  white-space: nowrap;
}

.price-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 6px;
}

.price-card .btn {
  margin-top: 16px;
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: #05201d;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}

.price-card .btn:hover {
  background: var(--accent-hover);
}

/* Notes / requirements */
.notes {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 16px 0 8px;
}

.notes h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.notes p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}

.notes ul {
  margin: 0;
  padding-left: 20px;
}

.notes li {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

.notes li::marker {
  color: var(--accent-text);
}

/* Guides section */
.guides-list {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.guide-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.2s, background 0.2s;
}

.guide-item:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.guide-item h2 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.guide-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.guide-item a {
  color: var(--accent-text);
}

/* Contact */
.contact-section {
  text-align: center;
  padding: 32px 0;
}

.contact-section p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #05201d;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  width: 100%;
}

/* Checkout */
.checkout-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 20px;
  max-width: 900px;
}

.checkout-page h2 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 20px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.summary-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.summary-card > p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.summary-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-text);
}

/* Form */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.field-error {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 2px;
}

.disclaimer {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-icon {
  font-size: 3rem;
  color: #4ade80;
  margin-bottom: 12px;
}

.modal-content h2 {
  color: #fff;
  margin-bottom: 8px;
}

.modal-content p {
  color: var(--muted);
  margin-bottom: 20px;
}

.order-id-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 24px;
}

.order-id-box strong {
  color: var(--accent-text);
}

.hidden { display: none !important; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(123, 150, 105, 0.27);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: toast-in 0.3s ease;
  max-width: 360px;
}
.toast-error { background: #dc2626; }
.toast-success { background: #16a34a; }
.toast-info { background: var(--accent); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Order Status Page */
.order-status-page {
  padding: 40px 20px;
  max-width: 600px;
}

.order-status-page h2 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 20px;
}

.order-lookup {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.order-lookup input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

.order-lookup input:focus { border-color: var(--accent); }

.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.order-card h3 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.order-detail {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.order-detail:last-child { border-bottom: none; }

.order-detail span:first-child { color: var(--muted); }
.order-detail span:last-child { color: var(--text); }

.status-pending { color: #fbbf24; }
.status-progress { color: #60a5fa; }
.status-completed { color: #4ade80; }
.status-expired { color: #f87171; }

.error { color: #f87171; }

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.back-link:hover { text-decoration: underline; }

.lookup-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.tab-btn { padding: 10px 20px; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.9rem; font-weight: 500; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent-text); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
#auto-refresh-indicator { font-size: 0.8rem; color: #60a5fa; margin-top: 8px; }

/* Timeline */
.timeline { position: relative; padding-left: 24px; margin-top: 12px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-dot { position: absolute; left: -18px; top: 4px; width: 10px; height: 10px; border-radius: 50%; }
.timeline-dot.status-completed { background: #4ade80; }
.timeline-dot.status-progress { background: #60a5fa; }
.timeline-dot.status-expired { background: #f87171; }
.timeline-content { font-size: 0.85rem; color: var(--text); }
.timeline-content p { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.timeline-date { font-size: 0.75rem; color: #888; display: block; margin-top: 2px; }

/* Admin */
.admin-page { padding: 40px 20px; max-width: 1200px; }
.admin-page h2 { color: #fff; margin-bottom: 24px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.admin-toolbar span { color: var(--muted); font-size: 0.9rem; }
.admin-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-filters select, .admin-filters input { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--text); font-size: 0.85rem; outline: none; }
.admin-filters select:focus, .admin-filters input:focus { border-color: var(--accent); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; padding: 12px; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 600; }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.admin-table tr:hover td { background: var(--surface); }
.admin-table .status-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.status-pending-bg { background: #fbbf2422; color: #fbbf24; }
.status-claimed-bg, .status-in-progress-bg { background: #60a5fa22; color: #60a5fa; }
.status-completed-bg { background: #4ade8022; color: #4ade80; }
.status-expired-bg { background: #f8717122; color: #f87171; }
.admin-table .action-btn { padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; border: none; font-weight: 600; margin-right: 4px; }
.admin-table code { color: var(--accent-text); }
.pagination-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 16px; }
.pagination-controls button:disabled { opacity: 0.4; cursor: not-allowed; }
#pagination-info { color: var(--muted); font-size: 0.85rem; }

#login-form { max-width: 400px; }
#login-form .form-group { margin-bottom: 12px; }
#login-form input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; color: var(--text); font-size: 0.9rem; outline: none; }
#login-form input:focus { border-color: var(--accent); }

#orders-table-wrapper { overflow-x: auto; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--accent-text); }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 200px; padding: 16px 0; overflow-x: auto; }
.bar-item { display: flex; flex-direction: column; align-items: center; min-width: 36px; }
.bar-track { width: 28px; height: 150px; background: var(--border); border-radius: 4px 4px 0 0; position: relative; }
.bar-fill { position: absolute; bottom: 0; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; transition: height 0.3s; }
.bar-label { font-size: 0.7rem; color: #888; margin-top: 4px; }
.bar-value { font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }

/* Footer */
footer {
  margin-top: auto;
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  padding: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .checkout-page {
    grid-template-columns: 1fr;
  }

  .hero h1, .hero h2 { font-size: 1.8rem; }
  .price-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }

  nav ul { gap: 14px; }
  nav a { font-size: 13px; }
}
