html {
  height: 100%;
}
:root {
  --bg: #020617;
  --card-bg: rgba(15, 23, 42, 0.6);
  --accent: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.4);
  --border: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-dim: #94a3b8;
  --success: #10b981;
  --danger: #ef4444;
  --surface: #0f172a;
  --premium-blue: #2563eb;
  --premium-blue-hover: #3b82f6;
  --premium-red: #ef4444;
  --premium-red-hover: #f87171;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #000;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  height: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin: 0;
}

/* Forced Mobile Shell */
/* Global App Shell */
.app-shell {
  width: 100%;
  max-width: 430px; /* Standard Phone Width */
  height: 100%;
  max-height: 932px; /* Standard Phone Height */
  background: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  body {
    align-items: center;
  }
  .app-shell {
    height: 90vh;
    border-radius: 40px;
    border: 8px solid #1a1a1e;
  }
}

.main-content {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

/* Neo-Banking Components */
.neo-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neo-glow-bg {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

/* Glass Basics (Legacy alias) */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-content > * {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Sidebar is now obsolete */
.sidebar {
  display: none !important;
}

.main-content {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  position: relative;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}

.main-content::-webkit-scrollbar {
  display: none;
}

.page-container {
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.scroll-padding {
  padding-bottom: 140px; /* Clearance for bottom nav */
}

/* Orders Table */
.orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  margin-top: 2rem;
}
/* Orders Table Desktop Default (Hidden on Mobile Cards if used) */
.orders-table th {
  text-align: left;
  padding: 0 24px;
  color: #80808a;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: none;
}
.orders-table tr {
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.orders-table tbody tr {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.orders-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.orders-table td {
  padding: 20px 24px;
  background: #111216;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
.orders-table td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
.orders-table td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Premium Order Cards (Mobile optimized layout) */
.premium-order-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #111216;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.premium-order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.02);
}

.premium-order-card .card-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.premium-order-card .col-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premium-order-card .order-id {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f4f4f5;
  letter-spacing: 0.5px;
}

.premium-order-card .client-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #a1a1aa;
}

.premium-order-card .avatar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 11px;
}

.premium-order-card .col-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premium-order-card .order-desc {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e4e4e7;
  line-height: 1.4;
}

.premium-order-card .order-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #10b981;
}

/* Status Badges Premium */
.badge {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-new {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow:
    inset 0 0 12px rgba(245, 158, 11, 0.1),
    0 0 8px rgba(245, 158, 11, 0.1);
}
.badge-new::before {
  content: "•";
  font-size: 1.2rem;
  line-height: 0.5;
}

.badge-progress {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow:
    inset 0 0 12px rgba(99, 102, 241, 0.1),
    0 0 8px rgba(99, 102, 241, 0.1);
}
.badge-progress::before {
  content: "•";
  font-size: 1.2rem;
  line-height: 0.5;
}

.badge-done {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow:
    inset 0 0 12px rgba(16, 185, 129, 0.1),
    0 0 8px rgba(16, 185, 129, 0.1);
}
.badge-done::before {
  content: "✓";
  font-size: 0.8rem;
}

/* Navigation */
.nav-link {
  cursor: pointer;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 2rem;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid var(--border);
  width: fit-content;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
  color: var(--text);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-color: rgba(99, 102, 241, 0.5);
  color: white;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Landing Specific Styles */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: -3px;
  background: linear-gradient(to bottom, #fff 40%, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  padding: 20px 48px;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 150%;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.5);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  padding: 4rem 0;
}

.service-card {
  padding: 3rem;
  transition: 0.4s;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 24px;
}

.form-input {
  width: 100%;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  transition: 0.3s;
}

.form-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Legacy navigation removed to prevent conflicts with master.html 3D nav */

/* Grid & Table Mobile Adjustments */
@media (max-width: 600px) {
  .orders-table thead {
    display: none;
  }
  .orders-table tr {
    display: block;
    margin-bottom: 24px;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 16px;
    border: 1px solid var(--border);
  }
  .orders-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border: none !important;
  }
  .orders-table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-dim);
  }
  .stat-value {
    font-size: 3rem;
  }
}

/* Order Detail View Styles */
.detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2.5rem;
}

.back-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: #f4f4f5;
  transition: 0.2s;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.detail-section {
  margin-bottom: 2.5rem;
}

.detail-label {
  font-size: 0.75rem;
  color: #80808a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f4f4f5;
  line-height: 1.5;
}

.photo-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  margin: 1rem 0;
}

.photo-scroll::-webkit-scrollbar {
  display: none;
}

.photo-item {
  min-width: 110px;
  height: 110px;
  background: #111216;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.action-bar {
  position: fixed;
  bottom: 24px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #111216;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.action-btn {
  flex: 1;
  height: 52px;
  border-radius: 16px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.action-btn:hover {
  transform: translateY(-2px);
}

.action-btn:active {
  transform: translateY(1px);
}

.btn-call {
  background: #0ea5e9;
  color: white;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
  border: none;
}
.btn-call:hover {
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
  background: #0284c7;
}

.btn-chat {
  background: #18181b;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-chat:hover {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-status {
  background: #6366f1;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  border: none;
  font-size: 1.05rem;
  height: 54px;
}
.btn-status:hover {
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  background: #4f46e5;
}

/* RESTORED 3D NAVIGATION (GRID - 4 ITEMS) */
.bottom-nav {
  position: absolute;
  bottom: 30px;
  left: 12px;
  right: 12px;
  height: 72px;
  background: #0d0e12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  box-sizing: border-box;
  z-index: 2000;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9);
}

.bottom-nav-item {
  height: 100%;
  background: #1a1b21;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: all 0.1s ease;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow:
    0 4px 0 #000,
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  text-align: center;
  overflow: hidden;
}

.bottom-nav-item span {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0px !important;
  white-space: nowrap !important;
  pointer-events: none;
  font-family: "Outfit", sans-serif;
}

.bottom-nav-item.active {
  background: #23242a;
  box-shadow: 0 0px 0 #000;
  transform: translateY(3px);
  border-color: rgba(59, 130, 246, 0.4); /* Neon blue border */
}

.bottom-nav-item.active span {
  color: #3b82f6 !important; /* Neon blue text */
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.nav-item-exit-red:active {
  background: #2a2323 !important; /* Dark reddish grey to match blue's depth */
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0px 0 #000;
  transform: translateY(3px);
}

.nav-item-exit-red:active span {
  color: #ef4444 !important;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.6) !important;
  opacity: 1 !important;
}

.btn-delete-red {
  background: #ef4444 !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.btn-delete-red:active {
  transform: scale(0.9) !important;
  background: #dc2626 !important;
}

/* View Transitions */
.view-slide {
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Bottom Sheet (Premium Selection) */
.bottom-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111114;
  border-top: 1px solid var(--border);
  border-radius: 30px 30px 0 0;
  padding: 16px 20px 40px;
  z-index: 3001;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet.active {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 24px;
}

.bottom-sheet-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.sheet-item {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sheet-item:hover,
.sheet-item.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-color: rgba(99, 102, 241, 0.5);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Custom Select Trigger */
.picker-trigger {
  width: 100%;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: white;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: 0.3s;
}

.picker-trigger:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.05);
}

.picker-trigger span:last-child {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Service Category List & Cards */
.category-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -20px;
  padding: 0 20px 10px;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  width: 65px;
  height: 65px;
  font-size: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  cursor: pointer;
}

.category-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
}

.category-card.active {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

/* Interactive Active States for Header Icons */
.avatar-box,
#legal-burger,
#legal-burger-order,
.back-circle {
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease !important;
}

.avatar-box:active,
#legal-burger:active,
#legal-burger-order:active,
.back-circle:active {
  transform: scale(0.9) !important;
  opacity: 0.7 !important;
}
