/* ============================================================
   HostPanel — Main Stylesheet
   Design: Modern Dark + Glassmorphism
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Colors */
  --clr-bg:        #0a0e1a;
  --clr-bg2:       #0f1629;
  --clr-surface:   #131928;
  --clr-surface2:  #1a2236;
  --clr-border:    rgba(99, 130, 255, 0.15);
  --clr-border2:   rgba(99, 130, 255, 0.08);

  --clr-primary:   #6366f1;
  --clr-primary-h: #818cf8;
  --clr-primary-d: #4f46e5;
  --clr-accent:    #06d6a0;
  --clr-warning:   #f59e0b;
  --clr-danger:    #ef4444;
  --clr-info:      #38bdf8;

  --clr-text:      #e2e8f0;
  --clr-text-muted:#94a3b8;
  --clr-text-dim:  #64748b;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-accent:   linear-gradient(135deg, #06d6a0 0%, #38bdf8 100%);
  --grad-hero:     radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.3) 0%, transparent 70%);
  --grad-card:     linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.05) 100%);

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 48px rgba(0,0,0,0.5);
  --shadow-primary:0 4px 32px rgba(99,102,241,0.25);

  /* Radius */
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2x: 3rem;
  --space-3x: 4rem;

  /* Layout */
  --sidebar-w: 260px;
  --navbar-h:  68px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.2s;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--clr-primary-h); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--clr-primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--navbar-h);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border2);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-text) !important;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand-icon { font-size: 1.4rem; }
.brand-name {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links li a {
  color: var(--clr-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--dur);
}
.nav-links li a:hover { color: var(--clr-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 40px rgba(99,102,241,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}
.btn-outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary-h);
  background: rgba(99,102,241,0.08);
}
.btn-success {
  background: var(--grad-accent);
  color: #0a1a14;
  font-weight: 700;
}
.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}
.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--clr-surface2);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--dur), box-shadow var(--dur);
  outline: none;
}
.form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-control::placeholder { color: var(--clr-text-dim); }
select.form-control option { background: var(--clr-surface2); }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.form-hint { font-size: 0.78rem; color: var(--clr-text-dim); margin-top: 0.3rem; }
.is-invalid { border-color: var(--clr-danger) !important; }
.invalid-feedback { font-size: 0.8rem; color: var(--clr-danger); margin-top: 0.25rem; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid;
  animation: fadeInDown 0.35s var(--ease);
}
.alert-success  { background: rgba( 6,214,160,0.12); border-color: rgba( 6,214,160,0.3); color: #06d6a0; }
.alert-error    { background: rgba(239, 68, 68,0.12); border-color: rgba(239, 68, 68,0.3); color: #f87171; }
.alert-warning  { background: rgba(245,158, 11,0.12); border-color: rgba(245,158, 11,0.3); color: #fbbf24; }
.alert-info     { background: rgba( 56,189,248,0.12); border-color: rgba( 56,189,248,0.3); color: #38bdf8; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-success   { background: rgba( 6,214,160,0.15); color: #06d6a0; border: 1px solid rgba( 6,214,160,0.3); }
.badge-warning   { background: rgba(245,158, 11,0.15); color: #fbbf24; border: 1px solid rgba(245,158, 11,0.3); }
.badge-danger    { background: rgba(239, 68, 68,0.15); color: #f87171; border: 1px solid rgba(239, 68, 68,0.3); }
.badge-info      { background: rgba( 56,189,248,0.15); color: #38bdf8; border: 1px solid rgba( 56,189,248,0.3); }
.badge-secondary { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); }
.badge-primary   { background: rgba( 99,102,241,0.15); color: #818cf8; border: 1px solid rgba( 99,102,241,0.3); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow);
  transition: transform var(--dur), box-shadow var(--dur);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--clr-border2);
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
}
.card-body { }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
thead th {
  background: var(--clr-surface2);
  color: var(--clr-text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.85rem 1.1rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--clr-border);
}
tbody tr {
  border-bottom: 1px solid var(--clr-border2);
  transition: background var(--dur);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(99,102,241,0.04); }
td { padding: 0.85rem 1.1rem; vertical-align: middle; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.stat-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: all var(--dur);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon.purple { background: rgba(99,102,241,0.15); }
.stat-icon.green  { background: rgba( 6,214,160,0.15); }
.stat-icon.yellow { background: rgba(245,158, 11,0.15); }
.stat-icon.blue   { background: rgba( 56,189,248,0.15); }
.stat-icon.red    { background: rgba(239, 68, 68,0.15); }
.stat-info {}
.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-subtitle {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  max-width: 560px;
}
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  align-items: center;
  padding: var(--space-3x) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3x);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--clr-primary-h);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  animation: pulseBorder 2s infinite;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}
.hero-desc {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2x);
}
.hero-stats {
  display: flex;
  gap: var(--space-xl);
}
.hero-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

/* Hero visual */
.hero-visual {
  position: relative;
}
.hero-card-float {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}
.hero-card-float.small {
  position: absolute;
  width: 200px;
  animation: float 3.5s 0.5s ease-in-out infinite;
}
.hero-card-float.small.bottom-left {
  bottom: -30px;
  left: -30px;
}
.server-name { font-weight: 700; margin-bottom: 0.3rem; }
.server-uptime {
  font-size: 0.8rem;
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.server-uptime::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}
.uptime-bar-wrap { margin-top: 0.75rem; }
.uptime-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  margin-bottom: 0.3rem;
}
.uptime-bar {
  height: 6px;
  background: var(--clr-surface2);
  border-radius: 999px;
  overflow: hidden;
}
.uptime-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad-accent);
  transition: width 1s var(--ease);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  padding: var(--space-3x) 0;
  position: relative;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2x);
}
.feature-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  transform-origin: left;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 8px 40px rgba(99,102,241,0.15);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  display: block;
}
.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-section {
  padding: var(--space-3x) 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2x);
  align-items: start;
}
.pricing-card {
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.4);
}
.pricing-card.featured {
  border-color: var(--clr-primary);
  background: linear-gradient(160deg, rgba(99,102,241,0.12) 0%, var(--clr-surface) 60%);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.2), var(--shadow-primary);
}
.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-primary-h);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pricing-price sup {
  font-size: 1rem;
  font-weight: 600;
  vertical-align: top;
  margin-top: 0.5rem;
  display: inline-block;
  color: var(--clr-text-muted);
}
.pricing-period {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-lg);
}
.pricing-divider {
  border: none;
  border-top: 1px solid var(--clr-border2);
  margin: var(--space-lg) 0;
}
.pricing-features {
  margin-bottom: var(--space-xl);
}
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  margin-bottom: 0.65rem;
}
.pricing-feature .check {
  color: var(--clr-accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.pricing-desc {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

/* ============================================================
   CLIENT LAYOUT (Sidebar + Content)
   ============================================================ */
.client-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--clr-surface);
  border-right: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
  transition: transform 0.3s var(--ease);
}
.sidebar-logo {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--clr-border2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
}
.sidebar-nav {
  padding: var(--space-md) 0;
  flex: 1;
}
.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--clr-text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-sm) var(--space-xl);
  margin-top: var(--space-sm);
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem var(--space-xl);
  color: var(--clr-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--dur);
  position: relative;
  border-radius: 0;
}
.sidebar-link:hover {
  color: var(--clr-text);
  background: rgba(99,102,241,0.06);
}
.sidebar-link.active {
  color: var(--clr-primary-h);
  background: rgba(99,102,241,0.1);
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--clr-primary);
  border-radius: 0 3px 3px 0;
}
.sidebar-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-footer {
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--clr-border2);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.sidebar-user-role { font-size: 0.72rem; color: var(--clr-text-muted); }

/* Main Content */
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: var(--navbar-h);
  background: rgba(10,14,26,0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-border2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: var(--space-md); }
.sidebar-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--clr-text);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 4px;
}
.page-header { padding: var(--space-xl) var(--space-xl) 0; }
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-subtitle {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  margin-top: 0.25rem;
}
.page-content { padding: var(--space-xl); flex: 1; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--clr-text-dim);
  margin-top: 0.5rem;
}
.breadcrumb a { color: var(--clr-text-dim); }
.breadcrumb a:hover { color: var(--clr-primary-h); }
.breadcrumb-sep { color: var(--clr-text-dim); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--clr-bg);
  position: relative;
  overflow: hidden;
}
.auth-layout::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.auth-layout::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.auth-box {
  width: 100%;
  max-width: 460px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2x);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  margin: var(--space-lg);
  animation: fadeInUp 0.5s var(--ease);
}
.auth-logo {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.auth-logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.auth-title { font-size: 1.4rem; font-weight: 800; text-align: center; margin-bottom: 0.3rem; }
.auth-subtitle { text-align: center; color: var(--clr-text-muted); font-size: 0.875rem; margin-bottom: var(--space-xl); }
.auth-footer { text-align: center; margin-top: var(--space-lg); font-size: 0.875rem; color: var(--clr-text-muted); }

/* ============================================================
   ADMIN SPECIFIC
   ============================================================ */
.admin-sidebar .sidebar-link.active { color: #fbbf24; }
.admin-sidebar .sidebar-link.active::before { background: #f59e0b; }
.admin-topbar-badge {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
}

/* Quick actions bar */
.quick-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

/* ============================================================
   MISC
   ============================================================ */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--clr-text-dim);
  font-size: 0.8rem;
  margin: var(--space-lg) 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--clr-border2);
}

.empty-state {
  text-align: center;
  padding: var(--space-3x) var(--space-lg);
  color: var(--clr-text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: var(--space-md); opacity: 0.4; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--clr-text); }
.empty-state p { font-size: 0.875rem; }

.page-section { margin-bottom: var(--space-xl); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  justify-content: center;
  margin-top: var(--space-xl);
}
.page-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border2);
  transition: all var(--dur);
}
.page-num:hover { border-color: var(--clr-primary); color: var(--clr-primary-h); }
.page-num.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
}

/* Ticket priority colors */
.priority-low    { color: var(--clr-info); }
.priority-medium { color: #fbbf24; }
.priority-high   { color: #f97316; }
.priority-urgent { color: var(--clr-danger); }

/* Invoice payment methods */
.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
}
.payment-method-card {
  border: 2px solid var(--clr-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  cursor: pointer;
  text-align: center;
  transition: all var(--dur);
}
.payment-method-card:hover { border-color: var(--clr-primary); }
.payment-method-card.selected {
  border-color: var(--clr-primary);
  background: rgba(99,102,241,0.08);
}
.payment-method-card img { max-height: 40px; margin: 0 auto 0.5rem; }
.payment-method-card span { font-size: 0.78rem; color: var(--clr-text-muted); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulseBorder {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(99,102,241,0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-fadein { animation: fadeInUp 0.5s var(--ease) both; }

/* Loading spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(99,102,241,0.3);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 4rem 0 0;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.footer-desc {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.25rem;
}
.footer-social {
  display: flex;
  gap: 0.5rem;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  transition: all var(--dur) var(--ease);
}
.social-btn:hover {
  transform: translateY(-2px);
  color: var(--clr-text);
}
.social-btn.whatsapp:hover {
  background: rgba(37,211,102,0.12);
  border-color: rgba(37,211,102,0.4);
  color: #25d366;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  transition: color var(--dur);
}
.footer-col ul li a:hover {
  color: var(--clr-primary-h);
}
.footer-bottom {
  border-top: 1px solid var(--clr-border2);
  padding: 1.25rem 0;
  text-align: center;
  color: var(--clr-text-dim);
  font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-2x); }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-sm);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-links li a { padding: 0.5rem 0; font-size: 1rem; }

  /* Sidebar layout */
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    transform: translateX(-100%);
    height: 100%;
    z-index: 200;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-mobile-toggle { display: block; }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    backdrop-filter: blur(4px);
  }
  .sidebar-overlay.open { display: block; }

  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: var(--space-lg); }
  .section-title { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-desc { max-width: 100%; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .auth-box { padding: var(--space-lg); }
  .card { padding: var(--space-lg); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer { padding-top: 2.5rem; }
}
