/* ============================================
   MUVY - Design System (Aligned with Mobile App)
   Colors: Abyssal Blue + Aurora Cyan
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #020617; /* Abyssal Blue */
  --bg-secondary: #0F172A; /* Deep Blue Card */
  --surface: #0a0e1a;
  --card: #0F172A;
  --card-hover: #1e293b;
  --border: rgba(0, 209, 255, 0.12);
  --border-strong: rgba(0, 209, 255, 0.3);

  --cyan: #00D1FF; /* Aurora Cyan */
  --cyan-dim: #39D2C0; /* Secondary */
  --cyan-dark: #1E293B; /* Alternate */
  --cyan-glow: rgba(0, 209, 255, 0.2);
  --cyan-glow-strong: rgba(0, 209, 255, 0.4);

  --text: #FFFFFF;
  --text-secondary: #94A3B8; /* Slate text */
  --text-muted: #64748B;

  --success: #00FF94;
  --warning: #F9CF58;
  --error: #FF2D55;
  --info: #FFFFFF;

  --radius-sm: 8px;
  --radius: 16px; /* Matches BorderRadius.circular(16) */
  --radius-lg: 24px; /* Matches BorderRadius.circular(24) */
  --radius-xl: 28px; /* Logo Box and large cards */
  --radius-full: 9999px;

  --shadow-glow: 0 0 20px rgba(0, 209, 255, 0.25);
  --shadow-glow-strong: 0 0 40px rgba(0, 209, 255, 0.4);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.6);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* --- Aurora Background Glows (Same as App) --- */
.aurora-bg-1 {
  position: fixed;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.18) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.aurora-bg-2 {
  position: fixed;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.12) 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* --- Mobile-style logo container --- */
.muvy-logo-box {
  width: 240px;
  height: 110px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 28px;
  border: 2px solid rgba(0, 209, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 209, 255, 0.15);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}
.muvy-logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  color: #00D1FF;
  font-size: 64px;
  letter-spacing: -2px;
  text-shadow: 0 0 20px rgba(0, 209, 255, 0.7);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); outline: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.text-display { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; line-height: 1.1; }
.text-h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; }
.text-h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.3; }
.text-h3 { font-size: 1.25rem; font-weight: 600; }
.text-body { font-size: 1rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-cyan { color: var(--cyan); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, #00E5FF, #00B8D9, #FFFFFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 480px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.w-full { width: 100%; }

/* ============================================
   COMPONENTS
   ============================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--cyan);
  color: #000;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 209, 255, 0.6);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-danger {
  background: rgba(255, 82, 82, 0.15);
  color: var(--error);
  border: 1px solid rgba(255, 82, 82, 0.3);
}
.btn-danger:hover { background: rgba(255, 82, 82, 0.3); }
.btn-success {
  background: rgba(0, 230, 118, 0.15);
  color: var(--success);
  border: 1px solid rgba(0, 230, 118, 0.3);
}
.btn-success:hover { background: rgba(0, 230, 118, 0.3); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* --- Cards --- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.card-glass {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 209, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-glow {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glow);
}

/* --- Inputs --- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
.form-input {
  background: rgba(255,255,255,0.01);
  border: 1.5px solid rgba(0, 209, 255, 0.1);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--transition);
  width: 100%;
}
.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 209, 255, 0.2);
  background: rgba(255,255,255,0.02);
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input-icon { position: relative; }
.form-input-icon .form-input { padding-left: 44px; }
.form-input-icon .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--cyan); font-size: 1.1rem; }
.form-select {
  background: rgba(255,255,255,0.01);
  border: 1.5px solid rgba(0, 209, 255, 0.1);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--transition);
  width: 100%;
  appearance: none;
  cursor: pointer;
}
.form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 209, 255, 0.2);
  background: rgba(255,255,255,0.02);
}

/* --- Badges --- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
}
.badge-cyan { background: rgba(0,229,255,0.15); color: var(--cyan); border: 1px solid rgba(0,229,255,0.3); }
.badge-success { background: rgba(0,230,118,0.15); color: var(--success); border: 1px solid rgba(0,230,118,0.3); }
.badge-warning { background: rgba(255,215,64,0.15); color: var(--warning); border: 1px solid rgba(255,215,64,0.3); }
.badge-error { background: rgba(255,82,82,0.15); color: var(--error); border: 1px solid rgba(255,82,82,0.3); }
.badge-muted { background: rgba(255,255,255,0.08); color: var(--text-secondary); }
.badge-pulse { animation: pulse-badge 2s infinite; }

/* --- Stats Cards --- */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all var(--transition);
}
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.stat-value { font-size: 1.8rem; font-weight: 700; font-family: var(--font-display); color: var(--cyan); }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-icon { font-size: 1.5rem; margin-bottom: 12px; }

/* --- Avatar --- */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #000;
  flex-shrink: 0;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.3rem; }

/* --- Divider --- */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.875rem; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* --- Alert/Toast --- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid;
}
.alert-error { background: rgba(255,82,82,0.1); border-color: rgba(255,82,82,0.3); color: #ff8a80; }
.alert-success { background: rgba(0,230,118,0.1); border-color: rgba(0,230,118,0.3); color: #69f0ae; }
.alert-warning { background: rgba(255,215,64,0.1); border-color: rgba(255,215,64,0.3); color: #ffd740; }
.alert-info { background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.3); color: var(--cyan); }

/* Toast */
#toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  border: 1px solid;
  min-width: 280px;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  display: flex; align-items: center; gap: 10px; font-size: 0.9rem;
}
.toast-success { background: rgba(0,230,118,0.15); border-color: rgba(0,230,118,0.4); color: #69f0ae; }
.toast-error { background: rgba(255,82,82,0.15); border-color: rgba(255,82,82,0.4); color: #ff8a80; }
.toast-info { background: rgba(0,229,255,0.15); border-color: rgba(0,229,255,0.4); color: var(--cyan); }

/* --- Table --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: rgba(0,229,255,0.05); border-bottom: 1px solid var(--border); }
th { padding: 12px 16px; text-align: left; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); }
td { padding: 14px 16px; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody tr:last-child td { border-bottom: none; }

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 520px; width: 100%;
  box-shadow: var(--shadow-glow);
  transform: scale(0.9);
  transition: transform 0.3s;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); font-size: 1.1rem; border: none; }
.modal-close:hover { background: rgba(255,82,82,0.2); color: var(--error); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.navbar-logo { display: flex; align-items: center; gap: 10px; }
.navbar-logo img { height: 36px; }
.navbar-logo span { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--cyan); letter-spacing: -1px; }
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a { font-size: 0.9rem; color: var(--text-secondary); transition: color var(--transition); font-weight: 500; }
.navbar-links a:hover { color: var(--cyan); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }

/* ============================================
   SIDEBAR (Dashboard)
   ============================================ */
.layout-dashboard { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 50;
  transition: transform var(--transition);
}
.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo img { height: 32px; }
.sidebar-logo span { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--cyan); letter-spacing: -1px; }
.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.sidebar-section-title { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 12px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: none;
  border: 1px solid transparent;
  text-decoration: none;
}
.nav-item:hover { background: rgba(0,229,255,0.06); color: var(--text); }
.nav-item.active { background: rgba(0,229,255,0.12); color: var(--cyan); border-color: rgba(0,229,255,0.2); }
.nav-item .nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.nav-item .nav-badge { margin-left: auto; background: var(--cyan); color: #000; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-full); }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius); }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 0.875rem; font-weight: 600; truncate: ellipsis; white-space: nowrap; overflow: hidden; }
.sidebar-user-role { font-size: 0.75rem; color: var(--cyan); }

/* Main Content */
.main-content { flex: 1; margin-left: 260px; min-height: 100vh; }
.page-header { padding: 32px 32px 0; }
.page-title { font-size: 1.6rem; font-weight: 700; font-family: var(--font-display); }
.page-subtitle { color: var(--text-secondary); margin-top: 4px; font-size: 0.9rem; }
.page-body { padding: 24px 32px 32px; }

/* ============================================
   HERO SECTION (Landing)
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: #020617;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/bg-logo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.45;
  animation: neon-glow-zoom 18s infinite ease-in-out;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 20%, #020617 85%),
              radial-gradient(ellipse at 50% 0%, rgba(0,229,255,0.12) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 3; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,229,255,0.1); border: 1px solid rgba(0,229,255,0.25);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; color: var(--cyan);
  margin-bottom: 24px; letter-spacing: 0.5px;
}
.hero-badge::before { content: '●'; animation: pulse-dot 2s infinite; }
.hero-title {
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.95)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95));
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.95));
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-img { position: relative; margin-top: 60px; }
.hero-img img { max-width: 500px; filter: drop-shadow(0 0 40px rgba(0,229,255,0.3)); }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--cyan); margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-desc { color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* Feature card */
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all 0.3s;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: rgba(0,229,255,0.1); border: 1px solid rgba(0,229,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.feature-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.feature-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================
   ORDER CARD (Negocio Portal)
   ============================================ */
.order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.order-card:hover { border-color: var(--border-strong); }
.order-card.new-order { border-color: rgba(0,229,255,0.5); box-shadow: 0 0 20px rgba(0,229,255,0.15); animation: pulse-border 2s infinite; }
.order-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.order-id { font-size: 0.85rem; color: var(--text-secondary); }
.order-body { padding: 16px 20px; }
.order-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 0.9rem; }
.order-item-name { color: var(--text); }
.order-item-price { color: var(--cyan); font-weight: 600; }
.order-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-total { font-size: 1.1rem; font-weight: 700; }
.order-total span { color: var(--cyan); }

/* ============================================
   STATUS INDICATOR
   ============================================ */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-active { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-pending { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
.status-suspended { background: var(--error); box-shadow: 0 0 6px var(--error); }
.status-offline { background: var(--text-muted); }

/* Large status display */
.status-display {
  text-align: center; padding: 40px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.status-display-icon { font-size: 4rem; margin-bottom: 16px; }
.status-display-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.status-display-desc { color: var(--text-secondary); font-size: 0.95rem; }
.status-display.active { border-color: rgba(0,230,118,0.3); }
.status-display.suspended { border-color: rgba(255,82,82,0.3); }
.status-display.pending { border-color: rgba(255,215,64,0.3); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--surface);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================
   AUTH PAGE
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}
.auth-left {
  flex: 1;
  background: #020617;
  display: flex; align-items: center; justify-content: center; padding: 40px;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/bg-logo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.35;
  animation: neon-glow-zoom 15s infinite ease-in-out;
}
.auth-left-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  pointer-events: none;
}
.auth-left-content { position: relative; z-index: 2; max-width: 480px; }
.auth-right {
  width: 480px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 40px; border-left: 1px solid var(--border);
  background: var(--surface);
  position: relative; overflow: hidden;
}
.auth-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/bg-logo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.12;
  filter: blur(8px) brightness(0.8);
  animation: neon-glow-simple 20s infinite ease-in-out;
  pointer-events: none;
}
.auth-box { width: 100%; max-width: 380px; position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.auth-logo img { height: 36px; }
.auth-logo span { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--cyan); }
.auth-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.auth-subtitle { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 28px; }

/* Role Selector */
.role-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.role-btn {
  padding: 12px 8px; border-radius: var(--radius);
  background: rgba(255,255,255,0.04); border: 1.5px solid var(--border);
  color: var(--text-secondary); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.role-btn .role-icon { font-size: 1.3rem; }
.role-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.role-btn.active { background: rgba(0,229,255,0.12); border-color: var(--cyan); color: var(--cyan); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes pulse-badge { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,255,0.3); } 50% { box-shadow: 0 0 0 6px rgba(0,229,255,0); } }
@keyframes pulse-border { 0%, 100% { box-shadow: 0 0 15px rgba(0,229,255,0.1); } 50% { box-shadow: 0 0 30px rgba(0,229,255,0.3); } }
@keyframes slideInRight { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(20px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes glow-pulse { 0%, 100% { text-shadow: 0 0 20px rgba(0,229,255,0.5); } 50% { text-shadow: 0 0 40px rgba(0,229,255,0.9), 0 0 60px rgba(0,229,255,0.5); } }
@keyframes scanline { 0% { transform: translateY(-100%); } 100% { transform: translateY(100vh); } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes neon-glow-zoom {
  0% {
    transform: scale(1);
    filter: brightness(0.9) contrast(1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 20px rgba(0, 209, 255, 0.35));
  }
  100% {
    transform: scale(1);
    filter: brightness(0.9) contrast(1);
  }
}
@keyframes neon-glow-simple {
  0% {
    transform: scale(1);
    filter: blur(8px) brightness(0.7);
  }
  50% {
    transform: scale(1.03);
    filter: blur(8px) brightness(0.95);
  }
  100% {
    transform: scale(1);
    filter: blur(8px) brightness(0.7);
  }
}

.animate-fadeIn { animation: fadeIn 0.5s ease; }
.animate-slideUp { animation: slideInUp 0.5s ease; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-glow { animation: glow-pulse 2s ease-in-out infinite; }

/* Stagger children */
.stagger > * { opacity: 0; animation: slideInUp 0.5s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   UTILS
   ============================================ */
.hidden { display: none !important; }
.visible { display: flex !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.p-1 { padding: 8px; } .p-2 { padding: 16px; } .p-3 { padding: 24px; } .p-4 { padding: 32px; }
.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: var(--radius-full); }
.filter-btn { padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.filter-btn.active { background: rgba(0,229,255,0.15); border-color: var(--cyan); color: var(--cyan); }
.filter-btn:hover { border-color: var(--cyan); color: var(--text); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pointer { cursor: pointer; }

/* Loading spinner */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(0,229,255,0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-screen {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px;
  z-index: 9999;
}
.loading-logo { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--cyan); animation: glow-pulse 2s ease-in-out infinite; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-left { display: none; }
  .auth-right { width: 100%; border-left: none; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .navbar-links { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .page-header, .page-body { padding: 20px 16px; }
  .role-selector { grid-template-columns: repeat(3, 1fr); }
  .modal { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn-lg { padding: 14px 24px; }
}
