/* ==========================================================================
   Dragon ERP - Instant Self-Service Demo Wizard Styles (RTL)
   ========================================================================== */

.demo-hero {
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
  background: radial-gradient(1000px 400px at 50% -50px, rgba(246, 189, 12, 0.15), transparent 70%),
              linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin: 0.5rem 0 1rem;
  color: #fff;
}

.demo-hero h1 em {
  font-style: normal;
  color: #f6bd0c;
}

.demo-hero p {
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(246, 189, 12, 0.15);
  border: 1px solid rgba(246, 189, 12, 0.35);
  color: #fcd34d;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

/* Steps Indicator */
.steps-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: 750px;
  margin: -1.75rem auto 2.5rem;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.step-indicator {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.step-indicator.active {
  background: #0f172a;
  border-color: #f6bd0c;
  color: #fff;
  box-shadow: 0 0 20px rgba(246, 189, 12, 0.2);
}

.step-indicator.completed {
  background: #0f172a;
  border-color: #10b981;
  color: #34d399;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 700;
}

.step-indicator.active .step-number {
  background: #f6bd0c;
  color: #0f172a;
}

.step-indicator.completed .step-number {
  background: #10b981;
  color: #fff;
}

/* Wizard Box */
.demo-wizard-container {
  max-width: 850px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.wizard-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

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

/* Database Blueprint Selection Cards */
.blueprints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.blueprint-card {
  position: relative;
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.blueprint-card:hover {
  border-color: rgba(246, 189, 12, 0.5);
  transform: translateY(-2px);
}

.blueprint-card.selected {
  border-color: #f6bd0c;
  background: rgba(246, 189, 12, 0.05);
  box-shadow: 0 0 25px rgba(246, 189, 12, 0.15);
}

.bp-badge {
  position: absolute;
  top: -12px;
  left: 1rem;
  background: #f6bd0c;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.bp-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.bp-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.bp-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.bp-features {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.bp-features li {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bp-features li::before {
  content: "✓";
  color: #10b981;
  font-weight: 800;
}

/* Modules Grid */
.modules-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.module-checkbox-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.module-checkbox-card:hover {
  background: #253349;
}

.module-checkbox-card.checked {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.module-checkbox-card input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: #f6bd0c;
  cursor: pointer;
  margin-top: 0.2rem;
}

.module-info h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: #fff;
}

.module-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Sections and Standalone Project Cards */
.module-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.module-section-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.module-section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.module-section-tag.standalone {
  background: rgba(246, 189, 12, 0.15);
  color: #f6bd0c;
  border-color: rgba(246, 189, 12, 0.35);
}

.module-section-tag.nursery {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.module-section-tag.realestate {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.module-section-tag.erp {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.standalone-project-card {
  background: linear-gradient(145deg, #1e293b 0%, #1a2744 100%);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.standalone-project-card:hover {
  border-color: #f6bd0c;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(246, 189, 12, 0.2);
}

.standalone-project-card.checked {
  border-color: #f6bd0c;
  background: linear-gradient(145deg, #1e293b 0%, rgba(246, 189, 12, 0.12) 100%);
  box-shadow: 0 0 25px rgba(246, 189, 12, 0.25);
}

.standalone-project-card input[type="checkbox"] {
  width: 1.3rem;
  height: 1.3rem;
  accent-color: #f6bd0c;
  cursor: pointer;
  margin-top: 0.25rem;
}

.standalone-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: #f6bd0c;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

/* Form Controls */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .steps-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.form-group label .req {
  color: #ef4444;
}

.form-input {
  width: 100%;
  box-sizing: border-box;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #f6bd0c;
  background: #0f172a;
}

/* OTP Verification Step */
.otp-container {
  text-align: center;
  max-width: 420px;
  margin: 1.5rem auto;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  direction: ltr;
}

.otp-digit {
  width: 52px;
  height: 56px;
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #f6bd0c;
  transition: all 0.2s;
}

.otp-digit:focus {
  border-color: #f6bd0c;
  box-shadow: 0 0 15px rgba(246, 189, 12, 0.3);
  outline: none;
}

.resend-box {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 1rem;
}

.resend-box button {
  background: none;
  border: none;
  color: #f6bd0c;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
  padding: 0;
  font-family: inherit;
}

/* Provisioning Animation & Result Screen */
.provisioning-loader {
  text-align: center;
  padding: 2.5rem 1rem;
}

.spinner-dragon {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(246, 189, 12, 0.2);
  border-top-color: #f6bd0c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-bar-bg {
  width: 100%;
  max-width: 480px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  margin: 1.5rem auto;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f6bd0c, #10b981);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.credential-box {
  background: #1e293b;
  border: 1px solid rgba(246, 189, 12, 0.3);
  border-radius: 16px;
  padding: 1.75rem;
  max-width: 550px;
  margin: 2rem auto 0;
  text-align: right;
}

.cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cred-row:last-child {
  border-bottom: none;
}

.cred-label {
  font-size: 0.88rem;
  color: #94a3b8;
}

.cred-val {
  font-family: monospace;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #f6bd0c;
  color: #0f172a;
}

.btn-wizard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #f6bd0c;
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-wizard:hover {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(246, 189, 12, 0.3);
}

.btn-wizard.secondary {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-wizard.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Platform Info Banner */
.platform-info-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(246, 189, 12, 0.3);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.pib-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.pib-badge {
  background: #f6bd0c;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.pib-badge.nursery {
  background: #10b981;
  color: #0f172a;
}

.pib-badge.realestate {
  background: #f59e0b;
  color: #0f172a;
}

.pib-badge.erp {
  background: #38bdf8;
  color: #0f172a;
}

.pib-header h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0;
  font-weight: 700;
}

.pib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.pib-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pib-label {
  font-size: 0.78rem;
  color: #94a3b8;
}

.pib-val {
  font-size: 0.88rem;
  color: #f1f5f9;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Tier & Preset Selector Bar */
.tier-preset-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.tier-preset-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
}

.tier-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tier-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.tier-btn.active,
.tier-btn.active.tier-nursery,
.tier-btn.active.tier-realestate {
  background: #f6bd0c !important;
  color: #0f172a !important;
  border-color: #f6bd0c !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(246, 189, 12, 0.3) !important;
}

.tier-badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  margin-right: 0.4rem;
}

.tier-badge-pill.basic {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tier-badge-pill.advanced {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.tier-badge-pill.enterprise {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.tier-badge-pill.contracting {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.tier-badge-pill.rental {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

