/* ========================================
   LUSTYN WELCOME - BASED ON EXPLORE.CSS DESIGN SYSTEM
   ======================================== */

   :root {
    /* Core colors - Match explore.css exactly */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-primary: #1f6feb;
    --accent-danger: #da3633;
    --accent-success: #2ea043;
    --border-primary: #30363d;
    --transition: 200ms ease;
  }
  
  /* ========================================
     RESET & BASE STYLES
     ======================================== */
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: fixed;
    overflow: hidden;
    user-select: none;
    min-height: 100vh;
    width: 100%;
  }
  
  /* ========================================
     FULL SCREEN SLIDES
     ======================================== */
  
  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: var(--bg-primary);
    transform: translateX(100%);
    transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    overflow-y: auto;
  }
  
  .slide.active {
    transform: translateX(0);
    z-index: 10;
  }
  
  
  .slide.prev {
    transform: translateX(-100%);
  }

  .welcome-google-btn {
    width: 312px;
    height: 50px;
    padding: 0 24px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition);
    margin-top: 12px;
    z-index: 10;
    position: relative;
  }
  
  .welcome-google-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  
  .welcome-google-btn svg {
    flex-shrink: 0;
    transition: transform var(--transition);
  }
  
  .welcome-google-btn:hover svg {
    transform: scale(1.05);
  }
  
  /* Mobile responsive for welcome Google button */
  @media (max-width: 480px) {
    .welcome-google-btn {
      width: 260px;
      padding: 10px 20px;
      font-size: 13px;
    }
    
    .welcome-google-btn svg {
      width: 16px;
      height: 16px;
    }
  }
  
  /* ========================================
     SLIDE VARIANTS
     ======================================== */
  
  .welcome-slide {
    background: var(--bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100vh;
  }
  
  .question-slide {
    background: var(--bg-primary);
    text-align: center;
  }
  
  .location-slide {
    background: var(--bg-primary);
  }
  
  .age-verification-slide {
    background: var(--bg-primary);
    text-align: center;
  }
  
  .registration-slide {
    background: var(--bg-primary);
  }
  
  .photo-upload-slide {
    background: var(--bg-primary);
  }
  
  .loading-slide {
    background: var(--bg-primary);
    text-align: center;
  }
  
  .success-slide {
    background: var(--bg-primary);
    text-align: center;
  }
  
/* ========================================
   WELCOME SLIDE IMAGE BACKGROUND
   ======================================== */

   .welcome-image-grid {
    position: absolute;
    top: -463px;
    left: 0;
    width: calc(100% + 5px);
    height: calc(100vh + 2000px);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(auto-fit, 463px);
    animation: moveUpContinuous 25s linear infinite;
    transform: translateX(var(--parallax-x, 0px)) translateY(var(--parallax-y, 0px));
    transition: transform 0.1s ease-out;
    z-index: 1;
    overflow: hidden;
  }
  
  .grid-image {
    width: 100%; /* Fill the grid cell */
    height: 463px;
    object-fit: cover;
    display: block;
  }
  
  /* Split overlay - fixed 620px width from left */
  .split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 620px;
    height: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(9, 10, 10, 0.76);
    z-index: 2;
    pointer-events: none;
  }
  
  /* Content positioned within the 620px area */
  .welcome-content {
    position: absolute;
    top: 50%;
    left: 310px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    max-width: 320px;
    padding: 20px 16px;
    border-radius: 20px;
  }
  
  @keyframes moveUpContinuous {
    0% {
      transform: translateY(0) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
    100% {
      transform: translateY(-463px) translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    }
  }
  
  
  /* Mobile responsive - 4 columns on smaller screens */
  @media (max-width: 768px) {
    .split-overlay {
      width: 80%;
    }
    
    .welcome-content {
      left: 40%;
    }
    
    .welcome-image-grid {
      grid-template-columns: repeat(4, 1fr); /* 4 columns on mobile */
      grid-template-rows: repeat(auto-fit, 31.25vw);
      top: -31.25vw;
      height: calc(100% + 62.5vw);
    }
    
    .grid-image {
      width: 100%;
      height: 31.25vw;
    }
    
    @keyframes moveUpContinuous {
      0% { transform: translateY(0); }
      100% { transform: translateY(-31.25vw); }
    }
  }
  
  /* Prevent scrolling */
  html, body {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
  }
  
  .slide {
    overflow: hidden;
  }
  
  /* ========================================
     WELCOME SLIDE CONTENT
     ======================================== */

  .welcome-slide h1 {
    font-size: 5.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
    line-height: 1.05;
    padding-bottom: 0.2em;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    z-index: 10;
    position: relative;
  }
  
  .tagline {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: -8px;
    margin-bottom: 16px;         
    font-weight: 300;
    z-index: 10;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap; /* Prevent line breaks */
  }
  
  /* Mobile responsive */
  @media (max-width: 480px) {
    .tagline {
      font-size: 16px; /* Smaller text to fit on one line */
    }
  }
  
  .primary-cta-btn {
    padding: 0 40px;
    background-color: var(--accent-primary);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 20px;
    width: 312px;
    height: 50px;
    z-index: 10;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .primary-cta-btn:hover {
    background-color: #1a5ed4;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  
/* ========================================
   LOGIN LINK - CENTERED BELOW CTA
   ======================================== */

   .login-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    text-decoration: none;
    margin-top: 16px;
    font-weight: 400;
    transition: all var(--transition);
    z-index: 10;
    position: relative;
  }
  
  .login-link:hover {
    color: rgba(255, 255, 255, 0.9);
  }
  
/* ========================================
   LEGAL DISCLAIMER - CENTERED WITH BUTTONS
   ======================================== */

   .legal-disclaimer {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 20px;
    text-align: center;
    max-width: 300px;
    line-height: 1.4;
  }
  
  .legal-disclaimer a {
    color: var(--accent-primary);
    text-decoration: none;
  }
  
  .legal-disclaimer a:hover {
    text-decoration: underline;
  }
  
  .legal-disclaimer .company-info {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    display: block;
  }
  
  /* ========================================
     TYPOGRAPHY
     ======================================== */
  
  .question-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-primary);
  }
  
  .question-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
  }
  
  /* ========================================
     CHOICE BUTTONS
     ======================================== */
  
  .choices {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .choice-btn {
    width: 100%;
    padding: 20px 32px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: capitalize;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  
  .choice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
  }
  
  .choice-btn:hover::before {
    left: 100%;
  }
  
  .choice-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  
  .choice-btn:active {
    transform: translateY(0);
  }
  
  .choice-btn.selected {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  
  /* Multiple choice styling */
  .multi-choices .choice-btn {
    position: relative;
    padding-left: 48px;
  }
  
  .multi-choices .choice-btn::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-primary);
    border-radius: 4px;
    background: transparent;
    transition: all var(--transition);
  }
  
  .multi-choices .choice-btn.selected::before {
    background: white;
    border-color: white;
  }
  
  .multi-choices .choice-btn.selected::after {
    content: '✓';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* ========================================
     CONTINUE BUTTON - FIXED WITH ARROW
     ======================================== */
  
  .continue-btn {
    position: absolute;
    bottom: 48px;
    right: 48px;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transform: scale(0.8);
    pointer-events: none;
  }

  /* Add arrow icon with CSS */
  .continue-btn::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
  }
  
  /* Override for age verification slide */
  #slide-8 .continue-btn {
    width: auto;
    height: 48px;
    border-radius: 24px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
  }
  
  .continue-btn.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
  }
  
  .continue-btn.active:hover {
    background: #1a5ed4;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  
  .continue-btn:active {
    transform: scale(0.95);
  }
  
  /* ========================================
     LOCATION INPUT
     ======================================== */
  
  .location-input-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin-bottom: 32px;
  }
  
  .location-input {
    width: 100%;
    height: 56px;
    padding: 16px 20px;
    padding-right: 48px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 18px;
    font-family: inherit;
    text-align: center;
    transition: all var(--transition);
    outline: none;
  }
  
  .location-input::placeholder {
    color: var(--text-secondary);
  }
  
  .location-input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.1);
    transform: translateY(-1px);
  }
  
  .location-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
  }
  
  /* ========================================
     USE LOCATION BUTTON
     ======================================== */
  
  .use-location-btn {
    width: 100%;
    max-width: 380px;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #1a5ed4 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
  }
  
  .use-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  
  .use-location-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
  }
  
  /* ========================================
     LOCATION DIVIDER
     ======================================== */
  
  .location-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
    width: 100%;
    max-width: 380px;
  }
  
  .location-divider::before,
  .location-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-primary);
  }
  
  .location-divider::before {
    left: 0;
  }
  
  .location-divider::after {
    right: 0;
  }
  
  .location-divider span {
    background: var(--bg-primary);
    padding: 0 16px;
  }
  
  /* ========================================
     PROGRESS INDICATOR
     ======================================== */
  
  .progress {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
  }
  
  .progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-primary);
    transition: all var(--transition);
  }
  
  .progress-dot.active {
    background: var(--accent-primary);
    transform: scale(1.3);
  }
  
  /* ========================================
     BACK BUTTON
     ======================================== */
  
  .back-btn {
    position: absolute;
    top: 48px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
  }
  
  .back-btn.show,
  .back-btn[style*="flex"] {
    display: flex;
  }
  
  .back-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
  }
  
  .back-btn:active {
    transform: scale(0.95);
  }
  
  /* ========================================
     FORM INPUTS
     ======================================== */
  
  .input-field {
    width: 100%;
    max-width: 380px;
    margin-bottom: 20px;
  }
  
  .input-field input {
    width: 100%;
    height: 56px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 18px;
    font-family: inherit;
    text-align: center;
    transition: all var(--transition);
    outline: none;
  }
  
  .input-field input::placeholder {
    color: var(--text-secondary);
  }
  
  .input-field input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.1);
    transform: translateY(-1px);
  }
  
  .input-help {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: center;
  }
  
  /* Username input styling */
  .username-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 20px;
    transition: all var(--transition);
    height: 56px;
  }
  
  .username-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.1);
    transform: translateY(-1px);
  }
  
  .username-prefix {
    padding: 16px 8px 16px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 18px;
  }
  
  .username-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    padding: 16px 20px 16px 0;
    color: var(--text-primary);
    font-size: 18px;
    font-family: inherit;
    outline: none;
  }
  
  .username-input-wrapper input::placeholder {
    color: var(--text-secondary);
  }
  
  .username-status {
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
  }
  
  .username-status.checking { 
    color: #ffa500; 
  }
  
  .username-status.available { 
    color: var(--accent-success); 
  }
  
  .username-status.taken { 
    color: var(--accent-danger); 
  }
  
/* ========================================
   AGE VERIFICATION
   ======================================== */

   .age-verify-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 380px;
    width: 100%;
    margin: 32px auto;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  
  .age-verify-card ul.verify-points {
    margin: 0 auto 20px auto;
    padding: 0;
    list-style: none;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: left;
    max-width: 280px;
  }
  
  .age-verify-card ul.verify-points li {
    margin-bottom: 8px;
    padding-left: 1.2em;
    position: relative;
  }
  
  .age-verify-card ul.verify-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
  }
  
  .age-verify-card .choice-btn {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    text-align: left;
    padding: 20px 24px;
  }
  
  .age-verify-card .choice-btn i {
    font-size: 24px;
    color: var(--accent-primary);
    min-width: 24px;
  }
  
  .verify-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .verify-option strong {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .verify-option small {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
  }
  
  #verify-status {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
  }
  
/* ========================================
   SMS VERIFICATION STYLES
   ======================================== */

   .phone-verification-step,
   .code-verification-step {
     width: 100%;
     max-width: 380px;
   }
   
   .resend-btn {
     background: transparent;
     border: 2px solid var(--border-primary);
     color: var(--text-secondary);
     padding: 12px 24px;
     border-radius: 16px;
     font-size: 14px;
     cursor: pointer;
     margin-top: 16px;
     transition: all var(--transition);
   }
   
   .resend-btn:hover {
     border-color: var(--accent-primary);
     color: var(--accent-primary);
   }
   
   #verify-status {
     margin-top: 16px;
     padding: 12px;
     border-radius: 12px;
     font-size: 14px;
     text-align: center;
     background: var(--bg-tertiary);
     border: 1px solid var(--border-primary);
   }
  
  /* ========================================
     PHOTO UPLOAD
     ======================================== */
  
  .photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 340px;
    margin: 0 auto 20px auto;
    width: 100%;
  }
  
  .photo-slot {
    aspect-ratio: 1;
    border: 2px dashed var(--border-primary);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    min-height: 100px;
  }
  
  .photo-slot.add-photo {
    border-style: dashed;
    border-color: var(--border-primary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
  }
  
  .photo-slot.add-photo:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.02);
  }
  
  .photo-slot.add-photo i {
    font-size: 20px;
    margin-bottom: 4px;
  }
  
  .photo-slot.filled {
    border: 2px solid var(--accent-primary);
    border-style: solid;
    cursor: default;
    background: var(--bg-secondary);
  }
  
  .photo-slot.empty {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    cursor: default;
  }
  
  .photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(16px - 2px);
  }
  
  .photo-slot .remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-weight: 700;
  }
  
  .photo-slot .remove-photo:hover {
    background: var(--accent-danger);
    transform: scale(1.1);
  }
  
  .photo-tips {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 16px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .photo-tips i {
    color: var(--accent-primary);
    margin-right: 4px;
  }
  
  .photo-input {
    display: none;
  }
  
/* ========================================
   LOADING SCREEN
   ======================================== */

   .loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-primary);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 32px;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .loading-text {
    font-size: 20px;
    color: var(--text-secondary);
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
  }
  
  /* ========================================
     SUCCESS SCREEN
     ======================================== */
  
  .success-icon {
    font-size: 4rem;
    margin-bottom: 32px;
    animation: bounce 0.6s ease-out;
  }
  
  @keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
      transform: translate3d(0,0,0);
    }
    40%, 43% {
      transform: translate3d(0, -30px, 0);
    }
    70% {
      transform: translate3d(0, -15px, 0);
    }
    90% {
      transform: translate3d(0, -4px, 0);
    }
  }
  
  /* ========================================
   ERROR HANDLING
   ======================================== */
  
  .error-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(218, 54, 51, 0.1);
  border: 1px solid rgba(218, 54, 51, 0.3);
  color: var(--accent-danger);
  padding: 12px 20px;
  border-radius: 12px;
  z-index: 1050;
  max-width: 320px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  
  /* ========================================
   GOOGLE PLACES AUTOCOMPLETE
   ======================================== */
  
  .pac-container {
  background: var(--bg-secondary) !important;
  border: 2px solid var(--border-primary) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  z-index: 1050 !important;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
  margin-top: 8px !important;
  }
  
  .pac-item {
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--border-primary) !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: var(--text-primary) !important;
  background: transparent !important;
  }
  
  .pac-item:hover {
  background: var(--bg-tertiary) !important;
  }
  
  .pac-item:last-child {
  border-bottom: none !important;
  }
  
  .pac-item-query {
  font-weight: 600 !important;
  color: var(--accent-primary) !important;
  }
  
  .pac-matched {
  font-weight: 700 !important;
  color: var(--accent-primary) !important;
  }
  
  .pac-icon {
  margin-right: 8px !important;
  opacity: 0.6 !important;
  filter: invert(1) !important;
  }
  
  /* ========================================
   TRANSGENDER FLAG
   ======================================== */
  
  .trans-flag-container {
  display: flex;
  justify-content: center;
  align-items: center;
  }
  
  .trans-flag {
  width: 120px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  }
  
  .trans-stripe {
  flex: 1;
  width: 100%;
  }
  
  .trans-blue {
  background-color: #5BCEFA;
  }
  
  .trans-pink {
  background-color: #F5A9B8;
  }
  
  .trans-white {
  background-color: #FFFFFF;
  }
  
  .trans-flag {
  animation: fadeInScale 0.6s ease-out;
  }
  
  @keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
  }
  
  /* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */
  
  @media (max-width: 480px) {
  .slide {
    padding: 32px 16px;
  }
  
  .question-title {
    font-size: 2rem;
  }
  
  .welcome-slide h1 {
    font-size: 2.5rem;
  }
  
  .choices {
    max-width: 320px;
  }
  
  .choice-btn {
    padding: 16px 20px;
    font-size: 16px;
    min-height: 48px;
  }
  
  .continue-btn {
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
  }
  
  .back-btn {
    top: 32px;
    left: 16px;
  }
  
  .progress {
    top: 32px;
  }
  
  .login-btn {
    top: 32px;
    right: 16px;
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .legal-links {
    bottom: 16px;
    left: 16px;
  }
  
  .legal-link {
    font-size: 11px;
  }
  
  .photos-grid {
    max-width: 280px;
    gap: 8px;
  }
  
  .photo-slot {
    min-height: 80px;
  }
  
  .photo-slot.add-photo {
    font-size: 12px;
  }
  
  .photo-slot.add-photo i {
    font-size: 16px;
  }
  
  .welcome-content {
    left: 40%;
    max-width: 280px;
  }
  
  .welcome-slide h1 {
    font-size: 3rem;
  }
  
  .primary-cta-btn {
    width: 260px;
  }
  
  .welcome-age-notice {
    left: 40%;
  }
  }
  
  /* ========================================
   LANDSCAPE MOBILE
   ======================================== */
  
  @media (max-height: 500px) and (orientation: landscape) {
  .slide {
    padding: 20px 16px;
  }
  
  .question-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  
  .question-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }
  
  .choices {
    max-width: 280px;
  }
  
  .choice-btn {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 48px;
  }
  
  .continue-btn {
    bottom: 20px;
    right: 20px;
  }
  
  .progress {
    top: 20px;
  }
  
  .back-btn {
    top: 20px;
    left: 16px;
  }
  }
  
/* ========================================
   SAFE AREAS
   ======================================== */

   @supports (padding: max(0px)) {
    .slide {
      padding-top: max(40px, env(safe-area-inset-top) + 20px);
      padding-bottom: max(40px, env(safe-area-inset-bottom) + 20px);
      padding-left: max(20px, env(safe-area-inset-left));
      padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .progress {
      top: max(48px, env(safe-area-inset-top) + 32px);
    }
    
    .back-btn {
      top: max(48px, env(safe-area-inset-top) + 32px);
      left: max(20px, env(safe-area-inset-left) + 16px);
    }
    
    .continue-btn {
      bottom: max(48px, env(safe-area-inset-bottom) + 32px);
      right: max(48px, env(safe-area-inset-right) + 32px);
    }
  }
  
  /* ========================================
   ACCESSIBILITY
   ======================================== */
  
  @media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .choice-btn:hover,
  .continue-btn:hover,
  .back-btn:hover {
    transform: none;
  }
  }
  
  /* Touch device optimizations */
  @media (hover: none) and (pointer: coarse) {
  .choice-btn:hover,
  .continue-btn:hover,
  .back-btn:hover {
    transform: none;
  }
  
  .choice-btn:active,
  .continue-btn:active,
  .back-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  }
  
  /* Focus states for accessibility */
  *:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  }
  
  button:focus-visible,
  a:focus-visible {
  outline-offset: 0;
  }
  
  /* ========================================
   SCROLLBAR STYLING
   ======================================== */
  
  ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  }
  
  ::-webkit-scrollbar-track {
  background: var(--bg-primary);
  }
  
  ::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
  background: var(--border-primary);
  }
  
  /* Firefox */
  * {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-tertiary) var(--bg-primary);
  }
  
  .age-warning {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: 12px;
  opacity: 0.7;
  z-index: 100;
  }
  
  .age-warning a {
  color: var(--accent-primary);
  text-decoration: none;
  }
  
  .age-warning a:hover {
  text-decoration: underline;
  }
  
  /* ========================================
   TOP-LEFT HEADER NAV
   (Mission / About / Safety / Community)
   ======================================== */
  
  .header-links {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 12px;
  }
  
  .header-link {
    position: relative;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
  }
  
  /* cool sliding underline */
  .header-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
  }
  
  .header-link:hover {
    color: var(--accent-primary);
  }
  
  .header-link:hover::after {
    width: 100%;
  }
  
  /* Active/current page */
  .header-link.active,
  .header-link[aria-current="page"] {
    color: var(--accent-primary);
  }
  
  .header-link.active::after,
  .header-link[aria-current="page"]::after {
    width: 100%;
  }
  
  
  /* ========================================
   MOBILE HAMBURGER NAVIGATION
   ======================================== */
  
  .mobile-nav {
    display: none;
  }
  
  .desktop-only {
    display: flex;
  }
  
  .hamburger-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
  }
  
  .hamburger-btn span {
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 40px;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
  }
  
  .nav-menu.open {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 28px;
    font-weight: 400;
    padding: 12px 0;
    position: relative;
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.4s ease;
  }
  
  .nav-menu.open .nav-link {
    transform: translateX(0);
    opacity: 1;
  }
  
  .nav-menu.open .nav-link:nth-child(1) { transition-delay: 0.1s; }
  .nav-menu.open .nav-link:nth-child(2) { transition-delay: 0.2s; }
  .nav-menu.open .nav-link:nth-child(3) { transition-delay: 0.3s; }
  .nav-menu.open .nav-link:nth-child(4) { transition-delay: 0.4s; }
  
  .nav-link:hover {
    color: var(--accent-primary);
  }
  
  @media (max-width: 480px) {
    .mobile-nav {
      display: block;
    }
    
    .desktop-only {
      display: none;
    }
  }

  .typewriter-text {
    min-height: 1.2em;
    display: inline-block;
  }
  
  .cursor {
    animation: blink 1s infinite;
    font-weight: 400;
    color: var(--accent-primary);
  }
  
  @keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
  }

  /* ========================================
   ROMANTIC ENTRANCE ANIMATION
   ======================================== */

body {
  animation: heartbeatFadeIn 1.2s ease-out;
}

@keyframes heartbeatFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Optional: Add subtle glow effect on load */
.welcome-slide {
  animation: subtleGlow 1.5s ease-out;
}

@keyframes subtleGlow {
  0% {
    filter: brightness(0.8);
  }
  100% {
    filter: brightness(1);
  }
}

/* ========================================
   SHOWCASE SECTION
   ======================================== */

.showcase-section {
  position: absolute;
  top: 100vh;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  z-index: 5;
}

.showcase-container {
  max-width: 1200px;
  text-align: center;
}

.showcase-title {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 40px;
  font-weight: 600;
}

.showcase-image-wrapper {
  margin: 0 auto;
  max-width: 900px;
}

.showcase-large {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 2px solid var(--border-primary);
  transition: transform 0.3s ease;
}

.showcase-large:hover {
  transform: scale(1.02);
}

.showcase-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 30px;
  font-weight: 400;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .showcase-title {
    font-size: 2rem;
  }
  
  .showcase-section {
    padding: 20px 16px;
  }
  
  .showcase-description {
    font-size: 1rem;
  }
}

.email-sent {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.email-sent #user-email {
  color: var(--accent-primary);
  font-weight: 600;
}