@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-base: #09090B;
  --bg-surface: #121214;
  --bg-elevated: #18181B;
  --border: #27272A;
  --border-active: #3F3F46;
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-dim: #71717A;
  
  --primary: #6366F1; /* Indigo */
  --primary-hover: #818CF8;
  --primary-glow: rgba(99, 102, 241, 0.15);
  
  --secondary: #0EA5E9; /* Sky */
  --secondary-glow: rgba(14, 165, 233, 0.15);
  
  --danger: #EF4444;
  --danger-dim: rgba(239, 68, 68, 0.15);
  
  --warning: #F59E0B;
  --warning-dim: rgba(245, 158, 11, 0.15);
  
  --success: #10B981;
  
  --void-accent: #7C3AED;
  --void-accent-light: #A78BFA;
  --void-bg: #08090C;
  
  --msg-self-bg: var(--primary);
  --msg-self-text: #FFFFFF;
  --msg-other-bg: var(--bg-elevated);
  --msg-other-text: var(--text-primary);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  height: 100%;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

::selection { background: var(--primary-glow); color: var(--primary-hover); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-active); }

.view { display: none; position: relative; z-index: 1; height: 100%; }
.view.active { display: flex; }

/* ═══ LANDING VIEW ═══ */
#view-landing {
  flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  height: 100%;
}

/* ─── HERO SECTION ─── */
.hero-section {
  min-height: 100%;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.hero-bg-orb--1 {
  width: 500px; height: 500px;
  background: rgba(99, 102, 241, 0.15);
  top: -100px; right: -100px;
  animation: orbFloat1 12s ease-in-out infinite;
}

.hero-bg-orb--2 {
  width: 400px; height: 400px;
  background: rgba(14, 165, 233, 0.1);
  bottom: -80px; left: -80px;
  animation: orbFloat2 15s ease-in-out infinite;
}

.hero-bg-orb--3 {
  width: 300px; height: 300px;
  background: rgba(168, 85, 247, 0.1);
  top: 40%; left: 30%;
  animation: orbFloat1 18s ease-in-out infinite reverse;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.1); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.05); }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.landing-logo {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  animation: fadeSlideUp 0.6s ease-out;
}

.landing-logo span { 
  color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
}

.tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-secondary);
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--primary);
  width: 0;
  animation: typewriter 2s steps(32) 0.5s forwards, blink 0.7s step-end infinite;
}

@keyframes typewriter { to { width: 19.5em; } }
@keyframes blink { 50% { border-color: transparent; } }

/* ─── ENCRYPTED BADGE ─── */
.encrypt-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  animation: fadeSlideUp 0.6s ease-out 0.8s both;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.encrypt-badge__icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-glow);
  border-radius: 50%;
  color: var(--primary);
}

.encrypt-badge__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.encrypt-badge__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.encrypt-badge__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-dim);
}

.encrypt-badge__dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  margin-left: 0.25rem;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

/* ─── LANDING CARD ─── */
.landing-card {
  background: rgba(18, 18, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(440px, 90vw);
  overflow: hidden;
  animation: fadeSlideUp 0.5s ease-out 0.9s both;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.tab-btn {
  flex: 1;
  padding: 1.25rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.tab-btn.active {
  color: var(--text-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 -2px 10px var(--primary-glow);
}

.tab-btn:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.02); }

.tab-content { padding: 2rem; display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.tab-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFF;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.cta-btn:hover { 
  background: var(--primary-hover); 
  transform: translateY(-1px); 
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3); 
}
.cta-btn:active { transform: translateY(0); }
.cta-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; background: var(--border); color: var(--text-secondary); }

.code-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.code-input-group .dash {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  color: var(--text-dim);
  margin: 0 0.1rem;
}

.code-box {
  width: 38px; height: 48px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  caret-color: var(--primary);
  transition: all 0.2s;
}

.code-box:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px var(--primary-glow); }

.landing-footer {
  text-align: center;
  animation: fadeSlideUp 0.5s ease-out 1.1s both;
}

.landing-footer .warn {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.landing-footer .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.error-msg {
  font-size: 0.8rem;
  color: var(--danger);
  text-align: center;
  margin-top: 1rem;
  min-height: 1.2em;
  font-weight: 500;
}

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.2s;
  animation: fadeSlideUp 0.5s ease-out 1.3s both;
}

.scroll-indicator:hover { color: var(--text-primary); }
.scroll-indicator svg { animation: bounceDown 2s ease-in-out infinite; color: var(--primary); }

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ─── SECTION COMMON ─── */
.section-header { text-align: center; margin-bottom: 4rem; }

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--primary-glow);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 1rem;
}

.section-tag--secondary {
  color: var(--secondary);
  background: var(--secondary-glow);
  border-color: rgba(14, 165, 233, 0.2);
}

.section-tag--amber {
  color: var(--warning);
  background: var(--warning-dim);
  border-color: rgba(245, 158, 11, 0.2);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── FEATURES SECTION ─── */
.features-section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; width: 100%; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.3s;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-elevated);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.feature-card:hover::after { box-shadow: inset 0 0 0 1px var(--border-active); }

.feature-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.feature-icon--primary  { background: var(--primary-glow); color: var(--primary); }
.feature-icon--secondary { background: var(--secondary-glow); color: var(--secondary); }
.feature-icon--amber { background: var(--warning-dim); color: var(--warning); }
.feature-icon--danger { background: var(--danger-dim); color: var(--danger); }
.feature-icon--purple { background: rgba(168, 85, 247, 0.1); color: #C084FC; }

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── ENCRYPTION SECTION ─── */
.encryption-section { padding: 6rem 2rem; max-width: 1000px; margin: 0 auto; width: 100%; }

.encryption-visual { display: flex; flex-direction: column; gap: 4rem; }

.enc-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
}

.enc-node { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.enc-node__icon {
  width: 72px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  border: 2px solid var(--border-active);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.enc-node--you .enc-node__icon { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }
.enc-node--them .enc-node__icon { border-color: var(--secondary); color: var(--secondary); box-shadow: 0 0 20px var(--secondary-glow); }

.enc-node__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.enc-tunnel {
  flex: 1;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  padding: 0 2rem;
}

.enc-tunnel__line {
  width: 100%;
  height: 2px;
  background: var(--border-active);
  position: relative;
  overflow: hidden;
}

.enc-tunnel__particle {
  position: absolute;
  width: 30px; height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: particleMove 1.5s linear infinite;
}

.enc-tunnel__particle--2 { animation-delay: 0.5s; background: linear-gradient(90deg, transparent, var(--secondary), transparent); }
.enc-tunnel__particle--3 { animation-delay: 1s; }

@keyframes particleMove { 0% { left: -30px; } 100% { left: 100%; } }

.enc-tunnel__lock {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 2px solid var(--border-active);
  border-radius: 50%;
  color: var(--text-primary);
}

.enc-tunnel__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.enc-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.enc-detail {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.enc-detail__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.enc-check { color: var(--primary); font-weight: 800; }

.enc-detail p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── HOW IT WORKS ─── */
.how-section { padding: 6rem 2rem; max-width: 1000px; margin: 0 auto; width: 100%; }

.steps-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-elevated);
  -webkit-text-stroke: 1px var(--border-active);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.step-card:hover .step-number { color: var(--primary-glow); -webkit-text-stroke: 1px var(--primary); }

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector { color: var(--border-active); display: flex; justify-content: center; }

/* ─── STATS SECTION ─── */
.stats-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 4rem 2rem;
  margin: 0 auto;
  max-width: 1000px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── BOTTOM CTA ─── */
.bottom-cta { text-align: center; padding: 6rem 2rem; }

.bottom-cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.bottom-cta__sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.bottom-cta__btn { width: auto; display: inline-flex; padding: 1rem 3rem; font-size: 1.1rem; }

.bottom-cta__footer {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover {
  background: var(--bg-elevated);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

/* ═══ WAITING VIEW ═══ */
#view-waiting {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.waiting-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  width: min(500px, 90vw);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.waiting-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.room-code-display {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.code-digit {
  width: 44px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
}

.code-dash {
  display: flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  color: var(--text-dim);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2rem;
}

.copy-btn:hover { background: var(--border); border-color: var(--border-active); }

.waiting-divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.waiting-status { font-weight: 500; color: var(--text-primary); margin-bottom: 0.5rem; }

.pulsing-dots { display: inline-flex; gap: 6px; margin: 1rem 0; }

.pulsing-dots span {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.pulsing-dots span:nth-child(2) { animation-delay: 0.2s; }
.pulsing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }

.waiting-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 1.5rem 0;
}

.cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-btn:hover { color: var(--text-primary); background: var(--bg-elevated); }

/* ═══ CHAT VIEW ═══ */
#view-chat {
  flex-direction: column;
  height: 100%;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 1rem;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.chat-logo span { color: var(--primary); }

.room-code-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}

.room-code-badge:hover {
  background: var(--primary);
  color: #fff;
}

.peer-count-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.header-right { display: flex; align-items: center; gap: 1rem; }

.connection-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.conn-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-glow);
}

.timer-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.timer-display.warning { color: var(--warning); border-color: rgba(245, 158, 11, 0.3); }
.timer-display.danger { color: var(--danger); border-color: rgba(239, 68, 68, 0.3); animation: pulseDanger 1s infinite; }

@keyframes pulseDanger { 0%, 100% { background: var(--bg-elevated); } 50% { background: var(--danger-dim); } }

.leave-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.leave-btn:hover { color: var(--danger); background: var(--danger-dim); }

.system-banner {
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--primary-glow);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  text-align: center;
  transition: all 0.5s;
  flex-shrink: 0;
}

.system-banner.hidden { opacity: 0; padding: 0; height: 0; border: none; overflow: hidden; }

/* ─── MESSAGE AREA ─── */
.message-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.msg {
  display: flex;
  flex-direction: column;
  max-width: 75%;
  animation: msgIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.msg.self { align-self: flex-end; align-items: flex-end; }
.msg.other { align-self: flex-start; align-items: flex-start; }

.msg-bubble {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.msg.self .msg-bubble {
  background: var(--msg-self-bg);
  color: var(--msg-self-text);
  border-bottom-right-radius: 4px;
}

.msg.other .msg-bubble {
  background: var(--msg-other-bg);
  color: var(--msg-other-text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.msg-label {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.msg-text {
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}

.msg-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  margin-top: 0.4rem;
  opacity: 0.7;
}
.msg.self .msg-time { text-align: right; }

.system-msg {
  align-self: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  margin: 0.5rem 0;
  animation: msgIn 0.3s ease forwards;
}

.system-msg.warn-color { color: var(--warning); border-color: rgba(245, 158, 11, 0.3); }

/* ─── EXTEND BANNER ─── */
.extend-banner {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  margin: 0.5rem 0;
  animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.extend-banner span { font-weight: 500; color: var(--text-primary); font-size: 0.9rem; }

.extend-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.extend-btn:hover { background: var(--primary-hover); transform: scale(1.05); }

@keyframes bounceIn { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ─── INPUT AREA ─── */
.input-area {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.input-wrapper {
  flex: 1;
  position: relative;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

#msg-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  resize: none;
  max-height: 160px;
  line-height: 1.5;
}

#msg-input:focus { outline: none; }
#msg-input::placeholder { color: var(--text-dim); }

.char-counter {
  position: absolute;
  bottom: 0.5rem;
  right: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  background: var(--bg-base);
  padding: 0 0.25rem;
  visibility: hidden;
}
.char-counter.visible { visibility: visible; }
.char-counter.over { color: var(--danger); }

.send-btn {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.send-btn:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px var(--primary-glow); }
.send-btn:disabled { background: var(--border); color: var(--text-dim); cursor: not-allowed; }

/* ═══ DESTROYED VIEW ═══ */
#view-destroyed {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-base);
}

.destroyed-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.destroyed-icon {
  color: var(--danger);
  background: var(--danger-dim);
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.destroyed-title { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); }
.destroyed-reason { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }
.destroyed-purge { font-size: 0.85rem; color: var(--text-dim); padding: 1rem; background: var(--bg-base); border-radius: var(--radius-sm); border: 1px solid var(--border); width: 100%; }
.new-room-btn { width: 100%; margin-top: 1rem; }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ SCROLL REVEAL ═══ */
.feature-card, .enc-detail, .step-card, .stat-item {
  opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease;
}
.feature-card.visible, .enc-detail.visible, .step-card.visible, .stat-item.visible {
  opacity: 1; transform: translateY(0);
}
.feature-card:nth-child(2), .enc-detail:nth-child(2), .step-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3), .enc-detail:nth-child(3), .step-card:nth-child(3) { transition-delay: 0.2s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .steps-container { grid-template-columns: 1fr; gap: 2rem; }
  .step-connector { transform: rotate(90deg); }
  .enc-flow { flex-direction: column; gap: 2rem; padding: 2rem; }
  .enc-tunnel { max-width: 100%; transform: rotate(90deg); padding: 2rem 0; }
  .enc-tunnel__label { transform: rotate(-90deg); white-space: nowrap; }
}

@media (max-width: 600px) {
  .hero-content { padding: 1rem; }
  .landing-card { width: 100%; border-radius: 0; border-left: none; border-right: none; }
  .features-section, .encryption-section, .how-section { padding: 4rem 1rem; }
  .stats-section { flex-direction: column; gap: 2rem; padding: 3rem 1rem; }
  .stat-divider { width: 100px; height: 1px; }
  
  .chat-header { 
    padding: 0.5rem; 
    flex-wrap: nowrap; 
    overflow-x: auto; 
    justify-content: flex-start; 
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
  }
  .chat-header::-webkit-scrollbar { display: none; }
  .chat-header > div { flex-shrink: 0; }
  .chat-logo { display: none; }
  .chat-header-left { width: auto; justify-content: flex-start; margin-bottom: 0; gap: 0.5rem; flex-shrink: 0; }
  .header-right { width: auto; justify-content: flex-start; flex-wrap: nowrap; gap: 0.5rem; flex-shrink: 0; }
  .connection-status span:nth-child(2) { display: none; }
  .share-btn, .burn-btn, .leave-btn { padding: 0.3rem 0.6rem; font-size: 0.75rem; white-space: nowrap; margin-right: 0; }
  .timer-display { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
  
  .message-area { padding: 0.75rem; }
  .input-area { padding: 0.5rem; }
  .msg { max-width: 95%; }
  
  .code-input-group { flex-wrap: nowrap; gap: 0.2rem; justify-content: center; overflow-x: auto; padding-bottom: 0.2rem; }
  .code-input-group::-webkit-scrollbar { display: none; }
  .code-digit, .code-box { width: 32px; height: 42px; font-size: 1.1rem; flex-shrink: 0; }
}

/* ═══ NEW FEATURES ═══ */
.username-group { margin-bottom: 1rem; width: 100%; display: flex; justify-content: center; }
.user-input { width: 100%; padding: 0.8rem; background: var(--bg-base); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); text-align: center; font-size: 0.9rem; }
.user-input:focus { border-color: var(--primary); outline: none; }
.share-btn { background: none; border: 1px solid var(--border); color: var(--text-secondary); padding: 0.4rem 0.8rem; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; margin-right: 0.5rem; }
.share-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }
.burn-btn { background: var(--danger-dim); border: 1px solid var(--danger); color: var(--danger); padding: 0.4rem 0.8rem; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; margin-right: 1rem; font-weight: bold; }
.burn-btn:hover { background: var(--danger); color: #fff; }

#watermark-container {
   position: absolute;
   inset: 0;
   overflow: hidden;
   pointer-events: none;
   z-index: 0;
   opacity: 0.08;
   display: flex;
   flex-direction: column;
   justify-content: center;
   transform: rotate(-30deg) scale(2);
   user-select: none;
}
.watermark-line {
   font-family: 'JetBrains Mono', monospace;
   font-size: 2rem;
   white-space: nowrap;
   margin-bottom: 2rem;
   color: var(--text-primary);
}

.typing-indicator {
    padding: 0.2rem 1.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    min-height: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}
.typing-indicator.visible {
    opacity: 1;
}
.msg-author { font-size: 0.7rem; font-weight: bold; margin-bottom: 0.2rem; color: var(--text-secondary); }
.msg.self .msg-author { color: var(--msg-self-text); opacity: 0.8; }

/* ═══ 3D EFFECTS ═══ */
.feature-card, .step-card, .enc-detail {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  perspective: 1000px;
}
.feature-card:hover, .step-card:hover, .enc-detail:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-4deg);
  box-shadow: -10px 15px 30px rgba(0,0,0,0.3);
}

.landing-card {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  box-shadow: -15px 20px 40px rgba(0,0,0,0.5);
  transition: transform 0.5s ease;
}
.landing-card:hover {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.blurred-out {
  filter: blur(15px) grayscale(100%);
  pointer-events: none;
  user-select: none;
}

/* ═══ MARKDOWN ═══ */
.msg-text pre {
  background: rgba(0,0,0,0.3);
  padding: 0.75rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  margin: 0.5rem 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.msg.self .msg-text pre {
  background: rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.2);
}
.msg-text code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0,0,0,0.2);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.9em;
}
.msg-text strong { font-weight: 700; color: inherit; }
.msg-text em { font-style: italic; }

/* ═══ QR MODAL ═══ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.modal.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}
.modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.qr-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#qrcode-container {
  background: white;
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 1rem;
}
#qrcode-container img {
  display: block;
}

/* ═══ THREE.JS CANVAS ═══ */
#void-bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  transition: opacity 1.5s ease;
}

/* ═══ BENTO GRID ═══ */
.bento-title { font-family: 'Bricolage Grotesque', sans-serif; }
.bento-subtitle { font-family: 'DM Sans', sans-serif; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 1rem;
}

.bento-card {
  background: rgba(18, 18, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bento-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.bento-card__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.bento-card__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Hero card */
.bento-card--hero { grid-column: 1 / 8; grid-row: span 2; }
.bento-card__lock-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  color: var(--void-accent);
  margin-bottom: 1rem;
  animation: lockSpin 6s ease-in-out infinite;
}
@keyframes lockSpin {
  0%, 85%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(-15deg); }
  95% { transform: rotate(10deg); }
}

.bento-code-snippet {
  margin-top: auto;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}
.code-key { color: var(--void-accent-light); }
.code-str { color: #6EE7B7; }
.code-num { color: #FCD34D; }

/* Burn card */
.bento-card--burn {
  grid-column: 8 / 13;
  grid-row: span 2;
  background: rgba(127, 29, 29, 0.12);
  border-color: rgba(239, 68, 68, 0.15);
}
.bento-nuke-visual {
  margin-top: auto;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.bento-nuke-btn {
  padding: 0.6rem 2rem;
  background: var(--danger-dim);
  border: 2px solid var(--danger);
  border-radius: 8px;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: default;
  animation: nukePulse 2s ease-in-out infinite;
}
@keyframes nukePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(239,68,68,0.15); }
}
.bento-nuke-label { font-size: 0.7rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }

/* Timer card */
.bento-card--timer { grid-column: 1 / 5; }
.bento-timer-visual { margin-top: auto; text-align: center; }
.bento-timer-digits {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--warning);
  display: block;
  margin-bottom: 0.5rem;
}
.bento-timer-bar {
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.bento-timer-bar__fill {
  width: 83%;
  height: 100%;
  background: linear-gradient(90deg, var(--warning), var(--danger));
  border-radius: 2px;
  animation: timerShrink 8s linear infinite;
}
@keyframes timerShrink {
  0% { width: 100%; } 100% { width: 0%; }
}

/* Peers card */
.bento-card--peers { grid-column: 5 / 9; }
.bento-peer-dots {
  margin-top: auto;
  display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
}
.peer-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}
.peer-dot.active {
  background: rgba(124, 58, 237, 0.3);
  border-color: var(--void-accent);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

/* Screenshot card */
.bento-card--screenshot { grid-column: 9 / 13; }
.bento-blur-demo {
  margin-top: auto;
  position: relative;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 1rem;
  overflow: hidden;
}
.bento-blur-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  filter: blur(4px);
}
.bento-blur-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(124, 58, 237, 0.35);
  white-space: nowrap;
  letter-spacing: 0.1em;
}

/* Browser card */
.bento-card--browser { grid-column: 1 / 13; }
.bento-browser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.bento-browser-logos {
  display: flex; gap: 1.25rem; align-items: center;
  opacity: 0.5;
}
.bento-browser-logos svg { transition: opacity 0.3s; }
.bento-card--browser:hover .bento-browser-logos { opacity: 0.8; }

/* Bento responsive */
@media (max-width: 768px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento-card--hero { grid-column: 1 / -1; grid-row: auto; }
  .bento-card--burn { grid-column: 1 / -1; grid-row: auto; }
  .bento-card--timer { grid-column: span 1; }
  .bento-card--peers { grid-column: span 1; }
  .bento-card--screenshot { grid-column: 1 / -1; }
  .bento-card--browser { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--timer,
  .bento-card--peers,
  .bento-card--screenshot { grid-column: 1; }
  .bento-browser-inner { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
@keyframes spin { 100% { transform: rotate(360deg); } }
