/* Mobile app frame styling */
.mobile-frame {
  max-width: 400px;
  margin: 32px auto;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  background: var(--background);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.container {
  border-radius: 24px;
  box-shadow: none;
  margin: 0;
  padding: 0 0 7rem;
  min-height: 600px;
}

.header {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.5rem 1rem 1rem 1rem;
}

.controls {
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

.status-bar {
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.home-indicator {
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
}
/* Step images styling */
.step-img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}
/* Extracted CSS from index.html */
:root {
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --primary-dark: #1D4ED8;
  --accent: #7C3AED;
  --background: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --border: #E2E8F0;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.notch-area {
  height: 44px;
  background: var(--card-bg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.time {
  font-weight: 600;
  font-size: 15px;
}
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 7rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .container {
    padding: 3rem 2rem 6rem;
  }
}
.header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  position: relative;
  flex-shrink: 0;
}
.header::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
}
.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #0F172A;
}
.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 90%;
  line-height: 1.6;
}
.progress-container {
  padding: 0 8px 1.5rem;
  position: relative;
}
.progress-bar {
  height: 6px;
  background-color: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 20%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 100%);
  animation: shimmer 2s infinite linear;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.progress-text {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
}
.steps-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
}
.step {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  overflow-y: auto;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.step.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.4s ease-out;
}
.step-number {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
}
.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.step-content {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-left: 0.25rem;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 1rem;
}
.step-content p {
  margin-bottom: 0.75rem;
}
.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.25rem;
  transition: var(--transition);
}
.step:hover .step-icon {
  transform: scale(1.05) rotate(5deg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.2));
}
.controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  z-index: 100;
}
.btn {
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-width: 48px;
  min-height: 48px;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--primary);
  color: white;
  flex: 1;
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  margin-right: 12px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.voice-controls {
  display: flex;
  gap: 8px;
  margin: 0 12px;
}
.voice-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--background);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 48px;
  min-height: 48px;
}
.voice-btn:active {
  background: var(--border);
}
.security-tips {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}
.security-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  color: #2563EB;
}
.logo-sb {
  color: white;
  font-weight: bold;
}
.swipe-hint {
  text-align: center;
  margin-top: 8px;
  color: #64748B;
  font-size: 14px;
}
.security-title::before {
  content: "🔒";
  margin-right: 8px;
}
.security-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.home-indicator {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: var(--text-primary);
  border-radius: 3px;
  opacity: 0.3;
}
.status-bar {
  height: 44px;
  background: var(--card-bg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-time {
  font-weight: 600;
  font-size: 15px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.step.active {
  animation: fadeIn 0.4s ease-out;
}
@media (max-width: 350px) {
  .container {
    padding: 1rem 1rem 6rem;
  }
  .title {
    font-size: 1.5rem;
  }
  .step {
    padding: 1.25rem;
  }
  .btn {
    padding: 12px 16px;
    min-width: 80px;
    font-size: 14px;
  }
  .step-number {
    top: 1.25rem;
    right: 1.25rem;
  }
}
