@charset "UTF-8";
/* ================= Font Family =========== */
/* ================= Colors =========== */
/* ============== Define Color ============== */
/* ================= Font Size =========== */
/* ================= Padding =========== */
#climateMap {
  height: auto;
  position: fixed !important;
  overflow: hidden;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
}

body.define-main {
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 50%, #e9e5ff 100%);
  color: #1e1b4b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.define-main .glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(221, 214, 254, 0.25) 50%, rgba(255, 255, 255, 0.5) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.define-main .glass-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(237, 233, 254, 0.5) 30%, rgba(221, 214, 254, 0.4) 70%, rgba(255, 255, 255, 0.65) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.18), 0 0 80px rgba(139, 92, 246, 0.08), inset 0 2px 4px rgb(255, 255, 255), inset 0 -1px 2px rgba(124, 58, 237, 0.03);
  border-top: none;
}

.define-main .bg-purple-gradient {
  background: linear-gradient(135deg, #a25cf6, #7c3aed, #4c1d95);
}

.define-main .bg-accent-pink-gradient {
  background: linear-gradient(135deg, #00f0ff, #a25cf6, #ff00ea);
}

.define-main .border-accent-pink-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, #00f0ff, #a25cf6, #ff00ea) 1;
  background: transparent;
}

.define-main .orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.define-main .orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: defineBreathe 8s ease-in-out infinite;
}

.define-main .orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation: defineBreathe 10s ease-in-out infinite 2s;
}

.define-main .orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation: defineBreathe 7s ease-in-out infinite 1s;
}

.define-main .scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #bf00ff, transparent);
  opacity: 0.1;
  z-index: 1000;
  pointer-events: none;
  animation: defineScanline 8s linear infinite;
}

.define-main header {
  padding: 14px 16px;
  position: relative;
  z-index: 100;
}

.define-main .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-radius: 18px;
  animation: defineFadeIn 0.5s ease-out;
}

.define-main .logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.define-main .logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #a25cf6 0%, #7c3aed 50%, #4c1d95 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  animation: defineFloat 4s ease-in-out infinite, defineGlow 3s ease-in-out infinite;
  position: relative;
}

.define-main .logo-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.define-main .logo-text {
  font-size: 24px;
  font-weight: 800;
  color: #4c1d95;
  text-shadow: 0 2px 4px rgba(124, 58, 237, 0.1);
}

.define-main .logo-text span {
  color: #a25cf6;
}

.define-main nav {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.6);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(10px);
}

.define-main nav a {
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 22px;
  border-radius: 10px;
  transition: all 0.3s;
}

.define-main nav a:hover {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.1);
}

.define-main nav a.active {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  font-weight: 700;
}

.define-main .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.define-main .btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: #7c3aed;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
  backdrop-filter: blur(10px);
}

.define-main .btn-icon:hover {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.define-main .btn-icon .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
  animation: definePulse 2s infinite;
}

.define-main .avatar {
  border-radius: 12px;
  background: linear-gradient(135deg, #00f0ff, #a25cf6, #ff00ea);
  padding: 3px;
  cursor: pointer;
  transition: all 0.3s;
}

.define-main .avatar-inner {
  width: 100%;
  height: 100%;
  background: #3f187a;
  border-radius: 10px;
  display: flex;
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.define-main .avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.define-main .map-container {
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  animation: defineFadeIn 0.6s ease-out;
  position: relative;
  height: 100px;
}

.define-main .map-container::before {
  content: "AI ANALYSIS ACTIVE";
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 50;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #bf00ff;
  letter-spacing: 2px;
  animation: defineGlow 2s infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}

.define-main .map-container::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 8px;
  height: 8px;
  background: #00f0ff;
  border-radius: 50%;
  animation: definePulse 1s infinite;
  box-shadow: 0 0 10px #00f0ff;
}

.define-main #map {
  width: 100%;
  height: 100%;
}

.define-main .metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.define-main .metric-row:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateX(6px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.define-main .metric-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.define-main .filter-panel {
  position: absolute;
  top: 130px;
  right: 28px;
  bottom: 90px;
  width: 460px;
  border-radius: 28px;
  overflow: hidden;
  animation: defineSlideIn 0.6s ease-out;
  display: none;
}

.define-main .filter-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00f0ff, #a25cf6, transparent);
}

.define-main .filter-header {
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  position: relative;
}

.define-main .filter-title {
  font-size: 20px;
  font-weight: 800;
  color: #4c1d95;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.define-main .filter-title-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.45);
}

.define-main .filter-title-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.define-main .filter-actions {
  display: flex;
  gap: 10px;
}

.define-main .btn {
  padding: 9px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.define-main .btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: #6b7280;
  border: 1px solid rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(10px);
}

.define-main .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #7c3aed;
  transform: translateY(-2px);
}

.define-main .btn-primary {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.define-main .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
}

.define-main .filter-body {
  padding: 24px;
  height: calc(100% - 100px);
  overflow-y: auto;
  position: relative;
}

.define-main .filter-body::-webkit-scrollbar {
  width: 6px;
}

.define-main .filter-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a25cf6, #7c3aed);
  border-radius: 3px;
}

.define-main .filter-body::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.08);
  border-radius: 3px;
}

.define-main .filter-section {
  margin-bottom: 26px;
}

.define-main .filter-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #7c3aed;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.define-main .filter-section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #a25cf6, transparent);
  border-radius: 1px;
}

.define-main .filter-group {
  margin-bottom: 14px;
}

.define-main .filter-label {
  font-size: 13px;
  font-weight: 700;
  color: #4c1d95;
  margin-bottom: 8px;
  display: block;
}

.define-main .filter-input, .define-main .form-control {
  width: 100%;
  padding: 9px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(237, 233, 254, 0.5));
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  color: #4c1d95;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.define-main .filter-input:focus {
  outline: none;
  border-color: #a25cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 6px 20px rgba(139, 92, 246, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.define-main .filter-input::placeholder {
  color: #9ca3af;
}

.define-main select.filter-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 45px;
}

.define-main .filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.define-main .time-toggles {
  display: flex;
  gap: 8px;
}

.define-main .time-toggle {
  flex: 1;
  padding: 6px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.3s;
  border: 2px solid rgba(139, 92, 246, 0.2);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.define-main .time-toggle:hover {
  border-color: #a25cf6;
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.define-main .time-toggle.active {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.define-main .filter-note {
  font-size: 12px;
  color: #6b7280;
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.12));
  border-radius: 12px;
  border-left: 4px solid #a25cf6;
  font-weight: 500;
}

.define-main .cluster-marker {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  border: 0 solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.define-main .cluster-marker:hover {
  transform: scale(1.25) translateY(-6px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.define-main .cluster-marker.active {
  transform: scale(1.3) translateY(-8px);
  animation: defineGlow 2s infinite;
}

.define-main .map-legend {
  position: absolute;
  bottom: 90px;
  left: 24px;
  border-radius: 16px;
  z-index: 40;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(237, 233, 254, 0.7));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
  transition: all 0.3s ease;
  overflow: hidden;
  max-width: 320px;
}

.define-main .legend-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.define-main .legend-compact:hover {
  background: rgba(139, 92, 246, 0.05);
}

.define-main .legend-compact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.define-main .legend-compact-icon i {
  color: #fff;
  font-size: 15px;
}

.define-main .legend-compact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.define-main .legend-compact-title {
  font-size: 14px;
  font-weight: 700;
  color: #4c1d95;
}

.define-main .legend-compact-applied {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.define-main .legend-compact-applied::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #a25cf6;
  border-radius: 50%;
  flex-shrink: 0;
}

.define-main .legend-compact-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.define-main .legend-compact-toggle i {
  font-size: 11px;
  color: #7c3aed;
  transition: transform 0.3s ease;
}

.define-main .map-legend:hover .legend-compact-toggle {
  background: rgba(139, 92, 246, 0.15);
}

.define-main .map-legend.expanded .legend-compact {
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}

.define-main .map-legend.expanded .legend-compact-toggle i {
  transform: rotate(180deg);
}

.define-main .map-legend.expanded .legend-compact-applied {
  display: none;
}

.define-main .legend-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 18px;
  transition: all 0.3s ease;
}

.define-main .map-legend.expanded .legend-content {
  max-height: 500px;
  opacity: 1;
  padding: 16px 18px;
}

.define-main .legend-title {
  font-size: 10px;
  font-weight: 800;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.define-main .legend-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), transparent);
}

.define-main .map-legend .risk-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.define-main .map-legend .risk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
}

.define-main .map-legend .risk-item:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(139, 92, 246, 0.15);
}

.define-main .map-legend .risk-item.active {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.define-main .map-legend .risk-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.define-main .map-legend .risk-item.active .risk-dot {
  transform: scale(1.15);
}

.define-main .map-legend .risk-label {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s ease;
}

.define-main .map-legend .risk-item.active .risk-label {
  font-weight: 600;
  color: #4c1d95;
}

.define-main .map-legend .checkmark {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.define-main .map-legend .risk-item.active .checkmark {
  opacity: 1;
  transform: scale(1);
}

.define-main .map-legend .filter-section {
  margin-bottom: 0;
}

.define-main .map-legend .filter-section.mt {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.define-main .map-legend .filter-section-title {
  font-size: 10px;
  font-weight: 700;
  color: #7c3aed;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.define-main .map-legend .filter-section-title::after {
  display: none;
}

.define-main .map-legend .filter-section-title.riskText {
  margin-top: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: none;
  letter-spacing: 0;
}

.define-main .map-legend .time-toggles {
  display: flex;
  gap: 6px;
}

.define-main .map-legend .time-toggle {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(255, 255, 255, 0.6);
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.define-main .map-legend .time-toggle:hover {
  border-color: #a25cf6;
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.8);
}

.define-main .map-legend .time-toggle.active {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.define-main .map-legend .filter-note {
  font-size: 10px;
  color: #6b7280;
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(139, 92, 246, 0.06);
  border-radius: 8px;
  border-left: 3px solid #a25cf6;
  line-height: 1.4;
}

/* Colors */
.define-main .low .risk-dot {
  background: #22c55e;
}

.define-main .medium .risk-dot {
  background: #f59e0b;
}

.define-main .high .risk-dot {
  background: #ef4444;
}

/* Active state styling */
@media (max-width: 1100px) {
  .define-main .map-legend {
    bottom: 90px;
    left: 16px;
    max-width: 300px;
  }
  .define-main .legend-compact {
    padding: 10px 14px;
    gap: 10px;
  }
  .define-main .legend-compact-icon {
    width: 34px;
    height: 34px;
  }
  .define-main .legend-compact-icon i {
    font-size: 14px;
  }
  .define-main .legend-compact-title {
    font-size: 13px;
  }
  .define-main .legend-compact-applied {
    font-size: 10px;
  }
  .define-main .map-legend.expanded .legend-content {
    padding: 14px 16px;
  }
  .define-main .map-legend .risk-item {
    padding: 8px 12px;
  }
  .define-main .map-legend .risk-label {
    font-size: 12px;
  }
  .define-main .map-legend .time-toggle {
    padding: 6px 8px;
    font-size: 11px;
  }
}
@media (max-width: 768px) {
  .define-main .map-legend {
    bottom: 80px;
    left: 12px;
    max-width: 280px;
  }
  .define-main .legend-compact {
    padding: 10px 12px;
    gap: 8px;
  }
  .define-main .legend-compact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .define-main .legend-compact-icon i {
    font-size: 13px;
  }
  .define-main .legend-compact-title {
    font-size: 12px;
  }
  .define-main .legend-compact-applied {
    font-size: 9px;
  }
  .define-main .legend-compact-toggle {
    width: 24px;
    height: 24px;
  }
  .define-main .legend-compact-toggle i {
    font-size: 10px;
  }
  .define-main .map-legend.expanded .legend-content {
    padding: 12px 14px;
  }
  .define-main .map-legend .legend-title {
    font-size: 9px;
    margin-bottom: 10px;
  }
  .define-main .map-legend .risk-item {
    padding: 7px 10px;
    border-radius: 10px;
  }
  .define-main .map-legend .risk-dot {
    width: 10px;
    height: 10px;
  }
  .define-main .map-legend .risk-label {
    font-size: 11px;
  }
  .define-main .map-legend .checkmark {
    width: 14px;
    height: 14px;
  }
  .define-main .map-legend .filter-section.mt {
    margin-top: 12px;
    padding-top: 12px;
  }
  .define-main .map-legend .filter-section-title {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .define-main .map-legend .time-toggles {
    gap: 4px;
  }
  .define-main .map-legend .time-toggle {
    padding: 6px 6px;
    font-size: 10px;
    border-radius: 6px;
  }
  .define-main .map-legend .filter-note {
    font-size: 9px;
    padding: 8px 10px;
    margin-top: 10px;
  }
  .define-main .map-legend .filter-section-title.riskText {
    font-size: 9px;
    margin-top: 10px;
  }
}
@media (max-width: 480px) {
  .define-main .map-legend {
    bottom: 70px;
    left: 8px;
    max-width: calc(100vw - 80px);
  }
  .define-main .legend-compact {
    padding: 8px 10px;
  }
  .define-main .legend-compact-icon {
    width: 30px;
    height: 30px;
  }
  .define-main .legend-compact-icon i {
    font-size: 12px;
  }
  .define-main .legend-compact-title {
    font-size: 11px;
  }
  .define-main .legend-compact-applied {
    font-size: 8px;
  }
  .define-main .map-legend.expanded .legend-content {
    padding: 10px 12px;
    max-height: 400px;
  }
  .define-main .map-legend .time-toggle {
    padding: 5px 4px;
    font-size: 9px;
  }
}
.define-main .low.active .risk-dot {
  box-shadow: 0 0 12px #22c55e;
}

.define-main .medium.active .risk-dot {
  box-shadow: 0 0 12px #f59e0b;
}

.define-main .high.active .risk-dot {
  box-shadow: 0 0 12px #ef4444;
}

/* Active indicator ring */
.define-main .low.active {
  --active-color: #22c55e;
}

.define-main .medium.active {
  --active-color: #f59e0b;
}

.define-main .high.active {
  --active-color: #ef4444;
}

/* Checkmark for active */
.define-main .checkmark {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.define-main .risk-item.active .checkmark {
  opacity: 1;
  transform: scale(1);
}

.define-main .low .checkmark {
  color: #22c55e;
}

.define-main .medium .checkmark {
  color: #f59e0b;
}

.define-main .high .checkmark {
  color: #ef4444;
}

.define-main .chat-toggle {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a25cf6, #7c3aed, #4c1d95);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(139, 92, 246, 0.55), 0 0 0 4px rgba(255, 255, 255, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  animation: defineGlow 3s ease-in-out infinite;
}

.define-main .chat-toggle:hover {
  transform: scale(1.12);
  box-shadow: 0 15px 45px rgba(139, 92, 246, 0.65), 0 0 0 6px rgba(255, 255, 255, 0.6);
}

.define-main .chat-toggle svg {
  width: 30px;
  height: 30px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s;
}

.define-main .chat-toggle.active svg {
  transform: rotate(180deg);
}

.define-main .chat-toggle .chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.5);
  animation: definePulse 2s infinite;
}

.define-main .chatbot {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 462px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(237, 233, 254, 0.7) 50%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(30px);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(124, 58, 237, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.8);
  z-index: 999;
  flex-direction: column;
  overflow: hidden;
  top: 130px;
}

.define-main .chatbot.active {
  display: flex;
  animation: defineChatPop 0.4s ease-out;
}

.define-main .chat-header {
  padding: 20px 22px;
  background: linear-gradient(135deg, #a25cf6, #7c3aed, #4c1d95);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.define-main .chat-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

.define-main .chat-avatar {
  width: 70px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  font-size: 30px;
}

.define-main .chat-header-info {
  flex: 1;
}

.define-main .chat-header-name {
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.define-main .chat-header-status {
  font-size: 13px;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.define-main .status-dot {
  width: 9px;
  height: 9px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
  animation: definePulse 2s infinite;
}

.define-main .chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.define-main .chat-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.define-main .chat-messages {
  flex: 1;
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, 0.3);
  height: 450px;
}

.define-main .chat-messages::-webkit-scrollbar {
  width: 6px;
}

.define-main .chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a25cf6, #7c3aed);
  border-radius: 3px;
}

.define-main .message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: defineFadeIn 0.3s ease-out;
}

.define-main .message.bot {
  align-self: flex-start;
}

.define-main .message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.define-main .message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 5px;
}

.define-main .message.bot .message-avatar {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
}

.define-main .message.user .message-avatar {
  background: linear-gradient(135deg, #31e5fe, #3e9ddb);
  color: #fff;
}

.define-main .message-avatar svg {
  width: 24px;
  height: 24px;
}

.define-main .message-bubble, .define-main .message-content {
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.define-main .message.bot .message-bubble, .define-main .message.bot .message-content {
  background: rgba(255, 255, 255, 0.9);
  color: #4c1d95;
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-bottom-left-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.define-main .message.user .message-bubble, .define-main .message.user .message-content {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.define-main .message-time {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
  font-weight: 500;
}

.define-main .message.user .message-time {
  text-align: right;
}

.define-main .typing-indicator {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  width: fit-content;
}

.define-main .typing-dot {
  width: 9px;
  height: 9px;
  background: #a25cf6;
  border-radius: 50%;
  animation: defineTyping 1.4s infinite;
}

.define-main .typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.define-main .typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.define-main .chat-suggestions {
  padding: 0 22px 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: transparent;
  position: absolute;
  bottom: 100px;
}

.define-main .suggestion {
  padding: 2px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  color: #7c3aed;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
}

.define-main .suggestion:hover {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

.define-main .suggestion svg {
  width: 15px;
  height: 15px;
}

.define-main .chat-input-area {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  display: flex;
  gap: 14px;
  align-items: center;
  backdrop-filter: blur(10px);
  width: 100%;
  bottom: 0;
  position: absolute;
}

.define-main .chat-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 0 16px;
  transition: all 0.3s;
}

.define-main .chat-input-wrapper:focus-within {
  border-color: #a25cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12), 0 6px 20px rgba(139, 92, 246, 0.08);
  background: #fff;
}

.define-main .chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  color: #4c1d95;
}

.define-main .chat-input::placeholder {
  color: #9ca3af;
}

.define-main .attach-btn {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 6px;
  transition: all 0.2s;
  border-radius: 8px;
}

.define-main .attach-btn:hover {
  color: #a25cf6;
  background: rgba(139, 92, 246, 0.08);
}

.define-main .send-btn {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.define-main .send-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.55);
}

.define-main .send-btn svg {
  width: 22px;
  height: 22px;
}

.define-main footer {
  padding: 10px 24px;
  position: relative;
  z-index: 100;
  background: transparent;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.define-main .footer-bottom-section {
  display: none;
}

.define-main .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-radius: 18px;
}

.define-main .footer-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.define-main .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.define-main .footer-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.define-main .footer-brand-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.define-main .footer-copy {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.define-main .footer-links {
  display: flex;
  gap: 22px;
}

.define-main .footer-links a {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.define-main .footer-links a:hover {
  color: #a25cf6;
}

.define-main .footer-social {
  display: flex;
  gap: 10px;
}

.define-main .footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.define-main .footer-social a:hover {
  background: linear-gradient(135deg, #a25cf6, #7c3aed);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

@media (max-width: 1100px) {
  .define-main .filter-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50vh;
    border-radius: 28px 28px 0 0;
  }
  .define-main nav {
    display: none;
  }
  .define-main .chatbot {
    width: calc(100% - 56px);
    height: 65vh;
  }
}
/* Animations */
@keyframes sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.define-main .sweep {
  animation: sweep 3s linear infinite;
  transform-origin: center;
}

.define-main .pulse {
  animation: pulse 2s ease-in-out infinite;
}

.define-main .blink {
  animation: blink 1.5s ease-in-out infinite;
}

.define-main .blink-delay-1 {
  animation-delay: 0.3s;
}

.define-main .blink-delay-2 {
  animation-delay: 0.6s;
}

.define-main .blink-delay-3 {
  animation-delay: 0.9s;
}

.define-main .mapboxgl-marker {
  cursor: pointer;
}

.define-main .map-marker {
  position: relative;
  width: 60px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.define-main .marker-ring,
.define-main .marker-content {
  animation: defineMapfloat 3s ease-in-out infinite;
}

.define-main .marker-yellow {
  --theme-color: #ffd700;
  --theme-glow: rgba(255, 215, 0, 0.4);
}

.define-main .marker-cyan {
  --theme-color: #a25cf6;
  --theme-glow: rgba(34, 197, 94, 0.4);
}

.define-main .marker-red {
  --theme-color: #ff4081;
  --theme-glow: rgba(255, 64, 129, 0.4);
}

.define-main .marker-ring {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px dashed var(--theme-color);
  box-shadow: 0 0 10px var(--theme-glow);
}

.define-main .marker-ring::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
}

.define-main .marker-content {
  z-index: 2;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, var(--theme-color) 10%, var(--theme-color) 120%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff; /* Dark text for contrast inside the bulb */
  font-weight: bold;
  font-size: 18px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  margin-top: 5px; /* Align within the ring */
}

.define-main .marker-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--theme-color);
  margin-top: 4px;
  opacity: 0.9;
  filter: drop-shadow(0 0 5px var(--theme-glow));
}

.define-main .marker-shadow {
  position: absolute;
  bottom: 30px;
  width: 30px;
  height: 8px;
  background: radial-gradient(ellipse at center, var(--theme-color) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
  animation: define-map-shadow-pulse 3s ease-in-out infinite;
}

.define-main .climateData-popup {
  position: absolute;
  left: 24px;
  bottom: 90px;
  z-index: 10000;
  display: none;
  border-radius: 20px;
  background: #f9f9f9;
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.2);
  font-family: inherit;
}

.define-main .climateData-popup .popup-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.define-main .climateData-popup .popup-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.define-main .climateData-popup .popup-close-btn svg {
  width: 16px;
  height: 16px;
}

/* Popup Container */
.popup {
  width: 100%;
  max-width: 420px;
  max-height: min(85vh, 720px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
  box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Sticky Header */
.popup-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  padding: 20px;
  flex-shrink: 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.location-code {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.plant-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.close-btn svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.date-range svg {
  width: 14px;
  height: 14px;
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  backdrop-filter: blur(10px);
  margin-bottom: 16px;
}

.tag svg {
  width: 14px;
  height: 14px;
}

/* Anomaly Section */
.anomaly-section {
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.anomaly-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.anomaly-label svg {
  width: 14px;
  height: 14px;
}

.anomaly-values {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.anomaly-avg {
  font-size: 28px;
  font-weight: 700;
}

.anomaly-avg small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

.anomaly-max {
  font-size: 16px;
  font-weight: 600;
}

.anomaly-max small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

/* Scrollable Body */
.popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) transparent;
}

.popup-body::-webkit-scrollbar {
  width: 6px;
}

.popup-body::-webkit-scrollbar-track {
  background: transparent;
}

.popup-body::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 3px;
}

/* Metric Card */
.metric-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.metric-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.metric-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: #1e1b4b;
  letter-spacing: -0.5px;
}

.metric-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.tab {
  flex: 1;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.tab:hover {
  color: #1e1b4b;
}

.tab.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Content Sections */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* KPI List */
.kpi-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kpi-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.kpi-item:hover {
  border-color: #8b5cf6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.kpi-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.kpi-value {
  font-size: 14px;
  font-weight: 600;
  color: #1e1b4b;
  text-align: right;
}

.kpi-value.warning {
  color: #f97316;
}

.kpi-value.success {
  color: #22c55e;
}

.kpi-value.very-low {
  color: rgb(209, 41, 25);
}

.kpi-value.low {
  color: rgb(254, 138, 55);
}

.kpi-value.medium {
  color: rgb(245, 190, 24);
}

.kpi-value.high {
  color: rgb(179, 206, 34);
}

.kpi-value.very-high {
  color: #22c55e;
}

/* Emissions Grid */
.emissions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.emission-item {
  background: #fff;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
}

.emission-value {
  font-size: 20px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 4px;
}

.emission-label {
  font-size: 12px;
  color: #64748b;
}

.emission-sublabel {
  font-size: 11px;
  color: #94a3b8;
}

/* Chart Placeholder */
.chart-container {
  background: #fff;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-toggle {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
}

.chart-toggle button {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-toggle button.active {
  background: #fff;
  color: #1e1b4b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 120px;
  padding-top: 10px;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bar {
  width: 36px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
}

.bar:hover {
  opacity: 0.85;
  transform: scaleY(1.02);
  transform-origin: bottom;
}

.bar-label {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: #64748b;
}

.legend-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  border-radius: 50%;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  body {
    padding: 12px;
  }
  .popup {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    -ms-border-radius: 16px;
    -o-border-radius: 16px;
  }
  .popup-header {
    padding: 16px;
  }
  .plant-name {
    font-size: 18px;
  }
  .anomaly-avg {
    font-size: 24px;
  }
  .anomaly-max {
    font-size: 14px;
  }
  .popup-body {
    padding: 16px;
  }
  .metric-value {
    font-size: 28px;
  }
  .tabs {
    flex-wrap: wrap;
  }
  .tab {
    padding: 8px 6px;
    font-size: 11px;
  }
  .emissions-grid {
    grid-template-columns: 1fr;
  }
  .chart-bars {
    height: 100px;
  }
  .bar {
    width: 28px;
  }
}
@media (max-width: 360px) {
  .popup-header {
    padding: 14px;
  }
  .plant-name {
    font-size: 16px;
  }
  .popup-body {
    padding: 14px;
  }
  .tab {
    font-size: 10px;
    padding: 8px 4px;
  }
}
/* Sub-tabs for Other Emissions */
.sub-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.sub-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -1px;
}

.sub-tab:hover {
  color: #1e1b4b;
}

.sub-tab.active {
  color: #f97316;
  border-bottom-color: #f97316;
}

.sub-content {
  display: none;
}

.sub-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.emissions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.emissions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.emission-item-compact {
  border-left: 3px solid #e2e8f0;
  padding-left: 12px;
}

.emission-item-compact .emission-value {
  font-size: 18px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 2px;
}

.emission-item-compact .emission-label {
  font-size: 12px;
  color: #64748b;
  line-height: 1.3;
}

.emission-item-compact .emission-sublabel {
  font-size: 11px;
  color: #94a3b8;
}

@media (max-width: 480px) {
  .emissions-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .sub-tab {
    padding: 8px 12px;
    font-size: 12px;
  }
}
.define-main .cluster-marker.marker-active {
  z-index: 100 !important;
  transform: scale(1.3);
  transition: transform 0.3s ease;
}

.define-main .cluster-marker.marker-active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: markerRipple 1.5s ease-out infinite;
  pointer-events: none;
}

.define-main .cluster-marker.marker-active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: markerRipple 1.5s ease-out infinite 0.5s;
  pointer-events: none;
}

.define-main .cluster-marker.marker-active:not(.clustered)::before,
.define-main .cluster-marker.marker-active:not(.clustered)::after {
  border: 3px solid currentColor;
  box-shadow: 0 0 20px currentColor;
}

.define-main .cluster-marker.marker-active:not(.clustered) {
  box-shadow: 0 0 25px currentColor, 0 8px 30px rgba(0, 0, 0, 0.3);
}

.define-main .cluster-marker.marker-active[style*="background-color: rgb(92, 151, 20)"]::before,
.define-main .cluster-marker.marker-active[style*="background-color: rgb(92, 151, 20)"]::after,
.define-main .cluster-marker.marker-active[style*="background: rgb(92, 151, 20)"]::before,
.define-main .cluster-marker.marker-active[style*="background: rgb(92, 151, 20)"]::after {
  border-color: #5c9714;
}

.define-main .cluster-marker.marker-active[style*="background-color: rgb(255, 165, 0)"]::before,
.define-main .cluster-marker.marker-active[style*="background-color: rgb(255, 165, 0)"]::after,
.define-main .cluster-marker.marker-active[style*="background: rgb(255, 165, 0)"]::before,
.define-main .cluster-marker.marker-active[style*="background: rgb(255, 165, 0)"]::after {
  border-color: #FFA500;
}

.define-main .cluster-marker.marker-active[style*="background-color: rgb(255, 0, 0)"]::before,
.define-main .cluster-marker.marker-active[style*="background-color: rgb(255, 0, 0)"]::after,
.define-main .cluster-marker.marker-active[style*="background: rgb(255, 0, 0)"]::before,
.define-main .cluster-marker.marker-active[style*="background: rgb(255, 0, 0)"]::after {
  border-color: #ff0000;
}

.define-main .cluster-marker.clustered.marker-active::before,
.define-main .cluster-marker.clustered.marker-active::after {
  border: 3px solid rgba(139, 92, 246, 0.6);
}

.define-main .cluster-marker.clustered.marker-active {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes markerRipple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.8;
  }
  100% {
    width: 400%;
    height: 400%;
    opacity: 0;
  }
}
@keyframes markerPulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px currentColor, 0 6px 20px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 30px currentColor, 0 0 50px currentColor, 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}
.define-main .cluster-marker.marker-active:not(.clustered) {
  animation: markerPulseGlow 2s ease-in-out infinite;
}

.define-main .chat-toggle-fixed {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a25cf6, #7c3aed, #4c1d95);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.5);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: defineGlow 3s ease-in-out infinite;
}

.define-main .chat-toggle-fixed:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.6);
}

.define-main .chat-toggle-fixed svg {
  width: 26px;
  height: 26px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.define-main .chat-toggle-fixed.active svg {
  transform: rotate(180deg);
}

.define-main .chat-toggle-fixed .chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.5);
  animation: definePulse 2s infinite;
}

.define-main .footer-brand .chat-toggle {
  display: none;
}

@media (max-width: 1100px) {
  .define-main .chat-toggle-fixed {
    bottom: 90px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .define-main .chat-toggle-fixed svg {
    width: 24px;
    height: 24px;
  }
  .define-main .chat-toggle-fixed .chat-badge {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}
@media (max-width: 768px) {
  .define-main .chat-toggle-fixed {
    bottom: 80px;
    right: 12px;
    width: 48px;
    height: 48px;
  }
  .define-main .chat-toggle-fixed svg {
    width: 22px;
    height: 22px;
  }
  .define-main .chat-toggle-fixed .chat-badge {
    width: 18px;
    height: 18px;
    font-size: 9px;
    border-width: 2px;
  }
}
@media (max-width: 480px) {
  .define-main .chat-toggle-fixed {
    bottom: 70px;
    right: 8px;
    width: 44px;
    height: 44px;
  }
  .define-main .chat-toggle-fixed svg {
    width: 20px;
    height: 20px;
  }
  .define-main .chat-toggle-fixed .chat-badge {
    width: 16px;
    height: 16px;
    font-size: 8px;
    top: -2px;
    right: -2px;
  }
}
/* Login Page */
.define-login-page {
  --bg: #eceaf4;
  --card-bg: rgba(255, 255, 255, 0.55);
  --card-border: rgba(255, 255, 255, 0.85);
  --purple-deep: #5b21b6;
  --purple-mid: #7c3aed;
  --purple-bright: #8b5cf6;
  --purple-light: #c4b5fd;
  --purple-pale: #ede9fe;
  --text-dark: #1e1333;
  --text-mid: #4b3f72;
  --text-muted: #9388b0;
  --input-bg: rgba(255, 255, 255, 0.7);
  --input-border: #ddd8f0;
  --input-focus: #7c3aed;
  --btn-from: #5b21b6;
  --btn-to: #7c3aed;
  --shadow-card: 0 8px 40px rgba(91, 33, 182, 0.10), 0 1.5px 8px rgba(91, 33, 182, 0.07);
  --shadow-btn: 0 4px 20px rgba(124, 58, 237, 0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-input: 10px;
}

body.define-login-page {
  font-family: "Roboto", sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Subtle dot-grid background */
body.define-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(124, 58, 237, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ── MAIN LAYOUT ── */
main.define-signup {
  flex: 1;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  min-height: calc(100vh - 136px);
  padding: 0;
}

/* ── LEFT HERO ── */
.define-signup .hero {
  padding: 60px 48px 60px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-self: center;
}

.define-signup .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-pale);
  border: 1px solid var(--purple-light);
  color: var(--purple-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
}

.define-signup .hero-badge span {
  width: 7px;
  height: 7px;
  background: var(--purple-mid);
  border-radius: 50%;
  display: inline-block;
}

.define-signup .hero-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: var(--text-dark);
}

.define-signup .hero-title em {
  font-style: normal;
  color: var(--purple-mid);
}

.define-signup .hero-sub {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 420px;
}

.define-signup .hero-stats {
  display: flex;
  gap: 28px;
}

.define-signup .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.define-signup .stat-value {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text-dark);
}

.define-signup .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.define-signup .stat-divider {
  width: 1px;
  background: var(--input-border);
  align-self: stretch;
}

.define-signup .hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.define-signup .feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-mid);
  font-weight: 500;
}

.define-signup .feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple-pale), #fff);
  border: 1px solid var(--purple-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* ── RIGHT FORM ── */
.define-signup .form-side {
  padding: 60px 60px 60px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.define-signup .card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
  padding: 40px;
  width: 100%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
}

.define-signup .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--btn-from), var(--btn-to), #a78bfa);
  border-radius: var(--radius) var(--radius) 0 0;
}

.define-signup .card-header {
  margin-bottom: 28px;
  background-color: transparent;
  border-bottom: none;
  padding: 0;
}

.define-signup .card-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.define-signup .card-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── STEP PROGRESS ── */
.define-signup .step-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 30px;
}

.define-signup .step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Barlow Condensed", sans-serif;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--input-border);
  background: #fff;
  color: var(--text-muted);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  cursor: default;
}

.define-signup .step-dot.active {
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  border-color: var(--purple-mid);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.define-signup .step-dot.done {
  background: var(--purple-pale);
  border-color: var(--purple-light);
  color: var(--purple-mid);
}

.define-signup .step-dot.done::after {
  content: "✓";
  font-size: 0.8rem;
  font-weight: 700;
}

.define-signup .step-dot.done span {
  display: none;
}

.define-signup .step-line {
  flex: 1;
  height: 2px;
  background: var(--input-border);
  transition: background 0.4s;
  margin: 0 2px;
}

.define-signup .step-line.done {
  background: var(--purple-light);
}

/* ── STEP PANELS ── */
.define-signup .step-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeUp 0.3s ease;
}

.define-signup .step-panel.active {
  display: flex;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.define-signup .step-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 2px;
}

.define-signup .step-heading {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

/* ── INPUTS ── */
.define-signup .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.define-signup label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
}

.define-signup input[type=text], .define-signup input[type=email], .define-signup input[type=password], .define-signup input[type=tel], .define-signup select, .define-signup textarea, .define-signup input[type=url], .define-signup input[type=file] {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-input);
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.define-signup input:focus, .define-signup select:focus, .define-signup textarea:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.define-signup input::placeholder, .define-signup textarea::placeholder {
  color: var(--text-muted);
}

.define-signup select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239388b0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.define-signup textarea {
  resize: vertical;
  min-height: 80px;
}

.define-signup .input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── PASSWORD STRENGTH ── */
.define-signup .pw-strength {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.define-signup .pw-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--input-border);
  transition: background 0.3s;
}

.define-signup .pw-bar.weak {
  background: #f87171;
}

.define-signup .pw-bar.fair {
  background: #fb923c;
}

.define-signup .pw-bar.strong {
  background: #34d399;
}

.define-signup .pw-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── ROLE CARDS ── */
.define-signup .role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.define-signup .role-card {
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--input-bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.define-signup .role-card:hover {
  border-color: var(--purple-light);
  background: var(--purple-pale);
}

.define-signup .role-card.selected {
  border-color: var(--purple-mid);
  background: var(--purple-pale);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.define-signup .role-icon {
  font-size: 1.4rem;
}

.define-signup .role-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}

.define-signup .role-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── CHECKBOXES / TAGS ── */
.define-signup .tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.define-signup .tag {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.define-signup .tag:hover {
  border-color: var(--purple-light);
  color: var(--purple-mid);
}

.define-signup .tag.selected {
  border-color: var(--purple-mid);
  background: var(--purple-pale);
  color: var(--purple-mid);
  font-weight: 600;
}

/* ── VERIFY CODE ── */
.define-signup .otp-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.define-signup .otp-input {
  width: 48px;
  height: 54px;
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.define-signup .otp-input:focus {
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.define-signup .otp-resend {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.define-signup .otp-resend a {
  color: var(--purple-mid);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.define-signup .otp-resend a:hover {
  text-decoration: underline;
}

/* ── SUCCESS ── */
.define-signup .success-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 10px 0;
}

.define-signup .success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-pale), #ddd6fe);
  border: 2px solid var(--purple-light);
  display: grid;
  place-items: center;
  font-size: 2rem;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.define-signup .success-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-dark);
}

.define-signup .success-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 290px;
}

/* ── BUTTONS ── */
.define-signup .btn-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.define-signup .btn-next {
  flex: 1;
  padding: 13px;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  color: #fff;
  border: none;
  border-radius: var(--radius-input);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: opacity 0.2s, transform 0.15s;
}

.define-signup .btn-next:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.define-signup .btn-next:active {
  transform: translateY(0);
}

.define-signup .btn-back {
  padding: 13px 18px;
  background: transparent;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-input);
  color: var(--text-mid);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
}

.define-signup .btn-back:hover {
  border-color: var(--purple-light);
  color: var(--purple-mid);
}

.define-signup .login-link {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.define-signup .login-link a {
  color: var(--purple-mid);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.define-signup .login-link a:hover {
  text-decoration: underline;
}

.define-signup .error {
  color: #E30613;
}

/* Responsive */
@media (max-width: 820px) {
  main.define-signup {
    grid-template-columns: 1fr;
  }
  .define-signup .hero {
    display: none;
  }
  .define-signup .form-side {
    padding: 40px 24px;
  }
}
.define-signup .card-tabs {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-input);
  overflow: hidden;
  margin-bottom: 10px;
}

.define-signup .card-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: var(--input-bg);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.define-signup .card-tab.active {
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  color: #fff;
}

.define-signup .card-tab:hover:not(.active) {
  color: var(--purple-mid);
  background: var(--purple-pale);
}

.define-signup .login-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeUp 0.3s ease;
}

/* ===== Nearby Place Pin (Google-style) ===== */
.nearby-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  z-index: 1;
  animation: nearbyPinFadeIn 0.3s ease-out forwards;
}

@keyframes nearbyPinFadeIn {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}
.nearby-pin:hover {
  transform: scale(1.15);
  z-index: 10;
}

.nearby-pin-head {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 4px solid #7c3aed;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nearby-pin-icon {
  transform: rotate(45deg);
  font-size: 12px;
  line-height: 1;
}

.nearby-pin-tail {
  width: 2px;
  height: 6px;
  background: #7c3aed;
  margin-top: -1px;
  border-radius: 0 0 1px 1px;
}

/* ===== Info Window (Google-style popup) ===== */
.nearby-info-window .mapboxgl-popup-content {
  background: #fff;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  min-width: 200px;
  max-width: 280px;
  overflow: hidden;
}

.nearby-info-window .mapboxgl-popup-tip {
  border-top-color: #fff;
}

.nearby-iw {
  display: flex;
  gap: 10px;
  padding: 12px;
  align-items: flex-start;
}

.nearby-iw-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #f0f4ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nearby-iw-body {
  flex: 1;
  min-width: 0;
}

.nearby-iw-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 2px;
}

.nearby-iw-type {
  font-size: 11px;
  color: #4285F4;
  font-weight: 500;
  margin-bottom: 3px;
}

.nearby-iw-address {
  font-size: 11px;
  color: #666;
  line-height: 1.3;
  white-space: normal;
  word-wrap: break-word;
}

.nearby-info-window {
  z-index: 9999 !important;
}

.nearby-pin:hover {
  transform: scale(1.15);
  z-index: 10;
}

.nearby-pin {
  z-index: 1;
}

/* Animation for markers appearing */
.nearby-pin {
  animation: nearbyPinDrop 0.3s ease-out;
}

@keyframes nearbyPinDrop {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/*# sourceMappingURL=define.css.map */
