:root {
  --theme-primary: #3fa083;
  --theme-secondary: #5a9dcb;
  --theme-danger: #d5675f;
  --theme-warning: #e3a65b;
  --theme-warning-bright: #f1c27d;
  --theme-text-muted: #8ea2ad;
  --theme-text-dim: #a8b8c0;
  --theme-text-subtle: #748894;
  --theme-text-main: #eaf1f4;
  --theme-glass-border: rgba(170, 198, 209, 0.16);
  --theme-primary-alpha-10: rgba(63, 160, 131, 0.1);
  --theme-primary-alpha-20: rgba(63, 160, 131, 0.2);
  --theme-primary-alpha-30: rgba(63, 160, 131, 0.3);
  --theme-secondary-alpha-10: rgba(90, 157, 203, 0.1);
  --theme-secondary-alpha-30: rgba(90, 157, 203, 0.3);
  --theme-danger-alpha-10: rgba(213, 103, 95, 0.1);
  --theme-danger-toast-bg: rgba(213, 103, 95, 0.86);
  --theme-warning-alpha-10: rgba(255, 193, 7, 0.1);
  --theme-warning-alpha-20: rgba(227, 166, 91, 0.2);
  --theme-black-alpha-30: rgba(0, 0, 0, 0.3);
  --theme-chart-grid-soft: rgba(255, 255, 255, 0.05);
  --theme-blocked-bg-start: #171f24;
  --theme-blocked-bg-end: #131a1f;
  --theme-blocked-surface: rgba(26, 34, 40, 0.82);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--theme-blocked-bg-start, #1a1a2e) 0%, var(--theme-blocked-bg-end, #16213e) 100%);
  color: var(--theme-text-main, #fff);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, var(--theme-primary-alpha-10, rgba(76, 175, 80, 0.1)) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--theme-danger-alpha-10, rgba(244, 67, 54, 0.1)) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, var(--theme-chart-grid-soft, rgba(33, 150, 243, 0.05)) 0%, transparent 50%);
  z-index: -1;
}

.container {
  max-width: 600px;
  width: 100%;
  background: var(--theme-blocked-surface, rgba(30, 30, 46, 0.8));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow:
    0 20px 40px var(--theme-black-alpha-30, rgba(0, 0, 0, 0.3)),
    0 0 0 1px var(--theme-glass-border, rgba(255, 255, 255, 0.1));
  border: 1px solid var(--theme-glass-border, rgba(255, 255, 255, 0.1));
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--theme-danger, #f44336), var(--theme-warning, #ff9800), var(--theme-primary, #4caf50));
}

.lock-icon {
  font-size: 80px;
  margin-bottom: 20px;
  display: inline-block;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 0 10px var(--theme-danger-toast-bg, rgba(244, 67, 54, 0.5)));
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--theme-danger, #f44336), var(--theme-warning, #ff9800));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px var(--theme-danger-alpha-10, rgba(244, 67, 54, 0.3));
}

.subtitle {
  font-size: 1.2rem;
  color: var(--theme-text-dim, #aaa);
  margin-bottom: 30px;
  line-height: 1.5;
}

.info-box {
  background: var(--theme-chart-grid-soft, rgba(255, 255, 255, 0.05));
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
  border: 1px solid var(--theme-glass-border, rgba(255, 255, 255, 0.1));
  text-align: left;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--theme-chart-grid-soft, rgba(255, 255, 255, 0.05));
}

.info-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-label {
  color: var(--theme-text-muted, #888);
  font-weight: 500;
}

.info-value {
  color: var(--theme-primary, #4caf50);
  font-family: 'Monaco', 'Menlo', monospace;
  font-weight: 600;
}

.ip-address {
  background: var(--theme-primary-alpha-10, rgba(76, 175, 80, 0.1));
  border: 2px solid var(--theme-primary-alpha-30, rgba(76, 175, 80, 0.3));
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--theme-primary, #4caf50);
  font-weight: 600;
}

.action-box {
  background: var(--theme-secondary-alpha-10, rgba(33, 150, 243, 0.1));
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
  border: 1px solid var(--theme-secondary-alpha-30, rgba(33, 150, 243, 0.2));
}

.action-title {
  color: var(--theme-secondary, #2196f3);
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.action-text {
  color: var(--theme-text-dim, #aaa);
  line-height: 1.5;
}

.contact-info {
  background: var(--theme-warning-alpha-10, rgba(255, 193, 7, 0.1));
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
  border: 1px solid var(--theme-warning-alpha-20, rgba(255, 193, 7, 0.2));
}

.contact-title {
  color: var(--theme-warning-bright, #ffc107);
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.instructions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--theme-glass-border, rgba(255, 255, 255, 0.1));
}

.instructions h3 {
  color: var(--theme-text-muted, #888);
  font-size: 1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--theme-text-dim, #aaa);
}

.step-number {
  background: var(--theme-primary-alpha-20, rgba(76, 175, 80, 0.2));
  color: var(--theme-primary, #4caf50);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.footer {
  margin-top: 30px;
  color: var(--theme-text-subtle, #666);
  font-size: 0.9rem;
  border-top: 1px solid var(--theme-chart-grid-soft, rgba(255, 255, 255, 0.05));
  padding-top: 20px;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--theme-glass-border, rgba(255, 255, 255, 0.1));
  border-radius: 50%;
  animation: float 20s infinite linear;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px var(--theme-danger-toast-bg, rgba(244, 67, 54, 0.5)));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--theme-danger-toast-bg, rgba(244, 67, 54, 0.7));
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
  }

  100% {
    transform: translateY(-100vh) rotate(360deg);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 25px;
  }

  h1 {
    font-size: 2rem;
  }

  .lock-icon {
    font-size: 60px;
  }

  .info-row {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .lock-icon {
    font-size: 50px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 16px;
    border-radius: 14px;
  }

  .ip-address {
    font-size: 1.06rem;
    letter-spacing: 0.4px;
    padding: 12px;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 760px;
    padding: 48px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .subtitle {
    font-size: 1.28rem;
  }
}

/* Mini-toast (flash messages) */
.notification-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(92vw, 460px);
  pointer-events: none;
}

.notification-stack .notification {
  position: relative;
  top: auto;
  right: auto;
  pointer-events: auto;
}

.notification {
  min-width: 260px;
  max-width: min(92vw, 460px);
  padding: 0.78rem 1rem;
  border-radius: 0.75rem;
  color: #f8fbfe;
  background: rgba(35, 48, 56, 0.92);
  border: 1px solid rgba(111, 169, 191, 0.54);
  box-shadow: 0 10px 20px rgba(5, 10, 14, 0.38);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
  line-height: 1.35;
  animation: notif-in 0.2s ease;
}

.notification-success {
  border-color: rgba(126, 220, 184, 0.64);
  background: rgba(35, 93, 78, 0.92);
}

.notification-info {
  border-color: rgba(90, 157, 203, 0.64);
  background: rgba(30, 65, 90, 0.92);
}

.notification-error {
  border-color: rgba(213, 103, 95, 0.7);
  background: rgba(104, 43, 39, 0.94);
}

.notification-warning {
  border-color: rgba(227, 166, 91, 0.64);
  background: rgba(90, 62, 20, 0.92);
}

.notification.notification-exit {
  animation: notif-out 0.2s ease forwards !important;
}

@keyframes notif-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notif-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  .notification-stack {
    left: 0.6rem;
    right: 0.6rem;
    top: 0.6rem;
    max-width: none;
  }
}
