:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---- Navbar ---- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-main { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: 0.5px; }
.brand-sub { font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; }
.menu-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
  padding: 90px 0 70px;
  text-align: center;
}
.hero h1 { font-size: 44px; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.5px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trust-badges { margin-top: 40px; display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; color: var(--text-muted); font-size: 14px; font-weight: 600; }

/* ---- Sections ---- */
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 32px; font-weight: 800; margin: 0 0 10px; }
.section-title p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* ---- Cards / grid ---- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.service-card h3 { margin: 0 0 6px; font-size: 17px; }
.service-card .price { color: var(--primary); font-weight: 800; font-size: 20px; margin: 10px 0; }
.service-card .cat-tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }

.pricing-card { text-align: center; border: 2px solid var(--border); }
.pricing-card.featured { border-color: var(--primary); position: relative; }
.pricing-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 20px; }
.pricing-card .amount { font-size: 34px; font-weight: 800; color: var(--primary); margin: 14px 0; }
.pricing-card ul { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.pricing-card ul li { padding: 6px 0; color: var(--text-muted); font-size: 14.5px; }
.pricing-card ul li:before { content: "✓ "; color: var(--success); font-weight: 800; }

.step-card { text-align: center; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin: 0 auto 14px; }

/* ---- Forms ---- */
.auth-wrap { max-width: 420px; margin: 60px auto; padding: 0 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14.5px; background: #fff; color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }
select.form-control { cursor: pointer; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #bfdbfe; }

/* ---- Dashboard layout ---- */
.app-shell { display: flex; min-height: calc(100vh - 68px); }
.sidebar {
  width: 230px; background: var(--white); border-right: 1px solid var(--border);
  padding: 24px 14px; flex-shrink: 0;
}
.sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px;
  color: var(--text); font-weight: 500; font-size: 14.5px; margin-bottom: 4px;
}
.sidebar a:hover, .sidebar a.active { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.main-content { flex: 1; padding: 30px; max-width: 100%; overflow-x: auto; }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat-card .label { color: var(--text-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.stat-card .value { font-size: 28px; font-weight: 800; margin-top: 8px; }

.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
table th { background: #f1f5f9; text-align: left; padding: 12px 16px; font-weight: 700; color: var(--text-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
table td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
table tr:hover td { background: #fafbfc; }

.status-pill { display: inline-block; padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-Pending { background: #fef9c3; color: #854d0e; }
.status-Processing { background: #dbeafe; color: #1d4ed8; }
.status-In.progress, .status-In { background: #dbeafe; color: #1d4ed8; }
.status-Completed { background: #dcfce7; color: #166534; }
.status-Partial { background: #ffedd5; color: #9a3412; }
.status-Canceled { background: #f3f4f6; color: #4b5563; }
.status-Refunded { background: #ede9fe; color: #6d28d9; }
.status-Failed { background: #fee2e2; color: #b91c1c; }

.filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filters a, .filters button { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.filters a.active, .filters button.active { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }

footer { background: #0f172a; color: #cbd5e1; padding: 46px 0 26px; margin-top: 60px; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
footer a { color: #94a3b8; }
footer .bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #1e293b; font-size: 13px; color: #64748b; }

.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-size: 24px; font-weight: 800; margin: 0; }
.muted { color: var(--text-muted); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

@media (max-width: 860px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; display: flex; overflow-x: auto; padding: 12px; }
  .sidebar a { white-space: nowrap; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  footer .container { flex-direction: column; }
}
