html { font-size: 15px; }
body {
  font-family: 'Inter', 'Aptos', 'Segoe UI', Arial, sans-serif;
  font-size: 0.96rem; line-height: 1.55; letter-spacing: -0.006em;
  color: var(--charcoal, #373435);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5, h6, .nav-link, .dropdown-toggle, .card-btn,
.dashboard-menu a, .section-kicker, .eyebrow, .step-label {
  font-family: 'Inter', 'Aptos', 'Segoe UI', Arial, sans-serif;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.7rem); line-height: 1.08; font-weight: 850; }
h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.18; font-weight: 820; }
h3 { font-size: 1.06rem; line-height: 1.28; font-weight: 780; }
p, li, td, th, label, input, select, textarea { font-size: 0.94rem; }

.auth-page { background: var(--off-white); }
.auth-hero { padding: 48px 0; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.auth-content h1 { font-size: clamp(2rem, 4.1vw, 3.65rem); }
.auth-card {
  background: var(--white); padding: 36px 32px;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.auth-card h2 { margin: 0 0 24px; }
.auth-card form { display: flex; flex-direction: column; gap: 6px; }
.auth-card .full-btn { width: 100%; margin-top: 10px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.92rem; color: var(--medium-grey); }
.auth-switch a { color: var(--teal); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.responsive-image-card {
  border-radius: var(--radius-sm); overflow: hidden; margin-top: 24px;
}
.responsive-image-card img { width: 100%; height: auto; display: block; }

.dashboard-hero { padding: 48px 0; }
.dashboard-content { padding: 36px 0 44px; }
.dashboard-shell { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.dashboard-sidebar { position: sticky; top: calc(var(--header-height) + 20px); }
.dashboard-menu-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow-soft);
}
.dashboard-menu-card h3 { margin: 0 0 16px; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--medium-grey); }
.dashboard-menu { display: flex; flex-direction: column; gap: 4px; }
.dashboard-menu a {
  display: block; padding: 12px 14px; border-radius: 12px;
  font-size: 0.92rem; font-weight: 650; transition: 0.22s ease;
}
.dashboard-menu a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.dashboard-menu a.active { background: var(--teal); color: var(--white); }
.dashboard-main { min-width: 0; }
.dashboard-panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 28px; margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}
.panel-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; margin-bottom: 20px;
}
.panel-header h2 { margin: 0; }

.card-btn, button.card-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; height: 44px; font-size: 0.88rem;
  padding: 11px 18px; background: var(--charcoal); color: var(--white);
  border-radius: 999px; font-weight: 900; transition: 0.22s ease; cursor: pointer;
  border: none; text-decoration: none; white-space: nowrap;
}
.card-btn:hover { transform: translateY(-1px); }

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="date"],
input[type="time"], input[type="search"], select {
  min-height: 44px; height: 44px; font-size: 0.92rem;
  border-radius: 999px; border: 1px solid var(--border, #e5e7eb);
  padding: 0 18px; outline: none; background: var(--white, #fff);
  color: var(--charcoal, #373435);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%; box-sizing: border-box;
}
input:focus, select:focus {
  border-color: var(--teal, #22abad); box-shadow: 0 0 0 3px rgba(34, 171, 173, 0.15);
}
textarea {
  font-size: 0.92rem; border-radius: 20px;
  border: 1px solid var(--border, #e5e7eb); padding: 14px 18px;
  outline: none; background: var(--white, #fff); color: var(--charcoal, #373435);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%; box-sizing: border-box; resize: vertical;
}
textarea:focus { border-color: var(--teal, #22abad); box-shadow: 0 0 0 3px rgba(34, 171, 173, 0.15); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}

.table-wrapper { overflow-x: auto; border-radius: var(--radius-sm, 12px); border: 1px solid var(--border, #e5e7eb); background: var(--white, #fff); }
.table-wrapper table { width: 100%; border-collapse: collapse; background: var(--white, #fff); }
.table-wrapper thead { background: var(--charcoal, #373435); }
.table-wrapper th { color: var(--white, #fff); font-weight: 700; text-align: left; padding: 16px 18px; font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.table-wrapper td { padding: 14px 18px; border-bottom: 1px solid var(--border, #e5e7eb); font-size: 0.92rem; vertical-align: middle; }
.table-wrapper tbody tr:last-child td { border-bottom: none; }
.table-wrapper tbody tr:hover { background: var(--teal-soft, rgba(34,171,173,0.12)); }

.alert { padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; }
.alert p { margin: 0; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--success); }

.empty-state { padding: 40px; text-align: center; color: var(--medium-grey); }

.status-badge {
  display: inline-flex; padding: 4px 12px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; white-space: nowrap;
}
.status-paid { background: #d1fae5; color: #065f46; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-progress { background: #dbeafe; color: #1e40af; }
.status-neutral { background: var(--light-grey); color: var(--medium-grey); }

.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; text-align: center; box-shadow: var(--shadow-soft); }
.stat-card h4 { margin: 0 0 8px; font-size: 0.88rem; color: var(--medium-grey); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card p { margin: 0; font-size: 2rem; font-weight: 900; color: var(--charcoal-dark); }

.admin-inline-update-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-inline-update-form select { min-height: 36px; height: 36px; font-size: 0.82rem; padding: 0 32px 0 12px; width: auto; }
.admin-inline-update-form .card-btn { min-height: 36px; height: 36px; font-size: 0.82rem; padding: 0 14px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }

@media (max-width: 920px) {
  .auth-grid { grid-template-columns: 1fr; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .dashboard-stats { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 0; }
  .auth-card { padding: 24px 18px; }
}
