/* ==========================================================================
   Paymob Integration Onboarding - Styles
   ========================================================================== */

/* Color Variables */
:root {
  /* Paymob Brand Colors */
  --paymob-purple: #6366F1;
  --paymob-purple-dark: #4F46E5;
  --paymob-purple-light: #818CF8;
  --paymob-blue: #3B82F6;
  
  /* Semantic Colors */
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --primary-light: #818CF8;
  --secondary: #10B981;
  --secondary-dark: #059669;
  --accent: #F59E0B;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* Neutral Colors */
  --dark: #0F172A;
  --dark-secondary: #1E293B;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  --gradient-purple: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --gradient-hero: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  background: var(--gradient-hero);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.header-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
}

.header-title {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.auto-save-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.auto-save-indicator i {
  width: 16px;
  height: 16px;
  animation: checkmark-pulse 2s ease-in-out;
}

.auto-save-indicator.unsaved {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: rgba(255, 193, 7, 0.9);
}

.auto-save-indicator.unsaved i {
  animation: saving-spin 1s linear infinite;
}

.auto-save-indicator.saved {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: rgba(167, 243, 208, 0.9);
}

@keyframes checkmark-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes saving-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-header:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-header i {
  width: 16px;
  height: 16px;
}

.btn-support {
  background: rgba(239, 68, 68, 0.9);
  border-color: rgba(239, 68, 68, 1);
}

.btn-support:hover {
  background: rgba(239, 68, 68, 1);
}

.btn-integration-planner {
  padding: 0.625rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-integration-planner:hover {
  background: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: white;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  background: var(--gradient-hero);
  color: white;
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================================
   Main Container
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  transform: translateY(-3rem);
}

/* ==========================================================================
   Quick Actions
   ========================================================================== */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.quick-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.quick-action-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.quick-action-icon i {
  width: 24px;
  height: 24px;
}

.quick-action-content {
  flex: 1;
}

.quick-action-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.quick-action-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.quick-action-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: var(--transition);
}

.quick-action-card:hover .quick-action-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* ==========================================================================
   Page Container & Pages
   ========================================================================== */

.page-container {
  position: relative;
  perspective: 1500px;
  min-height: 600px;
}

.page {
  position: absolute;
  width: 100%;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s;
  opacity: 0;
  pointer-events: none;
}

.page.active {
  opacity: 1;
  pointer-events: all;
  transform: rotateY(0deg);
  position: relative;
}

.page.flip-out {
  transform: rotateY(-180deg);
  opacity: 0;
}

/* ==========================================================================
   Card Components
   ========================================================================== */

.card-header {
  padding: 2.5rem 2.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
}

.step-indicator {
  margin-bottom: 1rem;
}

.step-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--gradient-purple);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-content {
  padding: 2.5rem;
}

.card-footer {
  padding: 2rem 2.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.form-grid {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

label i {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.label-required {
  color: var(--error);
  font-weight: 700;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.flag-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 24px;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flag-icon img {
  width: 32px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

select, input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: var(--transition);
  appearance: none;
}

select {
  cursor: pointer;
  padding-right: 3rem;
}

select.has-flag {
  padding-left: 3.5rem;
}

select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea {
  min-height: 120px;
  resize: vertical;
  cursor: text;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: white;
  cursor: pointer;
  transition: var(--transition);
}

.feature-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.feature-card:hover {
  border-color: var(--primary-light);
  background: rgba(99, 102, 241, 0.02);
}

.feature-card input:checked ~ * {
  /* Checked state handled via JS for better control */
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card input:checked ~ .feature-icon {
  background: var(--gradient-purple);
  color: white;
}

.feature-icon i {
  width: 24px;
  height: 24px;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  transition: var(--transition);
  opacity: 0.5;
}

.feature-check i {
  width: 14px;
  height: 14px;
  color: white;
  opacity: 0;
  transition: var(--transition);
}

.feature-card input:checked ~ .feature-check {
  background: var(--primary);
  border-color: var(--primary);
  opacity: 1;
}

.feature-card input:checked ~ .feature-check i {
  opacity: 1;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn i {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--gradient-purple);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.btn-outline {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.05);
  color: var(--error);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-sm i {
  width: 16px;
  height: 16px;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

.quick-actions-footer {
  display: flex;
  gap: 0.5rem;
}

.action-group {
  display: flex;
  gap: 0.75rem;
}

/* ==========================================================================
   Progress & Summary
   ========================================================================== */

.progress-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.progress-info {
  flex: 1;
}

.progress-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.progress-label i {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.progress-stats {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.progress-percentage {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.summary-card {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.summary-header i {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.summary-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.summary-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.chip img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
}

/* ==========================================================================
   Roadmap
   ========================================================================== */

.roadmap-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.roadmap-stage {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.roadmap-stage:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.stage-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  user-select: none;
}

.stage-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stage-title {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.stage-toggle {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.roadmap-stage.collapsed .stage-toggle {
  transform: rotate(-90deg);
}

.roadmap-stage.completed .stage-number {
  background: var(--success);
}

.roadmap-stage.completed .stage-title {
  color: var(--success);
}

.stage-tasks {
  padding: 0 1.5rem 1.5rem 5rem;
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.roadmap-stage.collapsed .stage-tasks {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.task-item:last-child {
  border-bottom: none;
}

.task-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--success);
  flex-shrink: 0;
}

.task-text {
  flex: 1;
  color: var(--text-primary);
  line-height: 1.6;
}

.task-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.task-text a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.task-item.completed .task-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.modal-title i {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.modal-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--border);
}

.modal-close i {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.captcha-notice {
  margin: 1.5rem 0 1rem;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.captcha-notice p {
  margin: 0;
  line-height: 1.5;
}

.captcha-notice a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
}

.captcha-notice a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--dark);
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(100px);
  transition: var(--transition);
  z-index: 1100;
  max-width: 420px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast i {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
    flex-wrap: wrap;
  }
  
  .header-left {
    gap: 1rem;
  }
  
  .header-title {
    font-size: 0.875rem;
  }
  
  .header-right {
    width: 100%;
    justify-content: flex-end;
  }
  
  .btn-header span {
    display: none;
  }
  
  .hero {
    padding: 3rem 1.5rem 2.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .container {
    padding: 0 1rem 2rem;
  }
  
  .quick-actions {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .page {
    border-radius: var(--radius-lg);
  }
  
  .card-header, .card-content, .card-footer {
    padding: 1.5rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .card-footer {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .card-footer .btn {
    width: 100%;
    justify-content: center;
  }
  
  .action-group {
    width: 100%;
    flex-direction: column;
  }
  
  .action-group .btn {
    width: 100%;
  }
  
  .progress-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .stage-tasks {
    padding-left: 1.5rem;
  }
  
  .modal-content {
    max-width: 100%;
  }
  
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
