@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-gradient: linear-gradient(135deg, #0d0e15 0%, #1a1c29 50%, #10111a 100%);
  --glow-color: rgba(99, 102, 241, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Background decorative glowing circles */
body::before, body::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, rgba(99, 102, 241, 0) 70%);
  opacity: 0.25;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

body::before {
  top: -10%;
  left: -10%;
  animation: float-slow 15s infinite alternate ease-in-out;
}

body::after {
  bottom: -10%;
  right: -10%;
  animation: float-slow 20s infinite alternate-reverse ease-in-out;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
              0 0 30px rgba(99, 102, 241, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.emoji-wrapper {
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.emoji-main {
  font-size: 4.5rem;
  line-height: 1;
  display: inline-block;
  animation: wave 3s infinite ease-in-out;
}

.emoji-sub {
  position: absolute;
  font-size: 1.5rem;
  animation: float 4s infinite ease-in-out;
}

.emoji-sub-1 {
  top: -10px;
  left: -20px;
  animation-delay: 0.5s;
}

.emoji-sub-2 {
  bottom: -5px;
  right: -25px;
  animation-delay: 1.5s;
}

h1 {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.ip-display-container {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.ip-address {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: scale(1.05);
}

.btn-copy:active {
  transform: scale(0.95);
}

.btn-copy svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tooltip {
  position: absolute;
  bottom: -35px;
  background: var(--accent);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  pointer-events: none;
  font-weight: 600;
}

.tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-simple {
  display: inline-block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.btn-simple:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-simple:active {
  transform: translateY(0);
}

.badge {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-block;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Animations */
@keyframes wave {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(8deg) scale(1.05); }
  75% { transform: rotate(-8deg) scale(0.98); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(10deg); }
}

@keyframes float-slow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

@media(max-width: 480px) {
  .card {
    padding: 30px 20px;
  }
  .ip-address {
    font-size: 1.5rem;
  }
}
