/* =====================================================
   CM Group Products Page - Redesign v2
   Inspired by: Linear, Stripe, Bloomberg, Platts Connect
   ===================================================== */

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

:root {
  --cm-blue: #024d8f;
  --cm-blue-dark: #013d6f;
  --cm-blue-light: #0a6bc4;
  --surface-primary: #ffffff;
  --surface-secondary: #f8f9fb;
  --surface-elevated: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--surface-secondary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ===== HEADER - Wood Mackenzie Style ===== */
.header {
  background: transparent;
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition-normal), box-shadow var(--transition-normal), backdrop-filter var(--transition-normal);
}

.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-light);
}

.header:hover {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 48px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo img { height: 32px; }
.header-logo .logo-white { display: block; }
.header-logo .logo-color { display: none; }
.header.scrolled .header-logo .logo-white,
.header:hover .header-logo .logo-white { display: none; }
.header.scrolled .header-logo .logo-color,
.header:hover .header-logo .logo-color { display: block; }

/* Navigation - Clean Horizontal Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.header.scrolled .nav-link,
.header:hover .nav-link {
  color: var(--text-primary);
}

.header.scrolled .nav-link:hover,
.header:hover .nav-link:hover {
  color: var(--cm-blue);
  background: rgba(2, 77, 143, 0.06);
}

/* Disabled nav links */
.nav-link.nav-disabled {
  color: rgba(255,255,255,0.45);
  cursor: default;
  pointer-events: none;
}

.header.scrolled .nav-link.nav-disabled,
.header:hover .nav-link.nav-disabled {
  color: var(--text-tertiary);
}

/* SOON badge */
.nav-soon {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  margin-left: 2px;
}

.header.scrolled .nav-soon,
.header:hover .nav-soon {
  background: var(--surface-secondary);
  color: var(--text-tertiary);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Icon Wrapper for dropdowns */
.header-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header-right a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}
.header-right a:hover { color: #fff; }
.header.scrolled .header-right a,
.header:hover .header-right a { color: var(--text-primary); }
.header.scrolled .header-right a:hover,
.header:hover .header-right a:hover { color: var(--cm-blue); }

/* Icon Buttons */
.header-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.header-icon:hover { background: rgba(255,255,255,0.1); }
.header.scrolled .header-icon:hover,
.header:hover .header-icon:hover { background: var(--surface-secondary); }

.header-icon svg {
  stroke: rgba(255,255,255,0.9);
  transition: stroke var(--transition-fast);
}
.header.scrolled .header-icon svg,
.header:hover .header-icon svg { stroke: var(--text-primary); }

/* Notification Dot - positioned relative to button */
.header-icon .notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: #e12800;
  border-radius: 50%;
  pointer-events: none;
}

/* Search Dropdown */
.search-dropdown {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  width: 340px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 1002;
  padding: 16px;
}

.search-dropdown.active {
  display: block;
}

.search-dropdown input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-dropdown input:focus {
  border-color: var(--cm-blue);
}

#searchResults {
  margin-top: 10px;
  max-height: 240px;
  overflow-y: auto;
}

/* Sign In Button */
.header-signin {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all var(--transition-fast);
  color: rgba(255,255,255,0.9);
}
.header-signin:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.header.scrolled .header-signin,
.header:hover .header-signin {
  border-color: var(--border-medium);
  color: var(--text-primary);
}
.header.scrolled .header-signin:hover,
.header:hover .header-signin:hover {
  background: var(--cm-blue);
  border-color: var(--cm-blue);
  color: #fff;
}

.header-signin svg {
  stroke: rgba(255,255,255,0.9);
  transition: stroke var(--transition-fast);
}
.header.scrolled .header-signin svg,
.header:hover .header-signin svg { stroke: var(--text-primary); }
.header.scrolled .header-signin:hover svg,
.header:hover .header-signin:hover svg { stroke: #fff; }

/* Responsive Header */
@media (max-width: 900px) {
  .header-inner {
    padding: 0 24px;
    gap: 24px;
  }
  
  .header-nav {
    gap: 4px;
  }
  
  .nav-link {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .nav-soon {
    display: none;
  }
}

@media (max-width: 680px) {
  .header-nav {
    display: none;
  }
  
  .header-signin span {
    display: none;
  }
  
  .header-signin {
    padding: 8px;
  }
}

/* Mega menu removed - using flat navigation */

/* ===== HERO - GUEST VIEW ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #0f2847 50%, #1a3a5c 100%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(2,77,143,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(16,185,129,0.15) 0%, transparent 50%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 48px 80px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-content h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 700px;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--cm-blue-dark);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all var(--transition-fast);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ===== SHOWCASE SECTION - BENTO GRID ===== */
.showcase {
  padding: 80px 0;
  background: var(--surface-primary);
}

.showcase-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

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

/* Bento Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-normal);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

/* Large Bento Card */
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.bento-large .bento-img {
  position: absolute;
  inset: 0;
}

.bento-large .bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.bento-large:hover .bento-img img {
  transform: scale(1.05);
}

.bento-large .bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.bento-large .bento-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 32px;
  color: #fff;
}

.bento-large h3 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.bento-large p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Medium Bento Card */
.bento-medium {
  grid-column: span 2;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.bento-medium .bento-img {
  position: absolute;
  inset: 0;
}

.bento-medium .bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.bento-medium:hover .bento-img img {
  transform: scale(1.05);
}

.bento-medium .bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.2) 100%);
}

.bento-medium .bento-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: #fff;
  max-width: 60%;
}

.bento-medium h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.bento-medium p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
}

/* Small Bento Card */
.bento-small {
  grid-column: span 2;
  min-height: 160px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--surface-secondary) 0%, var(--surface-primary) 100%);
}

.bento-small .bento-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cm-blue) 0%, var(--cm-blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-small .bento-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
}

.bento-small .bento-content {
  flex: 1;
}

.bento-small h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.bento-small p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Bento Badges */
.bento-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}

.bento-badge-live {
  background: var(--accent-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Bento Features List */
.bento-features {
  list-style: none;
  margin-bottom: 20px;
}

.bento-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.bento-features svg {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
  flex-shrink: 0;
}

/* Bento CTA */
.bento-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: gap var(--transition-fast);
}

.bento-card:hover .bento-cta { gap: 10px; }

.bento-cta svg {
  width: 16px;
  height: 16px;
}

.bento-small .bento-cta {
  color: var(--cm-blue);
  margin-top: 12px;
}

/* Live Card Animation */
.bento-live::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--accent-green), transparent, var(--accent-green));
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.bento-live:hover::before { opacity: 1; }

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

/* No Subscriptions Message */
.no-subs-message {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, var(--surface-secondary) 0%, #eef4fc 100%);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--border-medium);
}

.no-subs-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--cm-blue) 0%, var(--cm-blue-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-subs-icon svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
}

.no-subs-message h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.no-subs-message p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.no-subs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--cm-blue);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.no-subs-btn:hover {
  background: var(--cm-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== ALL PRODUCTS SECTION ===== */
.all-products-section {
  padding: 80px 0;
  background: var(--surface-secondary);
}

.all-products-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ===== FILTER CARDS ===== */
.filter-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.filter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  background: var(--surface-elevated);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.filter-card svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 1.5;
}

.filter-card:hover {
  border-color: var(--cm-blue);
  color: var(--cm-blue);
}

.filter-card:hover svg {
  stroke: var(--cm-blue);
}

.filter-card.active {
  border-color: var(--text-primary);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-weight: 600;
}

.filter-card.active svg {
  stroke: var(--text-primary);
  fill: var(--text-primary);
}

/* Responsive filter cards */
@media (max-width: 768px) {
  .filter-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .filter-cards {
    grid-template-columns: 1fr;
  }
}

/* Product Grid Layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Product Card Base */
.product-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

/* Product Image */
.product-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

/* Product Badges */
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.product-badge-updated {
  background: rgba(2, 77, 143, 0.9);
  color: #fff;
}

.product-badge-live {
  background: var(--accent-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-badge-soon {
  background: rgba(100, 116, 139, 0.9);
  color: #fff;
}

.product-badge-beta {
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
}

/* Product Content */
.product-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

/* Product CTA */
.product-cta {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--cm-blue);
  transition: all var(--transition-fast);
}

.product-card:hover .product-cta {
  color: var(--cm-blue-dark);
}

.product-cta-disabled {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
}

/* Coming Soon Cards */
.product-coming {
  opacity: 0.7;
  cursor: default;
}

.product-coming:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-light);
  opacity: 0.85;
}

.product-coming .product-img img {
  filter: grayscale(30%);
}

.product-coming:hover .product-img img {
  transform: none;
  filter: grayscale(20%);
}

/* Live Product Animation */
.product-live {
  position: relative;
}

.product-live::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--accent-green), transparent, var(--accent-green));
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

/* ===== USER VIEW STYLES ===== */
.workspace-header {
  background: linear-gradient(135deg, #0a1628 0%, #0f2847 50%, #1a3a5c 100%);
  padding: 100px 0 40px;
}

.workspace-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workspace-welcome {
  display: flex;
  align-items: center;
  gap: 20px;
}

.workspace-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.2);
}

.workspace-avatar svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255,255,255,0.8);
}

.workspace-greeting {
  color: #fff;
}

.workspace-time {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 4px;
}

.workspace-greeting h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.workspace-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition-fast);
}

.workspace-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.workspace-btn svg {
  width: 18px;
  height: 18px;
}

/* My Subscriptions Section */
.my-subscriptions {
  padding: 48px 0;
  background: var(--surface-primary);
}

.my-subscriptions-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-header-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-header-inline h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.subscription-count {
  font-size: 13px;
  color: var(--text-tertiary);
  background: var(--surface-secondary);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Subscription Grid */
.subscription-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Subscription Card (same as product card but with status emphasis) */
.subscription-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-elevated);
  border: 2px solid var(--cm-blue);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.subscription-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(2, 77, 143, 0.15);
}

.subscription-card .product-img {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.subscription-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.subscription-card:hover .product-img img {
  transform: scale(1.08);
}

.subscription-card .product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
}

/* Subscription Status Badge */
.subscription-status {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.subscription-status.active {
  background: var(--accent-green);
  color: #fff;
}

.subscription-status.expiring {
  background: var(--accent-orange);
  color: #fff;
}

.subscription-status.expired {
  background: var(--text-tertiary);
  color: #fff;
}

.subscription-status.live {
  background: var(--accent-green);
  color: #fff;
}

/* Subscription Content */
.subscription-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.subscription-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.subscription-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.subscription-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.subscription-date {
  font-size: 12px;
  color: var(--text-tertiary);
}

.subscription-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cm-blue);
  padding: 8px 16px;
  background: rgba(2, 77, 143, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.subscription-card:hover .subscription-cta {
  background: var(--cm-blue);
  color: #fff;
}

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

.subscription-card:hover .subscription-cta svg {
  transform: translateX(4px);
}

/* All Products Section */
.all-products {
  padding: 48px 0 80px;
  background: var(--surface-secondary);
}

.all-products-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.all-products-subtitle {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Subscribed indicator in All Products */
.product-card.is-subscribed {
  border: 2px solid var(--cm-blue);
}

.product-card.is-subscribed::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  background: var(--cm-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* No subscriptions message */
.no-subscriptions {
  grid-column: span 3;
  text-align: center;
  padding: 60px 20px;
  background: var(--surface-secondary);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--border-medium);
}

.no-subscriptions h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.no-subscriptions p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.no-subscriptions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--cm-blue);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.no-subscriptions a:hover {
  background: var(--cm-blue-dark);
}

/* Loading State */
.loading-state {
  grid-column: span 3;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-light);
  border-top-color: var(--cm-blue);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

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

/* ===== FOOTER ===== */
.footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 48px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-primary);
}

.footer p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

.footer-links a:hover { color: var(--cm-blue); }

/* ===== MODALS ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--surface-elevated);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--surface-secondary);
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.modal-img {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}

.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}

.modal-table tr {
  border-bottom: 1px solid var(--border-light);
}

.modal-table td {
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-primary);
  vertical-align: top;
}

.modal-label {
  font-weight: 600;
  width: 120px;
  color: var(--text-secondary);
}

.modal-btn {
  display: block;
  text-align: center;
  background: var(--cm-blue);
  color: #fff;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.modal-btn:hover { background: var(--cm-blue-dark); }

.modal-link {
  display: block;
  text-align: center;
  color: var(--cm-blue);
  font-size: 14px;
  text-decoration: none;
}

.modal-link:hover { text-decoration: underline; }

/* ===== 2FA REMINDER ===== */
#tfaReminder { display: none; position: fixed; inset: 0; z-index: 100000; background: #fff; flex-direction: column; font-family: Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif; }
#tfaReminder.show { display: flex; }
.tfa-bar { background: var(--cm-blue); color: #fff; padding: 20px 32px; font-size: 20px; font-weight: 600; }
.tfa-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; text-align: center; }
.tfa-body h2 { font-size: 24px; font-weight: 600; color: var(--text-primary); margin: 0 0 12px; }
.tfa-body .sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 6px; }
.tfa-learn { color: var(--cm-blue); font-weight: 600; font-size: 14px; text-decoration: none; margin-bottom: 36px; }
.tfa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 620px; max-width: 92vw; margin: 28px auto 0; }
.tfa-gcard { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0; border: 1.5px solid var(--border-light); border-radius: var(--radius-md); background: #fff; cursor: pointer; overflow: hidden; transition: all var(--transition-fast); }
.tfa-gcard:hover:not(.disabled) { border-color: var(--cm-blue); box-shadow: var(--shadow-md); }
.tfa-gcard.selected { border-color: var(--cm-blue); box-shadow: inset 0 0 0 1px var(--cm-blue); }
.tfa-footer { border-top: 1px solid var(--border-light); padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; background: var(--surface-secondary); }
.tfa-cancel { background: none; border: none; color: var(--cm-blue); font-size: 14px; font-weight: 600; cursor: pointer; }
.tfa-next { background: var(--cm-blue); border: none; color: #fff; font-size: 14px; font-weight: 600; padding: 12px 28px; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition-fast); }
.tfa-next:hover { background: var(--cm-blue-dark); }
.tfa-next:disabled { opacity: 0.5; cursor: not-allowed; }
.tfa-remind { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.tfa-gill img { width: 100%; display: block; }
.tfa-gradio { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border: 2px solid var(--border-medium); border-radius: 50%; z-index: 2; background: #fff; }
.tfa-gcard.selected .tfa-gradio { border-color: var(--cm-blue); }
.tfa-gcard.selected .tfa-gradio::after { content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--cm-blue); }
.tfa-gbadge { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 600; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 4px; color: #fff; }
.tfa-gbadge.most { background: var(--accent-green); }
.tfa-gbadge.more { background: var(--cm-blue); }

/* ===== NOTIFICATION CENTER — Professional Edition ===== */
.notif-dropdown {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border: 1px solid #d8dde3;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(26, 58, 92, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  z-index: 1002;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e4e8ec;
}

.notif-header-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a3a5c;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.notif-mark-read {
  background: none;
  border: none;
  color: var(--cm-blue, #024d8f);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 3px;
  transition: background 0.15s ease;
}

.notif-mark-read:hover {
  background: rgba(2, 77, 143, 0.08);
}

.notif-list {
  max-height: 380px;
  overflow-y: auto;
  background: #fff;
}

.notif-list::-webkit-scrollbar {
  width: 6px;
}

.notif-list::-webkit-scrollbar-track {
  background: #f4f5f6;
}

.notif-list::-webkit-scrollbar-thumb {
  background: #c8ced6;
  border-radius: 3px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid #eef0f3;
  transition: background 0.12s ease;
  position: relative;
  cursor: pointer;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item.notif-read {
  background: #fafbfc;
}

.notif-item.notif-read .notif-title {
  font-weight: 400;
  color: #5c6a7a;
}

.notif-item.notif-read .notif-icon {
  opacity: 0.5;
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f0f4f8;
  color: var(--cm-blue, #024d8f);
}

.notif-icon svg {
  width: 16px;
  height: 16px;
}

.notif-item.notif-alert .notif-icon {
  background: #fef2f0;
  color: #e12800;
}

.notif-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.notif-title {
  font-size: 13px;
  font-weight: 500;
  color: #1a2b3c;
  line-height: 1.35;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.notif-type {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cm-blue, #024d8f);
}

.notif-item.notif-alert .notif-type {
  color: #e12800;
}

.notif-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c8ced6;
}

.notif-time {
  color: #8795a5;
  font-weight: 400;
}

.notif-dot {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--cm-blue, #024d8f);
  border-radius: 50%;
}

.notif-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: #f8f9fa;
  border-top: 1px solid #e4e8ec;
  color: var(--cm-blue, #024d8f);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s ease;
}

.notif-footer:hover {
  background: #f0f4f8;
}

.notif-footer svg {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.notif-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: #fff;
}

.notif-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e4e8ec;
  border-top-color: var(--cm-blue, #024d8f);
  border-radius: 50%;
  animation: notif-spin 0.7s linear infinite;
}

@keyframes notif-spin {
  to { transform: rotate(360deg); }
}

.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 20px;
  color: #8795a5;
  font-size: 13px;
  background: #fff;
}

.notif-empty-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f6;
  border-radius: 4px;
  color: #8795a5;
}

.notif-empty-icon svg {
  width: 20px;
  height: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-large { grid-column: span 2; }
  .bento-medium { grid-column: span 2; }
  .bento-small { grid-column: span 1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .subscription-grid { grid-template-columns: repeat(2, 1fr); }
  .no-subscriptions { grid-column: span 2; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 24px; gap: 20px; height: 64px; }
  .header-nav { display: none; }
  .hero-content { padding: 100px 24px 60px; }
  .hero-content h1 { font-size: 32px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .showcase-inner, .all-products-inner, .my-subscriptions-inner { padding: 0 24px; }
  .bento-grid, .product-grid, .subscription-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-medium, .bento-small { grid-column: span 1; }
  .bento-medium .bento-content { max-width: 100%; }
  .no-subscriptions { grid-column: span 1; }
  .workspace-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer { flex-direction: column; gap: 16px; text-align: center; }
}
