/* =============================================
   Malabaar Finance – App Installation Guide
============================================= */

.guide-page {
  min-height: 100vh;
  padding-top: 72px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 168, 76, 0.12), transparent),
    var(--navy);
}

.guide-hero {
  text-align: center;
  padding: 48px 24px 32px;
  max-width: 820px;
  margin: 0 auto;
}

.guide-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--success);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: guidePulse 2s ease-in-out infinite;
}

@keyframes guidePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.guide-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.guide-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.guide-btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.guide-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.45);
}

.guide-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--gold-light);
}

.guide-btn-secondary:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold);
}

/* ===== TABS ===== */
.guide-tabs-wrap {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 0 16px;
}

.guide-tabs {
  display: flex;
  gap: 8px;
  max-width: 960px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 14px 0;
}

.guide-tabs::-webkit-scrollbar { display: none; }

.guide-tab {
  flex: 1;
  min-width: max-content;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.guide-tab.active {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.35);
  color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.1);
}

.guide-tab-icon {
  font-size: 1.1rem;
}

/* ===== PANELS ===== */
.guide-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.guide-panel {
  display: none;
  animation: guidePanelIn 0.35s ease both;
}

.guide-panel.active {
  display: block;
}

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

.guide-section-title {
  text-align: center;
  margin-bottom: 36px;
}

.guide-section-title h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 8px;
}

.guide-section-title .section-sub {
  display: inline-block;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
}

.guide-section-title p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 0.92rem;
}

/* ===== STEPS ===== */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.guide-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  background: rgba(17, 34, 64, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.guide-step:hover {
  border-color: rgba(201, 168, 76, 0.28);
  box-shadow: var(--shadow-card);
}

.guide-step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.guide-step-body h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.guide-step-body p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.guide-step-body p:last-child {
  margin-bottom: 0;
}

.guide-step-body a.guide-link {
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.guide-step-body a.guide-link:hover {
  color: var(--white);
}

.guide-step-body .important-note {
  display: inline-block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 6px;
}

.guide-step-images {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.guide-phone-frame {
  position: relative;
  max-width: 280px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(201, 168, 76, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  background: var(--navy-mid);
}

.guide-phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.guide-phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  z-index: 1;
}

.guide-placeholder {
  max-width: 280px;
  min-height: 200px;
  border-radius: 20px;
  border: 2px dashed rgba(201, 168, 76, 0.3);
  background: rgba(17, 34, 64, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.guide-placeholder-icon {
  font-size: 2rem;
  opacity: 0.6;
}

.guide-placeholder span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ===== HELP BANNER ===== */
.guide-help-banner {
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(79, 195, 247, 0.06));
  border: 1px solid rgba(201, 168, 76, 0.2);
  text-align: center;
}

.guide-help-banner h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.guide-help-banner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.guide-tab-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.guide-tab-switch button {
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.guide-tab-switch button:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ===== FOOTER ===== */
.guide-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.guide-footer a {
  color: var(--gold-light);
  font-weight: 600;
}

.guide-footer a:hover {
  color: var(--white);
}

@media (max-width: 640px) {
  .guide-step {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .guide-step-num {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .guide-tab {
    flex: none;
    font-size: 0.75rem;
    padding: 10px 14px;
  }

  .guide-phone-frame {
    max-width: 100%;
  }
}
