/* Base layout for ElectiCast public error pages */
:root {
  --ec-error-bg: linear-gradient(135deg, #0f766e, #0d9488);
  --ec-surface: rgba(255, 255, 255, 0.92);
  --ec-shadow: 0 20px 45px rgba(15, 118, 110, 0.25);
  --ec-radius: 22px;
  --ec-text-main: #022728;
  --ec-text-muted: #475569;
}

body.ec-error {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ec-error-bg);
  color: var(--ec-text-main);
  font-family: "Roboto", "Open Sans", Arial, sans-serif;
  padding: 48px 16px;
}

.ec-error-surface {
  max-width: 720px;
  width: min(100%, 720px);
  background: var(--ec-surface);
  border-radius: var(--ec-radius);
  box-shadow: var(--ec-shadow);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.ec-error-surface::before,
.ec-error-surface::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.12);
  filter: blur(0px);
  z-index: 0;
}

.ec-error-surface::before {
  width: 240px;
  height: 240px;
  top: -120px;
  right: -80px;
}

.ec-error-surface::after {
  width: 180px;
  height: 180px;
  bottom: -90px;
  left: -60px;
}

.ec-error-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  text-align: center;
}

.ec-error-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.ec-error-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  background: rgba(15, 118, 110, 0.14);
  color: var(--ec-text-main);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  font-size: 14px;
}

.ec-error-heading {
  font-size: clamp(32px, 4vw, 42px);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ec-error-message {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 20px);
  color: var(--ec-text-muted);
  line-height: 1.6;
  font-weight: 500;
}

.ec-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.ec-btn {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #ffffff;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ec-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.25);
}

.ec-btn-light {
  background: rgba(255, 255, 255, 0.85);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.4);
}

.ec-error-meta {
  font-size: 14px;
  color: rgba(2, 39, 40, 0.75);
  background: rgba(255, 255, 255, 0.66);
  padding: 10px 16px;
  border-radius: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.ec-error-meta span {
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  body.ec-error {
    padding: 32px 14px;
  }

  .ec-error-surface {
    padding: 40px 26px;
  }

  .ec-error-actions {
    flex-direction: column;
  }

  .ec-btn {
    width: 100%;
    justify-content: center;
  }
}