/* ============================================
   OTPHub Public Homepage Styles
   Standalone — intentionally separate from admin.css
   ============================================ */

:root {
  --hp-bg: #0a0d14;
  --hp-bg-alt: #0f1320;
  --hp-card: #141928;
  --hp-card2: #1a2034;
  --hp-border: #232a40;
  --hp-text: #eceef5;
  --hp-muted: #8b92ab;
  --hp-accent: #6c5ce7;
  --hp-accent2: #00d4aa;
  --hp-danger: #ff5c5c;
  --hp-warn: #ffc107;
}

* { box-sizing: border-box; }

body.hp {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--hp-bg);
  color: var(--hp-text);
  line-height: 1.5;
}

.hp a { color: inherit; text-decoration: none; }
.hp img { max-width: 100%; display: block; }

.hp-container {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
}

/* ---------- Header ---------- */
.hp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,13,20,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hp-border);
}
.hp-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1180px; margin: 0 auto;
}
.hp-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.hp-logo img { height: 32px; width: auto; }
.hp-logo-dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent2)); }

.hp-nav { display: flex; align-items: center; gap: 28px; }
.hp-nav a { font-size: 14px; color: var(--hp-muted); font-weight: 500; }
.hp-nav a:hover { color: var(--hp-text); }

.hp-header-actions { display: flex; align-items: center; gap: 12px; }
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
}
.hp-btn-primary { background: linear-gradient(135deg, var(--hp-accent), #8a7ff0); color: #fff; }
.hp-btn-primary:hover { opacity: 0.92; }
.hp-btn-ghost { background: transparent; border: 1px solid var(--hp-border); color: var(--hp-text); }
.hp-btn-ghost:hover { background: var(--hp-card2); }

.hp-menu-toggle {
  display: none; background: none; border: 1px solid var(--hp-border); border-radius: 8px;
  width: 38px; height: 38px; cursor: pointer; color: var(--hp-text);
}

@media (max-width: 860px) {
  .hp-nav { display: none; }
  .hp-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hp-header-actions .hp-btn-ghost { display: none; }
}

.hp-mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 24px 20px; border-top: 1px solid var(--hp-border);
}
.hp-mobile-nav.show { display: flex; }
.hp-mobile-nav a { padding: 10px 4px; font-size: 15px; color: var(--hp-muted); }
.hp-mobile-nav .hp-btn {
  margin-top: 12px; align-self: flex-start; padding: 9px 20px; font-size: 15px;
  border-radius: 12px; background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 2px solid rgba(255,255,255,0.85); color: #fff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ---------- Hero ---------- */
.hp-hero { padding: 70px 0 50px; position: relative; overflow: hidden; }
.hp-hero::before {
  content: ''; position: absolute; top: -200px; right: -150px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(108,92,231,0.25), transparent 70%); pointer-events: none;
}
.hp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hp-card2); border: 1px solid var(--hp-border); border-radius: 30px;
  padding: 6px 14px; font-size: 12px; color: var(--hp-accent2); font-weight: 600; margin-bottom: 20px;
}
.hp-hero h1 {
  font-size: 48px; line-height: 1.15; margin: 0 0 18px; font-weight: 800; max-width: 720px;
}
.hp-hero h1 span { color: var(--hp-accent2); }
.hp-hero p.hp-lead { font-size: 17px; color: var(--hp-muted); max-width: 560px; margin: 0 0 28px; }

.hp-hero-ctas { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.hp-hero-ctas .hp-btn { padding: 14px 26px; font-size: 15px; }

.hp-trust-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 50px; }
.hp-trust-badge { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hp-muted); }
.hp-trust-badge svg { width: 16px; height: 16px; color: var(--hp-accent2); }

.hp-stats-row { display: flex; gap: 50px; flex-wrap: wrap; }
.hp-stat-num { font-size: 28px; font-weight: 800; color: var(--hp-text); }
.hp-stat-label { font-size: 13px; color: var(--hp-muted); }

@media (max-width: 700px) {
  .hp-hero h1 { font-size: 32px; }
  .hp-hero { padding: 40px 0 30px; }
  .hp-stats-row { gap: 28px; }
}

/* ---------- Generic section ---------- */
.hp-section { padding: 70px 0; }
.hp-section-alt { background: var(--hp-bg-alt); }
.hp-section-head { text-align: center; max-width: 600px; margin: 0 auto 46px; }
.hp-section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--hp-accent); margin-bottom: 10px;
}
.hp-section-head h2 { font-size: 32px; margin: 0 0 12px; font-weight: 800; }
.hp-section-head p { color: var(--hp-muted); font-size: 15px; margin: 0; }

@media (max-width: 700px) {
  .hp-section { padding: 46px 0; }
  .hp-section-head h2 { font-size: 24px; }
}

/* ---------- Services grid ---------- */
.hp-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hp-service-card {
  background: var(--hp-card); border: 1px solid var(--hp-border); border-radius: 14px; padding: 20px;
  position: relative;
}
.hp-service-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--hp-card2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
  margin-bottom: 14px;
}
.hp-service-card h4 { margin: 0 0 4px; font-size: 15px; }
.hp-service-price { color: var(--hp-accent2); font-size: 13px; font-weight: 600; }
.hp-service-note { color: var(--hp-muted); font-size: 11px; margin-top: 2px; }

@media (max-width: 900px) { .hp-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hp-services-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ---------- Steps ---------- */
.hp-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hp-step-card { text-align: left; }
.hp-step-num {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent2));
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #fff;
  margin-bottom: 16px;
}
.hp-step-card h4 { margin: 0 0 6px; font-size: 16px; }
.hp-step-card p { margin: 0; color: var(--hp-muted); font-size: 13px; }

@media (max-width: 900px) { .hp-steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .hp-steps-grid { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */
.hp-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-feature-card { background: var(--hp-card); border: 1px solid var(--hp-border); border-radius: 14px; padding: 24px; }
.hp-feature-icon { width: 36px; height: 36px; color: var(--hp-accent2); margin-bottom: 14px; }
.hp-feature-card h4 { margin: 0 0 6px; font-size: 16px; }
.hp-feature-card p { margin: 0; color: var(--hp-muted); font-size: 13px; }

@media (max-width: 900px) { .hp-features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hp-features-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.hp-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.hp-price-card {
  background: var(--hp-card); border: 1px solid var(--hp-border); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; position: relative;
}
.hp-price-card.featured { border-color: var(--hp-accent); box-shadow: 0 0 0 1px var(--hp-accent), 0 20px 50px rgba(108,92,231,0.15); }
.hp-price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--hp-accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.hp-price-card h4 { margin: 0 0 6px; font-size: 16px; color: var(--hp-muted); }
.hp-price-amount { font-size: 34px; font-weight: 800; margin-bottom: 4px; }
.hp-price-sub { color: var(--hp-muted); font-size: 13px; margin-bottom: 20px; }
.hp-price-features { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.hp-price-features li { font-size: 13px; color: var(--hp-text); display: flex; align-items: center; gap: 8px; }
.hp-price-features li svg { width: 14px; height: 14px; color: var(--hp-accent2); flex-shrink: 0; }
.hp-price-card .hp-btn { margin-top: auto; width: 100%; padding: 12px; }

@media (max-width: 900px) { .hp-pricing-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.hp-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-testimonial-card { background: var(--hp-card); border: 1px solid var(--hp-border); border-radius: 14px; padding: 22px; }
.hp-testimonial-card p { font-size: 14px; color: var(--hp-text); margin: 0 0 16px; }
.hp-testimonial-author { display: flex; align-items: center; gap: 10px; }
.hp-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--hp-card2);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--hp-accent2);
}
.hp-testimonial-author .name { font-size: 13px; font-weight: 600; }
.hp-testimonial-author .role { font-size: 11px; color: var(--hp-muted); }

@media (max-width: 900px) { .hp-testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.hp-faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.hp-faq-item { background: var(--hp-card); border: 1px solid var(--hp-border); border-radius: 12px; }
.hp-faq-question {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
  padding: 18px 20px; font-size: 15px; font-weight: 600;
}
.hp-faq-question svg { width: 16px; height: 16px; color: var(--hp-muted); transition: transform 0.2s ease; flex-shrink: 0; }
.hp-faq-item.open .hp-faq-question svg { transform: rotate(180deg); color: var(--hp-accent2); }
.hp-faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.hp-faq-answer p { color: var(--hp-muted); font-size: 14px; margin: 0 0 18px; }
.hp-faq-item.open .hp-faq-answer { max-height: 300px; }

/* ---------- CTA banner ---------- */
.hp-cta-banner {
  background: linear-gradient(135deg, rgba(108,92,231,0.18), rgba(0,212,170,0.1));
  border: 1px solid var(--hp-border); border-radius: 24px; padding: 56px 40px; text-align: center;
}
.hp-cta-banner h2 { font-size: 30px; margin: 0 0 14px; font-weight: 800; }
.hp-cta-banner p { color: var(--hp-muted); margin: 0 0 28px; }
.hp-cta-banner .hp-hero-ctas { justify-content: center; }

@media (max-width: 600px) {
  .hp-cta-banner { padding: 36px 20px; border-radius: 18px; }
  .hp-cta-banner h2 { font-size: 22px; }
}

/* ---------- Footer ---------- */
.hp-footer {
  border-top: 1px solid var(--hp-border); padding: 26px 0; background: var(--hp-bg-alt);
}
.hp-footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.hp-footer-copyright { font-size: 13px; color: var(--hp-muted); }
.hp-footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hp-footer-links a { font-size: 13px; color: var(--hp-muted); }
.hp-footer-links a:hover { color: var(--hp-text); }

@media (max-width: 700px) {
  .hp-footer-inner { flex-direction: column-reverse; align-items: center; text-align: center; gap: 16px; }
  .hp-footer-links { flex-direction: column; align-items: center; gap: 6px; }
  .hp-footer-links a { font-size: 14px; font-weight: 600; color: var(--hp-text); padding: 0; line-height: 1.2; }
  .hp-footer-copyright { font-size: 12px; }
}

/* ---------- Auth pages (login / signup / forgot / reset password) ---------- */
.hp-auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.hp-auth-card {
  width: 100%; max-width: 420px; background: var(--hp-card); border: 1px solid var(--hp-border);
  border-radius: 18px; padding: 36px; box-shadow: 0 24px 70px rgba(0,0,0,0.4);
}
.hp-auth-logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 22px; }
.hp-auth-logo img { height: 30px; }
.hp-auth-card h1 { font-size: 22px; text-align: center; margin: 0 0 6px; font-weight: 800; }
.hp-auth-sub { text-align: center; color: var(--hp-muted); font-size: 13px; margin: 0 0 26px; }

.hp-field { margin-bottom: 16px; }
.hp-field label { display: block; font-size: 13px; color: var(--hp-muted); margin-bottom: 6px; }
.hp-field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--hp-border);
  background: var(--hp-card2); color: var(--hp-text); font-size: 14px;
}
.hp-field input:focus { outline: none; border-color: var(--hp-accent); }

.hp-forgot-row { display: flex; justify-content: flex-end; margin: -8px 0 16px; }
.hp-forgot-row a { font-size: 12px; color: var(--hp-accent2); }
.hp-forgot-row a:hover { text-decoration: underline; }

.hp-auth-card .hp-btn { width: 100%; padding: 13px; font-size: 14px; margin-top: 4px; }

.hp-auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--hp-muted); font-size: 12px; }
.hp-auth-divider::before, .hp-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--hp-border); }

/* ---------- Toast notifications (login/register pages) ---------- */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 360px; width: calc(100% - 40px);
}
.toast {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 36px 16px 14px; border-radius: 10px;
  background: var(--hp-card); box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 1px solid var(--hp-border);
  transform: translateX(120%); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast-show { transform: translateX(0); opacity: 1; }
.toast-hide { transform: translateX(120%); opacity: 0; }
.toast-success { border-left: 4px solid var(--hp-accent2); }
.toast-error { border-left: 4px solid var(--hp-danger); }
.toast-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.toast-success .toast-icon { color: var(--hp-accent2); }
.toast-error .toast-icon { color: var(--hp-danger); }
.toast-icon svg { width: 100%; height: 100%; }
.toast-message { font-size: 13px; color: var(--hp-text); line-height: 1.4; flex: 1; }
.toast-close {
  position: absolute; top: 10px; right: 10px; width: 20px; height: 20px;
  background: none; border: none; color: var(--hp-muted); font-size: 16px;
  line-height: 1; cursor: pointer; padding: 0;
}
.toast-close:hover { color: var(--hp-text); }
.toast-progress {
  position: absolute; bottom: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(1); transform-origin: left; transition: transform linear;
}
.toast-success .toast-progress { background: var(--hp-accent2); }
.toast-error .toast-progress { background: var(--hp-danger); }
@media (max-width: 480px) {
  .toast-container { left: 12px; right: 12px; top: 12px; max-width: none; width: auto; }
}

.hp-google-btn-wrap {
  width: 100%; max-width: 100%; overflow: hidden;
  display: flex; justify-content: center;
}
.hp-google-btn-wrap iframe { max-width: 100% !important; }

.hp-oauth-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; border-radius: 10px; border: 1px solid var(--hp-border); background: var(--hp-card2);
  color: var(--hp-text); font-size: 14px; font-weight: 600; cursor: pointer;
}
.hp-oauth-btn:hover { background: var(--hp-bg-alt); }
.hp-oauth-btn svg, .hp-oauth-btn img { width: 18px; height: 18px; }

.hp-auth-footer-link { text-align: center; font-size: 13px; color: var(--hp-muted); margin-top: 22px; }
.hp-auth-footer-link a { color: var(--hp-accent2); font-weight: 600; }

.hp-alert { padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 18px; }
.hp-alert-error { background: rgba(255,92,92,0.12); color: var(--hp-danger); border: 1px solid rgba(255,92,92,0.3); }
.hp-alert-success { background: rgba(0,212,170,0.12); color: var(--hp-accent2); border: 1px solid rgba(0,212,170,0.3); }

.hp-turnstile-box { margin-bottom: 16px; display: flex; justify-content: center; }