:root{
  --onb-card-bg: #ffffff;
  --onb-card-bg-gradient: linear-gradient(180deg,#ffffff 0%, #fbfbff 100%);
  --onb-border: #e9edf3;
  --onb-shadow: 0 8px 30px rgba(0,0,0,0.06);
  --onb-muted: #6b7280;
  --onb-text: #111827;
  --onb-accent: #5b6cff; /* brand blue/indigo */
  --onb-accent-2: #7c3aed; /* violet accent */
  --onb-success: #10b981;
  --onb-pending: #cbd5e1;
  --onb-pill-bg: #f8fafc;
}

.onb-wrapper{
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

.onb-header{ 
  margin-bottom: 24px;
}
.onb-header h1{
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 700;
  font-size: clamp(20px, 3.5vw, 28px);
  color: var(--onb-text);
  letter-spacing: -0.01em;
}
.onb-sub{
  color: var(--onb-muted);
  margin-top: 6px;
  font-size: clamp(13px, 2.8vw, 15px);
}

.onb-card{
  background: var(--onb-card-bg-gradient);
  border: 1px solid var(--onb-border);
  border-radius: 24px;
  box-shadow: var(--onb-shadow);
  padding: 28px;
}

.onb-progress{ margin-bottom: 20px; }
.onb-progress-top{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.onb-progress-top span{ color: var(--onb-muted); font-weight: 500; word-break: break-word; }
.onb-progress-bar{ width: 100%; height: 12px; background: #eef2ff; border-radius: 999px; overflow: hidden; }
#onb-progress-fill{ height: 100%; width: 0%; background: linear-gradient(90deg, var(--onb-accent), var(--onb-accent-2)); border-radius: 999px; transition: width 420ms cubic-bezier(0.22,1,0.36,1); }

/* Dashboard widget progress reuse */
#onb-widget-fill{ height: 12px; width: 0%; background: linear-gradient(90deg, var(--onb-accent), var(--onb-accent-2)); border-radius: 999px; transition: width 420ms cubic-bezier(0.22,1,0.36,1); }

/* Menu onboarding progress bar */
.onboarding-menu-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.onboarding-menu-item:hover {
    background-color: var(--light-bg);
}

.onboarding-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.onboarding-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.menu-onb-row{ 
    display:flex; 
    align-items:center; 
    gap: 10px; 
    padding: 2px 0; 
}

.menu-onb-label{ 
    font-size: 11px; 
    color: var(--text-muted); 
}

.menu-onb-bar{ 
    flex:1; 
    height: 8px; 
    background: #e9f7ef; 
    border-radius: 999px; 
    overflow: hidden; 
    border: 1px solid #d1fae5; 
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); 
}

.menu-onb-fill{ 
    height: 100%; 
    width: 0%; 
    background: linear-gradient(90deg,#10b981,#34d399); 
    transition: width 380ms cubic-bezier(0.22,1,0.36,1); 
}

.menu-onb-pct{ 
    font-size: 12px; 
    font-weight: 700; 
    color: #065f46; 
    min-width: 40px; 
    text-align: right; 
}

.menu-onb-next {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
    line-height: 1.3;
}

.onb-steps{ list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.onb-step{ display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 999px; background: var(--onb-pill-bg); border: 1px solid var(--onb-border); transition: background 200ms ease, border-color 200ms ease; gap: 10px; }
.onb-step-content{ display: flex; align-items: center; gap: 12px; }
.onb-step-icon{ width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: #f1f5f9; color: #94a3b8; flex-shrink: 0; transition: transform 220ms ease, background 220ms ease, color 220ms ease; }
.onb-step-text{ color: var(--onb-text); font-weight: 600; }
.onb-step-sub{ color: var(--onb-muted); font-weight: 500; }
.onb-step-cta{ 
  margin-left: 12px; 
  display: flex;
  justify-content: center;
  align-items: center;
}
.onb-btn{ 
  padding: 8px 16px; 
  border-radius: 8px; 
  background: rgba(255, 255, 255, 0.8); 
  border: 1px solid rgba(91, 108, 255, 0.2); 
  color: var(--onb-text); 
  font-weight: 500; 
  font-size: 14px;
  cursor: pointer; 
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); 
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.onb-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.onb-btn:hover{ 
  background: rgba(91, 108, 255, 0.08);
  border-color: rgba(91, 108, 255, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(91,108,255,0.12);
}

.onb-btn:hover::before {
  left: 100%;
}

.onb-btn-primary{ 
  background: linear-gradient(135deg, rgba(91, 108, 255, 0.1), rgba(124, 58, 237, 0.1)); 
  color: var(--onb-accent); 
  border: 1px solid rgba(91, 108, 255, 0.3);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(91,108,255,0.15);
}

.onb-btn-primary:hover{ 
  background: linear-gradient(135deg, rgba(91, 108, 255, 0.15), rgba(124, 58, 237, 0.15));
  border-color: rgba(91, 108, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(91,108,255,0.2);
  text-decoration: none;
}

.onb-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 108, 255, 0.1);
}

.onb-btn:active {
  transform: translateY(0);
  transition: transform 100ms ease;
}

/* States */
.onb-step.done{ background: #ecfdf5; border-color: #d1fae5; }
.onb-step.done .onb-step-icon{ background: #d1fae5; color: var(--onb-success); transform: scale(1.06); }
.onb-step.active{ background: #eef2ff; border-color: #e0e7ff; }

/* Micro-animations */
@keyframes scaleFadeIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.onb-step .check-anim{ animation: scaleFadeIn 260ms ease forwards; }

/* Mobile */
@media (max-width: 768px){
  .onb-wrapper {
    padding: 0 8px;
  }
  
  .onb-card{ 
    padding: 18px; 
    border-radius: 20px; 
    margin: 0 0.5rem;
  }
  
  .onb-step{ 
    flex-direction: column; 
    align-items: stretch; 
    gap: 10px; 
    padding: 12px; 
    margin: 0 0.25rem;
  }
  
  .onb-step-cta{ 
    margin-left: 0; 
    margin: 0.5rem 0;
    justify-content: center;
    width: 100%;
  }
  
  .onb-btn{ 
    width: calc(100% - 1rem); 
    margin: 0.5rem auto;
    text-align: center; 
    box-sizing: border-box;
    padding: 10px 18px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 8px;
  }
  
  .onb-step-content{ 
    align-items: flex-start; 
  }
  
  /* Progress bar mobile adjustments */
  .onb-progress {
    margin: 0 0.5rem 20px 0.5rem;
  }
  
  .onb-progress-top {
    margin-bottom: 8px;
  }
  
  .onb-progress-bar {
    margin: 0 0.25rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .onb-wrapper {
    padding: 0 4px;
  }
  
  .onb-card{ 
    padding: 16px; 
    border-radius: 16px; 
    margin: 0 0.25rem;
  }
  
  .onb-step{ 
    padding: 10px; 
    margin: 0 0.125rem;
    gap: 8px;
  }
  
  .onb-step-cta{ 
    margin: 0.5rem 0;
    justify-content: center;
    width: 100%;
  }
  
  .onb-btn{ 
    width: calc(100% - 0.5rem); 
    margin: 0.5rem auto;
    padding: 8px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 6px;
  }
  
  .onb-progress {
    margin: 0 0.25rem 16px 0.25rem;
  }
  
  .onb-progress-bar {
    margin: 0 0.125rem;
  }
  
  .onb-header h1 {
    font-size: 22px;
  }
  
  .onb-sub {
    font-size: 14px;
  }
}

/* Override inline styles for mobile */
@media (max-width: 768px) {
  .main-content {
    padding: 16px 8px !important;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 12px 4px !important;
  }
}

