:root {
  --bg-color: #0d0f12; /* Darker charcoal */
  --card-bg: #15181e;
  --text-primary: #f0f0f0;
  --text-secondary: #9ca3af;
  
  /* Accent Colors */
  --electric-blue: #00d2ff;
  --racing-yellow: #ffee00;
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Y2K Borders & Shadows */
  --chunky-border: 2px solid #2a2e38;
  --hover-border: 2px solid var(--electric-blue);
  --y2k-shadow: 4px 4px 0px var(--racing-yellow);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  /* Subtle dark grid background to emulate tuner garage/cyber feel */
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-style: italic; /* NFS Underground 2 speed aesthetic */
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 2-Column Sidebar Layout */
.main-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  align-items: start;
}

@media (max-width: 860px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Styles */
.sidebar {
  position: sticky;
  top: 90px;
  background: var(--card-bg);
  border: var(--chunky-border);
  padding: 1.5rem;
  border-radius: 4px;
}

.sidebar h3 {
  margin-bottom: 1.5rem;
  color: var(--electric-blue);
  border-bottom: 2px solid #2a2e38;
  padding-bottom: 0.5rem;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 0.5rem;
}

.sidebar-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid #2a2e38;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-style: italic;
  transition: all 0.2s;
}

.sidebar-btn:hover, .sidebar-btn.active {
  background: var(--electric-blue);
  color: #000;
  border-color: var(--electric-blue);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0px var(--racing-yellow);
}

/* Header & Nav */
.header {
  background-color: rgba(13, 15, 18, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: var(--chunky-border);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: 'Russo One', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: none; /* Removed neon shadow to match solid racing font style */
}

@keyframes realistic-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
      opacity: 1;
      text-shadow: 
        0 0 5px var(--electric-blue),
        0 0 15px var(--electric-blue),
        0 0 30px rgba(0, 210, 255, 0.5);
  }
  20%, 24%, 55% {
      opacity: 0.6;
      text-shadow: 
        0 0 2px var(--electric-blue),
        0 0 5px var(--electric-blue);
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  font-style: italic;
}

.nav-links a:hover {
  color: var(--electric-blue);
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  padding: 0.5rem 1rem;
  border: var(--chunky-border);
  transition: all 0.2s ease;
}

.cart-icon:hover {
  border: var(--hover-border);
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0px var(--racing-yellow);
}

.cart-badge {
  background-color: var(--racing-yellow);
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: left;
  border-bottom: var(--chunky-border);
  background: linear-gradient(45deg, rgba(0, 210, 255, 0.05), transparent);
}

.hero h1 {
  font-family: 'Tilt Neon', sans-serif;
  font-size: 4.5rem;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 1rem;
  color: transparent;
  -webkit-text-stroke: 2px var(--electric-blue);
  line-height: 1.1;
  text-shadow: 
    0 0 5px var(--electric-blue),
    0 0 15px var(--electric-blue),
    0 0 30px rgba(0, 210, 255, 0.5);
  animation: realistic-flicker 4s infinite alternate;
}

.hero p {
  font-family: 'Russo One', sans-serif;
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.hero-promo-box {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  border: 2px solid #ef4444; /* Striking red border */
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  box-shadow: 6px 6px 0px #ef4444;
  transform: skewX(-5deg); /* Racing slant */
  transition: all 0.3s ease;
}

.hero-promo-box:hover {
  transform: skewX(-5deg) translate(-4px, -4px);
  box-shadow: 10px 10px 0px #ef4444;
}

.promo-title {
  font-family: 'Russo One', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
  font-style: normal;
}

.highlight-red {
  color: #ef4444;
  font-size: 2.2rem;
  display: block;
  margin-top: 0.2rem;
  text-shadow: 2px 2px 0px #000;
}

.promo-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  transform: skewX(5deg); /* Counter-skew so text is readable */
}

.promo-form {
  display: flex;
  gap: 0.5rem;
  transform: skewX(5deg); /* Counter-skew so form is straight inside the slanted box */
}

.promo-input {
  flex-grow: 1;
  padding: 0.8rem;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  font-family: inherit;
  outline: none;
  font-size: 0.9rem;
}

.promo-input:focus {
  border-color: #ef4444;
}

.btn-red {
  background-color: #ef4444;
  border-color: #ef4444;
  color: #fff;
  padding: 0.8rem 1.5rem;
}

.btn-red:hover {
  background-color: #fff;
  color: #ef4444;
  border-color: #fff;
  box-shadow: 4px 4px 0px #ef4444;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--electric-blue);
  color: #000;
  padding: 0.8rem 2rem;
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  font-style: italic;
  border: 2px solid var(--electric-blue);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: #fff;
  border-color: #fff;
  transform: translate(-4px, -4px);
  box-shadow: var(--y2k-shadow);
}

.btn-yellow {
  background-color: var(--racing-yellow);
  border-color: var(--racing-yellow);
}
.btn-yellow:hover {
  background-color: #fff;
  border-color: #fff;
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0px var(--electric-blue); /* Inverse shadow color */
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: var(--card-bg);
  border: var(--chunky-border);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Subtle corner cut aesthetic for cards */
.product-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  border-width: 0 15px 15px 0;
  border-style: solid;
  border-color: var(--bg-color) var(--bg-color) transparent transparent;
}

.product-card:hover {
  border: var(--hover-border);
  transform: translate(-4px, -4px);
  box-shadow: var(--y2k-shadow);
}

.product-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-bottom: var(--chunky-border);
}

.product-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: 1px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 0.5rem;
  color: #fff;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--racing-yellow);
  margin-top: auto;
}

/* Forms */
.form-control, .select-box, .search-input {
  width: 100%;
  padding: 0.8rem;
  background: #000;
  border: var(--chunky-border);
  color: #fff;
  font-family: inherit;
  transition: all 0.2s;
}

.form-control:focus, .select-box:focus, .search-input:focus {
  outline: none;
  border-color: var(--electric-blue);
  box-shadow: 2px 2px 0px var(--electric-blue);
}

/* Utilities */
.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 900;
  color: #fff;
  border-left: 4px solid var(--electric-blue);
  padding-left: 1rem;
}

/* Footer */
.footer {
  margin-top: auto;
  background-color: #000;
  padding: 3rem 0;
  border-top: var(--chunky-border);
  text-align: center;
}

/* Linktree Page Styles */
.links-page-body {
  background-image: none; /* Cleaner background for mobile focus */
  background: radial-gradient(circle at center, #11141a 0%, #050608 100%);
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers horizontally in a column layout */
  justify-content: flex-start;
}

.linktree-container {
  width: 100%;
  max-width: 600px;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Profile */
.profile-section {
  text-align: center;
}
.avatar-wrapper {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid var(--electric-blue);
  margin: 0 auto 1.5rem;
  box-shadow: 
    0 0 15px 2px var(--electric-blue),
    0 0 40px 10px rgba(0, 210, 255, 0.5);
  overflow: hidden;
}
.linktree-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-name {
  font-family: 'Tilt Neon', sans-serif;
  font-size: 2.5rem;
  color: #fff;
  -webkit-text-stroke: 1px rgba(0, 210, 255, 0.7);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-shadow: 
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px var(--electric-blue),
    0 0 40px var(--electric-blue);
  animation: flicker 4s infinite alternate;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow: 
      0 0 5px #fff,
      0 0 10px #fff,
      0 0 20px var(--electric-blue),
      0 0 40px var(--electric-blue);
    opacity: 1;
  }
  20%, 24%, 55% {
    text-shadow: 0 0 2px var(--electric-blue);
    opacity: 0.8;
  }
}
.profile-bio {
  color: var(--racing-yellow);
  font-family: 'Russo One', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}
.highlight-2000s {
  text-shadow: 2px 2px 0px #ff003c;
  font-size: 1.1em;
  text-transform: none;
}

/* Social Media Icons */
.social-icons-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.social-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-primary);
  transition: all 0.2s ease;
}
.social-icon-item:hover {
  color: var(--electric-blue);
  transform: translateY(-2px);
}
.social-icon {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  background: var(--card-bg);
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 2px solid #2a2e38;
  transition: all 0.2s ease;
}
.social-icon-item:hover .social-icon {
  border-color: var(--electric-blue);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}
.social-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* CRM Form */
.crm-capture-box {
  background: var(--card-bg);
  border: 2px solid var(--electric-blue);
  padding: 2rem;
  text-align: center;
  box-shadow: 4px 4px 0px var(--electric-blue);
  position: relative;
}
.crm-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Russo One', sans-serif;
  color: #fff;
}
.crm-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.crm-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.crm-submit {
  width: 100%;
}
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.success-msg {
  color: var(--racing-yellow);
  margin: 2rem 0;
  font-size: 1.2rem;
}
.hidden {
  display: none !important;
}

/* Links */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.links-category-title {
  font-size: 1.1rem;
  color: var(--electric-blue);
  margin: 1.5rem 0 0.5rem;
  text-align: center;
  font-family: 'Russo One', sans-serif;
}
.link-block {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border: var(--chunky-border);
  padding: 1.2rem;
  transition: all 0.2s ease;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-style: italic;
  justify-content: center;
  gap: 0.8rem;
}
.link-block:hover {
  border: var(--hover-border);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0px var(--racing-yellow);
  color: var(--electric-blue);
}
.link-icon {
  font-size: 1.4rem;
}

/* Products in Links */
.link-block.affiliate-link, .link-block.digital-link {
  flex-direction: row;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
}
.link-product-img {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-right: var(--chunky-border);
}
.link-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.link-product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.link-subtext {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: none;
  font-weight: 600;
  font-style: normal;
  margin-top: 0.3rem;
}
.link-price {
  color: var(--racing-yellow);
  font-size: 1rem;
  font-weight: 900;
  margin-top: 0.2rem;
}

.linktree-footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 2rem;
}

/* Coming Soon Box */
.coming-soon-box {
  background-color: var(--card-bg);
  border: var(--chunky-border);
  padding: 1.5rem;
  text-align: center;
  color: #fff;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}
.coming-soon-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: normal;
  text-transform: none;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Buy Now Tag */
.buy-now-tag {
  background-color: #00ffaa;
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  display: inline-block;
  animation: pulse-green 1.5s infinite;
  vertical-align: middle;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 255, 170, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 170, 0);
  }
}
