/* BLACKBOOK NETWORK - Luxury Vault Styling */
/* Matte Black | Carbon Fiber | Gold Accents | Cinematic Lighting */

:root {
  --color-black-primary: #0a0a0a;
  --color-black-secondary: #151515;
  --color-black-tertiary: #1a1a1a;
  --color-carbon: #0d0d0d;
  --color-gold: #d4af37;
  --color-gold-light: #f4d475;
  --color-gold-dark: #b8952c;
  --color-white: #ffffff;
  --color-gray-light: #cccccc;
  --color-gray: #888888;
  --color-gray-dark: #444444;
  --color-red: #dc2626;
  --color-green: #16a34a;
  --color-blue: #2563eb;
  
  --font-serif: 'Playfair Display', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Monaco', 'Courier New', monospace;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.9);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
  
  --border-gold: 1px solid var(--color-gold);
  --border-gold-thin: 0.5px solid rgba(212, 175, 55, 0.4);
  --border-dark: 1px solid var(--color-gray-dark);
}

/* Animated Book Opening */
@keyframes bookOpen {
  0% {
    transform: perspective(1000px) rotateY(-20deg) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: perspective(1000px) rotateY(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes pageFlip {
  0% {
    transform: perspective(1000px) rotateY(90deg);
    opacity: 0;
  }
  50% {
    transform: perspective(1000px) rotateY(45deg);
    opacity: 0.5;
  }
  100% {
    transform: perspective(1000px) rotateY(0deg);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.book-container {
  animation: bookOpen 1s ease-out;
  transform-style: preserve-3d;
}

.book-page {
  animation: pageFlip 0.8s ease-out;
  animation-fill-mode: backwards;
}

.book-page:nth-child(1) { animation-delay: 0.2s; }
.book-page:nth-child(2) { animation-delay: 0.4s; }
.book-page:nth-child(3) { animation-delay: 0.6s; }
.book-page:nth-child(4) { animation-delay: 0.8s; }
.book-page:nth-child(5) { animation-delay: 1s; }
.book-page:nth-child(6) { animation-delay: 1.2s; }

.slide-in-left {
  animation: slideInFromLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInFromRight 0.6s ease-out;
}

/* Strategy Modal Overlay */
.strategy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

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

.strategy-content {
  background: linear-gradient(135deg, var(--color-black-secondary), var(--color-carbon));
  border: 3px solid var(--color-gold);
  border-radius: 12px;
  padding: 3rem;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideInFromBottom 0.5s ease-out;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.4);
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.strategy-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--color-gold);
  border: none;
  border-radius: 50%;
  color: var(--color-black-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strategy-close:hover {
  background: var(--color-gold-light);
  transform: rotate(90deg);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--color-black-primary);
  color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Carbon Fiber Background */
.carbon-bg {
  background: 
    linear-gradient(27deg, #151515 5px, transparent 5px) 0 5px,
    linear-gradient(207deg, #151515 5px, transparent 5px) 10px 0px,
    linear-gradient(27deg, #222 5px, transparent 5px) 0px 10px,
    linear-gradient(207deg, #222 5px, transparent 5px) 10px 5px,
    linear-gradient(90deg, #1b1b1b 10px, transparent 10px),
    linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
  background-color: #131313;
  background-size: 20px 20px;
}

/* Gold Accent Line */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 2rem 0;
}

.gold-border-top {
  border-top: var(--border-gold);
}

.gold-border-bottom {
  border-bottom: var(--border-gold);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-white);
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  color: var(--color-gray-light);
}

.text-gold {
  color: var(--color-gold);
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-center {
  text-align: center;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.05em;
}

.tracking-wider {
  letter-spacing: 0.1em;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Spacing */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.p-4 { padding: 2rem; }
.p-6 { padding: 3rem; }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-gold-thin);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.nav-content .nav-logo {
  margin-right: auto;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--color-gold);
}

/* Remove the gold underline animation */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05), transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 1200px;
  padding: 0 2rem;
}

.hero-logo {
  font-size: 5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--color-gold);
  letter-spacing: 0.3em;
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-gray-light);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-microtext {
  font-size: 0.75rem;
  color: var(--color-gray);
  letter-spacing: 0.1em;
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-black-primary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: var(--border-gold);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards */
.card {
  background: var(--color-black-secondary);
  border: var(--border-gold-thin);
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
}

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

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

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

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-gold);
}

.card-text {
  font-size: 0.95rem;
  color: var(--color-gray-light);
  line-height: 1.7;
}

/* Asset Categories */
.asset-category {
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
}

.asset-icon {
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.asset-category:hover .asset-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.asset-name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--color-black-secondary);
  border: 1px solid var(--color-gray-dark);
  color: var(--color-white);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Portal Sidebar */
.portal-container {
  display: flex;
  min-height: 100vh;
  padding-top: 80px;
  background: 
    linear-gradient(27deg, #151515 5px, transparent 5px) 0 5px,
    linear-gradient(207deg, #151515 5px, transparent 5px) 10px 0px,
    linear-gradient(27deg, #222 5px, transparent 5px) 0px 10px,
    linear-gradient(207deg, #222 5px, transparent 5px) 10px 5px,
    linear-gradient(90deg, #1b1b1b 10px, transparent 10px),
    linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
  background-color: #131313;
  background-size: 20px 20px;
}

.portal-sidebar {
  width: 280px;
  background: var(--color-black-secondary);
  border-right: var(--border-gold-thin);
  padding: 2rem 0;
  position: fixed;
  top: 80px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
}

.portal-sidebar-link {
  display: block;
  padding: 1rem 2rem;
  color: var(--color-gray-light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.portal-sidebar-link i {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: inline-block;
}

.portal-sidebar-link:hover i {
  transform: scale(1.2) rotateY(360deg);
  color: var(--color-gold);
}

.portal-sidebar-link:hover,
.portal-sidebar-link.active {
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.05);
  border-left-color: var(--color-gold);
}

.portal-sidebar-link.active i {
  animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
  }
  50% {
    opacity: 0.7;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
  }
}

.portal-main {
  flex: 1;
  margin-left: 280px;
  padding: 3rem;
  background: transparent;
}

/* Dashboard Tiles */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.dashboard-tile {
  background: var(--color-black-secondary);
  border: var(--border-gold-thin);
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard-tile:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.tile-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-bottom: 0.5rem;
}

.tile-value {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.tile-subtitle {
  font-size: 0.85rem;
  color: var(--color-gray-light);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0;
}

.badge-green {
  background: rgba(22, 163, 74, 0.2);
  color: var(--color-green);
  border: 1px solid var(--color-green);
}

.badge-red {
  background: rgba(220, 38, 38, 0.2);
  color: var(--color-red);
  border: 1px solid var(--color-red);
}

.badge-gold {
  background: rgba(212, 175, 55, 0.2);
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.badge-blue {
  background: rgba(37, 99, 235, 0.2);
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
}

/* Footer */
.footer {
  background: var(--color-black-secondary);
  border-top: var(--border-gold-thin);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--color-gray);
  text-align: center;
  max-width: 800px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: var(--border-gold-thin);
}

/* Responsive */
/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10001;
  background: var(--color-gold);
  color: var(--color-black-primary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  transition: all 0.3s;
}

.mobile-menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.6);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Navigation */
  }
  
  /* Wizard adjustments */
  .wizard-steps {
    flex-direction: column;
    gap: 1rem;
  }
  
  .wizard-steps::before {
    display: none;
  }
  
  .wizard-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }
  
  .wizard-step-circle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Form inputs */
  .form-input, .form-select, .form-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Hero section */
  .hero {
    min-height: 60vh;
    padding: 3rem 1rem;
  }
  
  .hero-logo {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 1rem;
  }
  
  /* Category cards */
  .category-card {
    padding: 1.5rem;
  }
  
  /* Market intelligence tabs - horizontal scroll */
  .market-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }
  
  /* Badge sizing */
  .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }
  
  /* Playbook cards */
  .book-page {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Footer adjustments */
  footer {
    padding: 2rem 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

/* Utility Classes */
.text-muted {
  color: var(--color-gray);
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

.opacity-50 {
  opacity: 0.5;
}

.cursor-pointer {
  cursor: pointer;
}

/* Step-by-Step Wizard */
.wizard-container {
  max-width: 900px;
  margin: 0 auto;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gray-dark);
  z-index: 0;
}

.wizard-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.wizard-step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-black-secondary);
  border: 2px solid var(--color-gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-size: 1.2rem;
  color: var(--color-gray);
  transition: all 0.4s ease;
}

.wizard-step.active .wizard-step-circle {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  border-color: var(--color-gold);
  color: var(--color-black-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  animation: pulse-ring 2s ease-in-out infinite;
}

.wizard-step.completed .wizard-step-circle {
  background: var(--color-green);
  border-color: var(--color-green);
  color: white;
}

@keyframes pulse-ring {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
  }
}

.wizard-step-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray);
}

.wizard-step.active .wizard-step-label {
  color: var(--color-gold);
  font-weight: 600;
}

.wizard-content {
  background: var(--color-black-secondary);
  padding: 3rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  min-height: 400px;
}

.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Category Selection Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.category-card {
  background: var(--color-black-secondary);
  border: 2px solid var(--color-gray-dark);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.5s ease;
}

.category-card:hover::before {
  left: 100%;
}

.category-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--color-gold);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.category-card.selected {
  border-color: var(--color-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), transparent);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.category-icon {
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  transition: all 0.4s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.2) rotateY(360deg);
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

.category-card.selected .category-icon {
  animation: float 3s ease-in-out infinite;
}

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

.category-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
}

/* Animated Book */
.book-container {
  perspective: 2000px;
  max-width: 1200px;
  margin: 3rem auto;
}

.book {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 1s ease;
}

.book.open {
  transform: rotateY(-20deg);
}

.book-page {
  background: linear-gradient(135deg, var(--color-black-secondary), var(--color-black-primary));
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3rem;
  margin-bottom: 2rem;
  position: relative;
  transform-origin: left center;
  transition: all 0.6s ease;
  cursor: pointer;
}

.book-page:hover {
  transform: rotateY(-5deg);
  box-shadow: -10px 0 30px rgba(212, 175, 55, 0.2);
}

.book-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.3), transparent);
}

.playbook-chapter {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--color-black-secondary);
  border-left: 4px solid var(--color-gold);
  transition: all 0.4s ease;
}

.playbook-chapter:hover {
  transform: translateX(10px);
  box-shadow: -5px 5px 20px rgba(212, 175, 55, 0.2);
}

.playbook-chapter-number {
  font-size: 3rem;
  font-family: var(--font-serif);
  color: var(--color-gold);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.playbook-chapter-title {
  font-size: 1.8rem;
  font-family: var(--font-serif);
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.playbook-strategy {
  background: rgba(212, 175, 55, 0.05);
  padding: 1.5rem;
  margin: 1rem 0;
  border-left: 3px solid var(--color-gold);
}

.playbook-quote {
  font-style: italic;
  color: var(--color-gold);
  font-size: 1.1rem;
  margin: 1.5rem 0;
  padding-left: 2rem;
  border-left: 3px solid var(--color-gold);
}

/* Admin-specific styles */
.admin-stat-card {
  background: linear-gradient(135deg, var(--color-black-secondary), var(--color-black-tertiary));
  border: 1px solid var(--color-gold);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.admin-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.admin-stat-value {
  font-size: 3rem;
  font-family: var(--font-serif);
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.admin-stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-light);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-black-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-dark);
  border: 1px solid var(--color-gold);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray);
}

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */

/* Sidebar Icon Animations */
.sidebar a {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar a:hover i {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 8px var(--color-gold));
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Slide In Animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideInRight 0.5s ease-out;
}

/* Pulse Animation for CTAs */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 20px 10px rgba(212, 175, 55, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Wizard Step Progress Animation */
@keyframes stepComplete {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.step-complete {
  animation: stepComplete 0.4s ease-out;
}

/* Category Card Hover */
.category-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.category-card:hover::before {
  width: 300px;
  height: 300px;
}

.category-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
  border-color: var(--color-gold);
}

/* Asset Playbook Book Animation */
@keyframes bookOpen {
  0% {
    transform: perspective(1000px) rotateY(-30deg);
    opacity: 0;
  }
  100% {
    transform: perspective(1000px) rotateY(0deg);
    opacity: 1;
  }
}

.book-open {
  animation: bookOpen 1s ease-out forwards;
}

/* Modal Backdrop Fade */
@keyframes backdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-backdrop {
  animation: backdropFadeIn 0.3s ease-out;
}

/* Shimmer Effect for Loading */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--color-black-secondary) 0%,
    var(--color-black-tertiary) 50%,
    var(--color-black-secondary) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Glow Effect */
@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 5px var(--color-gold), 0 0 10px var(--color-gold);
  }
  50% {
    text-shadow: 0 0 10px var(--color-gold), 0 0 20px var(--color-gold), 0 0 30px var(--color-gold);
  }
}

.text-glow {
  animation: glow 3s ease-in-out infinite;
}

/* Badge Pulse */
@keyframes badgePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.badge-pulse {
  animation: badgePulse 2s infinite;
}

/* Card Float */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* Button Ripple Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Wizard Step Indicator */
.wizard-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--color-gray-dark);
  background: var(--color-black-secondary);
  color: var(--color-gray);
  font-weight: 600;
  transition: all 0.4s ease;
}

.wizard-step.active {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-black-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  transform: scale(1.1);
}

.wizard-step.completed {
  border-color: var(--color-green);
  background: var(--color-green);
  color: var(--color-white);
}

.wizard-line {
  flex: 1;
  height: 2px;
  background: var(--color-gray-dark);
  transition: background 0.4s ease;
}

.wizard-line.completed {
  background: var(--color-gold);
}

/* Asset Type Icon Selector */
.asset-type-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 2px solid var(--color-gray-dark);
  border-radius: 8px;
  background: var(--color-black-secondary);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.asset-type-icon i {
  font-size: 3rem;
  color: var(--color-gray);
  margin-bottom: 1rem;
  transition: all 0.4s ease;
}

.asset-type-icon:hover {
  border-color: var(--color-gold);
  background: var(--color-black-tertiary);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.asset-type-icon:hover i {
  color: var(--color-gold);
  transform: scale(1.2) rotate(5deg);
}

.asset-type-icon.selected {
  border-color: var(--color-gold);
  border-width: 3px;
  background: linear-gradient(135deg, var(--color-black-secondary), rgba(212, 175, 55, 0.1));
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.asset-type-icon.selected i {
  color: var(--color-gold);
  transform: scale(1.3);
}

/* Mobile Menu Toggle - Hidden on desktop */
.mobile-menu-toggle {
  display: none;
  background: var(--color-black-secondary);
  border: 2px solid var(--color-gold);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.mobile-menu-toggle i {
  color: var(--color-gold);
  font-size: 1.5rem;
}

/* Mobile Portal Toggle - Hidden on desktop */
.mobile-portal-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001 !important; /* Higher than sidebar */
  background: var(--color-black-secondary);
  border: 2px solid var(--color-gold);
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  pointer-events: all !important; /* Ensure it's clickable */
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 998 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
  display: block !important;
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   MOBILE RESPONSIVE DESIGN - TABLET & BELOW
   ============================================ */

@media (max-width: 1024px) {
  /* Tablet adjustments */
  .hero-logo {
    font-size: 3.5rem;
  }
  
  .hero-tagline {
    font-size: 1rem;
  }
  
  .portal-sidebar {
    width: 240px;
  }
  
  .portal-main {
    margin-left: 240px;
  }
}

@media (max-width: 768px) {
  /* ===== MOBILE NAVIGATION ===== */
  .nav-content {
    padding: 1rem 1.5rem;
    position: relative;
  }
  
  .nav-logo {
    font-size: 1.1rem;
  }
  
  /* Show hamburger menu on mobile for main nav */
  .nav .mobile-menu-toggle {
    display: flex !important;
    position: relative;
    top: auto;
    left: auto;
    background: none;
    border: none;
    padding: 0.5rem;
    box-shadow: none;
  }
  
  /* Show portal menu toggle ONLY in portal pages */
  .mobile-portal-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  
  /* Hide portal nav on mobile (no HOME, BENEFITS, etc. needed) */
  .portal-container ~ nav,
  .portal-main ~ nav {
    display: none !important;
  }
  
  /* Hide nav links by default on mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-black-primary);
    border-left: 2px solid var(--color-gold);
    flex-direction: column;
    gap: 0;
    padding: 5rem 0 2rem;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.8);
  }
  
  /* Show nav when mobile menu is open */
  .nav-links.mobile-open {
    display: flex !important;
  }
  
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--color-gray-dark);
  }
  
  .nav-link {
    display: block;
    padding: 1.25rem 2rem;
    font-size: 1rem;
  }
  
  /* ===== MOBILE HERO SECTION ===== */
  .hero {
    min-height: auto !important;
    height: auto !important;
    padding: 8rem 1rem 3rem !important; /* Added more top padding to prevent nav overlap */
  }
  
  .hero::before {
    opacity: 0.2 !important;
    background-size: contain !important;
    background-position: center bottom !important;
  }
  
  .hero-content {
    padding: 0 1rem !important;
  }
  
  .hero-logo {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* ===== MOBILE TYPOGRAPHY ===== */
  h1 {
    font-size: 1.8rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  .hero-logo {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
  }
  
  .hero-description {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
  
  /* ===== MOBILE GRIDS ===== */
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Ensure grid items don't overflow */
  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > *,
  .grid-5 > * {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  
  /* ===== MOBILE PORTAL LAYOUT ===== */
  .portal-sidebar {
    position: fixed !important;
    left: -300px !important;
    top: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    z-index: 999 !important;
    transition: left 0.3s ease !important;
    overflow-y: auto !important;
    background: var(--color-black-primary) !important;
    border-right: 2px solid var(--color-gold) !important;
    pointer-events: all !important;
  }
  
  .portal-sidebar.mobile-open {
    left: 0 !important;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.9) !important;
  }
  
  .portal-main {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 5rem 1rem 1.5rem 1rem !important; /* Extra top padding for hamburger button */
  }
  
  /* ===== MOBILE CARDS ===== */
  .card {
    padding: 1.5rem !important;
  }
  
  .category-card {
    padding: 1.25rem !important;
  }
  
  /* ===== MOBILE BUTTONS ===== */
  .btn,
  .btn-primary,
  .btn-secondary {
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
  }
  
  /* ===== MOBILE FORMS ===== */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Prevents iOS zoom */
  }
  
  /* ===== MOBILE MODALS ===== */
  .modal-overlay {
    padding: 1rem;
  }
  
  .modal-content {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem !important;
  }
  
  /* ===== MOBILE TABLES ===== */
  table {
    font-size: 0.85rem;
  }
  
  th,
  td {
    padding: 0.6rem 0.4rem !important;
  }
  
  /* ===== MOBILE WIZARD ===== */
  .wizard-container {
    padding: 1.5rem 1rem;
  }
  
  .wizard-progress {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .wizard-step {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .wizard-line {
    display: none; /* Hide connecting lines on mobile */
  }
  
  .wizard-card {
    padding: 1.25rem !important;
  }
  
  /* ===== MOBILE ASSET PLAYBOOK ===== */
  .book-open {
    padding: 1rem;
  }
  
  .book-page {
    margin-bottom: 1.5rem;
  }
  
  /* ===== MOBILE MARKET INTELLIGENCE ===== */
  .market-tab {
    padding: 0.75rem 1rem !important;
    font-size: 0.75rem !important;
  }
  
  #marketChart {
    height: 200px !important;
  }
  
  /* ===== MOBILE FOOTER ===== */
  .footer {
    padding: 2rem 1rem;
  }
  
  .footer .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    text-align: center;
  }
  
  /* ===== MOBILE CONTACT PAGE ===== */
  .contact-cta {
    padding: 2rem 1rem;
  }
  
  .phone-display {
    font-size: 1.8rem !important;
  }
  
  /* ===== MOBILE UTILITY CLASSES ===== */
  .mobile-hide {
    display: none !important;
  }
  
  .mobile-show {
    display: block !important;
  }
  
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile devices */
  .nav-logo {
    font-size: 0.95rem;
  }
  
  .hero-logo {
    font-size: 2rem;
  }
  
  .hero-tagline {
    font-size: 0.7rem;
  }
  
  h1 {
    font-size: 1.5rem !important;
  }
  
  .card {
    padding: 1rem !important;
  }
  
  .btn {
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
  }
}

