:root {
  --bg: #0f172a;
  --card: #0a192f;
  --accent: #7cfbcb;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --ring: linear-gradient(135deg, rgba(124, 251, 203, 0.55), rgba(110, 231, 255, 0.3), rgba(167, 139, 250, 0.35));
  --bg-gradient: radial-gradient(circle at 20% 20%, #1e293b 0, #0f172a 35%, #0b1224 70%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-gradient);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  background-color: #0b1224;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  letter-spacing: 0.1px;
  padding: 0;
}

.page {
  width: min(420px, 100vw);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  width: min(380px, 94vw);
  background: #0b1224;
  border-radius: 26px;
  padding: 22px 18px 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.phone::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.4px;
  width: 100%;
  padding: 2px 4px;
}

.notification {
  position: relative;
  margin: 10px auto;
  width: clamp(180px, 55vw, 240px);
  height: clamp(180px, 55vw, 240px);
  background: linear-gradient(160deg, #122338, #0f1c2d 40%, #0a1525 100%);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 14px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  align-items: center;
  justify-items: center;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 300ms ease;
  animation: float 3s ease-in-out infinite;
}

.notification.hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
}

.notification::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: var(--ring);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  opacity: 0.8;
  filter: blur(0.4px);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(110, 231, 255, 0.12);
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  max-width: 100%;
  text-wrap: balance;
}

.message {
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  gap: 6px;
  width: 100%;
  padding: 0 4px;
  text-align: center;
  word-break: break-word;
}

.brand {
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(120deg, #7cfbcb 0%, #6ee7ff 35%, #c4b5fd 70%, #7cfbcb 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 12px rgba(124, 251, 203, 0.4), 0 0 18px rgba(110, 231, 255, 0.35);
  animation: shine 5s ease-in-out infinite;
}

@media (max-width: 480px) {
  .page {
    padding: 12px;
  }

  .phone {
    gap: 18px;
    padding: 20px 16px 30px;
  }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
