:root {
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --surface-2: #22223a;
  --primary: #7c5cff;
  --primary-2: #5ce1ff;
  --text: #eaeaf5;
  --muted: #9a9ab5;
  --danger: #ff4d6d;
  --success: #34d399;
  --accent: #8b7cf6;
  --accent-soft: rgba(139, 124, 246, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #1c1c30, var(--bg));
  color: var(--text);
  min-height: 100vh;
  letter-spacing: -0.01em;
}

/* ---------- SIDEBAR ---------- */
/* ---------- SIDEBAR ---------- */
:root {
  --sidebar-w: 260px;
  --sidebar-w-mid: 80px;
}

.pa-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(6px);
  border-right: 1px solid #2c2c45;
  display: flex;
  flex-direction: column;
  padding: 26px 16px 20px;
  z-index: 200;
  transition: width 0.25s ease, transform 0.25s ease;
}


/* ---------- SIDEBAR ---------- */
:root {
  --sidebar-w: 300px;
  --sidebar-w-mid: 84px;
  --sidebar-w-collapsed: 78px;
}

.pa-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(6px);
  border-right: 1px solid #2c2c45;
  display: flex;
  flex-direction: column;
  padding: 26px 18px 22px;
  z-index: 200;
  transition: width 0.25s ease, transform 0.25s ease;
}


/* ---------- SIDEBAR ---------- */
:root {
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --surface-2: #22223a;
  --primary: #7c5cff;
  --primary-2: #5ce1ff;
  --text: #eaeaf5;
  --muted: #9a9ab5;
  --danger: #ff4d6d;
  --success: #34d399;
  --accent: #8b7cf6;
  --accent-soft: rgba(139, 124, 246, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #1c1c30, var(--bg));
  color: var(--text);
  min-height: 100vh;
  letter-spacing: -0.01em;
}

/* ---------- SIDEBAR ---------- */
:root {
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --surface-2: #22223a;
  --primary: #7c5cff;
  --primary-2: #5ce1ff;
  --text: #eaeaf5;
  --muted: #9a9ab5;
  --danger: #ff4d6d;
  --success: #34d399;
  --accent: #8b7cf6;
  --accent-soft: rgba(139, 124, 246, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #1c1c30, var(--bg));
  color: var(--text);
  min-height: 100vh;
  letter-spacing: -0.01em;
}

/* ---------- SIDEBAR ---------- */
:root {
  --sidebar-w: 275px;
  --sidebar-w-mid: 76px;
  --sidebar-w-collapsed: 60px;
}

.pa-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(6px);
  border-right: 1px solid #2c2c45;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 18px;
  z-index: 200;
  transition: width 0.25s ease, transform 0.25s ease;
}

/* ---- brand / logo ---- */
.pa-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  margin-bottom: 26px;
  position: relative;
}

.pa-logo-shell {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.pa-logo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--primary-2), var(--accent), var(--primary));
  opacity: 0;
  animation: paRingSpin 4s linear infinite;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pa-logo-shell:hover .pa-logo-ring {
  opacity: 0.1;
}

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

.pa-logo {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pa-logo:hover {
  transform: scale(1.05);
}

.pa-logo-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: paShimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes paShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.pa-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.pa-brand-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pa-brand-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-2);
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.pa-brand-badge {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 5px;
  padding: 2px 5px 1px;
}

.pa-brand-tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  opacity: 0.85;
}

.pa-brand-deco {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}

.pa-brand-deco span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.35;
}

.pa-brand-deco span:nth-child(2) {
  opacity: 0.6;
}

.pa-brand-deco span:nth-child(3) {
  opacity: 0.95;
}

/* ---- collapse/expand icon: sits inline on logo's row when expanded ---- */
.pa-collapse-toggle-expanded {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid #2c2c45;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}

.pa-collapse-toggle-expanded:hover {
  background: var(--accent-soft);
  color: var(--primary-2);
}

/* ---- collapse icon that overlays the logo (only relevant when collapsed) ---- */
.pa-logo-shell .pa-collapse-toggle {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: var(--surface-2);
  color: var(--primary-2);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 2;
}

@media (max-width: 900px) {

  .pa-collapse-toggle-expanded,
  .pa-logo-shell .pa-collapse-toggle {
    display: none !important;
  }
}

.pa-close {
  display: none;
}

/* ---- section labels + divider ---- */
.pa-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px;
  margin-bottom: 4px;
}

.pa-divider {
  height: 1px;
  background: #2c2c45;
  margin: 8px 6px;
}

/* ---- menu ---- */
.pa-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.pa-item {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  white-space: nowrap;
  position: relative;
}

.pa-item i {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 15px;
  transition: transform 0.18s ease;
}

.pa-item:hover {
  background: var(--accent-soft);
  color: var(--primary-2);
}

.pa-item:hover i {
  transform: scale(1.1);
}

.pa-item.active {
  background: var(--accent-soft);
  color: var(--primary-2);
  font-weight: 700;
}

.pa-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--primary-2);
  border-radius: 0 3px 3px 0;
}

/* ---- user card ---- */
.pa-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1.5px solid #2c2c45;
  border-radius: 13px;
  padding: 9px 11px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  overflow: hidden;
}

.pa-user:hover {
  border-color: var(--primary-2);
  background: var(--accent-soft);
}

.pa-user-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  border: 1.5px solid var(--primary-2);
  overflow: hidden;
  position: relative;
}

.pa-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pa-user-avatar-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.pa-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.pa-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa-user-action {
  font-size: 10.5px;
  color: var(--muted);
}

.pa-user-arrow {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}

.pa-logout-form {
  margin: 0;
  flex-shrink: 0;
}

.pa-logout-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 6px;
}

.pa-logout-btn:hover {
  color: var(--danger);
}

/* ---- copyright ---- */
.pa-copyright {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin-top: 12px;
  padding: 0 4px;
}

.pa-toggle {
  display: none;
}

.pa-mobile-brand {
  display: none;
}

.pa-brand-sub-tag {
  display: none;
}

.pa-brand-tag-full {
  display: none;
}

.pa-backdrop {
  display: none;
}

/* push page content beside sidebar */
body {
  padding-left: var(--sidebar-w);
  transition: padding-left 0.25s ease;
}

/* ---- desktop manual collapse (via icon) ---- */
@media (min-width: 901px) {
  body.pa-body-collapsed {
    padding-left: var(--sidebar-w-collapsed);
  }

  .pa-sidebar.pa-collapsed {
    width: var(--sidebar-w-collapsed);
    align-items: center;
    padding: 22px 10px;
  }

  .pa-sidebar.pa-collapsed .pa-brand {
    justify-content: center;
    margin-bottom: 26px;
  }

  .pa-sidebar.pa-collapsed .pa-brand-text,
  .pa-sidebar.pa-collapsed .pa-collapse-toggle-expanded,
  .pa-sidebar.pa-collapsed .pa-section-label,
  .pa-sidebar.pa-collapsed .pa-divider,
  .pa-sidebar.pa-collapsed .pa-item span,
  .pa-sidebar.pa-collapsed .pa-user-info,
  .pa-sidebar.pa-collapsed .pa-user-arrow,
  .pa-sidebar.pa-collapsed .pa-logout-form,
  .pa-sidebar.pa-collapsed .pa-copyright {
    display: none;
  }

  .pa-sidebar.pa-collapsed .pa-item {
    justify-content: center;
    width: 44px;
    padding: 0;
  }

  .pa-sidebar.pa-collapsed .pa-item.active::before {
    display: none;
  }

  .pa-sidebar.pa-collapsed .pa-user {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    gap: 0;
  }

  /* logo <-> collapse-icon hover swap only when collapsed */
  .pa-sidebar.pa-collapsed .pa-logo-shell:hover .pa-collapse-toggle {
    opacity: 1;
    pointer-events: auto;
  }

  .pa-sidebar.pa-collapsed .pa-logo-shell:hover .pa-logo {
    opacity: 0;
  }

  .pa-sidebar:not(.pa-collapsed) .pa-logo-shell .pa-collapse-toggle {
    display: none;
  }
}

/* ---- tablet (auto icon-strip, no manual toggle) ---- */
@media (max-width: 900px) {
  body {
    padding-left: var(--sidebar-w-mid);
  }

  .pa-sidebar {
    width: var(--sidebar-w-mid);
    align-items: center;
    padding: 20px 10px;
  }

  .pa-brand-text,
  .pa-section-label,
  .pa-divider,
  .pa-item span,
  .pa-user-info,
  .pa-user-arrow,
  .pa-logout-form,
  .pa-copyright {
    display: none;
  }

  .pa-brand {
    justify-content: center;
    margin-bottom: 24px;
  }

  .pa-item {
    justify-content: center;
    width: 44px;
    padding: 0;
  }

  .pa-item.active::before {
    display: none;
  }

  .pa-user {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    gap: 0;
  }
}

/* laptop/tablet pe by default hidden — sirf niche wale mobile media query me visible hoga */
.pa-drawer-hero {
  display: none;
}

@media (max-width: 600px) {
  body {
    padding-left: 0 !important;
    padding-top: 58px;
  }

  /* Fixed solid background bar — taaki scroll karte waqt content header ke peeche se na dikhe */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: rgba(28, 28, 51, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #2c2c45;
    z-index: 140;
    pointer-events: none;
  }

  .pa-drawer-hero {
    display: block;
  }

  /* purana floating header mobile pe hide */
  .pa-header {
    display: none;
  }

  /* sidebar-jaisa compact brand, hamburger ke line pe */
  .pa-mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 20px;
    left: 14px;
    z-index: 150;
  }

  .pa-mobile-logo {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(124, 92, 255, 0.35);
  }

  .pa-mobile-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }

  .pa-mobile-brand-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--primary-2);
  }

  .pa-mobile-brand-tag {
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.85;
  }

  .pa-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 20px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid #2c2c45;
    color: var(--primary-2);
    font-size: 14px;
    z-index: 210;
    cursor: pointer;
  }

  /* sidebar open ho to toggle icon hide, band ho to wapas dikhe */
  body.pa-sidebar-open .pa-toggle {
    display: none;
  }

  .pa-sidebar {
    width: 80vw;
    max-width: 290px;
    align-items: flex-start;
    padding: 24px 18px;
    transform: translateX(-100%);
  }

  .pa-sidebar.pa-open {
    transform: translateX(0);
  }

  .pa-brand-text,
  .pa-section-label,
  .pa-divider,
  .pa-item span,
  .pa-user-info,
  .pa-user-arrow,
  .pa-logout-form {
    display: flex;
  }

  .pa-copyright {
    display: block;
  }

  .pa-brand {
    justify-content: flex-start;
    margin-bottom: 28px;
  }

  .pa-item {
    justify-content: flex-start;
    width: 100%;
    padding: 0 12px;
  }

  .pa-item.active::before {
    display: block;
  }

  .pa-user {
    width: 100%;
    height: auto;
    padding: 9px 11px;
    border-radius: 13px;
    gap: 10px;
  }

  .pa-collapse-toggle-expanded {
    display: none;
  }

  /* sidebar-drawer ke andar wale brand tagline ko bade wale se replace karo */
  .pa-brand-tag {
    display: none !important;
  }

  .pa-brand-tag-full {
    display: block;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin-top: 4px;
    white-space: normal;
  }

  .pa-brand-sub-tag {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    margin-top: 0;
    opacity: 0.85;
  }

  .pa-brand-tag-full em {
    color: var(--primary-2);
    font-style: normal;
  }

  .pa-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 35px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #2c2c45;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 15px;
    cursor: pointer;
    z-index: 5;
  }

  .pa-close:hover {
    color: var(--primary-2);
    border-color: var(--primary-2);
  }


  .pa-drawer-hero {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 12px 12px 10px;
    margin-bottom: 16px;
    background: linear-gradient(160deg, rgba(124, 92, 255, 0.18), rgba(92, 225, 255, 0.08));
    border: 1px solid rgba(139, 124, 246, 0.25);
  }

  .pa-drawer-hero-glow {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-2);
    opacity: 0.18;
    filter: blur(24px);
  }

  .pa-drawer-hero-title {
    position: relative;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
  }

  .pa-drawer-hero-title em {
    color: var(--primary-2);
    font-style: normal;
  }

  .pa-drawer-hero-sub {
    position: relative;
    font-size: 9.5px;
    color: #ffffff;
    opacity: 0.85;
    margin-top: 3px;
  }

  .pa-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
  }

  .pa-backdrop.pa-active {
    display: block;
  }

  /* sidebar drawer ke andar sirf tagline rakho — logo, naam, dots hata do */
  .pa-sidebar .pa-logo-shell,
  .pa-sidebar .pa-brand-name-row,
  .pa-sidebar .pa-brand-deco {
    display: none !important;
  }

  .pa-sidebar .pa-brand {
    margin-bottom: 20px;
  }

}


/* ---------- LAYOUT ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.page-title {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}

.page-title-accent {
  font-weight: 700;
  color: var(--primary-2);
}

.quick-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
  margin: 18px auto 40px;
}

.quick-suggest-label {
  font-size: 12px;
  color: var(--muted);
  margin-right: 2px;
}

.quick-chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid #2c2c45;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quick-chip:hover {
  border-color: var(--primary-2);
  color: var(--primary-2);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.hidden {
  display: none !important;
}

/* ---------- SEARCH ---------- */
.search-wrap {
  position: relative;
  max-width: 540px;
  margin: 0 auto 40px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid #33334f;
  border-bottom: 2px solid var(--primary-2);
  border-radius: 10px;
  padding: 15px 18px;
  transition: border-color 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--primary-2);
}

.search-box i {
  color: var(--primary-2);
  font-size: 15px;
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.search-box input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.search-box.error {
  animation: paShake 2.35s ease;
  border-color: var(--danger) !important;
}

@keyframes paShake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  50% {
    transform: translateX(6px);
  }

  75% {
    transform: translateX(-4px);
  }
}

.suggestions {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  position: absolute;
  width: 100%;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid #33334f;
  max-height: 320px;
  overflow-y: auto;
  z-index: 40;
}

.suggestions.hidden {
  display: none;
}

.suggestions li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.suggestions li:hover {
  background: #2c2c4a;
}

.suggestions li i {
  color: var(--primary-2);
  width: 18px;
  text-align: center;
}

.suggestions .sug-category {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.suggestions .sug-top-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f0f1a;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  padding: 2px 9px;
  border-radius: 999px;
}

.not-found {
  text-align: center;
  margin-bottom: 30px;
}

.not-found.hidden {
  display: none;
}

.not-found p {
  color: var(--danger);
  margin-bottom: 16px;
}

/* ---------- 3D CARDS — MINIMAL GLASS ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  perspective: 1400px;
}

.profile-card {
  position: relative;
  isolation: isolate;
  background: var(--surface-2);
  border: 1px solid #2c2c45;
  border-radius: 16px;
  padding: 30px 22px 26px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: block;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  --spot-x: 50%;
  --spot-y: 50%;
}

/* thin accent line at the top, fades in on hover */
.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-card:hover::before {
  opacity: 1;
}

/* soft mouse-tracked glow, subtle */
.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y),
      var(--accent-soft),
      transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.profile-card:hover::after {
  opacity: 0.55;
}

.profile-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 124, 246, 0.35);
  background: var(--surface);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.profile-card .card-icon,
.profile-card .card-name,
.profile-card .card-msg {
  position: relative;
  z-index: 1;
}

/* icon badge — flat, clean */
.profile-card .card-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary-2);
  background: var(--surface);
  border: 1px solid #2c2c45;
  border-radius: 12px;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.profile-card:hover .card-icon {
  border-color: var(--primary-2);
  color: var(--primary-2);
  transform: scale(1.06);
}

.profile-card .card-name {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.profile-card .card-msg {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  opacity: 0.85;
}

/* ---------- AUTH ---------- */
.auth-container {
  display: flex;
  justify-content: center;
}

.auth-card {
  background: var(--surface);
  border: 1px solid #33334f;
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 380px;
}

.auth-card h2 {
  margin-top: 0;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.auth-form label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: -8px;
}

.auth-form input,
.auth-form select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #33334f;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
}

.auth-form button {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0f0f1a;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}

.switch-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.switch-link a {
  color: var(--primary-2);
}

.error-msg {
  color: var(--danger);
  text-align: center;
  font-size: 14px;
}

.success-msg {
  color: var(--success);
  text-align: center;
  font-size: 14px;
}

/* ---------- ABOUT / VIBOTIFY PAGE ---------- */
.ab-page {
  max-width: 1000px;
  padding-top: 20px;
  padding-bottom: 60px;
}

/* ---- hero ---- */
.ab-hero {
  position: relative;
  text-align: center;
  padding: 58px 20px 50px;
  overflow: hidden;
  animation: ab-fade-up 0.6s ease both;
}

.ab-hero-glow {
  position: absolute;
  top: -130px;
  left: 50%;
  width: 460px;
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 70%);
  pointer-events: none;
  animation: ab-glow-pulse 4.5s ease-in-out infinite;
}

@keyframes ab-glow-pulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.ab-hero-badge {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(150deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  box-shadow: 0 14px 34px rgba(124, 92, 255, 0.45);
  animation: ab-badge-float 3.2s ease-in-out infinite;
}

@keyframes ab-badge-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-4deg); }
}

.ab-hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ab-hero-tag {
  position: relative;
  z-index: 1;
  margin: 6px 0 20px;
  color: var(--primary-2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ab-hero-desc {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

/* ---- section "blocks" — each one its own visually distinct panel ---- */
.ab-block {
  margin-top: 22px;
  border-radius: 26px;
  padding: 3px;
  position: relative;
  animation: ab-fade-up 0.6s ease both;
}

.ab-block-inner {
  background: var(--surface);
  border: 1px solid #26263c;
  border-radius: 24px;
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
}

.ab-block-inner::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--ab-accent-soft, var(--accent-soft));
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.7;
}

/* per-section accent colour identity */
.ab-block-purple { --ab-accent: #7c5cff; --ab-accent-2: #a78bfa; --ab-accent-soft: rgba(124, 92, 255, 0.16); }
.ab-block-cyan   { --ab-accent: #22c3e6; --ab-accent-2: #5ce1ff; --ab-accent-soft: rgba(34, 195, 230, 0.14); }
.ab-block-pink   { --ab-accent: #ff5fa2; --ab-accent-2: #ff9ac2; --ab-accent-soft: rgba(255, 95, 162, 0.14); }
.ab-block-amber  { --ab-accent: #ffb454; --ab-accent-2: #ffd280; --ab-accent-soft: rgba(255, 180, 84, 0.14); }

.ab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ab-accent-2, var(--primary-2));
  margin-bottom: 14px;
}

.ab-eyebrow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ab-accent-soft, var(--accent-soft));
  color: var(--ab-accent, var(--primary-2));
  font-size: 11px;
}

.ab-block-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.ab-block-text {
  max-width: 680px;
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14.5px;
  position: relative;
  z-index: 1;
}

/* ---- stats row (section 01) ---- */
.ab-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 26px;
  position: relative;
  z-index: 1;
}

.ab-stat {
  background: var(--surface-2);
  border: 1px solid #2c2c45;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
}

.ab-stat-num {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--ab-accent, var(--primary)), var(--ab-accent-2, var(--primary-2)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ab-stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ---- feature grid (sections 02 & 03) ---- */
.ab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 26px;
  position: relative;
  z-index: 1;
}

.ab-card {
  background: var(--surface-2);
  border: 1px solid #2c2c45;
  border-radius: 16px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  animation: ab-fade-up 0.55s ease both;
  animation-delay: var(--d, 0s);
}

.ab-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ab-accent, var(--primary)), var(--ab-accent-2, var(--primary-2)));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ab-card:hover {
  transform: translateY(-4px);
  border-color: var(--ab-accent, rgba(124, 92, 255, 0.5));
  box-shadow: 0 16px 34px var(--ab-accent-soft, rgba(124, 92, 255, 0.18));
}

.ab-card:hover::before {
  opacity: 1;
}

.ab-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ab-accent-soft, var(--accent-soft));
  color: var(--ab-accent, var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 14px;
}

.ab-card h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  color: var(--text);
}

.ab-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- app details card (section 04) ---- */
.ab-details-card {
  max-width: 640px;
  margin: 26px auto 0;
  background: var(--surface-2);
  border: 1px solid #2c2c45;
  border-radius: 18px;
  padding: 6px 22px;
  position: relative;
  z-index: 1;
}

.ab-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #2a2a42;
  animation: ab-fade-up 0.5s ease both;
  animation-delay: var(--d, 0s);
  transition: padding-left 0.2s ease;
}

.ab-detail-row:hover {
  padding-left: 4px;
}

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

.ab-detail-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.ab-detail-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ab-accent-soft, var(--accent-soft));
  color: var(--ab-accent, var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.ab-detail-value {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  text-align: right;
}

.ab-detail-value a {
  color: var(--ab-accent, var(--primary-2));
  text-decoration: none;
}

.ab-detail-value a:hover {
  text-decoration: underline;
}

@keyframes ab-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .ab-hero { padding: 44px 8px 34px; }
  .ab-block-inner { padding: 30px 20px; }
  .ab-details-card { padding: 4px 16px; }
}

.chat-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #33334f;
}

.chat-header-icon {
  font-size: 32px;
  color: var(--primary-2);
  background: var(--surface-2);
  padding: 14px;
  border-radius: 50%;
}

.chat-header h2 {
  margin: 0;
}

.chat-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 90%;
  padding: 4px 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.6;
  white-space: normal;
}

.chat-bubble-text {
  white-space: pre-wrap;
}

.chat-bubble.bot {
  background: transparent;
  align-self: flex-start;
  border-radius: 0;
  padding: 6px 4px;
  max-width: 92%;
}

.chat-bubble.user {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0f0f1a;
  align-self: flex-end;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  padding: 12px 16px;
  max-width: 75%;
}

.chat-bubble.typing {
  color: var(--muted);
  font-style: italic;
}

.chat-bubble.typing {
  color: var(--muted);
  font-style: italic;
}








/*----------------------------------------------------------------------------------------------------------------------*/
/* HTML: <div class="loader"></div> */
.loader {
  width: 60px;
  height: 30px;
  display: grid;
}
.loader:before,
.loader:after {
  content: "";
  grid-area: 1/1;
  --c:no-repeat linear-gradient(#046D8B 0 0);
  background: var(--c), var(--c), var(--c);
  animation: l14-1 1s infinite linear, l14-2 1s infinite linear;
}
.loader:after {
  transform: scale(-1);
}
@keyframes l14-1 {
  0%,
  3%    {background-size: 0               4px,4px 0   ,0               4px}
  16.67%{background-size: calc(50% - 6px) 4px,4px 0   ,0               4px}
  33.33%{background-size: calc(50% - 6px) 4px,4px 14px,0               4px}
  46%,
  54%   {background-size: calc(50% - 6px) 4px,4px 14px,calc(50% + 6px) 4px}
  66.67%{background-size: 0               4px,4px 14px,calc(50% + 6px) 4px}
  83.33%{background-size: 0               4px,4px 0   ,calc(50% + 6px) 4px}
  96%,
  100%  {background-size: 0               4px,4px 0   ,0               4px}
}
@keyframes l14-2 {
  0%,49.9%{background-position:0              50%,left calc(50% - 6px) bottom 13px,left  24px top 3px}
  50%,100%{background-position:right 36px top 50%,left calc(50% - 6px) top     3px,right 0    top 3px}
}
/*----------------------------------------------------------------------------------------------------------------------*/













.chat-input-bar {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #33334f;
}

.chat-input-bar input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #33334f;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
}

.chat-input-bar button {
  width: 48px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0f0f1a;
  cursor: pointer;
  font-size: 16px;
}

.chat-reset-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.4s ease;
}

.chat-reset-btn:hover {
  background: var(--primary-2);
  color: #0f0f1a;
  transform: translateY(-50%) rotate(180deg);
}

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

/* ---- DESKTOP-ONLY: simple full-width chat layout (mobile untouched) ---- */
@media (min-width: 601px) {
  .chat-page {
    max-width: none;
    width: 100%;
    padding: 24px 48px 29px;
    height: 100vh;
  }

  .chat-header {
    position: relative;
    justify-content: center;
    padding-bottom: 18px;
  }

  .chat-mobile-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .chat-header-icon {
    font-size: 18px;
    padding: 10px;
  }

  .chat-header-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .chat-subtitle {
    display: none;
  }

  .chat-header h2 {
    font-size: 20px;
  }

  .chat-messages {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 20px 20px 4px;
    scrollbar-width: thin;
    scrollbar-color: #2c2c45 transparent;
  }

  .chat-messages::-webkit-scrollbar {
    width: 4px;
  }

  .chat-messages::-webkit-scrollbar-track {
    background: transparent;
  }

  .chat-messages::-webkit-scrollbar-thumb {
    background: #2c2c45;
    border-radius: 10px;
  }

  .chat-messages::-webkit-scrollbar-thumb:hover {
    background: #33334f;
  }

  .chat-bubble {
    max-width: 65%;
  }

  .chat-input-bar {
    max-width: 900px;
    margin: 16px auto 0;
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 12px;
  }

  .chat-input-bar input {
    height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid #33334f;
    background: var(--surface-2);
    transition: border-color 0.2s ease;
  }

  .chat-input-bar input:focus {
    border-color: var(--primary-2);
  }

  .chat-input-bar button {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #0f0f1a;
    flex-shrink: 0;
  }
}

.hidden {
  display: none !important;
}

/* ---- chat/card-detail screen: mobile back button (hidden on desktop) ---- */
.chat-mobile-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid #2c2c45;
  color: var(--primary-2);
  font-size: 14px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-mobile-back:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.5);
}


@media (max-width: 600px) {
  body.pa-chat-view {
    padding-top: 0;
  }

 body.pa-chat-view .pa-mobile-brand,
  body.pa-chat-view .pa-toggle {
    display: none !important;
  }

  body.pa-chat-view::before {
    display: none;
  }

  .chat-mobile-back {
    display: flex;
  }

  .chat-page {
    padding: 0 14px 14px;
    height: 100vh;
  }

  .chat-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    margin: 0;
    padding: 0 14px;
    background: rgba(15, 15, 26, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #33334f; /* the separating "line" below the top bar */
    z-index: 220;
    /* back button sits absolute on the left; everything else centers on its own */
    justify-content: center;
  }

  .chat-mobile-back {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
  }

  .chat-header-group {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 90px); /* leave room for the back button on either side */
    overflow: hidden;
  }

  .chat-header-group > div {
    min-width: 0;
  }

  .chat-header-icon {
    font-size: 18px;
    padding: 8px;
    flex-shrink: 0;
  }

  .chat-header h2 {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .chat-subtitle {
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .chat-messages {
    margin-top: 58px;
  }
}

html.pa-precollapsed body {
  padding-left: var(--sidebar-w-collapsed);
}

html.pa-precollapsed .pa-sidebar {
  width: var(--sidebar-w-collapsed);
}

.sug-active {
  background: var(--accent-soft);
  color: var(--primary-2);
}

.card-pulse {
  animation: paCardPulse 1s ease;
}

@keyframes paCardPulse {

  0%,
  100% {
    box-shadow: none;
  }

  40% {
    box-shadow: 0 0 0 3px var(--primary-2);
  }
}

.sug-active {
  background: var(--accent-soft);
  color: var(--primary-2);
}

.search-box.error {
  animation: paShake 0.35s ease;
  border-color: var(--danger) !important;
}

@keyframes paShake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  50% {
    transform: translateX(6px);
  }

  75% {
    transform: translateX(-4px);
  }
}

.placeholder-error::placeholder {
  color: var(--danger);
  opacity: 0.9;
}

.card-pulse {
  animation: paCardPulse 0.7s ease;
}

@keyframes paCardPulse {

  0%,
  100% {
    box-shadow: none;
  }

  40% {
    box-shadow: 0 0 0 3px var(--primary-2);
  }
}

.card-loader {
  width: 100%;
  max-width: 260px;
  min-height: 168px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid #2c2c45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}

/* ---- minimal profile-scan loader ---- */
.loader-core {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  animation: paRingSpin 1.6s linear infinite;
}

.loader-ring circle {
  fill: none;
  stroke: var(--primary-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 170;
  stroke-dashoffset: 130;
  opacity: 0.85;
}

@keyframes paRingSpin {
  to {
    transform: rotate(270deg);
  }
}

.loader-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid #2c2c45;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-2);
  font-size: 16px;
  overflow: hidden;
}

.loader-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-2), transparent);
  animation: paScanMove 1.8s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes paScanMove {
  0% {
    top: 4px;
  }

  50% {
    top: 36px;
  }

  100% {
    top: 4px;
  }
}

.loader-text {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.loader-text strong {
  color: var(--text);
}

.card-enter {
  animation: paCardEnter 0.5s ease;
}

@keyframes paCardEnter {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(10px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.loader-bar {
  width: 140px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 2px;
  animation: paBarFill 3.8s ease forwards;
}

@keyframes paBarFill {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}


/* ---------- TOP-LEFT TAGLINE HEADER ---------- */
.pa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.pa-header-text {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.pa-header-text em {
  color: var(--primary-2);
  font-style: normal;
}

.pa-header-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 400;
}

@media (max-width: 600px) {
  .pa-header {
    padding: 6px 16px 0;
  }

  .pa-header-text {
    font-size: clamp(20px, 6vw, 26px);
  }

  .pa-header-sub {
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .pa-header {
    display: none !important;
  }
}

/* ---- profile popup (vibotify-style) ---- */
.pa-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  background: rgba(10, 8, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pa-popup-overlay.pa-active {
  opacity: 1;
  pointer-events: all;
}

.pa-popup {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid #2c2c45;
  box-shadow:
    0 0 0 1px var(--primary),
    0 32px 80px rgba(124, 92, 255, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(-20px) scale(0.96);
  transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pa-popup-overlay.pa-active .pa-popup {
  transform: translateY(0) scale(1);
}

.pa-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #2c2c45;
  background: var(--surface-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  z-index: 10;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.pa-popup-close:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

.pa-popup-body {
  padding: 38px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.pa-popup-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary-2);
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.pa-popup-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pa-popup-avatar-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.pa-popup-avatar-filled {
  background: linear-gradient(160deg, var(--primary), var(--primary-2));
  color: #fff;
}

.pa-popup-avatar-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.pa-popup-identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pa-popup-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.pa-popup-status {
  font-size: 12.5px;
  color: var(--muted);
}

.pa-popup-badge {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid #2c2c45;
  border-radius: 20px;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pa-popup-divider {
  width: 100%;
  height: 1px;
  background: #2c2c45;
  margin: 2px 0;
}

.pa-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.pa-popup-form {
  margin: 0;
  width: 100%;
}

.pa-pbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  border: 1.5px solid transparent;
  transition: all 0.18s;
  font-family: inherit;
}

.pa-pbtn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
}

.pa-pbtn-primary:hover {
  filter: brightness(1.1);
}

.pa-pbtn-outline {
  background: var(--accent-soft);
  border-color: var(--primary);
  color: var(--primary-2);
}

.pa-pbtn-outline:hover {
  background: rgba(139, 124, 246, 0.24);
}

.pa-pbtn-secondary {
  background: var(--surface-2);
  border-color: #2c2c45;
  color: var(--muted);
}

.pa-pbtn-secondary:hover {
  border-color: var(--primary-2);
  color: var(--primary-2);
}

.pa-pbtn-danger {
  background: rgba(255, 77, 109, 0.1);
  border-color: rgba(255, 77, 109, 0.4);
  color: var(--danger);
}

.pa-pbtn-danger:hover {
  background: rgba(255, 77, 109, 0.18);
}

.pa-popup-footer {
  font-size: 10.5px;
  color: var(--muted);
  opacity: 0.7;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .pa-popup {
    max-width: 92vw;
  }
}

/* ---- login-gate popup (guest nudge) ---- */
.pa-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background: rgba(8, 6, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pa-gate-overlay.pa-active {
  opacity: 1;
  pointer-events: all;
}

.pa-gate-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-radius: 28px;
  padding: 44px 30px 30px;
  overflow: hidden;
  text-align: center;
  transform: translateY(30px) scale(0.92);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.32s ease;
  box-shadow:
    0 0 0 1.5px rgba(124, 92, 255, 0.35),
    0 40px 100px rgba(124, 92, 255, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.45);
}

.pa-gate-overlay.pa-active .pa-gate-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pa-gate-modal::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.45), transparent 70%);
  pointer-events: none;
}

.pa-gate-close {
  z-index: 20;
}

.pa-gate-orbit {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pa-gate-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(124, 92, 255, 0.45);
}

.pa-gate-orbit-ring-1 {
  inset: 0;
  animation: pa-gate-spin 9s linear infinite;
}

.pa-gate-orbit-ring-2 {
  inset: 14px;
  border-color: rgba(92, 225, 255, 0.4);
  animation: pa-gate-spin 6s linear infinite reverse;
}

@keyframes pa-gate-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pa-gate-lock {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 0 0 6px var(--accent-soft), 0 12px 28px rgba(124, 92, 255, 0.5);
  animation: pa-gate-pulse 2.2s ease-in-out infinite;
}

@keyframes pa-gate-pulse {
  0%, 100% { box-shadow: 0 0 0 6px var(--accent-soft), 0 12px 28px rgba(124, 92, 255, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(124, 92, 255, 0.08), 0 12px 28px rgba(124, 92, 255, 0.5); }
}

.pa-gate-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pa-gate-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pa-gate-title span {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pa-gate-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.pa-gate-perks {
  width: 100%;
  list-style: none;
  margin: 4px 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.pa-gate-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.pa-gate-perks li i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary-2);
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pa-gate-cta {
  width: 100%;
  margin-top: 4px;
  padding: 13px 18px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 26px rgba(124, 92, 255, 0.4);
}

.pa-gate-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(124, 92, 255, 0.5);
}

.pa-gate-skip {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pa-gate-skip:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  .pa-gate-modal {
    max-width: 92vw;
    padding: 38px 22px 24px;
  }
}

/* ---- vibotify-style auth (login) page ---- */
.pa-auth-body {
  font-family: 'DM Sans', 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding-left: 0 !important;
  /* sidebar wala push-left is page pe nahi chahiye */
}

.pa-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pa-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  animation: paOrbFloat 12s ease-in-out infinite;
}

.pa-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -150px;
  left: -100px;
}

.pa-orb-2 {
  width: 400px;
  height: 400px;
  background: #a78bfa;
  bottom: -100px;
  right: -80px;
  animation-delay: -4s;
}

.pa-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
}

@keyframes paOrbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 15px) scale(0.97);
  }
}

.pa-bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(139, 124, 246, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 124, 246, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.pa-card-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 920px;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #2c2c45;
  box-shadow: 0 0 0 1px rgba(139, 124, 246, 0.2), 0 40px 100px rgba(0, 0, 0, 0.45);
  margin: 20px;
  animation: paCardIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes paCardIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pa-left-panel {
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 60%, var(--bg) 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #2c2c45;
}

.pa-left-panel::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 124, 246, 0.22) 0%, transparent 70%);
  bottom: -60px;
  right: -60px;
  pointer-events: none;
}

.pa-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s, gap 0.2s;
}

.pa-back-btn:hover {
  color: var(--primary-2);
  gap: 12px;
}

.pa-back-btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.pa-back-btn:hover svg { transform: translateX(-3px); }

.pa-brand-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.pa-auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pa-auth-logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.pa-auth-brand-name {
  font-size: 26px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--text) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pa-auth-headline {
  font-family: 'Sora', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.pa-auth-headline em {
  color: #a78bfa;
  font-style: normal;
  display: block;
}

.pa-auth-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 14px;
}

.pa-auth-footer-note {
  font-size: 11px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.pa-right-panel {
  background: var(--surface);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pa-form-title {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.pa-form-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.pa-auth-error {
  font-size: 12.5px;
  color: var(--danger);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(255, 77, 109, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 77, 109, 0.3);
}

.pa-field {
  position: relative;
  margin-bottom: 16px;
}

.pa-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.pa-field-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.pa-field-inner>i {
  position: absolute;
  left: 15px;
  width: 16px;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.pa-field-inner input {
  width: 100%;
  height: 48px;
  background: var(--surface-2);
  border: 1.5px solid #2c2c45;
  border-radius: 12px;
  padding: 0 16px 0 42px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pa-field-inner input::placeholder {
  color: var(--muted);
}

.pa-field-inner input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.pa-auth-submit-btn {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  color: #fff;
  border: none;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pa-auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.5);
}

.pa-auth-submit-btn:active {
  transform: scale(0.98);
}

.pa-auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 22px;
}

.pa-auth-switch a {
  color: var(--primary-2);
  text-decoration: none;
  font-weight: 600;
}

.pa-auth-switch a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .pa-card-wrap {
    grid-template-columns: 1fr;
    margin: 12px;
  }

  .pa-left-panel {
    display: none;
  }

  .pa-right-panel {
    padding: 36px 28px;
  }
}

/* ===== OTP + Step Transition (unified login page) ===== */
.pa-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.pa-progress-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); transition: background 0.3s ease; flex-shrink: 0; }
.pa-progress-dot.pa-progress-active { background: var(--primary); box-shadow: 0 0 0 4px rgba(124,92,255,0.2); }
.pa-progress-line { flex: 1; height: 2px; background: rgba(255,255,255,0.12); border-radius: 2px; overflow: hidden; }
.pa-progress-line-fill { height: 100%; width: 0%; background: var(--primary); transition: width 0.4s ease; }



.pa-step {
  display: none;
  opacity: 0;
  transform: translateX(24px);
}

.pa-step-active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  animation: paStepIn 0.4s ease forwards;
}

.pa-step-leave {
  display: none;
}

@keyframes paStepIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pa-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0;
}

.pa-auth-divider::before,
.pa-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.pa-auth-divider span {
  padding: 0 12px;
}

.pa-google-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pa-google-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.pa-otp-boxes {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.pa-otp-box {
  width: 100%;
  aspect-ratio: 1;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pa-otp-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.pa-otp-box-error {
  border-color: #ff4d5e !important;
  background: rgba(255, 77, 94, 0.08) !important;
  color: #ff8a94;
}

.pa-otp-shake {
  animation: paOtpShake 0.4s ease;
}

@keyframes paOtpShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-8px);
  }

  40% {
    transform: translateX(8px);
  }

  60% {
    transform: translateX(-6px);
  }

  80% {
    transform: translateX(6px);
  }
}

/* ===== Testimonial chip (left panel) ===== */
.pa-testimonial-chip {
  background: var(--surface-2); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 16px 18px; display: flex; gap: 12px;
  align-items: flex-start; position: relative; z-index: 1;
}
.pa-chip-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.pa-chip-text { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pa-chip-name { font-size: 11px; color: var(--muted); opacity: 0.75; margin-top: 4px; }

/* ============================================================
   LIGHT THEME — [data-theme="light"] par html root ke variables
   override ho jaate hain, poori site automatically light ho jaati hai
   kyunki saara design var(--bg), var(--surface) etc use karta hai
   ============================================================ */
html[data-theme="light"] {
  --bg: #eceef5;
  --surface: #f8f9fd;
  --surface-2: #eef0f8;
  --primary: #6a45f0;
  --primary-2: #2f66d8;
  --text: #23243a;
  --muted: #6c6e85;
  --danger: #d94361;
  --success: #159e6f;
  --accent: #6a45f0;
  --accent-soft: rgba(106, 69, 240, 0.08);
  --border-clr: #dfe1ec;
}

html[data-theme="light"] body {
  background: linear-gradient(180deg, #f1f2f9, var(--bg));
}

html[data-theme="light"] .pa-sidebar {
  background: rgba(248, 249, 253, 0.92);
  border-right: 1px solid var(--border-clr);
  box-shadow: 2px 0 20px rgba(35, 36, 58, 0.04);
}

html[data-theme="light"] .pa-divider,
html[data-theme="light"] .pa-popup-divider {
  background: var(--border-clr);
}

html[data-theme="light"] .pa-user,
html[data-theme="light"] .pa-backdrop {
  border-color: var(--border-clr) !important;
}

html[data-theme="light"] .profile-card,
html[data-theme="light"] .pa-settings-row,
html[data-theme="light"] .pa-settings-modal,
html[data-theme="light"] .pa-popup,
html[data-theme="light"] .pa-confirm-modal,
html[data-theme="light"] .pa-gate-modal {
  border-color: var(--border-clr);
}

/* ---- light mode: sidebar nav items ko zyada visible/highlighted banao ---- */
html[data-theme="light"] .pa-section-label {
  color: #8b8da3;
}

html[data-theme="light"] .pa-item {
  color: #45465e;
  border: 1px solid transparent;
}

html[data-theme="light"] .pa-item i {
  color: #6a6cae;
}

html[data-theme="light"] .pa-item:hover {
  background: rgba(106, 69, 240, 0.09);
  border-color: rgba(106, 69, 240, 0.18);
  color: var(--primary);
}

html[data-theme="light"] .pa-item:hover i {
  color: var(--primary);
}

html[data-theme="light"] .pa-item.active {
  background: rgba(106, 69, 240, 0.12);
  border-color: rgba(106, 69, 240, 0.25);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(106, 69, 240, 0.12);
}

html[data-theme="light"] .pa-item.active i {
  color: var(--primary);
}

html[data-theme="light"] .pa-collapse-toggle,
html[data-theme="light"] .pa-collapse-toggle-expanded {
  border-color: var(--border-clr);
  color: #45465e;
}

html[data-theme="light"] .pa-collapse-toggle:hover,
html[data-theme="light"] .pa-collapse-toggle-expanded:hover {
  border-color: var(--primary);
  color: var(--primary);
}

html[data-theme="light"] .pa-user-name {
  color: #1c1d2e;
}

html[data-theme="light"] .pa-copyright {
  color: #8b8da3;
}

/* ---- light mode: login/auth page ---- */
html[data-theme="light"] .pa-card-wrap {
  border-color: var(--border-clr);
  box-shadow: 0 0 0 1px rgba(106, 69, 240, 0.15), 0 40px 100px rgba(35, 36, 58, 0.12);
}

html[data-theme="light"] .pa-left-panel {
  border-right-color: var(--border-clr);
}

html[data-theme="light"] .pa-field-inner input {
  border-color: var(--border-clr);
  background: var(--surface-2);
}

html[data-theme="light"] .pa-progress-dot {
  background: #d9dbea;
}

html[data-theme="light"] .pa-progress-line {
  background: #d9dbea;
}

html[data-theme="light"] .pa-auth-divider::before,
html[data-theme="light"] .pa-auth-divider::after {
  background: var(--border-clr);
}

html[data-theme="light"] .pa-google-btn {
  background: var(--surface-2);
  border-color: var(--border-clr);
  color: var(--text);
}

html[data-theme="light"] .pa-google-btn:hover {
  background: #e9eaf5;
}

html[data-theme="light"] .pa-otp-box {
  background: var(--surface-2);
  border-color: var(--border-clr);
  color: var(--text);
}

html[data-theme="light"] .pa-testimonial-chip {
  border-color: var(--border-clr);
}

html[data-theme="light"] .pa-bg-grid {
  background-image: linear-gradient(rgba(106, 69, 240, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(106, 69, 240, 0.06) 1px, transparent 1px);
}

/* smooth crossfade jab theme switch ho */
body, .pa-sidebar, .pa-popup, .pa-settings-modal, .profile-card {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* ============================================================
   SETTINGS POPUP — naya unique style, login page ke jaisa hi
   glowing-orbit / gradient-border look follow karta hai
   ============================================================ */
.pa-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  background: rgba(8, 6, 18, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pa-settings-overlay.pa-active {
  opacity: 1;
  pointer-events: all;
}

.pa-settings-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--primary), var(--primary-2), var(--primary)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 30px 80px rgba(124, 92, 255, 0.28), 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-24px) scale(0.95);
  transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.pa-settings-overlay.pa-active .pa-settings-modal {
  transform: translateY(0) scale(1);
}

.pa-settings-modal::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(92, 225, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.pa-settings-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #2c2c45;
  background: var(--surface-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  z-index: 10;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.pa-settings-close:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

.pa-settings-body {
  padding: 34px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.pa-settings-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.pa-settings-title i {
  color: var(--primary-2);
}

/* ---- Theme row + unique sun/moon slider toggle ---- */
.pa-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid #2c2c45;
  border-radius: 16px;
  padding: 14px 16px;
}

.pa-settings-row-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pa-settings-row-label span:first-child {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.pa-settings-row-label span:last-child {
  font-size: 11.5px;
  color: var(--muted);
}

.pa-theme-toggle {
  position: relative;
  width: 62px;
  height: 32px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  padding: 0;
  background: linear-gradient(135deg, #2c2c45, #1a1a2e);
  overflow: hidden;
  flex-shrink: 0;
  transition: background 0.4s ease;
}

.pa-theme-toggle[data-active="light"] {
  background: linear-gradient(135deg, #ffd76a, #ff9f6a);
}

.pa-theme-toggle-stars {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.pa-theme-toggle-stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.8;
}
.pa-theme-toggle-stars span:nth-child(1) { top: 7px; left: 10px; }
.pa-theme-toggle-stars span:nth-child(2) { top: 18px; left: 18px; }
.pa-theme-toggle-stars span:nth-child(3) { top: 10px; left: 26px; }

.pa-theme-toggle[data-active="light"] .pa-theme-toggle-stars {
  opacity: 0;
}

.pa-theme-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(160deg, #6d5cff, #5ce1ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.pa-theme-toggle[data-active="light"] .pa-theme-toggle-knob {
  transform: translateX(30px);
  background: linear-gradient(160deg, #ffb347, #ff7a59);
}

/* ---- Danger zone ---- */
.pa-settings-danger {
  background: var(--surface-2);
  border: 1px solid #2c2c45;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pa-settings-danger-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.pa-settings-danger-desc {
  font-size: 12px;
  color: var(--muted);
  margin: -4px 0 2px;
}

.pa-delete-cards-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid #2c2c45;
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  transition: all 0.18s;
}

.pa-delete-cards-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(255, 77, 109, 0.06);
}

/* ---- Login / Logout footer button reuses pa-pbtn styles ---- */
.pa-settings-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   MINI CONFIRM POPUP — "Delete all cards" warning
   ============================================================ */
.pa-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  background: rgba(6, 4, 12, 0.72);
  backdrop-filter: blur(6px);
}

.pa-confirm-overlay.pa-active {
  opacity: 1;
  pointer-events: all;
}

.pa-confirm-modal {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1.5px solid rgba(255, 77, 109, 0.4);
  border-radius: 20px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(255, 77, 109, 0.2);
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pa-confirm-overlay.pa-active .pa-confirm-modal {
  transform: scale(1);
}

.pa-confirm-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 77, 109, 0.12);
  color: var(--danger);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.pa-confirm-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.pa-confirm-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.pa-confirm-actions {
  display: flex;
  gap: 10px;
}

.pa-confirm-actions button {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}

.pa-confirm-cancel {
  background: var(--surface-2);
  border: 1.5px solid #2c2c45;
  color: var(--muted);
}

.pa-confirm-cancel:hover {
  color: var(--text);
}

.pa-confirm-delete {
  background: var(--danger);
  border: 1.5px solid var(--danger);
  color: #fff;
}

.pa-confirm-delete:hover {
  filter: brightness(1.1);
}

.pa-confirm-ok {
  background: var(--accent);
  border: 1.5px solid var(--accent);
  color: #fff;
  width: 100%;
}

.pa-confirm-ok:hover {
  filter: brightness(1.1);
}

@media (max-width: 480px) {
  .pa-settings-modal,
  .pa-confirm-modal {
    max-width: 92vw;
  }
}

.pa-logo-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.chat-image-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 10px;
  color: inherit;
  opacity: 0.75;
}
.chat-image-btn:hover { opacity: 1; }

.chat-image-preview {
  display: none;
  gap: 8px;
  padding: 8px 12px;
  flex-wrap: wrap;
}
.chat-preview-thumb {
  position: relative;
  width: 56px;
  height: 56px;
}
.chat-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.chat-preview-thumb button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: #e5484d;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.chat-bubble-images {
  display: flex;
  gap: 1px;
  margin-bottom: 1px;
  flex-wrap: wrap;
}
.chat-bubble-images-user {
  justify-content: flex-end;
}
.chat-bubble-images-bot {
  justify-content: flex-start;
}
.chat-bubble-images img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

