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

:root {
  /* Color Palette - Refined Pink */
  --primary-pink: #f1b0c8;
  --primary-pink-hover: #ff9ebf;
  --primary-pink-shadow: rgba(241, 176, 200, 0.4);
  --text-dark: #2d2d2d;
  --text-light: #666666;
  --text-dim: #999999;
  
  /* Modern Design Tokens */
  --bg-gradient: linear-gradient(165deg, #fff5f8 0%, #ffffff 100%);
  --border-radius-xl: 32px;
  --border-radius-lg: 20px;
  --border-radius-sm: 14px;
  
  /* Glassmorphism Refined */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --soft-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.05), 0 8px 16px -8px rgba(0, 0, 0, 0.02);
  --premium-shadow: 0 20px 50px -15px rgba(241, 176, 200, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent; /* Remove mobile tap highlight */
}

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Animations */
.floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.icon {
  position: absolute;
  font-size: clamp(20px, 5vw, 28px);
  opacity: 0.35;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(10px, -20px) rotate(10deg); }
  66% { transform: translate(-10px, -10px) rotate(-5deg); }
}

.icon-blossom { top: 8%; left: 10%; animation-delay: 0s; }
.icon-heart { top: 15%; right: 15%; animation-delay: 2s; }
.icon-sparkle { top: 45%; left: 5%; animation-delay: 4s; }
.icon-unicorn { bottom: 20%; right: 10%; animation-delay: 6s; }
.icon-moon { bottom: 15%; left: 15%; animation-delay: 8s; }

/* Wrapper Container */
.container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 10;
  animation: entrance 1s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes entrance {
  from { opacity: 0; transform: scale(0.96) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.main-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: clamp(30px, 8vw, 40px) 24px;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--premium-shadow), var(--soft-shadow);
  border: 1px solid var(--glass-border);
  text-align: center;
}

/* Header Refinement */
.header {
  margin-bottom: 35px;
}

h1 {
  font-size: clamp(1.75rem, 6vw, 2.2rem);
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/* Sections Common */
section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c77a99;
  margin-bottom: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Profile Visual Info */
.profile-info {
  background: rgba(255, 255, 255, 0.5);
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(241, 176, 200, 0.2);
}

.file-name {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 500;
}

.file-tag {
  font-size: 0.7rem;
  background: #fff;
  color: var(--primary-pink);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(241, 176, 200, 0.1);
  border: 1px solid rgba(241, 176, 200, 0.2);
}

/* Premium Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px; /* Golden standard for mobile touch targets */
  border-radius: var(--border-radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink), #ff9ebf);
  color: white;
  box-shadow: 0 15px 35px -10px var(--primary-pink-shadow);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 5px 15px -5px var(--primary-pink-shadow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-dark);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-top: 14px;
}

.btn-secondary:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.8);
}

/* Android Section Enhanced */
.android-section {
  background: rgba(255, 255, 255, 0.4);
  padding: 24px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 8px 8px 8px 16px;
  border-radius: 16px;
  border: 1.5px solid #f8f8f8;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  margin-top: 10px;
}

#dnsText {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
}

.btn-copy {
  height: 40px;
  padding: 0 18px;
  background: var(--primary-pink);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

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

.hint {
  font-size: 0.8rem;
  margin-top: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Guide Section Mobile Polish */
.guide-section {
  text-align: left;
  background: rgba(255, 255, 255, 0.4);
  padding: 24px;
  border-radius: var(--border-radius-lg);
}

.guide-section h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  gap: 14px;
}

.step-num {
  background: var(--primary-pink);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px var(--primary-pink-shadow);
}

.step p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-light);
}

.step p strong {
  color: #c77a99;
}

/* Footer Minimal */
.footer {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 25px;
  padding-top: 20px;
  opacity: 0.6;
}

/* Notch & Safe Area Support */
@supports (padding: env(safe-area-inset-bottom)) {
  .main-card {
    padding-bottom: calc(30px + env(safe-area-inset-bottom) / 2);
  }
}
