:root {
  --primary: #15803d;
  --primary-glow: #22c55e;
  --primary-dark: #0f391b;
  --primary-light: #4ade80;
  --terracotta: #c25e1a;
  --terracotta-glow: #ea580c;
  --amber: #f59e0b;
  --bg-main: #060b08;
  --bg-card: rgba(14, 23, 18, 0.88);
  --bg-card-hover: rgba(20, 35, 27, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-color: rgba(34, 197, 94, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --danger: #ef4444;
  --info: #0284c7;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(34, 197, 94, 0.35);
  --shadow-terracotta: 0 0 25px rgba(194, 94, 26, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(21, 128, 61, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(194, 94, 26, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(6, 11, 8, 1) 0%, #040805 100%);
  background-attachment: fixed;
}

/* App Wrapper for Mobile viewport on Desktop & Fullscreen on Mobile */
.app-container {
  width: 100%;
  max-width: 440px;
  height: 100vh;
  max-height: 920px;
  background: #090e0b;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(34, 197, 94, 0.2);
  overflow: hidden;
  border-radius: 0;
}

@media (min-width: 480px) {
  .app-container {
    height: 92vh;
    border-radius: 36px;
    border: 3px solid rgba(34, 197, 94, 0.25);
  }
}

/* Header Bar */
.app-header {
  position: relative;
  z-index: 30;
  padding: calc(14px + var(--safe-top)) 16px 14px;
  background: rgba(9, 14, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-trigger-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-trigger-btn:hover, .menu-trigger-btn:active {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--primary-glow);
  transform: scale(0.96);
}

.menu-trigger-btn span {
  display: block;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.menu-trigger-btn span:nth-child(1) { width: 18px; }
.menu-trigger-btn span:nth-child(2) { width: 12px; align-self: flex-start; margin-left: 11px; }
.menu-trigger-btn span:nth-child(3) { width: 18px; }

.header-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--terracotta-glow);
  text-transform: uppercase;
}

.header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-light);
  transition: all 0.3s ease;
}

.status-chip.grounded {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.status-chip.night {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--primary-glow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-glow);
  animation: pulse-dot 2s infinite ease-in-out;
}

.status-dot.red {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.status-dot.blue {
  background: #6366f1;
  box-shadow: 0 0 8px #6366f1;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Screens Common */
.screen-viewport {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.screen {
  display: none;
  min-height: 100%;
  padding: 18px 18px calc(24px + var(--safe-bottom));
  animation: fadeInScreen 0.35s ease-out forwards;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

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

/* ================= WELCOME SCREEN ================= */
#welcome-screen {
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 30px 20px calc(20px + var(--safe-bottom));
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(34, 197, 94, 0.12) 0%, transparent 65%);
}

.welcome-logo-container {
  margin-top: 10px;
  position: relative;
}

.logo-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35) 0%, rgba(194, 94, 26, 0.2) 70%, transparent 100%);
  filter: blur(16px);
  animation: breathe 3s infinite ease-in-out alternate;
}

@keyframes breathe {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.welcome-logo {
  position: relative;
  max-width: 210px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 14px;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.25);
}

.welcome-content {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.welcome-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta-glow);
}

.welcome-title {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-tagline {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: -3px;
}

.welcome-trust-badge {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.welcome-trust-badge .badge-icon {
  font-size: 16px;
  color: var(--primary-glow);
}

.welcome-trust-badge p {
  font-size: 12px;
  font-weight: 500;
  color: #e2e8f0;
}

/* Simplified Assistance Button in Welcome Screen */
.welcome-assist-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 12px 0 4px;
}

.btn-need-assistance {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-need-assistance:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--primary-glow);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-need-assistance .click-here {
  color: #4ade80;
  text-decoration: underline;
  font-weight: 700;
}

/* Contact Card in Welcome Screen */
.welcome-enquiry-card {
  width: 100%;
  background: linear-gradient(145deg, rgba(22, 101, 52, 0.25), rgba(154, 52, 18, 0.2));
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.enquiry-text-top {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.enquiry-phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.phone-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f8fafc;
}

.phone-display .phone-icon {
  color: var(--primary-glow);
}

.enquiry-actions {
  display: flex;
  gap: 8px;
}

.btn-icon-call {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.4);
}

.btn-icon-call:hover {
  background: var(--primary-glow);
  transform: translateY(-1px);
}

.btn-icon-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 7px 11px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

.welcome-top-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
  padding: 24px 0 16px;
}

.welcome-bottom-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 4px;
}

.welcome-bottom-group .welcome-assist-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 !important;
}

.welcome-bottom-group .btn-primary-big {
  margin-top: 0 !important;
  width: 100%;
}

.welcome-bottom-group .developer-credit-tag {
  margin-top: 8px !important;
  padding: 2px 0 0 0 !important;
}

/* Queue Explanation Banner */
.queue-explanation-banner {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.16) 0%, rgba(202, 138, 4, 0.08) 100%);
  border: 1px solid rgba(250, 204, 21, 0.4);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: 12px 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.queue-explanation-banner .q-banner-icon {
  font-size: 22px;
  animation: drone-bob 2s infinite ease-in-out;
}

@keyframes drone-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.q-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.q-banner-text .q-main-msg {
  color: #fef08a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.q-banner-text .q-sub-msg {
  color: #94a3b8;
  font-size: 11px;
}

.queue-plot-ref {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

#home-screen {
  padding-bottom: calc(105px + var(--safe-bottom));
}

/* Developer credit badge */
.developer-credit-tag {
  font-size: 11px;
  color: #94a3b8;
  margin-top: auto;
  padding-top: 10px;
  padding-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.developer-credit-tag a,
.drawer-footer a,
.bottom-docked-action a,
a[href*="tehub.in"] {
  color: #4ade80 !important;
  text-decoration: none !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.developer-credit-tag a:hover,
.drawer-footer a:hover,
.bottom-docked-action a:hover,
a[href*="tehub.in"]:hover {
  color: #86efac !important;
  text-decoration: none !important;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.developer-credit-tag strong {
  color: var(--primary-light);
  font-weight: 700;
}

/* Primary Action Buttons */
.btn-primary-big {
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 50%, #0f5127 100%);
  color: #ffffff;
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
  margin-top: 8px;
}

.btn-primary-big:hover {
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.55);
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-primary-big:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

/* ================= LOGIN SCREEN ================= */
#login-screen {
  justify-content: center;
  padding: 24px 20px;
}

.login-header-block {
  text-align: center;
  margin-bottom: 22px;
}

.login-logo-mini {
  max-width: 160px;
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  margin-bottom: 14px;
}

.login-header-block h2 {
  font-size: 21px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 4px;
}

.login-header-block p {
  font-size: 12px;
  color: var(--text-dim);
}

.login-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.input-label {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.custom-input {
  width: 100%;
  padding: 12px 40px 12px 40px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.custom-input:focus {
  outline: none;
  border-color: var(--primary-glow);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  background: rgba(0, 0, 0, 0.6);
}

.input-toggle-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

.remember-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember-wrap input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.demo-account-pill {
  background: rgba(194, 94, 26, 0.15);
  border: 1px dashed rgba(194, 94, 26, 0.4);
  color: #fdba74;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-account-pill:hover {
  background: rgba(194, 94, 26, 0.25);
  border-color: var(--terracotta-glow);
}

.demo-account-pill span strong {
  color: #fff;
}

/* ================= HOME DASHBOARD SCREEN ================= */
#home-screen {
  gap: 14px;
  padding-bottom: 96px;
}

.welcome-user-banner {
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.3) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #15803d, #c25e1a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-text-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.user-text-info p {
  font-size: 11px;
  color: var(--text-dim);
}

.ownership-tag {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-top: 2px;
  text-transform: uppercase;
}

/* Quick History Shortcut on Dashboard */
.btn-quick-history {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-quick-history:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--primary-glow);
}

/* Main Plot Detail Card */
.plot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.plot-card-header {
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(21, 128, 61, 0.35) 0%, rgba(9, 14, 11, 0.9) 100%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plot-title-group h2 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plot-project-name {
  font-size: 11px;
  color: var(--primary-light);
  font-weight: 600;
}

.badge-verified {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.plot-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.detail-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cell-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cell-value {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

.cell-value.highlight { color: #38bdf8; }
.cell-value.green { color: var(--primary-light); }
.cell-value.terracotta { color: #fb923c; }

/* Satellite Plot Visualizer */
.plot-satellite-preview {
  position: relative;
  margin: 0 14px 14px;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: #0d1a12;
}

.map-terrain-layer {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(22, 101, 52, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 60%, rgba(180, 83, 9, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, #09130c 0%, #0a1f13 100%);
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(34, 197, 94, 0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(34, 197, 94, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.plot-target-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 5;
}

.plot-boundary-box {
  width: 90px;
  height: 56px;
  border: 2px dashed #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
  animation: pulse-border 2.5s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: #22c55e; box-shadow: 0 0 14px rgba(34, 197, 94, 0.3); }
  50% { border-color: #4ade80; box-shadow: 0 0 24px rgba(34, 197, 94, 0.6); }
}

.boundary-label {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  padding: 2px 6px;
  border-radius: 4px;
}

.pin-icon {
  position: absolute;
  top: -12px;
  color: #ef4444;
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.map-meta-overlay {
  position: absolute;
  bottom: 6px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ================= WEATHER CONDITIONS CARD ================= */
.flight-conditions-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
}

.conditions-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.conditions-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.conditions-col .cond-icon {
  font-size: 26px;
}

.cond-data h4 {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.cond-data p {
  font-size: 11px;
  color: var(--text-dim);
}

.drone-status-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.drone-status-tag:hover {
  transform: scale(1.06);
  filter: brightness(1.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.drone-status-tag:active {
  transform: scale(0.94);
}

.drone-status-tag.pop {
  animation: tag-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tag-pop {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.drone-status-tag.ready {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.drone-status-tag.rain {
  color: #f87171;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.drone-status-tag.night {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.5);
}

/* Weather Demo Switcher (Quick Toggle) */
.weather-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

.weather-demo-label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.weather-demo-buttons {
  display: flex;
  gap: 6px;
}

.btn-weather-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-weather-chip.active {
  background: var(--primary);
  border-color: var(--primary-glow);
  color: #fff;
  font-weight: 700;
}

.btn-weather-chip:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Bottom Request Drone View Action Button */
.bottom-docked-action {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  padding: 10px 18px calc(12px + var(--safe-bottom));
  background: rgba(9, 14, 11, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.btn-request-drone {
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 40%, #c25e1a 100%);
  color: #ffffff;
  border: 1px solid rgba(74, 222, 128, 0.5);
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(22, 163, 74, 0.45);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-request-drone.disabled-weather {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.btn-request-drone::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine-sweep 3s infinite;
}

@keyframes shine-sweep {
  0% { left: -100%; }
  25%, 100% { left: 100%; }
}

.btn-request-drone:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(22, 163, 74, 0.6);
  filter: brightness(1.08);
}

.btn-request-drone .drone-btn-icon {
  font-size: 22px;
  animation: drone-hover 2s infinite ease-in-out;
}

@keyframes drone-hover {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}

/* ================= QUEUE SCREEN ================= */
#queue-screen {
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
}

.queue-radar-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.queue-badge-chip {
  background: rgba(194, 94, 26, 0.2);
  border: 1px solid rgba(194, 94, 26, 0.4);
  color: #fb923c;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.queue-number-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.queue-number-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, #0f391b 0%, #060b08 100%);
  border: 3px solid var(--primary-glow);
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.4), inset 0 0 20px rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.queue-number-text {
  font-size: 46px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px var(--primary-glow);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.queue-number-text.pop {
  animation: number-pop 0.4s ease-out;
}

@keyframes number-pop {
  0% { transform: scale(0.6); opacity: 0.3; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

.queue-label-text {
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 10px;
}

.queue-subtext {
  font-size: 12px;
  color: var(--text-dim);
}

/* Estimated Time Box */
.estimated-time-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.eta-icon {
  font-size: 22px;
  color: var(--amber);
}

.eta-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.eta-desc {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
}

.eta-timer-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* Queue steps tracker */
.queue-steps-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.step-item.completed { color: var(--primary-light); }
.step-item.active { color: #ffffff; font-weight: 700; }

.step-icon-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.step-item.completed .step-icon-dot {
  background: var(--primary);
  border-color: var(--primary-glow);
  color: #fff;
}

.step-item.active .step-icon-dot {
  background: var(--terracotta);
  border-color: var(--terracotta-glow);
  color: #fff;
  box-shadow: 0 0 10px var(--terracotta-glow);
  animation: pulse-dot 1.5s infinite;
}

.btn-cancel-queue {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel-queue:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
}

/* ================= DRONE ACTIVE RECORDING SCREEN ================= */
#recording-screen {
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
}

.drone-hud-frame {
  width: 100%;
  background: #040906;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.radar-sweep-container {
  width: 170px;
  height: 170px;
  position: relative;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 25px rgba(34, 197, 94, 0.2);
  margin: 6px 0;
}

.radar-sweep-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(34, 197, 94, 0.45) 360deg);
  animation: sweep 2.5s linear infinite;
}

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(34, 197, 94, 0.25);
}
.radar-ring.r1 { width: 55px; height: 55px; }
.radar-ring.r2 { width: 110px; height: 110px; }

.drone-center-icon {
  position: relative;
  z-index: 5;
  font-size: 30px;
  animation: drone-pitch 2s infinite ease-in-out alternate;
}

@keyframes drone-pitch {
  0% { transform: translateY(-4px) rotate(-4deg); }
  100% { transform: translateY(4px) rotate(4deg); }
}

.hud-rec-tag {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 1px;
}

.hud-rec-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
  animation: rec-blink 1s infinite;
}

@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hud-battery-tag {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 4px;
}

.recording-announcement h2 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 4px;
}

.recording-announcement p {
  font-size: 12px;
  color: var(--primary-light);
  font-weight: 500;
}

/* Flight Telemetry Grid */
.hud-telemetry-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tel-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tel-val {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
}

.recording-countdown-box {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.rec-timer-number {
  font-size: 24px;
  font-weight: 900;
  color: #4ade80;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

/* ================= VIDEO PLAYBACK SCREEN ================= */
#video-screen {
  gap: 14px;
  padding: 16px;
}

.video-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-header-bar h2 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-video-live {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-player-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(34, 197, 94, 0.2);
  position: relative;
}

.video-element {
  width: 100%;
  height: auto;
  max-height: 270px;
  display: block;
  object-fit: cover;
  background: #000;
}

.video-flight-hud-overlay {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.hud-plot-tag {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.hud-res-tag {
  background: rgba(34, 197, 94, 0.3);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
}

.video-timestamp-watermark {
  position: absolute;
  bottom: 50px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: #f1f5f9;
  font-weight: 600;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.video-controls-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(14, 23, 18, 0.95);
  border-top: 1px solid var(--border-subtle);
}

.btn-ctrl {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-ctrl:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--primary-glow);
}

.video-progress-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.video-seek-slider {
  width: 100%;
  height: 6px;
  accent-color: var(--primary-glow);
  cursor: pointer;
}

.video-time-display {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.video-meta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.meta-row .m-label { color: var(--text-muted); }
.meta-row .m-val { color: #f1f5f9; font-weight: 600; }

.video-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-secondary {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #f8fafc;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ================= DRONE VIDEO HISTORY SCREEN / MODAL ================= */
.history-flight-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
}

.history-card-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.history-card-item:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
}

.history-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-flight-id {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-date-badge {
  font-size: 10px;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
}

.history-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
}

.history-btn-watch {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.history-btn-watch:hover {
  background: var(--primary-glow);
  transform: translateY(-1px);
}

/* ================= SIDEBAR DRAWER MENU ================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #09110c;
  border-right: 1px solid var(--border-color);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.drawer-backdrop.active .drawer-menu {
  transform: translateX(0);
}

.drawer-header {
  padding: calc(22px + var(--safe-top)) 18px 18px;
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.4) 0%, rgba(9, 17, 12, 0.95) 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.drawer-close-btn {
  position: absolute;
  top: calc(14px + var(--safe-top));
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.drawer-brand-logo {
  max-width: 140px;
  height: auto;
  border-radius: 6px;
  background: #fff;
  padding: 6px 10px;
  margin-bottom: 12px;
}

.drawer-user-info h3 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.drawer-user-info p {
  font-size: 11px;
  color: var(--text-dim);
}

.drawer-nav-list {
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item-btn .nav-icon {
  font-size: 17px;
  color: var(--primary-light);
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item-btn:hover {
  background: rgba(34, 197, 94, 0.12);
  color: #ffffff;
  transform: translateX(4px);
}

.drawer-contact-box {
  margin: 8px 12px 12px;
  background: linear-gradient(135deg, rgba(194, 94, 26, 0.2), rgba(21, 128, 61, 0.15));
  border: 1px solid rgba(194, 94, 26, 0.35);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-contact-box h4 {
  font-size: 11px;
  color: #fb923c;
  font-weight: 700;
  text-transform: uppercase;
}

.drawer-contact-box p {
  font-size: 11px;
  color: #e2e8f0;
}

.drawer-footer {
  padding: 12px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* ================= MODALS & DIALOGS ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 380px;
  background: #0d1510;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}

.contact-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s ease;
}

.contact-card-btn:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--primary-glow);
  transform: translateY(-1px);
}

.contact-card-btn .card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-card-btn .card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.card-icon.phone { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.card-icon.whatsapp { background: rgba(37, 211, 102, 0.2); color: #25d366; }
.card-icon.email { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }

.contact-card-btn .card-text h4 {
  font-size: 13px;
  font-weight: 700;
}

.contact-card-btn .card-text p {
  font-size: 11px;
  color: var(--text-dim);
}

/* Toast notifications */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #112217;
  border: 1px solid var(--primary-glow);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 200;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
}
