:root {
  --cw-hero-glow: rgba(55, 125, 255, 0.18);
  --cw-surface: #f5f8ff;
  --cw-surface-strong: #eef3ff;
}

body {
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 18%, #f8fbff 100%);
}

.cw-navbar {
  backdrop-filter: saturate(180%) blur(10px);
  background-color: rgba(255, 255, 255, 0.94);
}

.cw-hero {
  position: relative;
  overflow: hidden;
}

.cw-hero::before,
.cw-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  z-index: 0;
}

.cw-hero::before {
  inset: auto auto -4rem -3rem;
  width: 15rem;
  height: 15rem;
  background: var(--cw-hero-glow);
}

.cw-hero::after {
  inset: -2rem -3rem auto auto;
  width: 11rem;
  height: 11rem;
  background: rgba(0, 201, 167, 0.14);
}

.cw-hero > * {
  position: relative;
  z-index: 1;
}

.cw-stat-card,
.cw-side-card,
.cw-post-card,
.cw-form-card {
  border: 1px solid rgba(140, 152, 164, 0.18);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.cw-stat-card {
  background: #fff;
  border-radius: 1rem;
}

.cw-post-card {
  border-radius: 1.25rem;
  overflow: hidden;
}

.cw-post-card .card-body {
  padding: 1.5rem;
}

.cw-post-media {
  background: #0b172e;
}

.cw-post-image {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
}

.cw-post-video {
  display: block;
  width: 100%;
  max-height: 28rem;
  background: #000;
}

.cw-meta-pill {
  background: var(--cw-surface);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.cw-trust-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cw-trust-buttons form {
  margin: 0;
}

.cw-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.cw-score-cell {
  border-radius: 1rem;
  padding: 0.85rem 1rem;
}

.cw-comment {
  border-top: 1px solid rgba(140, 152, 164, 0.15);
  padding-top: 1rem;
}

.cw-avatar-initials {
  align-items: center;
  background: linear-gradient(135deg, #377dff 0%, #00c9a7 100%);
  color: #fff;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 700;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.cw-avatar-lg {
  font-size: 1.5rem;
  height: 5rem;
  width: 5rem;
}

.cw-share-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cw-share-grid .btn {
  min-width: 8.25rem;
}

.cw-ad-slot {
  background:
    radial-gradient(circle at top left, rgba(55, 125, 255, 0.16), transparent 45%),
    linear-gradient(135deg, #0b172e 0%, #17305f 100%);
  border-radius: 1.25rem;
  color: #fff;
  padding: 1.25rem;
}

.cw-ad-slot-feed {
  margin: 0.5rem 0;
}

.cw-ad-slot-mobile {
  margin-bottom: 1rem;
}

.cw-ad-slot a {
  text-decoration: none;
}

.cw-ad-image {
  border-radius: 1rem;
  display: block;
  max-height: 14rem;
  object-fit: cover;
  width: 100%;
}

.cw-location-form .form-control,
.cw-location-form .form-select {
  min-height: 3rem;
}

.cw-new-posts-indicator {
  display: none;
  position: sticky;
  top: 5.5rem;
  z-index: 1010;
}

.cw-new-posts-indicator.is-visible {
  display: block;
}

.cw-report-panel {
  background: var(--cw-surface);
  border-radius: 1rem;
  padding: 1rem;
}

.cw-resolution-banner {
  background: linear-gradient(180deg, rgba(0, 201, 167, 0.1) 0%, rgba(0, 201, 167, 0.04) 100%);
  border: 1px solid rgba(0, 201, 167, 0.2);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.cw-follow-filter-card {
  background: linear-gradient(180deg, rgba(55, 125, 255, 0.08) 0%, rgba(55, 125, 255, 0.03) 100%);
  border: 1px solid rgba(55, 125, 255, 0.18);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.cw-empty-state {
  background: linear-gradient(180deg, #ffffff 0%, var(--cw-surface) 100%);
  border: 1px dashed rgba(55, 125, 255, 0.35);
  border-radius: 1.25rem;
  padding: 2.25rem;
  text-align: center;
}

.cw-load-more-panel {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 248, 255, 0.96) 100%);
  border: 1px solid rgba(55, 125, 255, 0.14);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.cw-auth-shell {
  min-height: calc(100vh - 5rem);
}

.cw-admin-table td,
.cw-admin-table th {
  vertical-align: middle;
}

.cw-file-preview {
  display: none;
  overflow: hidden;
  border-radius: 1rem;
}

.cw-file-preview img,
.cw-file-preview video {
  width: 100%;
  max-height: 20rem;
  object-fit: cover;
}

.cw-admin-preview-image {
  border-radius: 1rem;
  display: block;
  max-height: 15rem;
  object-fit: cover;
  width: 100%;
}

.cw-admin-preview-video {
  border-radius: 1rem;
  display: block;
  max-height: 18rem;
  width: 100%;
  background: #000;
}

.cw-map-shell,
.cw-map-detail-card,
.cw-map-summary-card {
  border: 1px solid rgba(140, 152, 164, 0.18);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.cw-osm-map-stage {
  position: relative;
  overflow: hidden;
  min-height: 32rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(55, 125, 255, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0, 201, 167, 0.14), transparent 28%),
    linear-gradient(160deg, #ffffff 0%, #f2f7ff 55%, #eaf3ff 100%);
  border: 1px solid rgba(55, 125, 255, 0.18);
}

.cw-osm-map-canvas {
  width: 100%;
  height: 32rem;
}

.cw-osm-map-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  max-width: min(24rem, calc(100% - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: #2d374b;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.cw-osm-map-status.is-error {
  background: rgba(105, 35, 64, 0.94);
  color: #fff;
}

.cw-osm-div-icon {
  background: transparent;
  border: 0;
}

.cw-osm-pin {
  display: block;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transform: scale(0.92);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cw-osm-pin.is-active {
  transform: scale(1.18);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.cw-osm-pin-primary {
  background: #377dff;
}

.cw-osm-pin-warning {
  background: #f5ca99;
}

.cw-osm-pin-danger {
  background: #ed4c78;
}

.cw-osm-pin-info {
  background: #09a5be;
}

.cw-osm-pin-success {
  background: #00c9a7;
}

.cw-osm-map-canvas .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.75rem 0 0 0;
  color: #2d374b;
  padding: 0.25rem 0.5rem;
}

.cw-osm-map-canvas .leaflet-control-attribution a {
  color: #1f5cff;
}

.cw-osm-map-canvas .leaflet-pane,
.cw-osm-map-canvas .leaflet-top,
.cw-osm-map-canvas .leaflet-bottom {
  z-index: 2;
}

.cw-map-filter-note {
  background: var(--cw-surface);
  border-radius: 1rem;
  min-height: 100%;
  padding: 0.95rem 1rem;
}

.cw-map-stage {
  position: relative;
  overflow: hidden;
  min-height: 32rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(55, 125, 255, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0, 201, 167, 0.14), transparent 28%),
    linear-gradient(160deg, #ffffff 0%, #f2f7ff 55%, #eaf3ff 100%);
  border: 1px solid rgba(55, 125, 255, 0.18);
}

.cw-map-stage::before,
.cw-map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cw-map-stage::before {
  background-image:
    linear-gradient(rgba(55, 125, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 125, 255, 0.08) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
}

.cw-map-stage::after {
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(15, 23, 42, 0.08) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(15, 23, 42, 0.08) 50%, transparent 50.2%);
}

.cw-map-ring,
.cw-map-center,
.cw-map-marker,
.cw-map-compass,
.cw-map-legend {
  position: absolute;
}

.cw-map-ring {
  left: 50%;
  top: 50%;
  border: 1px dashed rgba(55, 125, 255, 0.28);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.cw-map-ring-lg {
  width: 78%;
  height: 78%;
}

.cw-map-ring-md {
  width: 52%;
  height: 52%;
}

.cw-map-ring-sm {
  width: 28%;
  height: 28%;
}

.cw-map-center {
  left: 50%;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  transform: translate(-50%, -50%);
}

.cw-map-center span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #0b172e;
  border: 4px solid #fff;
  box-shadow: 0 0 0 8px rgba(11, 23, 46, 0.12);
}

.cw-map-compass {
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b172e;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.cw-map-marker {
  z-index: 3;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 999px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cw-map-marker::after {
  content: "";
  position: absolute;
  inset: -0.45rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.18;
}

.cw-map-marker:hover,
.cw-map-marker.is-active {
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.cw-map-marker-primary {
  background: #377dff;
  color: #377dff;
}

.cw-map-marker-warning {
  background: #f5ca99;
  color: #f5ca99;
}

.cw-map-marker-danger {
  background: #ed4c78;
  color: #ed4c78;
}

.cw-map-marker-info {
  background: #09a5be;
  color: #09a5be;
}

.cw-map-marker-success {
  background: #00c9a7;
  color: #00c9a7;
}

.cw-map-legend {
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  color: #5a6270;
  font-size: 0.875rem;
}

.cw-map-summary-card {
  border-radius: 1.25rem;
}

@media (max-width: 991.98px) {
  .cw-osm-map-stage {
    min-height: 25rem;
  }

  .cw-osm-map-canvas {
    height: 25rem;
  }

  .cw-map-stage {
    min-height: 25rem;
  }

  .cw-map-legend {
    position: static;
    margin: 1rem;
  }
}

@media (max-width: 991.98px) {
  .cw-score-grid {
    grid-template-columns: 1fr;
  }

  .cw-new-posts-indicator {
    top: 4.75rem;
  }
}
