/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700;900&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* CSS Variables */
:root {
  --bg-primary: #030510;
  --bg-secondary: #070d1a;
  --accent-cyan: #00f5ff;
  --accent-violet: #7c3aed;
  --accent-green: #39ff14;
  --accent-red: #ff5050;
  --accent-red-hover: #ff3333;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px) saturate(180%);
  --transition-speed: 0.3s;
}

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

body {
  background: linear-gradient(to bottom, #060e20 0%, var(--bg-primary) 100%);
  color: #f1f1f5;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 255, 0.3);
}

/* Background Canvas */
#water-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
}

/* Liquid Morphing Blobs */
.blob {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  will-change: transform;
  transform: translateZ(0);
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.2) 0%, rgba(124, 58, 237, 0.1) 60%, transparent 100%);
  animation: blobMorph1 12s infinite alternate ease-in-out;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, rgba(0, 245, 255, 0.1) 60%, transparent 100%);
  animation: blobMorph2 15s infinite alternate ease-in-out;
}

/* Keyframes for Liquid Blobs */
@keyframes blobMorph1 {
  0% {
    border-radius: 62% 38% 70% 30% / 45% 55% 45% 55%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 50% 50% 40% 60% / 60% 40% 70% 30%;
    transform: rotate(45deg) scale(1.05);
  }
  100% {
    border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
    transform: rotate(90deg) scale(1.08);
  }
}

@keyframes blobMorph2 {
  0% {
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 60% 40% 70% 30% / 40% 55% 45% 60%;
    transform: rotate(-60deg) scale(1.06);
  }
  100% {
    border-radius: 70% 30% 60% 40% / 30% 40% 70% 60%;
    transform: rotate(-120deg) scale(1.02);
  }
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 60px;
  background: rgba(3, 5, 16, 0.4);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 10;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 6px var(--accent-cyan));
}

.nav-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent-green);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

/* Content Layout */
.app-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 100px 20px;
  z-index: 2;
  position: relative;
}

/* Main Form Card */
.registration-card {
  width: 100%;
  max-width: 640px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(108, 99, 255, 0.12), 
              0 24px 80px rgba(0, 0, 0, 0.5), 
              0 0 100px rgba(108, 99, 255, 0.06);
  padding: 40px;
  position: relative;
  overflow: visible; /* Need overflow visible to allow card gradients/glows or tooltips */
}

/* Embedded Card Blobs */
.registration-card::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.15) 0%, rgba(124, 58, 237, 0.05) 70%, transparent 100%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  animation: blobMorph1 6s infinite alternate ease-in-out;
}

.registration-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 80%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  animation: blobMorph2 8s infinite alternate ease-in-out;
}

/* Card Header */
.card-header {
  position: relative;
  margin-bottom: 30px;
}

.header-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.header-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: #fff;
  line-height: 1.2;
}

.header-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  line-height: 1.4;
}

.autosave-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 20px;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent-green);
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.autosave-badge.saved {
  background: rgba(57, 255, 20, 0.1);
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.header-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet), transparent);
  margin-top: 20px;
  position: relative;
}

.header-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  filter: blur(4px);
  opacity: 0.7;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

.section-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(0, 245, 255, 0.7);
  margin-bottom: 8px;
}

.section-subtext {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
  margin-top: -4px;
}

/* Input Fields */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.text-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 44px 14px 18px; /* Extra padding on right for feedback icons/character counts */
  color: #f1f1f5;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}

.text-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.text-input:focus {
  border-color: rgba(108, 99, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15), 0 0 20px rgba(108, 99, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

/* Validation States */
.text-input.valid {
  border-color: rgba(57, 255, 20, 0.3);
  background: rgba(57, 255, 20, 0.02);
}

.text-input.invalid {
  border-color: rgba(255, 80, 80, 0.5);
  box-shadow: 0 0 12px rgba(255, 80, 80, 0.15);
  background: rgba(255, 80, 80, 0.02);
}

/* Feedbacks */
.char-count {
  position: absolute;
  right: 18px;
  bottom: -20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
}

.input-status-icon {
  position: absolute;
  right: 16px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.input-status-icon.visible {
  opacity: 1;
  transform: scale(1);
}

.validation-message {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s ease;
  height: 0;
  overflow: hidden;
}

.validation-message.visible {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-top: 6px;
}

.validation-message.error {
  color: #ff6b6b;
}

.validation-message.success {
  color: #39ff14;
}

/* Glassmorphic Config Buttons */
.config-button {
  width: 100%;
  height: 54px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(0, 245, 255, 0.3);
  border-radius: 12px;
  color: #f1f1f5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.config-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.config-btn-left svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-cyan);
  transition: all 0.2s ease;
}

.config-btn-right {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.config-button:hover {
  border-style: solid;
  border-color: var(--accent-cyan);
  background: rgba(0, 245, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.config-button:hover .config-btn-left svg {
  filter: drop-shadow(0 0 4px var(--accent-cyan));
}

.config-button:hover .config-btn-right {
  color: rgba(255, 255, 255, 0.6);
}

/* Configured State for Buttons */
.config-button.configured {
  border-style: solid;
  border-color: rgba(57, 255, 20, 0.4);
  background: rgba(57, 255, 20, 0.03);
}

.config-button.configured:hover {
  border-color: var(--accent-green);
  background: rgba(57, 255, 20, 0.08);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.15);
}

.config-button.configured .config-btn-left svg {
  fill: var(--accent-green);
}

.config-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  display: inline-block;
  margin-right: 4px;
}

.config-summary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Team Size Selector */
.size-selector-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.size-btn {
  flex: 1;
  height: 70px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.size-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.size-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
}

.size-btn:hover .size-num {
  color: rgba(255, 255, 255, 0.8);
}

.size-btn.selected {
  background: rgba(108, 99, 255, 0.2);
  border-color: rgba(108, 99, 255, 0.5);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.size-btn.selected .size-num {
  color: #fff;
  text-shadow: 0 0 12px rgba(167, 139, 250, 0.8);
}

/* Dynamic Members Container */
.dynamic-members-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

/* Info Summary Pill */
.summary-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(57, 255, 20, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-green);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.1);
  margin-top: 30px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  height: 56px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.submit-btn.disabled {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.25);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.submit-btn.active {
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.4), 0 0 80px rgba(108, 99, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: glowPulse 2s infinite alternate;
}

.submit-btn.active:hover {
  transform: scale(1.02);
  box-shadow: 0 0 50px rgba(108, 99, 255, 0.6), 0 0 100px rgba(108, 99, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 50px rgba(108, 99, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 0 80px rgba(108, 99, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-panel {
  transform: scale(1);
}

/* Liquid Blob in Modal */
.modal-panel::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.15) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  animation: blobMorph1 7s infinite alternate ease-in-out;
}

/* Modal Close Button */
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: fill 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 80, 80, 0.1);
  border-color: rgba(255, 80, 80, 0.4);
  color: var(--accent-red);
  box-shadow: 0 0 10px rgba(255, 80, 80, 0.2);
}

/* Modal Headers */
.modal-header {
  margin-bottom: 24px;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
}

.modal-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-cyan);
  margin-top: 4px;
}

/* Modal Form Fields */
.modal-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

/* Modal Action Button */
.modal-save-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.9), rgba(167, 139, 250, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-save-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(108, 99, 255, 1), rgba(167, 139, 250, 1));
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

/* Terminal Aesthetic bottom strip */
.terminal-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 44px;
  background: rgba(3, 5, 16, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Fade masks on sides of terminal */
.terminal-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(90deg, rgba(3, 5, 16, 0.9) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.terminal-strip::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(-90deg, rgba(3, 5, 16, 0.9) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.marquee-container {
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 30s linear infinite;
  padding-left: 20px;
}

.marquee-content span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-green);
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.2);
}

.marquee-sep {
  color: rgba(0, 245, 255, 0.35);
  margin: 0 15px;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Toast Notification styling */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -100px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-container.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-card {
  background: rgba(7, 13, 26, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 12px;
  padding: 14px 24px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(57, 255, 20, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Form Shake Animation for errors */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

/* Responsive Styles */
@media (max-width: 640px) {
  .navbar {
    padding: 0 20px;
  }
  .app-container {
    padding: 40px 16px 80px 16px;
    align-items: flex-start;
  }
  .registration-card {
    padding: 24px;
    border-radius: 16px;
  }
  .header-title {
    font-size: 26px;
  }
  .autosave-badge {
    position: static;
    display: inline-flex;
    margin-top: 10px;
  }
  .size-selector-row {
    gap: 8px;
  }
  .size-btn {
    height: 56px;
  }
  .size-num {
    font-size: 20px;
  }
  .modal-overlay {
    padding: 10px;
  }
  .modal-panel {
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
}
