/* ============================================
   PRODUCT SUITE — RMA Intelligence Platform
   Premium Dark Theme
   ============================================ */

/* ---------- RESET & FOUNDATION ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #0A0A0F;
  --bg-card: #111118;
  --bg-card-hover: #16161F;
  --bg-surface: #1A1A24;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(255, 255, 255, 0.1);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  --accent-cyan: #00D4FF;
  --accent-purple: #A855F7;
  --accent-blue: #0088FF;
  --gradient-main: linear-gradient(135deg, #00D4FF 0%, #A855F7 100%);
  --gradient-warm: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --shadow-glow: 0 0 60px rgba(0, 212, 255, 0.08), 0 0 120px rgba(168, 85, 247, 0.05);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- PARTICLES CANVAS ---------- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ---------- SCREENS ---------- */
.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.screen.active {
  opacity: 1;
  visibility: visible;
}

#screen-catalog {
  position: relative;
  display: block;
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
}

#screen-catalog.active {
  position: relative;
}

/* ---------- LOGIN SCREEN ---------- */
.login-container {
  width: 100%;
  max-width: 440px;
  padding: 20px;
  z-index: 2;
}

.login-card {
  background: rgba(17, 17, 24, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  animation: cardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), rgba(168, 85, 247, 0.4), transparent);
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- LOGO ---------- */
.login-logo {
  text-align: center;
  margin-bottom: 40px;
}

.logo-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5)); }
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- FORM ---------- */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: all var(--transition-fast);
  outline: none;
}

.input-wrapper input:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper:has(input:focus) .input-icon {
  color: var(--accent-cyan);
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
}

/* ---------- BUTTON PRIMARY ---------- */
.btn-primary {
  width: 100%;
  padding: 15px 24px;
  background: var(--gradient-main);
  border: none;
  border-radius: var(--radius-pill);
  color: white;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  margin-top: 8px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3), 0 4px 15px rgba(168, 85, 247, 0.2);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.loading .btn-text {
  opacity: 0;
}

.btn-primary.loading .btn-loader {
  opacity: 1;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- LOGIN LINKS ---------- */
.login-links {
  text-align: center;
}

.login-links a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.login-links a:hover {
  color: var(--accent-cyan);
}

/* ---------- LOGIN FOOTER ---------- */
.login-footer {
  margin-top: 36px;
  text-align: center;
}

.footer-line {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 16px;
}

.login-footer p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.login-footer strong {
  color: var(--text-secondary);
  font-weight: 700;
}

/* ---------- 2FA SCREEN ---------- */
.tfa-card {
  max-width: 480px;
}

.tfa-header {
  text-align: center;
  margin-bottom: 36px;
}

.tfa-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  animation: shieldFloat 3s ease-in-out infinite;
}

@keyframes shieldFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.tfa-shield {
  width: 100%;
  height: 100%;
}

.tfa-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.tfa-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tfa-desc strong {
  color: var(--accent-cyan);
}

/* ---------- CODE INPUTS ---------- */
.tfa-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.code-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-digit {
  width: 52px;
  height: 62px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all var(--transition-fast);
  caret-color: var(--accent-cyan);
}

.code-digit:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
  transform: translateY(-2px);
}

.code-digit.filled {
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.08);
}

.code-separator {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 300;
  margin: 0 2px;
}

.tfa-form .btn-primary {
  max-width: 280px;
}

/* ---------- RESEND ---------- */
.tfa-resend {
  font-size: 13px;
  color: var(--text-muted);
}

.tfa-resend a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.tfa-resend a:hover {
  color: var(--accent-purple);
}

.resend-timer {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   CATALOG SCREEN
   ============================================ */

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo-icon {
  width: 32px;
  height: 32px;
}

.topbar-brand {
  font-size: 18px;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Nav links removed — topbar is clean */

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.topbar-user:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-glow);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---------- GRADIENT TEXT (kept for footer) ---------- */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- PRODUCTS SECTION ---------- */
.products-section {
  padding: 48px 40px 80px;
  max-width: 1320px;
  margin: 0 auto;
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
}

.products-header {
  margin-bottom: 40px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ---------- PRODUCTS GRID ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  flex: 1;
}

/* ---------- PRODUCT CARD ---------- */
.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-smooth);
  animation: cardReveal 0.6s ease forwards;
  opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

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

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent, #00D4FF), var(--accent-end, #A855F7));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

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

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.product-card:hover .card-glow {
  opacity: 1;
}

.card-content {
  position: relative;
  padding: 32px;
  z-index: 1;
}

.card-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition-smooth);
}

.card-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.product-card:hover .card-icon-wrapper {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glow);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(var(--accent, 0, 212, 255), 0.15);
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ---------- TAGS ---------- */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.tag {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.product-card:hover .tag {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

/* ---------- CARD CTA ---------- */
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.product-card:hover .card-cta {
  background: var(--gradient-main);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}

.product-card:hover .card-cta svg {
  transform: translateX(3px);
}

/* ---------- CATALOG FOOTER ---------- */
.catalog-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 40px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   TRANSITIONS BETWEEN SCREENS
   ============================================ */
.screen.exit-left {
  animation: exitLeft 0.5s ease forwards;
}

@keyframes exitLeft {
  to {
    opacity: 0;
    transform: translateX(-40px) scale(0.98);
  }
}

.screen.enter-right {
  animation: enterRight 0.6s ease forwards;
  animation-delay: 0.2s;
}

@keyframes enterRight {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    visibility: visible;
  }
}

/* ============================================
   SUCCESS OVERLAY (post-2FA)
   ============================================ */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  animation: successFade 0.4s ease;
}

.success-content {
  text-align: center;
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-check {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.success-check circle {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: drawCircle 0.6s ease forwards;
  animation-delay: 0.2s;
}

.success-check path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.4s ease forwards;
  animation-delay: 0.6s;
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

@keyframes successPop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes successFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-text {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-subtext {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-section {
    padding: 32px 20px 60px;
  }

  .section-title {
    font-size: 24px;
  }

  .login-card {
    padding: 36px 28px;
  }

  .code-digit {
    width: 44px;
    height: 54px;
    font-size: 20px;
  }

  .topbar-inner {
    padding: 0 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- SELECTION ---------- */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: white;
}

/* ---------- TOAST NOTIFICATIONS ---------- */
.toast-notification {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(17, 17, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-notification.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* ---------- CARD ACCENT GLOW COLORS ---------- */
.product-card[data-product="rankmyads"]:hover {
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.1), 0 20px 60px rgba(0, 136, 255, 0.08);
}

.product-card[data-product="mitool"]:hover {
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.1), 0 20px 60px rgba(124, 58, 237, 0.08);
}

.product-card[data-product="ritool"]:hover {
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.1), 0 20px 60px rgba(217, 119, 6, 0.08);
}

.product-card[data-product="adsintel"]:hover {
  box-shadow: 0 0 60px rgba(236, 72, 153, 0.1), 0 20px 60px rgba(219, 39, 119, 0.08);
}

.product-card[data-product="engagement"]:hover {
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.1), 0 20px 60px rgba(5, 150, 105, 0.08);
}

.product-card[data-product="datarank"]:hover {
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.1), 0 20px 60px rgba(79, 70, 229, 0.08);
}

/* ---------- CARD ACTIVE STATUS ---------- */
.card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

/* ---------- CARD HEADER WITH STATUS ---------- */
.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ---------- ENHANCED TOPBAR USER ---------- */
.notification-btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.notification-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #EC4899, #EF4444);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 2px solid var(--bg-deep);
}

/* ---------- MOUSE FOLLOW GRADIENT ON CARDS ---------- */
.product-card .card-glow {
  transition: opacity 0.3s ease;
}

/* ---------- LOADING SHIMMER ---------- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ---------- CATALOG SCREEN ENTRANCE ---------- */
#screen-catalog .products-grid .product-card {
  opacity: 0;
  transform: translateY(30px);
}

#screen-catalog.active .products-grid .product-card {
  animation: cardReveal 0.6s ease forwards;
}

/* ---------- SMOOTH SCROLLBAR FIREFOX ---------- */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
