/* ============================================================
   FoxFameHub – Auth & Customer Dashboard Styles
   Appended to existing style.css
   ============================================================ */

/* ---- Auth Pages ---- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.auth-wrap::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.auth-wrap::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(236,72,153,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 48px 44px;
  width: 100%;
  max-width: 460px;
  backdrop-filter: blur(24px);
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo .logo-icon-wrap {
  width: 72px; height: 72px;
  object-fit: contain;
  border-radius: 20px;
  display: block;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(124,58,237,0.4);
}
.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
}
.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--card-border);
}
.auth-divider span {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.auth-link-row {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 22px;
}
.auth-link-row a {
  color: var(--primary-light);
  font-weight: 600;
}
.auth-link-row a:hover { text-decoration: underline; }

/* Password strength */
.password-strength {
  margin-top: 8px;
  height: 4px;
  border-radius: 2px;
  background: var(--card-border);
  overflow: hidden;
  transition: var(--transition);
}
.password-strength-bar {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s ease, background 0.4s ease;
}
.strength-weak   { width: 33%; background: var(--danger); }
.strength-medium { width: 66%; background: var(--warning); }
.strength-strong { width: 100%; background: var(--success); }
.strength-label  { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* Input with icon */
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap .form-control {
  padding-left: 42px;
}
.input-icon-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.input-icon-wrap .input-icon-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: var(--transition);
}
.input-icon-wrap .input-icon-right:hover { color: var(--text-primary); }

/* ---- Customer Dashboard ---- */
.dash-wrap {
  min-height: 100vh;
  background: var(--dark);
  padding-top: var(--navbar-h, 74px);
}
.dash-header {
  background: var(--dark2);
  border-bottom: 1px solid var(--card-border);
  padding: 28px 0;
}
.dash-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.dash-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.dash-welcome-text h2 { font-size: 1.2rem; margin-bottom: 2px; }
.dash-welcome-text p  { font-size: 0.82rem; color: var(--text-muted); }

/* Dash nav tabs */
.dash-tabs {
  background: var(--dark2);
  border-bottom: 1px solid var(--card-border);
  overflow-x: auto;
}
.dash-tabs-inner {
  display: flex;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.dash-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.dash-tab:hover { color: var(--text-primary); }
.dash-tab.active { color: var(--primary-light); border-bottom-color: var(--primary); }
.dash-tab .notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  margin-left: 2px;
}

/* Dash body */
.dash-body { padding: 32px 0 60px; }

/* Order cards */
.order-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 16px;
}
.order-card:hover { border-color: rgba(124,58,237,0.35); }
.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.order-card-id {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--primary-light);
  background: rgba(124,58,237,0.1);
  padding: 4px 10px;
  border-radius: 6px;
}
.order-card-body {
  padding: 0 22px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 16px;
}
.order-card-field label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.order-card-field span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}
.order-card-footer {
  padding: 12px 22px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Progress tracker */
.order-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 20px 22px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 80px;
  position: relative;
}
.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--card-border);
  z-index: 0;
}
.progress-step.done:not(:last-child)::after,
.progress-step.active:not(:last-child)::after {
  background: var(--gradient-primary);
}
.progress-step.done:not(:last-child)::after { background: var(--success); }
.progress-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  z-index: 1;
  transition: var(--transition);
  flex-shrink: 0;
}
.progress-step .progress-dot {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  color: var(--text-muted);
}
.progress-step.done .progress-dot {
  background: rgba(16,185,129,0.2);
  border-color: var(--success);
  color: var(--success);
}
.progress-step.active .progress-dot {
  background: rgba(124,58,237,0.2);
  border-color: var(--primary);
  color: var(--primary-light);
  box-shadow: 0 0 12px rgba(124,58,237,0.4);
  animation: pulse 2s infinite;
}
.progress-step .progress-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}
.progress-step.done .progress-label,
.progress-step.active .progress-label {
  color: var(--text-secondary);
}

/* Notification item */
.notif-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
  cursor: pointer;
}
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item.unread { background: rgba(124,58,237,0.05); }
.notif-icon-wrap {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.notif-icon-order    { background: rgba(124,58,237,0.15); }
.notif-icon-success  { background: rgba(16,185,129,0.15); }
.notif-icon-update   { background: rgba(6,182,212,0.15); }
.notif-icon-warning  { background: rgba(245,158,11,0.15); }
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 3px; }
.notif-body  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.notif-time  { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.unread-dot  {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 6px;
}

/* Email template preview */
.email-preview {
  background: #ffffff;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  max-width: 580px;
  margin: 0 auto;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
}
.email-header-band {
  background: linear-gradient(135deg, #7C3AED, #EC4899);
  padding: 28px 32px;
  text-align: center;
  color: #fff;
}
.email-body-pad { padding: 28px 32px; }
.email-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.875rem; }
.email-row:last-child { border-bottom: none; }
.email-row .lbl { color: #666; }
.email-row .val { font-weight: 600; color: #1a1a1a; }

/* Profile info */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .profile-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .order-card-body { grid-template-columns: 1fr 1fr; }
  .order-progress { gap: 4px; }
}

/* Auth pages mobile – ensure proper spacing on all screen sizes */
@media (max-width: 480px) {
  .auth-wrap {
    padding: calc(var(--navbar-h, 62px) + 24px) 14px 32px;
  }
  .auth-card {
    padding: 28px 20px;
    margin: 0;
  }
  .auth-title { font-size: 1.4rem; }
}

/* Floating account btn in navbar */
.nav-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  cursor: pointer;
  transition: var(--transition);
}
.nav-account-btn:hover {
  background: rgba(124,58,237,0.28);
  border-color: var(--primary);
  color: #fff;
}
.nav-account-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}
