/* GIKI Panda - Black & White Panda Theme with Smooth Animations */

:root {
  /* Panda-inspired Black & White palette */
  --bg-primary: #fafafa;
  --bg-secondary: #f0f0f0;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f5;
  --bg-input: #ffffff;
  --bg-dark: #1a1a1a;
  --bg-dark-secondary: #2d2d2d;
  
  /* Accent Colors - GIKI Green for branding */
  --accent-primary: #1a1a1a;
  --accent-secondary: #2e7d32;
  --accent-tertiary: #4caf50;
  --accent-gradient: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 50%, #1a1a1a 100%);
  --accent-gradient-green: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #43a047 100%);
  --accent-glow: rgba(26, 26, 26, 0.25);
  --giki-green: #2e7d32;
  
  /* Status Colors */
  --success: #2e7d32;
  --warning: #f9a825;
  --danger: #c62828;
  --info: #1565c0;
  
  /* Text Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #757575;
  --text-light: #ffffff;
  
  /* Borders */
  --border-color: rgba(0, 0, 0, 0.1);
  --border-glow: rgba(46, 125, 50, 0.5);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(46, 125, 50, 0.2);
  --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 50%, #e8e8e8 100%);
  color: var(--text-primary);
  /* body font is Plus Jakarta Sans (set below) — the old Inter rule here was
     dead (overridden) and its font was still being downloaded; removed. */
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle panda pattern overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 0% 0%, rgba(26, 26, 26, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(46, 125, 50, 0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(26, 26, 26, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Scrollbar - Panda themed */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1a1a1a 0%, #3d3d3d 100%);
  border-radius: 5px;
  border: 2px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2e7d32 0%, #43a047 100%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

a {
  color: var(--giki-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-tertiary);
}

/* ==================== NAVBAR ==================== */
.navbar {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--giki-green);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-dark);
}

.navbar.scrolled {
  background: #1a1a1a !important;
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition-base);
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: #ffffff !important;
}

.navbar-brand::before {
  content: '🐼';
  font-size: 2rem;
  animation: pandaWave 3s ease-in-out infinite;
}

@keyframes pandaWave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-5deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-3px) rotate(5deg); }
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.dropdown-menu {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-dark);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
}

.dropdown-item.text-light {
  color: rgba(255, 255, 255, 0.85) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--giki-green);
  color: #ffffff;
}

.dropdown-menu.bg-card {
  background: #1a1a1a;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--giki-green);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #ffffff !important;
  background: rgba(46, 125, 50, 0.2);
}

.nav-link:hover::before {
  width: 80%;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a1a1a 0%, var(--giki-green) 50%, #1a1a1a 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--giki-green);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card:hover::before {
  opacity: 1;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Vendor Card Special */
.vendor-card {
  cursor: pointer;
  position: relative;
  border-left: 4px solid #1a1a1a;
}

.vendor-card:hover {
  border-left-color: var(--giki-green);
}

.vendor-card .card-body {
  position: relative;
  z-index: 1;
}

.vendor-card::after {
  content: '→';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  opacity: 0;
  font-size: 1.5rem;
  color: var(--giki-green);
  transition: all var(--transition-base);
}

.vendor-card:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Vendor Icon */
.vendor-icon {
  background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%) !important;
  color: #ffffff !important;
}

/* ==================== BUTTONS ==================== */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(26, 26, 26, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  box-shadow: 0 6px 25px rgba(46, 125, 50, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(46, 125, 50, 0.5);
}

.btn-warning {
  background: linear-gradient(135deg, #f9a825 0%, #f57c00 100%);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
  color: white;
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
}

.btn-outline-primary:hover {
  background: #1a1a1a;
  color: white;
}

.btn-outline-success {
  background: transparent;
  border: 2px solid var(--giki-green);
  color: var(--giki-green);
}

.btn-outline-success:hover {
  background: var(--giki-green);
  color: white;
}

.btn-outline-danger {
  background: transparent;
  border: 2px solid var(--danger);
  color: var(--danger);
}

.btn-outline-danger:hover {
  background: var(--danger);
  color: white;
}

/* ==================== FORMS ==================== */
.form-control, .form-select {
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-control:focus, .form-select:focus {
  background: var(--bg-input);
  border-color: var(--giki-green);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
  color: var(--text-primary);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

label {
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.form-check-input {
  background-color: var(--bg-input);
  border-color: #1a1a1a;
}

.form-check-input:checked {
  background-color: var(--giki-green);
  border-color: var(--giki-green);
}

/* Input group styling for auth forms */
.input-group-text {
  background: #1a1a1a !important;
  border: 2px solid #1a1a1a !important;
  color: #ffffff !important;
}

/* ==================== CONTAINER ==================== */
.container {
  max-width: 1200px;
  padding: 0 1.5rem;
}

main.container {
  padding-top: 2rem;
  padding-bottom: 4rem;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== TABLES ==================== */
.table {
  color: var(--text-primary);
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: none;
  padding: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.table tbody tr {
  transition: all var(--transition-base);
}

.table tbody tr:hover {
  background: rgba(46, 125, 50, 0.05);
}

.table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

/* ==================== BADGES ==================== */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.bg-primary {
  background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%) !important;
}

.status-pending { 
  background: linear-gradient(135deg, #f9a825, #f57c00); 
  color: white;
  animation: pulse 2s infinite;
}

.status-accepted { 
  background: linear-gradient(135deg, #1565c0, #0d47a1); 
  color: white; 
}

.status-preparing { 
  background: linear-gradient(135deg, #7b1fa2, #6a1b9a); 
  color: white;
  animation: pulse 2s infinite;
}

.status-ready { 
  background: linear-gradient(135deg, #2e7d32, #1b5e20); 
  color: white; 
}

.status-picked { 
  background: linear-gradient(135deg, #00838f, #006064); 
  color: white; 
}

.status-delivering { 
  background: linear-gradient(135deg, #ef6c00, #e65100); 
  color: white;
  animation: pulse 2s infinite;
}

.status-delivered { 
  background: linear-gradient(135deg, #2e7d32, #1b5e20); 
  color: white; 
}

.status-cancelled { 
  background: linear-gradient(135deg, #c62828, #b71c1c); 
  color: white; 
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ==================== PROGRESS BAR ==================== */
.progress {
  background: #e0e0e0;
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #1a1a1a 0%, var(--giki-green) 50%, #1a1a1a 100%);
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==================== TABS ==================== */
.nav-tabs {
  border-bottom: 2px solid #1a1a1a;
  gap: 0.5rem;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 10px 10px 0 0;
  color: var(--text-secondary) !important;
  padding: 1rem 1.5rem;
  font-weight: 600;
  transition: all var(--transition-base);
}

.nav-tabs .nav-link:hover {
  background: rgba(26, 26, 26, 0.05);
  color: var(--text-primary) !important;
}

.nav-tabs .nav-link.active {
  background: #1a1a1a;
  color: #ffffff !important;
  border-bottom: 3px solid var(--giki-green);
}

/* ==================== LIST GROUP ==================== */
.list-group {
  border-radius: 12px;
  overflow: hidden;
}

.list-group-item {
  background: var(--bg-card);
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 1rem 1.25rem;
  transition: all var(--transition-base);
}

.list-group-item:hover {
  background: rgba(46, 125, 50, 0.05);
  color: var(--giki-green);
  padding-left: 1.5rem;
  border-left: 3px solid var(--giki-green);
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item-action:focus {
  background: var(--bg-card-hover);
}

/* ==================== MENU ITEM ==================== */
.menu-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid #1a1a1a;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all var(--transition-base);
}

.menu-item:hover {
  border-left-color: var(--giki-green);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.menu-item strong {
  color: var(--text-primary);
  font-size: 1.1rem;
}

.menu-item .price {
  color: var(--giki-green);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  min-width: 300px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(10px);
}

.toast.bg-success {
  border-left: 4px solid var(--giki-green);
  background: rgba(46, 125, 50, 0.08);
}

.toast.bg-danger {
  border-left: 4px solid var(--danger);
  background: rgba(198, 40, 40, 0.08);
}

.toast.bg-warning {
  border-left: 4px solid var(--warning);
  background: rgba(249, 168, 37, 0.08);
}

.toast.bg-info {
  border-left: 4px solid var(--info);
  background: rgba(21, 101, 192, 0.08);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toast-body {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==================== AUTH PAGES ==================== */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1a1a1a 0%, var(--giki-green) 50%, #1a1a1a 100%);
}

.auth-card h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

/* A field inside an input-group must NOT carry its own margin and must join
   flush with the icon box (spacing comes from the .mb-* wrapper divs). */
.auth-card .input-group { flex-wrap: nowrap; }
.auth-card .input-group .form-control,
.auth-card .input-group .form-select {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.auth-card .input-group .input-group-text {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.auth-card .btn {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
}

/* ==================== DASHBOARD STATS ==================== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a1a1a, var(--giki-green));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-card h4 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.stat-card p {
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

/* ==================== CART ==================== */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.cart-item:hover {
  background: var(--bg-card);
  margin: 0 -1rem;
  padding: 1rem;
  border-radius: 8px;
}

.cart-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--giki-green);
  padding: 1.5rem 0;
}

/* ==================== ORDER TRACKING ==================== */
.tracking-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tracking-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1a1a1a 0%, var(--giki-green) 50%, #1a1a1a 100%);
}

.tracking-card .order-id {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.tracking-card .status-badge {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.rider-location {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  border-left: 4px solid var(--giki-green);
}

/* ==================== LOADING SPINNER ==================== */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-brand::before {
    font-size: 1.5rem;
  }
  
  .card:hover {
    transform: translateY(-4px);
  }
  
  .auth-card {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .stat-card h4 {
    font-size: 2rem;
  }
  
  .table {
    font-size: 0.875rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
  }
}

/* ==================== HOVER EFFECTS ==================== */
.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
}

/* ==================== GLASSMORPHISM ==================== */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ==================== GLASS CARD (Dashboard) ==================== */
.glass-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.glass-card:hover {
  box-shadow: var(--shadow-md);
}

/* ==================== TEXT GRADIENT ==================== */
.text-gradient {
  background: linear-gradient(135deg, #1a1a1a 0%, var(--giki-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== GRADIENT TEXT ==================== */
.gradient-text {
  background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 40%, var(--giki-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== FADE IN UP ANIMATION ==================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ==================== ORDER CARD ==================== */
.order-card {
  background: #f8f8f8;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all var(--transition-base);
}

.order-card:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* ==================== ACTIVE DELIVERY CARD ==================== */
.active-delivery-card {
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--giki-green);
}

/* ==================== MENU ITEM CARD ==================== */
.menu-item-card {
  transition: all var(--transition-base);
}

/* ==================== ANIMATIONS ON SCROLL ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

/* ==================== WELCOME HERO ==================== */
.hero-section {
  text-align: center;
  padding: 4rem 0;
}

.hero-section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ==================== FLOATING ACTION BUTTON ==================== */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-dark);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 100;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  background: linear-gradient(135deg, var(--giki-green) 0%, #43a047 100%);
}

/* ==================== TOOLTIP ==================== */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #1a1a1a;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== AVATAR CIRCLE ==================== */
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--giki-green) 0%, #43a047 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* ==================== PANDA MASCOT DECORATION ==================== */
.panda-decoration {
  position: relative;
}

.panda-decoration::after {
  content: '🐼';
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.15;
  right: 10px;
  bottom: 10px;
}

/* ==================== FEATURE ICONS ==================== */
.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-base);
}

.feature-icon:hover {
  background: linear-gradient(135deg, var(--giki-green) 0%, #43a047 100%);
  transform: scale(1.1);
}

/* ==================== STATUS TIMELINE ==================== */
.status-timeline {
  position: relative;
  padding-left: 40px;
}

.status-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e0e0e0;
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: -40px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #757575;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 1;
  transition: all var(--transition-base);
}

.timeline-item.active .timeline-icon {
  background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.2);
}

.timeline-item.active[data-status="delivered"] .timeline-icon {
  background: linear-gradient(135deg, var(--giki-green) 0%, #43a047 100%);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.2);
}

.timeline-content h6 {
  color: #757575;
  font-weight: 500;
}

.timeline-item.active .timeline-content h6 {
  color: #1a1a1a;
  font-weight: 600;
}

/* ==================== NAVBAR TOGGLER ==================== */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==================== MODAL STYLING ==================== */
.modal-content {
  background: #ffffff;
  border-radius: 16px;
}

.modal-header {
  border-bottom: 1px solid #e0e0e0;
}

.modal-footer {
  border-top: 1px solid #e0e0e0;
}

/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: rgba(255, 255, 255, 0.7);
  border-top: 3px solid var(--giki-green) !important;
}

footer p {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ==================== TEXT UTILITIES ==================== */
.text-primary {
  color: #1a1a1a !important;
}

.text-success, .text-giki {
  color: var(--giki-green) !important;
}

.bg-dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

/* ==================== BORDER UTILITIES ==================== */
.border-primary {
  border-color: #1a1a1a !important;
}

.border-success {
  border-color: var(--giki-green) !important;
}

/* ==================== PANDA HERO ICON ==================== */
.panda-hero-icon {
  animation: pandaFloat 3s ease-in-out infinite;
}

@keyframes pandaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   MOBILE RESPONSIVE LAYER
   The base styles are tuned for desktop; this layer scales the
   spacing, headings and components down so every page looks good
   on tablets and phones. (Appended last so it wins the cascade.)
   ============================================================ */

/* Global safety net: never allow horizontal scroll; keep media fluid */
body { overflow-x: hidden; }
img, svg, video, canvas, iframe, .leaflet-container { max-width: 100%; }

/* ---------- Tablets and small laptops ---------- */
@media (max-width: 768px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  main.container { padding-top: 1rem; padding-bottom: 2rem; }

  /* Trim the large desktop spacing the app uses on every page */
  .py-5 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
  .pt-5 { padding-top: 1.75rem !important; }
  .pb-5 { padding-bottom: 1.75rem !important; }
  .p-5  { padding: 1.5rem !important; }
  .p-4  { padding: 1.15rem !important; }
  .mt-5, .my-5 { margin-top: 1.5rem !important; }
  .mb-5, .my-5 { margin-bottom: 1.5rem !important; }

  /* Hero and headings scale down */
  .hero-section { padding: 2rem 0; }
  .hero-section h2 { font-size: 2rem; }
  .hero-section p  { font-size: 1.05rem; }
  .display-1 { font-size: 3.2rem !important; }
  .display-6 { font-size: 1.6rem !important; }

  /* Cards a touch tighter; comfortable tap targets */
  .glass-card { border-radius: 14px; }
  .vendor-card .card-body { padding: 1.1rem; }
  .btn { min-height: 42px; }
  .btn-lg { padding: 0.7rem 1.4rem; font-size: 1rem; }

  /* Tables scroll smoothly inside their responsive wrapper */
  .table-responsive { -webkit-overflow-scrolling: touch; }
  .table { font-size: 0.85rem; }
}

/* ---------- Phones ---------- */
@media (max-width: 576px) {
  main.container { padding-top: 0.5rem; }
  .py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }

  .hero-section h2 { font-size: 1.7rem; }
  .hero-section p  { font-size: 1rem; }
  .display-1 { font-size: 2.6rem !important; }
  h2, .h2 { font-size: 1.45rem; }
  h3, .h3 { font-size: 1.25rem; }
  h4, .h4 { font-size: 1.1rem; }

  /* Big decorative emoji shouldn't dominate a small screen */
  .panda-hero-icon span { font-size: 3.2rem !important; }

  /* iOS auto-zooms a focused input when its font is < 16px; prevent that */
  input, select, textarea, .form-control, .form-select { font-size: 16px; }

  /* Toasts and dropdowns must fit a narrow screen */
  .toast { min-width: auto; max-width: 92vw; }
  .dropdown-menu { min-width: 200px; }

  /* Stat numbers a bit smaller so cards don't overflow */
  .stat-card h3, .glass-card h3 { font-size: 1.6rem; }
}

/* ============================================================
   FLUID SCALING  (clamp): these adapt smoothly on EVERY screen
   size with no breakpoints. Placed last so they take precedence.
   ============================================================ */
.container        { padding-left: clamp(0.85rem, 4vw, 1.5rem);
                    padding-right: clamp(0.85rem, 4vw, 1.5rem); }
.hero-section     { padding: clamp(1.5rem, 6vw, 4rem) 0; }
.hero-section h2  { font-size: clamp(1.6rem, 6vw, 3rem); line-height: 1.15; }
.hero-section p   { font-size: clamp(0.95rem, 3vw, 1.25rem); }
.display-1        { font-size: clamp(2.3rem, 11vw, 5rem) !important; }
.text-gradient, .gradient-text { line-height: 1.18; }

/* Section headings used across dashboards scale with the viewport */
h2.fw-bold, .h2.fw-bold { font-size: clamp(1.35rem, 4.5vw, 2rem); }
h4.fw-bold, .h4.fw-bold { font-size: clamp(1.1rem, 3.2vw, 1.5rem); }

/* ============================================================
   MOBILE UI FIXES  (from on-device review)
   ============================================================ */
@media (max-width: 576px) {
  /* Floating cart: smaller, tucked in the corner, and never hide content */
  .fab { width: 52px; height: 52px; bottom: 1rem; right: 1rem; font-size: 1.2rem; }
  main.container, .container.py-5, .container.py-4 { padding-bottom: 5rem; }

  /* Vendor card: clamp the description to 3 lines so cards aren't huge */
  .vendor-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Category chip row: let the last chip scroll clear of the cart button */
  .category-nav { padding-right: 3.5rem; scroll-padding-right: 3.5rem; }

  /* ---- Responsive tables: turn a .table-cards table into stacked cards ---- */
  table.table-cards thead { display: none; }
  table.table-cards tr, table.table-cards tbody tr {
    display: block;
    margin-bottom: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }
  table.table-cards td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: right;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 0.6rem 0.9rem;
  }
  table.table-cards td:last-child { border-bottom: none; }
  table.table-cards td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    flex: 0 0 auto;
  }
  /* A cards table no longer needs to scroll sideways */
  .table-cards.table { font-size: 0.95rem; }

  /* The actions cell becomes a centered, wrapping row of buttons (no label) */
  table.table-cards td.td-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    background: #fafafa;
  }
  table.table-cards td.td-actions::before { display: none; }

  /* Map legend: compact on phones so it doesn't fight the marker popups */
  .map-legend {
    font-size: 10px !important;
    padding: 7px 9px !important;
    bottom: 10px !important;
    left: 10px !important;
    max-width: 45%;
  }
}

/* ============================================================
   FOODPANDA-STYLE DESIGN SYSTEM
   Modern, app-like look: brand green + orange accent, clean
   cards, pills, food tiles, and a mobile bottom navigation bar.
   ============================================================ */
:root {
  --fp-green: #2E7D32;
  --fp-forest: #1B5E20;
  --fp-accent: #F57C00;
  --fp-star: #FBC02D;
  --fp-ink: #1A1A1A;
  --fp-bg: #f4f5f7;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--fp-bg);
}

/* Buttons: brand green, rounded, bold */
.btn { font-weight: 600; }
.btn-primary, .btn-success {
  background: var(--fp-green); border-color: var(--fp-green);
}
.btn-primary:hover, .btn-primary:focus,
.btn-success:hover, .btn-success:focus {
  background: var(--fp-forest); border-color: var(--fp-forest);
}

/* Greeting header (green band) on the home screen */
.fp-home-header {
  background: linear-gradient(135deg, var(--fp-green), var(--fp-forest));
  color: #fff;
  border-radius: 20px;
  padding: 1.25rem 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
}
.fp-deliver-to { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.fp-home-header h1 { font-size: clamp(1.35rem, 5vw, 1.9rem); font-weight: 800; margin: .15rem 0 1rem; }

/* Search bar */
.fp-search {
  display: flex; align-items: center; gap: .6rem;
  background: #fff; border-radius: 14px; padding: .8rem 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.14); color: var(--fp-ink);
}
.fp-search input { border: none; outline: none; flex: 1; font-size: .95rem; background: transparent; color: var(--fp-ink); }

/* Section title */
.fp-section-title { font-weight: 800; color: var(--fp-ink); font-size: 1.12rem; }

/* Restaurant card */
.fp-rest-card {
  background: #fff; border: 1px solid #eee; border-radius: 18px; overflow: hidden;
  cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.07);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.fp-rest-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.fp-rest-cover {
  height: 110px; display: flex; align-items: flex-start; justify-content: space-between;
  padding: .65rem; color: #fff; background: linear-gradient(135deg, #e8553a, #c0392b);
}
.fp-rest-cover .panda { font-size: 2.4rem; line-height: 1; opacity: .9; }
.fp-rest-body { padding: .85rem 1rem 1rem; }
.fp-rest-body h3 { font-size: 1.05rem; font-weight: 800; color: var(--fp-ink); margin: 0; }
.fp-badge-open {
  background: rgba(255,255,255,.9); color: var(--fp-green); font-weight: 700;
  font-size: .68rem; padding: .2rem .6rem; border-radius: 999px;
}
.fp-badge-closed {
  background: rgba(0,0,0,.6); color: #fff; font-weight: 700;
  font-size: .68rem; padding: .2rem .6rem; border-radius: 999px;
}
/* A closed shop still opens (so you can browse the menu) but reads as "off":
   grey cover + dimmed body so it's obvious it isn't taking orders now. */
.fp-rest-card.is-closed .fp-rest-cover { background: linear-gradient(135deg, #9aa0a6, #6b7075); }
.fp-rest-card.is-closed .fp-rest-body { opacity: .72; }
.fp-rating { color: var(--fp-ink); font-weight: 700; }
.fp-rating i { color: var(--fp-star); }
.fp-meta { color: #777; font-size: .85rem; }
.fp-pill {
  display: inline-block; background: #f1f3f5; color: #444; border-radius: 999px;
  padding: .25rem .7rem; font-size: .8rem; font-weight: 600; white-space: nowrap;
}

/* Solid food tile (used where there is no photo) */
.fp-food-tile {
  border-radius: 14px; width: 100%; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; text-align: center; padding: .4rem; font-size: .78rem;
}

/* ---- Mobile bottom navigation ---- */
.fp-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  background: #fff; border-top: 1px solid #ececec;
  box-shadow: 0 -2px 14px rgba(0,0,0,.06);
  display: flex; justify-content: space-around;
  /* Sit above the gesture bar on notched phones (inset is 0 elsewhere) */
  padding: .45rem 0 calc(.55rem + env(safe-area-inset-bottom, 0px));
}
.fp-bottom-nav a {
  flex: 1; text-align: center; color: #9aa0a6; text-decoration: none;
  font-size: .68rem; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.fp-bottom-nav a i { font-size: 1.15rem; }
/* Cart count bubble on the bottom-nav icon (hidden while the count is 0). */
.fp-nav-icon { position: relative; display: inline-flex; }
.fp-nav-badge {
  position: absolute; top: -5px; right: -11px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--fp-green); color: #fff;
  font-size: .62rem; font-weight: 800; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.fp-nav-badge.is-zero { display: none; }
.fp-bottom-nav a.active { color: var(--fp-green); }
body.has-bottom-nav { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) {
  .fp-bottom-nav { display: none; }
  body.has-bottom-nav { padding-bottom: 0; }
}
/* Installed-PWA on a notched phone: viewport-fit=cover extends the page under
   the status bar / notch, so pad the top back out. In a browser tab (and on
   phones without a notch) the inset is 0 and this is a no-op. */
@media all and (display-mode: standalone) {
  body { padding-top: env(safe-area-inset-top, 0px); }
}
/* ===================== PWA install UI ===================== */
.pwa-install-btn {
    position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 1055;
    background: var(--fp-green, #2E7D32); color: #fff; border: none;
    border-radius: 999px; padding: .7rem 1.2rem; font-weight: 700; font-size: .9rem;
    box-shadow: 0 8px 22px rgba(46,125,50,.45); cursor: pointer;
}
.pwa-install-btn:hover { background: var(--fp-forest, #1B5E20); }
/* keep it clear of the customer bottom nav on mobile */
@media (max-width: 767px) {
    body.has-bottom-nav .pwa-install-btn { bottom: calc(5.3rem + env(safe-area-inset-bottom, 0px)); }
}
.pwa-ios-hint {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 1055;
    width: min(92%, 460px); background: #16181C; color: #fff;
    border-radius: 14px; padding: .8rem 1rem; font-size: .85rem;
    display: flex; align-items: center; gap: .75rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.pwa-ios-hint button {
    background: rgba(255,255,255,.15); border: none; color: #fff;
    width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px; cursor: pointer;
}
@media (max-width: 767px) {
    body.has-bottom-nav .pwa-ios-hint { bottom: calc(5.3rem + env(safe-area-inset-bottom, 0px)); }
}

/* ===================== Install-the-app banner (home) ===================== */
.install-banner {
    display: flex; align-items: center; gap: .75rem;
    background: #fff; border: 1px solid #eef0f2; border-radius: 16px;
    padding: .8rem 1rem; margin-bottom: 1.1rem; text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.06); position: relative;
}
.install-banner-icon { font-size: 1.6rem; flex: 0 0 auto; }
.install-banner-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.install-banner-text strong { color: var(--fp-ink, #1a1a1a); font-size: .95rem; }
.install-banner-text small { color: #9aa0a6; font-size: .78rem; }
.install-banner-cta {
    background: var(--fp-green, #2E7D32); color: #fff; font-weight: 700;
    font-size: .82rem; padding: .45rem .9rem; border-radius: 999px; flex: 0 0 auto;
}
.install-banner-x {
    background: transparent; border: none; color: #b5bac2; cursor: pointer;
    width: 26px; height: 26px; flex: 0 0 auto; font-size: .85rem;
}

/* ============================ SPLASH SCREEN ============================ */
.splash-screen {
    position: fixed; inset: 0; z-index: 3000; overflow: hidden;
    background: linear-gradient(165deg, #319038 0%, #2E7D32 42%, #1B5E20 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.splash-glow {
    position: absolute; width: 280px; height: 280px; border-radius: 50%;
    background: rgba(255,255,255,.06); top: 24%;
}
.splash-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.splash-panda-img { filter: drop-shadow(0 14px 28px rgba(0,0,0,.25)); animation: splashpop .5s ease-out; }
@keyframes splashpop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.splash-name { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: 1rem 0 .25rem; }
.splash-tag { color: rgba(255,255,255,.82); font-weight: 500; margin: 0; }
.splash-bar {
    position: absolute; bottom: 11%; width: 130px; height: 5px; border-radius: 3px;
    background: rgba(255,255,255,.22); overflow: hidden; z-index: 2;
}
.splash-bar span { display: block; height: 100%; width: 8%; background: #FF7A1A; border-radius: 3px; animation: splashload 2.1s ease forwards; }
@keyframes splashload { to { width: 100%; } }

/* ============================ AUTH SCREENS ============================ */
.auth-screen {
    position: fixed; inset: 0; z-index: 1200; background: #fff;
    overflow-y: auto; display: flex; align-items: flex-start; justify-content: center;
}
.auth-inner { width: 100%; max-width: 440px; padding: 2.4rem 1.6rem 2.6rem; }
.auth-title { font-size: 1.6rem; font-weight: 800; color: #16181C; letter-spacing: -.02em; margin: 0 0 .25rem; }
.auth-sub { color: #6B7280; font-size: .95rem; margin: 0 0 1.25rem; }
.auth-toggle { display: flex; background: #F3F4F6; border-radius: 14px; padding: 4px; margin-bottom: 1.25rem; }
.auth-toggle span, .auth-toggle a {
    flex: 1; text-align: center; font-size: .92rem; font-weight: 700; padding: 9px;
    border-radius: 11px; text-decoration: none; color: #9AA0A6;
}
.auth-toggle .active { background: #fff; color: #16181C; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.auth-label { font-size: .72rem; font-weight: 700; color: #6B7280; letter-spacing: .03em; display: block; margin-bottom: .4rem; }
.auth-field {
    display: flex; align-items: center; gap: .6rem;
    border: 1.5px solid #EAECEF; border-radius: 13px; padding: 12px 13px; background: #fff;
}
.auth-field:focus-within { border-color: #2E7D32; }
.auth-field i { color: #9AA0A6; font-size: 1rem; width: 18px; text-align: center; }
.auth-field input, .auth-field select {
    border: none; outline: none; flex: 1; font-size: .95rem; color: #16181C; background: transparent;
}
.auth-field input::placeholder { color: #b5bac2; }
.auth-eye { border: none; background: transparent; color: #9AA0A6; padding: 0; cursor: pointer; }
.auth-roles { display: flex; gap: 8px; }
.auth-role {
    flex: 1; text-align: center; font-size: .85rem; font-weight: 700; padding: 10px;
    border-radius: 11px; background: #F6F7F8; color: #6B7280; cursor: pointer;
    border: 1.5px solid transparent; margin: 0;
}
.btn-check:checked + .auth-role { background: #E8F5E9; color: #2E7D32; border-color: #2E7D32; }
.auth-continue {
    background: #2E7D32; color: #fff; font-size: 1rem; font-weight: 700;
    padding: 15px; border-radius: 15px; box-shadow: 0 10px 22px -8px rgba(46,125,50,.55);
}
.auth-continue:hover { background: #1B5E20; color: #fff; }
.auth-foot { text-align: center; color: #6B7280; font-size: .9rem; margin-top: 1.25rem; }
.auth-foot a { color: #2E7D32; font-weight: 700; text-decoration: none; }
