/* ─── Host25Cent v2.0 — Unified Design System ─────────────────────── */
/* ONE design language for public, client, and admin. Top nav only.    */

/* ─── Reset & Variables ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-50: #eff6ff;
  --accent: #0ea5e9;
  --success: #10b981;
  --success-bg: #d1fae5;
  --success-text: #065f46;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --danger-text: #991b1b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nav-height: 64px;
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--nav-height);
}
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { color: var(--gray-600); }
small, .text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-muted { color: var(--gray-500); }

/* ─── Top Navigation (Unified) ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  box-shadow: var(--shadow-xs);
}
.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-right: 2rem;
  flex-shrink: 0;
}
.nav-logo img { height: 28px; }
.nav-logo:hover { color: var(--gray-900); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
}
.nav-menu a {
  padding: .5rem .85rem;
  border-radius: var(--radius);
  color: var(--gray-600);
  font-size: .875rem;
  font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
}
.nav-menu a:hover { background: var(--gray-100); color: var(--gray-900); }
.nav-menu a.active { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.nav-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem .35rem .35rem;
  border-radius: 999px;
  background: var(--gray-100);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.nav-user:hover { background: var(--gray-200); }
.nav-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .75rem;
}
.nav-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--gray-600);
  cursor: pointer;
  padding: .5rem;
}

/* Mobile drawer - slides from left */
.mobile-menu {
  position: fixed;
  top: 0; bottom: 0; left: -280px;
  width: 280px;
  z-index: 2000;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: left .3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-menu.open { left: 0; }
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 1999;
  background: rgba(0,0,0,.4);
  display: none;
}
.mobile-menu-overlay.open { display: block; }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-height);
}
.mobile-menu-logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.1rem; }
.mobile-menu-logo img { height: 28px; }
.mobile-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-500); padding: .5rem; }
.mobile-close:hover { color: var(--gray-900); }
.mobile-menu-links {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.mobile-menu-links a {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem; border-radius: var(--radius);
  color: var(--gray-700); font-size: 1rem; font-weight: 500;
  margin-bottom: .15rem;
}
.mobile-menu-links a:hover { background: var(--gray-100); }
.mobile-menu-links a.active { background: var(--primary-50); color: var(--primary); }
.mobile-menu-links .nav-drawer-section {
  color: var(--gray-400); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .05em; padding: 1.25rem 1rem .35rem; font-weight: 600;
}
.mobile-menu-links .dropdown-divider { margin: .5rem 0; }

/* ─── Page Layout ─────────────────────────────────────────────────── */
.page { max-width: 1280px; margin: 0 auto; padding: 1.5rem; }
.page-wide { max-width: 100%; padding: 1.5rem; }

/* ─── Page Header ─────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.page-header h1 { margin: 0; }
.page-header .breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; color: var(--gray-500);
  margin-bottom: .25rem;
}
.page-header .breadcrumb a { color: var(--gray-500); }
.page-header .breadcrumb a:hover { color: var(--primary); }

/* ─── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow .15s;
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--gray-100);
}
.card-header h2, .card-header h3 { font-size: 1.05rem; font-weight: 600; margin: 0; }
.card-footer {
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem; margin-top: 1rem;
}
.card-flat { box-shadow: none; border: 1px solid var(--gray-200); }
.card-flat:hover { box-shadow: none; }

/* ─── Stats Grid ──────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.stat-label { font-size: .8rem; color: var(--gray-500); margin-bottom: .25rem; font-weight: 500; }
.stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.stat-change { font-size: .8rem; margin-top: .25rem; }
.stat-up { color: var(--success); }
.stat-down { color: var(--danger); }

/* ─── Tables ───────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th {
  text-align: left;
  padding: .75rem 1rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-500);
  font-weight: 600;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
table td {
  padding: .75rem 1rem;
  font-size: .875rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
table tr:hover td { background: var(--gray-50); }
table tr:last-child td { border-bottom: none; }

/* ─── Status Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 500; line-height: 1.4;
}
.badge-active { background: var(--success-bg); color: var(--success-text); }
.badge-pending { background: var(--warning-bg); color: var(--warning-text); }
.badge-suspended { background: var(--danger-bg); color: var(--danger-text); }
.badge-cancelled { background: var(--gray-200); color: var(--gray-600); }
.badge-paid { background: var(--success-bg); color: var(--success-text); }
.badge-unpaid { background: var(--danger-bg); color: var(--danger-text); }
.badge-refunded { background: #e0e7ff; color: #3730a3; }

/* ─── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .5rem 1rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; line-height: 1.4;
  border: 1px solid transparent; cursor: pointer;
  transition: all .15s; white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--gray-700); border-color: var(--gray-300); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-400); }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-success:hover { background: #059669; border-color: #059669; color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; color: var(--white); }
.btn-warning { background: var(--warning); color: var(--white); border-color: var(--warning); }
.btn-ghost { background: transparent; color: var(--gray-600); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); }
.btn-sm { padding: .35rem .7rem; font-size: .8rem; }
.btn-lg { padding: .65rem 1.25rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; }

/* ─── Forms ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block; font-size: .875rem; font-weight: 500;
  margin-bottom: .35rem; color: var(--gray-700);
}
.form-control {
  width: 100%; padding: .5rem .75rem;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-size: .9rem; font-family: var(--font);
  transition: border-color .15s, box-shadow .15s;
  background: var(--white);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
select.form-control { appearance: auto; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: .75rem; margin-top: 1.5rem; }

/* ─── Alerts ───────────────────────────────────────────────────────── */
.alert {
  padding: .75rem 1rem; border-radius: var(--radius);
  margin-bottom: 1rem; font-size: .875rem;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: var(--success-text); border-color: #a7f3d0; }
.alert-danger { background: var(--danger-bg); color: var(--danger-text); border-color: #fecaca; }
.alert-info { background: var(--primary-light); color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border-color: #fde68a; }

/* ─── Grid & Utilities ────────────────────────────────────────────── */
.row { display: flex; flex-wrap: wrap; margin: 0 -.75rem; }
.col-12 { width: 100%; padding: 0 .75rem; }
.col-8 { width: 66.666%; padding: 0 .75rem; }
.col-6 { width: 50%; padding: 0 .75rem; }
.col-4 { width: 33.333%; padding: 0 .75rem; }
.col-3 { width: 25%; padding: 0 .75rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-4 { gap: 1rem; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }

/* ─── Pricing Cards ───────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.pricing-name { font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; }
.pricing-price { margin-bottom: 1.25rem; }
.pricing-price .amount { font-size: 2.25rem; font-weight: 800; color: var(--primary); }
.pricing-price .period { color: var(--gray-500); font-size: .875rem; }
.pricing-features { text-align: left; margin-bottom: 1.5rem; }
.pricing-features li {
  padding: .5rem 0; border-bottom: 1px solid var(--gray-100);
  font-size: .875rem;
}
.pricing-features li:before { content: '✓ '; color: var(--success); font-weight: 700; }

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--gray-900), #1e3a5f);
  color: var(--white); padding: 5rem 1.5rem; text-align: center;
}
.hero h1 { font-size: 2.75rem; font-weight: 800; margin-bottom: .75rem; color: var(--white); }
.hero p { font-size: 1.1rem; opacity: .85; max-width: 560px; margin: 0 auto 1.5rem; color: rgba(255,255,255,.85); }

/* ─── Section ──────────────────────────────────────────────────────── */
.section { padding: 3rem 1.5rem; max-width: 1280px; margin: 0 auto; }
.section-title { text-align: center; font-size: 1.75rem; font-weight: 700; margin-bottom: 2.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.feature-card { text-align: center; padding: 1.5rem; }
.feature-card i { font-size: 2rem; color: var(--primary); margin-bottom: .75rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.feature-card p { font-size: .875rem; color: var(--gray-500); }

/* ─── Auth Pages ──────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem; width: 100%; max-width: 420px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: .25rem; }
.auth-card .subtitle { color: var(--gray-500); margin-bottom: 1.5rem; }
.auth-links { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--gray-500); }

/* ─── Empty State ─────────────────────────────────────────────────── */
.empty { text-align: center; padding: 3rem 1rem; }
.empty i { font-size: 2.5rem; color: var(--gray-300); margin-bottom: 1rem; }
.empty p { color: var(--gray-500); }

/* ─── Loading ──────────────────────────────────────────────────────── */
.spinner-wrap { display: flex; align-items: center; justify-content: center; padding: 3rem; }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Dropdown ────────────────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; right: 0; z-index: 100;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: .35rem; min-width: 180px;
  display: none;
}
.dropdown-menu.open { display: block; }
.dropdown-menu a {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  color: var(--gray-700); font-size: .875rem;
}
.dropdown-menu a:hover { background: var(--gray-100); }
.dropdown-menu-right { right: 0; left: auto; }
.dropdown-divider { height: 1px; background: var(--gray-200); margin: .35rem 0; }

/* ─── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  margin-top: 3rem;
  padding: 3rem 0 0;
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col-wide { grid-column: span 2; }
@media (max-width: 768px) { .footer-col-wide { grid-column: span 1; } }
.footer-col h4 { color: #fff; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; }
.footer-col a { color: var(--gray-400); font-size: .85rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--gray-500); }
.footer-bottom-links a:hover { color: #fff; }
.footer-copyright { color: var(--gray-500); }
.footer-copyright a { color: var(--gray-400); }
.footer-copyright a:hover { color: #fff; }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Mobile full-screen overlay classes */
.mobile-section {
  color: var(--gray-400); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .05em; padding: 1.25rem 1rem .35rem; font-weight: 600;
}
.mobile-divider { height: 1px; background: var(--gray-200); margin: .5rem 0; }

/* ─── Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 2000; display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; width: 100%; max-width: 500px;
  max-height: 80vh; overflow-y: auto;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-header h2 { font-size: 1.15rem; margin: 0; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-400); padding: 0; line-height: 1; }
.modal-close:hover { color: var(--gray-700); }

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .col-4, .col-3, .col-6, .col-8 { width: 100%; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .page { padding: 1rem; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
}