/* Global CSS - mannatec.it Modern Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: rgba(30, 41, 59, 0.7);
  --border-card: rgba(255, 255, 255, 0.08);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-blue: #06b6d4;      /* Electric Cyan */
  --accent-orange: #f97316;    /* Bright Amber/Orange */
  --accent-green: #10b981;     /* Success/Active Green */
  
  --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #f97316 0%, #e11d48 100%);
  --gradient-dark: linear-gradient(180deg, #0b0f19 0%, #111827 100%);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* UI Elements */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width-content: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  background-image: var(--gradient-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  background: linear-gradient(120deg, #fff 40%, var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--text-primary);
}

/* Base Layout */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3rem 0;
  position: relative;
}

/* Header & Navigation */
header {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.logo-subtitle {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 0.5rem;
}

/* Menu desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Dropdown Menu Styles */
.nav-item {
  position: relative;
}

.dropdown {
  position: relative;
}


.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  min-width: 240px;
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 101;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 0.6rem 1.2rem;
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding-left: 1.5rem;
}


/* Contact CTA in Header */
.header-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tel-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tel-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Menu Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.btn-accent {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
  color: white;
}

/* Cards & Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
  font-size: 1.5rem;
}

.card-title {
  margin-bottom: 0.75rem;
}

/* Service Image Circle Frame */
.service-icon-frame {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--accent-blue);
  overflow: hidden;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  transition: var(--transition-smooth);
}

.service-icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card:hover .service-icon-frame img {
  transform: scale(1.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
  background: rgba(15, 23, 42, 0.9);
}

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

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 2rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  z-index: 2;
}

.hero-tagline {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-orange);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  max-width: 100%;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Callout Section / Banner */
.banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

/* Calculator Specific Styles */
.calculator-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.calc-results {
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-card);
  height: fit-content;
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.calc-result-value {
  font-weight: 700;
  color: var(--accent-blue);
}

.calc-result-total {
  font-size: 1.3rem;
  color: var(--text-primary);
  border-top: 2px solid var(--accent-blue);
  padding-top: 1rem;
  margin-top: 1rem;
}

.calc-result-total .calc-result-value {
  color: var(--accent-orange);
  font-size: 1.5rem;
}

/* Info List / Why Choose Us */
.feature-list {
  list-style: none;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-card);
  padding: 4rem 0 2rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links-title {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-blue);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-image-container {
    order: -1; /* Sposta l'immagine SOPRA il testo */
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .hero-image-wrapper {
    max-width: 100%;
    width: 100%;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero-image-container {
    width: calc(100% + 3rem) !important;
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
  }
  
  .hero-image-wrapper {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  header {
    height: 80px;
  }
  
  .header-container {
    height: 80px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    gap: 0.85rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-card);
    z-index: 99;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }

  .nav-menu > li {
    width: 100%;
  }

  .nav-menu .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-heading);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  .nav-menu .nav-link:hover, .nav-menu .nav-link.active {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
  }
  
  .header-cta {
    display: none; /* Hide phone call in header on small screens, rely on menu or pages */
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  /* Dropdown mobile behaviour - 2 Column Grid for faster actions */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    border-radius: 0;
  }
  
  .dropdown.active .dropdown-menu {
    max-height: 800px;
    padding: 0.75rem 0 0.25rem 0;
    margin-top: 0.5rem;
  }
  
  .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    transition: var(--transition-smooth);
  }
  
  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding-left: 0.5rem;
  }

  .mobile-menu-cta {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-btn-tel {
    width: 100%;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius-pill);
  }

  .mobile-menu-btn-wa {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    border-radius: var(--radius-pill);
  }
  
  /* Hero buttons alignment */
  .hero-buttons {
    justify-content: center;
  }
  
  /* Featured cards and container layouts */
  .card {
    padding: 1.5rem;
  }
  
  .card-featured {
    padding: 1.5rem;
  }
  
  .calculator-container {
    padding: 1.5rem;
  }
  
  /* Services Table conversion for mobile */
  .services-table-wrapper {
    padding: 1.5rem 1rem !important;
    margin-top: 2.5rem !important;
  }
  
  .services-table, 
  .services-table thead, 
  .services-table tbody, 
  .services-table th, 
  .services-table td, 
  .services-table tr {
    display: block;
    width: 100%;
  }
  
  .services-table thead {
    display: none;
  }
  
  .services-table tr {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-card);
  }
  
  .services-table tr:last-child {
    border-bottom: none;
  }
  
  .services-table td {
    padding: 0.25rem 0;
    border: none;
    text-align: left !important;
  }
  
  .services-table td:nth-child(1) {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-blue);
  }
  
  .services-table td:nth-child(2) {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
  }
  
  .services-table td:nth-child(3) {
    padding-top: 0.5rem;
  }
}

/* Mobile menu CTA block (hidden on desktop) */
.mobile-menu-cta {
  display: none !important;
}

/* Card in evidenza (Featured) */
.card-featured {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-smooth);
}

.card-featured:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.card-featured.blue {
  border: 2px solid var(--accent-blue);
}

.card-featured.orange {
  border: 2px solid var(--accent-orange);
}

/* Services Table layout base */
.services-table-wrapper {
  margin-top: 4rem;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-card);
}

.services-table-title {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--accent-blue);
}

.services-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.services-table th, .services-table td {
  padding: 1rem 0.5rem;
}

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

.services-table thead tr {
  border-bottom: 2px solid var(--border-card);
  color: var(--accent-orange);
  font-size: 0.95rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-accent-blue { color: var(--accent-blue); }
.text-accent-orange { color: var(--accent-orange); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.py-4 { padding: 4rem 0; }
.w-100 { width: 100%; }

/* Cookie Consent Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid var(--accent-blue);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem 0;
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-banner-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.cookie-banner-info {
  flex: 1;
}

.cookie-banner-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.cookie-banner-text a {
  color: var(--accent-blue);
  text-decoration: underline;
  transition: var(--transition-smooth);
}

.cookie-banner-text a:hover {
  color: var(--text-primary);
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 576px) {
  .cookie-banner-buttons {
    width: 100%;
  }
  .cookie-banner-buttons .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
  }
}

.cookie-banner-buttons .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cookie-banner-buttons .btn-accept {
  background: var(--accent-blue);
  color: var(--bg-primary);
  border: 1px solid var(--accent-blue);
}

.cookie-banner-buttons .btn-accept:hover {
  background: transparent;
  color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.cookie-banner-buttons .btn-reject {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

.cookie-banner-buttons .btn-reject:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

.cookie-banner-buttons .btn-settings {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  text-decoration: underline;
}

.cookie-banner-buttons .btn-settings:hover {
  color: var(--text-primary);
}

/* Cookie Preferences Panel */
.cookie-preferences {
  display: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1rem;
}

.cookie-preferences.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.cookie-pref-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-pref-group:last-child {
  border-bottom: none;
}

.cookie-pref-checkbox-wrapper {
  margin-top: 0.2rem;
}

.cookie-pref-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-muted);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.cookie-pref-checkbox:checked {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.cookie-pref-checkbox:disabled {
  background: var(--text-muted);
  border-color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-pref-checkbox:checked::after {
  content: '✓';
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: bold;
}

.cookie-pref-details h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cookie-pref-details p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.4;
}

.cookie-pref-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.cookie-pref-actions .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Floating Cookie Consent Badge */
.cookie-consent-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  cursor: pointer;
  z-index: 9999;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cookie-consent-badge:hover {
  transform: scale(1.1);
  color: var(--text-primary);
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
}

.cookie-consent-badge svg {
  width: 20px;
  height: 20px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


