:root {
  --bg-deep: #060410;
  --bg-mid: #0c0820;
  --bg-card: rgba(14, 10, 30, 0.55);
  --border-soft: rgba(239, 68, 68, 0.08);
  --border-hover: rgba(239, 68, 68, 0.22);
  --accent: #ef4444;
  --accent-light: #fca5a5;
  --accent-dim: #b91c1c;
  --aurora-1: #ef4444;
  --aurora-2: #7c3aed;
  --aurora-3: #db2777;
  --text: #ede9fe;
  --text-body: #a5a0c4;
  --text-dim: #6b6885;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

::selection { background: rgba(239, 68, 68, 0.3); color: #fff; }

body {
  background-color: var(--bg-deep);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, .brand-text {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: #fff; }

.aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  mix-blend-mode: screen;
}

.aurora-blob:nth-child(1) {
  width: 50vw; height: 50vw;
  top: -15%; left: -5%;
  background: radial-gradient(circle, var(--aurora-1) 0%, transparent 70%);
  animation: drift1 28s infinite alternate ease-in-out;
}
.aurora-blob:nth-child(2) {
  width: 45vw; height: 45vw;
  bottom: -10%; right: -8%;
  background: radial-gradient(circle, var(--aurora-2) 0%, transparent 70%);
  animation: drift2 32s infinite alternate ease-in-out;
}
.aurora-blob:nth-child(3) {
  width: 40vw; height: 40vw;
  top: 30%; left: 45%;
  background: radial-gradient(circle, var(--aurora-3) 0%, transparent 70%);
  animation: drift3 24s infinite alternate ease-in-out;
  opacity: 0.15;
}

@keyframes drift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(12vw, 8vh) scale(1.15); }
}
@keyframes drift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10vw, -6vh) scale(0.9); }
}
@keyframes drift3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, -10vh) scale(1.1); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  background: rgba(6, 4, 16, 0.65);
  padding: 1.1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  animation: headerIn 0.6s var(--ease) forwards;
}

@keyframes headerIn {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 20%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-soft);
  border-radius: 32px;
  padding: 3.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: cardIn 0.8s var(--ease-slow) forwards;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

h1.page-title {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 50%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.6rem;
  font-weight: 600;
}

p { margin-bottom: 1.2rem; color: var(--text-body); font-size: 1.02rem; }

.meta-date {
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 1.5rem;
  display: block;
  font-weight: 600;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  width: fit-content;
}

.status-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ef4444;
  transition: all 0.4s ease;
}

.status-text {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 1px;
  transition: all 0.4s ease;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s var(--ease);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 500;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.3rem;
  font-family: 'Outfit', sans-serif;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.provider-card {
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 1.75rem;
  transition: all 0.3s var(--ease);
}
.provider-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.provider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.provider-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

.provider-badge {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.provider-health-row {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.provider-health-bar {
  margin-top: 0.5rem;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.provider-health-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s var(--ease);
}

.denied-container {
  text-align: center;
  max-width: 600px;
  margin: 4rem auto;
}

.denied-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  animation: shake 0.6s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.denied-title {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.03em;
}

footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: auto;
}

@media (max-width: 768px) {
  header { padding: 1rem 1.2rem; }
  main { padding: 2rem 1rem; }
  .card { padding: 2rem 1.3rem; border-radius: 24px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  h1.page-title { font-size: 2rem; }
  .provider-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
}
