*{ box-sizing: border-box; }

.onestop-page{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  padding-bottom: 2rem;
  position: relative;
}

.onestop-page::before,

.onestop-page::after{
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
  z-index: -1;
}

.onestop-page::before{
  top: -120px;
  left: -120px;
  background: rgba(37, 99, 235, 0.25);
}

.onestop-page::after{
  bottom: -140px;
  right: -140px;
  background: rgba(34, 197, 94, 0.20);
}

.onestop-hero{
  width: fit-content;
  max-width: 100%;
  animation: onestopFadeUp 420ms ease both;
}

@keyframes onestopFadeUp{
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.onestop-brand{ 
  display:flex; 
  align-items:center; 
  gap:1rem; 
  margin-bottom:1.25rem;
  text-align:left;
}

.onestop-logo{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: var(--shadow-soft);
  font-size: 1.4rem;
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.onestop-subtitle{ 
  margin:0.3rem 0 0; 
  color: var(--muted); 
  font-size: clamp(0.875rem, 2vw, 1rem);
}

#onestopTitle {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

/* 2 boxes per row */
.onestop-buttons{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:1.25rem;
  margin: 1rem auto 0;
  width: fit-content;
  justify-items: center;
  animation: staggerIn 0.6s ease-out;
}

/* Stagger animation for buttons */
@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-animated {
  animation: staggerIn 0.6s ease-out backwards;
  min-height: 56px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.btn-animated:nth-child(1) { animation-delay: 0.1s; }
.btn-animated:nth-child(2) { animation-delay: 0.2s; }
.btn-animated:nth-child(3) { animation-delay: 0.3s; }
.btn-animated:nth-child(4) { animation-delay: 0.4s; }

.btn-icon {
  font-size: 1.5rem;
  display: block;
}

.btn-title {
  display: block;
  font-size: 1rem;
  font-weight: 900;
}

/* Tooltip styling */
.tooltip-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.tooltip {
  visibility: hidden;
  background-color: var(--text);
  color: white;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--text) transparent transparent transparent;
}

.tooltip-container:hover .tooltip:not(.hidden) {
  visibility: visible;
  opacity: 1;
}

.tooltip.hidden {
  display: none;
}

/* Keyboard hint */
.keyboard-hint {
  position: absolute;
  bottom: -20px;
  right: 0;
  font-size: 0.7rem;
  background: rgba(37, 99, 235, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: var(--muted);
  font-weight: 600;
}

/* FAQ Section */
.faq-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(17, 24, 39, 0.1);
}

.faq-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text);
}

.faq-container {
  max-width: 500px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 0.75rem;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.faq-question {
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  user-select: none;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 1rem 0.85rem 1rem;
}

/* Mobile touch targets */
@media (max-width: 768px) {
  .btn-animated {
    min-height: 64px;
    min-width: 140px;
    gap: 0.75rem;
  }
  
  .btn-icon {
    font-size: 1.8rem;
  }
  
  .btn-title {
    font-size: 1.05rem;
  }
}

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
  .btn-animated,
  .onestop-buttons,
  .faq-item,
  .loading-spinner {
    animation: none !important;
    transition: none !important;
  }
  
  .faq-icon {
    transition: none;
  }
}

.btn-animated.guest{ 
  background:#dbeafe; 
  border-color:rgba(37,99,235,.22); 
  color:#1e3a8a; 
}

.btn-animated.owner{ 
  background:#dcfce7; 
  border-color:rgba(34,197,94,.22); 
  color:#14532d; 
}

.btn-animated.staff{ 
   background:#fef3c7; 
   border-color:rgba(245,158,11,.25); 
   color:#7c2d12; 
}

.btn-animated.service{ 
  background:#ede9fe; 
  border-color:#c4b5fd; 
  color:#4c1d95; 
}

/* ============== LOADING ANIMATIONS ============== */

/* Loading spinner */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.loading-overlay.active {
  display: flex;
}

.loading-box {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loading-text {
  margin-top: 1rem;
  color: var(--text);
  font-weight: 600;
}

/* Pulsing skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Button with loading state */
.btn-animated.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-animated.loading .btn-title {
  display: none;
}

.btn-animated.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============== RESPONSIVE MOBILE ============== */

@media (max-width: 768px) {
  .onestop-buttons {
    grid-template-columns: 1fr;
  }
  
  .onestop-brand {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .onestop-logo {
    margin: 0 auto;
  }
  
  .onestop-page {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .onestop-page::before,
  .onestop-page::after {
    width: 300px;
    height: 300px;
  }
  
  .onestop-page::before {
    top: -80px;
    left: -80px;
  }
  
  .onestop-page::after {
    bottom: -100px;
    right: -100px;
  }
  
  #onestopTitle {
    font-size: 1.25rem;
  }
}