/* MedicoInSala – Fresh Modern Design (Coral/Warm palette inspired by foodbarrio.com) */

:root {
  color-scheme: light;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-weird: 16px 20px 15px 22px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
  --max: 1080px;

  /* Fresh warm palette */
  --bg: #FFFAF8;
  --ink: #1a1a2e;
  --ink-soft: #64748b;
  --border: #f0e6e0;
  --border-strong: #e5d5cc;
  --surface: #ffffff;
  --surface-2: #FFF5F0;
  --surface-warm: linear-gradient(135deg, #FFF5F0 0%, #FFFAF8 100%);
  --shadow: 0 8px 30px rgba(255, 107, 71, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 16px 50px rgba(255, 107, 71, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);

  /* Primary coral/orange palette */
  --c-primary: #FF6B47;
  --c-primary-dark: #E55A38;
  --c-primary-light: #FF8B6B;
  --c-secondary: #2DD4BF;
  --c-secondary-dark: #14b8a6;
  --c-accent: #FFB347;
  
  /* Supporting colors */
  --c-teal: #2DD4BF;
  --c-blue: #6366F1;
  --c-sky: #38BDF8;
  --c-violet: #A78BFA;
  --c-amber: #FBBF24;
  --c-rose: #FB7185;
  --c-green: #34D399;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #FF6B47 0%, #FFB347 100%);
  --gradient-hero: linear-gradient(135deg, #FF6B47 0%, #FF8B6B 50%, #FFB347 100%);
  --gradient-teal: linear-gradient(135deg, #2DD4BF 0%, #38BDF8 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  /* Warm coral-tinted background blobs */
  background-image:
    radial-gradient(closest-side, rgba(255,107,71,0.08), transparent 72%),
    radial-gradient(closest-side, rgba(45,212,191,0.06), transparent 72%),
    radial-gradient(closest-side, rgba(255,179,71,0.08), transparent 75%);
  background-size: 800px 800px, 700px 700px, 900px 900px;
  background-position: -250px -180px, calc(100% + 200px) 80px, 50% calc(100% + 300px);
  min-height: 100vh;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--c-primary-dark);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-4);
}

/* ==========================================
   HEADER & NAVIGATION - Fresh Design
   ========================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 250, 248, 0.92);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.topbar.scrolled {
  box-shadow: 0 4px 20px rgba(255, 107, 71, 0.08);
}

/* No gradient overlay - clean look */
.topbar::before {
  display: none;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  gap: var(--space-3);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(255, 107, 71, 0.3);
}

.mark svg {
  display: block;
  width: 22px;
  height: 22px;
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.badge {
  display: none; /* Hide the B2B badge for cleaner look on main site */
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-desktop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  height: 38px;
  box-sizing: border-box;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: transparent;
  border: 2px solid transparent;
  white-space: nowrap;
}

.nav-desktop a:hover {
  background: var(--surface-2);
  color: var(--c-primary);
}

.nav-desktop a.nav-primary {
  background: var(--gradient-primary);
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(255, 107, 71, 0.25);
}

.nav-desktop a.nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 71, 0.35);
}

.nav-desktop a.nav-secondary {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}

.nav-desktop a.nav-secondary:hover {
  background: var(--c-primary);
  color: white;
}

/* Nav separator */
.nav-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 8px;
}

/* Language Selector */
.lang-selector {
  position: relative;
  margin-left: 8px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  height: 40px;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.lang-btn:hover {
  border-color: var(--c-primary);
  background: var(--surface-2);
}

.lang-btn svg {
  transition: transform 0.2s ease;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 8px;
  min-width: 180px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

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

.lang-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lang-dropdown a:hover {
  background: var(--surface-2);
  color: var(--c-primary);
}

.lang-dropdown a.active {
  background: var(--gradient-primary);
  color: white;
}

/* RTL Language Support */
html[dir="rtl"] .lang-dropdown {
  left: 0;
  right: auto;
}

/* Hamburger Menu */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Drawer */
.nav-mobile {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-mobile.active {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: var(--surface);
  padding: var(--space-5) var(--space-4);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.nav-mobile.active .nav-mobile-content {
  transform: translateX(0);
}

.nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.nav-mobile-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}

.nav-mobile-section {
  margin-bottom: var(--space-4);
}

.nav-mobile-section h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-soft);
  margin: 0 0 var(--space-2);
}

.nav-mobile-section a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 6px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-mobile-section a:hover {
  background: var(--surface-2);
  color: var(--c-primary);
}

.nav-mobile-section a.btn-mobile-primary {
  background: var(--gradient-primary);
  color: white;
  justify-content: center;
  margin-top: var(--space-2);
}

.nav-mobile-section a svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* Mobile language grid */
.lang-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.lang-mobile-grid a {
  padding: 10px 12px;
  font-size: 13px;
  text-align: center;
  justify-content: center;
}

.lang-mobile-grid a.active {
  background: var(--gradient-primary);
  color: white;
}

/* Hide original nav, use new structure */
.topbar > .container > nav {
  display: none;
}

.hero {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5) 0;
}

.hero-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
  }
}

.hero h2 {
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.5px;
  font-weight: 800;
  color: var(--ink);
}

.hero h2 span {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: var(--space-2);
}

.hero p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.hero-illu {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: white;
  padding: var(--space-4);
  box-shadow: var(--shadow);
  position: relative;
  overflow: clip;
}

.hero-illu::after {
  content: "";
  position: absolute;
  inset: -50px;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,107,71,0.12), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(45,212,191,0.10), transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(255,179,71,0.12), transparent 50%);
  opacity: 1;
}

.hero-illu svg {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--border-strong);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(255, 107, 71, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(255, 107, 71, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
}

.btn-secondary:hover {
  background: var(--c-primary);
  color: white;
  border-color: var(--c-primary);
}

.btn-teal {
  background: var(--gradient-teal);
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(45, 212, 191, 0.3);
}

.btn-teal:hover {
  box-shadow: 0 8px 28px rgba(45, 212, 191, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.4);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.cancel-request-section {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* Chat Section */
.chat-section {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.chat-container {
  border: 1px solid #d1d7db;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 500px;
}

.chat-header {
  background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.chat-header-info {
  flex: 1;
}

.chat-header-name {
  font-weight: 600;
  font-size: 16px;
}

.chat-header-status {
  font-size: 13px;
  opacity: 0.9;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #e5ddd5;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.03"><text x="10" y="50" font-size="80" fill="%23000">💬</text></svg>');
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-loading {
  text-align: center;
  padding: 12px;
  color: #667781;
  font-size: 13px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 65%;
  animation: messageSlideIn 0.15s ease-out;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.chat-message-user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message-professional {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-message-content {
  padding: 8px 12px;
  border-radius: 8px;
  word-wrap: break-word;
  white-space: pre-wrap;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}

.chat-message-user .chat-message-content {
  background: #dcf8c6;
  color: #000;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 8px;
}

.chat-message-professional .chat-message-content {
  background: #fff;
  color: #000;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 8px;
}

.chat-message-time {
  font-size: 11px;
  color: #667781;
  margin-top: 2px;
  padding: 0 4px;
  text-align: right;
}

.chat-message-user .chat-message-time {
  color: #667781;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid #d1d7db;
  background: #f0f2f5;
  align-items: center;
}

.chat-input textarea {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 20px;
  font-family: inherit;
  font-size: 15px;
  resize: none;
  background: white;
  max-height: 100px;
  min-height: 40px;
}

.chat-input textarea:focus {
  outline: none;
}

.chat-input button {
  background: #128C7E;
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-input button:hover {
  background: #075E54;
  transform: scale(1.05);
}

.chat-input button:active {
  transform: scale(0.95);
}

.chat-input button svg {
  width: 24px;
  height: 24px;
}

.topbar-old-style {
  /* Preserved for reference - now using new header */
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border);
}

/* graphic header garnish - now disabled */
.topbar-old-style::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 8% 10%, rgba(255,107,71,0.12), transparent 48%),
    radial-gradient(circle at 70% 25%, rgba(45,212,191,0.12), transparent 52%),
    radial-gradient(circle at 92% 70%, rgba(255,179,71,0.10), transparent 52%);
  opacity: 1;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.brand-old {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand-title-old {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mark-old {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,107,71,0.20), rgba(45,212,191,0.18));
  color: var(--c-primary);
  display: grid;
  place-items: center;
}

.mark-old svg {
  display: block;
}

.brand-old h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.badge-old {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* Old nav - replaced with new navigation structure */
nav.old-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: var(--space-2) 0;
}

nav.old-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  position: relative;
}
nav.old-nav a:hover {
  border-color: var(--border);
  background: var(--surface);
}

main {
  padding: var(--space-4) 0;
  min-height: 60vh;
}

h2 { 
  margin: 0 0 var(--space-3); 
  font-size: 28px; 
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
}
h3 { 
  margin: var(--space-4) 0 var(--space-2); 
  font-size: 18px;
  font-weight: 600;
}

p { margin: 0 0 var(--space-3); color: var(--ink-soft); }

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow);
  position: relative;
  overflow: clip;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

/* graphic corner accent - updated to coral tones */
.card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 71, 0.08);
  background:
    radial-gradient(circle at 35% 35%, rgba(255,107,71,0.10), transparent 62%),
    radial-gradient(circle at 70% 60%, rgba(255,179,71,0.08), transparent 62%);
  opacity: 0.7;
  pointer-events: none;
}
.flash {
  border: 1px solid rgba(255, 107, 71, 0.2);
  background: linear-gradient(135deg, rgba(255, 107, 71, 0.08), rgba(255, 179, 71, 0.06));
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
  color: var(--ink);
}

form {
  display: grid;
  gap: var(--space-3);
  max-width: 540px;
}

label { 
  font-size: 14px; 
  color: var(--ink);
  font-weight: 500;
  margin-bottom: -6px;
}

input, button {
  font: inherit;
}

input {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  outline: none;
  font-size: 15px;
  transition: all 0.2s ease;
}
input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 71, 0.1);
}

input::placeholder {
  color: var(--ink-soft);
  opacity: 0.6;
}

button {
  justify-self: start;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  background: var(--gradient-primary);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(255, 107, 71, 0.25);
  transition: all 0.25s ease;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 71, 0.35);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.table th, .table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.table th {
  background: var(--surface-2);
  font-size: 13px;
}
.table tr:last-child td { border-bottom: 0; }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}

.kicker {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.footer {
  padding: var(--space-5) 0;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: var(--space-5);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

@media (max-width: 900px) {
  .hero h2 {
    font-size: 32px;
  }
  .hero-grid {
    gap: var(--space-4);
  }
  
  /* Compact desktop nav for medium screens */
  .nav-desktop a {
    padding: 6px 12px;
    font-size: 12px;
    height: 36px;
  }
  
  .nav-desktop {
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 15px;
  }
  
  .card {
    padding: var(--space-4);
    border-radius: var(--radius);
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
  
  .hero h2 {
    font-size: 24px;
  }
  
  .brand h1 {
    font-size: 18px;
  }
  
  .mark {
    width: 36px;
    height: 36px;
  }
  
  .mark svg {
    width: 18px;
    height: 18px;
  }
}

/* Tiny sgarzellin touch: subtle effects */
@media (prefers-reduced-motion: no-preference) {
  .card:hover { 
    transform: translateY(-2px); 
    transition: all 0.3s ease; 
  }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover, nav a:hover { transform: none; transition: none; }
}

/* ========================================
   Association Admin Panel Styles
   ======================================== */

.assoc-topbar {
  background: rgba(15, 23, 42, 0.96);
  color: #f1f5f9;
  backdrop-filter: blur(12px);
}
.assoc-topbar::before {
  background-image:
    radial-gradient(circle at 8% 10%, rgba(20,184,166,0.25), transparent 48%),
    radial-gradient(circle at 70% 25%, rgba(59,130,246,0.22), transparent 52%);
}
.assoc-topbar .brand h1,
.assoc-topbar .badge,
.assoc-topbar nav a {
  color: #f1f5f9;
}
.assoc-topbar .badge {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.assoc-topbar nav a:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.assoc-topbar .mark {
  background: linear-gradient(135deg, rgba(20,184,166,0.35), rgba(59,130,246,0.30));
  border-color: rgba(255,255,255,0.2);
  color: #f1f5f9;
}

.assoc-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.assoc-nav {
  flex-wrap: wrap;
}

.assoc-main {
  min-height: 70vh;
}

/* Period selector */
.period-selector {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-4);
}
.period-selector a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  font-size: 13px;
}
.period-selector a:hover {
  border-color: var(--border-strong);
}
.period-selector a.active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: center;
}
.stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.stat-detail {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 6px;
  opacity: 0.8;
}

/* Quick actions */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-4);
}

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  font-size: 14px;
  margin-bottom: var(--space-3);
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.data-table tbody tr:hover {
  background: var(--surface-2);
}
.data-table tr:last-child td {
  border-bottom: 0;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-open,
.status-scheduled {
  background: rgba(59,130,246,0.12);
  color: var(--c-blue);
}
.status-accepted,
.status-active,
.status-in_progress {
  background: rgba(245,158,11,0.12);
  color: var(--c-amber);
}
.status-completed {
  background: rgba(20,184,166,0.12);
  color: var(--c-teal);
}
.status-canceled,
.status-expired,
.status-suspended,
.status-inactive {
  background: rgba(244,63,94,0.12);
  color: var(--c-rose);
}

/* Select inputs */
select {
  font: inherit;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}
select:focus {
  border-color: var(--border-strong);
}

/* Association public listing */
.assoc-list {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.assoc-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.assoc-card h3 {
  margin: 0;
  font-size: 18px;
}
.assoc-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}
.assoc-region {
  font-size: 13px;
  color: var(--ink-soft);
}
.assoc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--ink-soft);
}
.assoc-stats span {
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 20px;
}
.assoc-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
}
.assoc-actions .btn {
  flex: 1;
  text-align: center;
  font-size: 13px;
  padding: 8px 12px;
}
.become-assoc {
  text-align: center;
  background: var(--surface-2);
}
.become-assoc h3 {
  margin: 0 0 var(--space-2);
}

/* Star rating input */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: var(--space-2);
}
.star-rating input {
  display: none;
}
.star-rating label {
  cursor: pointer;
  font-size: 28px;
  color: var(--border);
  transition: color 0.1s;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--c-amber);
}

/* Required field marker */
.required {
  color: var(--c-rose);
}

/* Review prompt */
.review-prompt {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

/* Mobile-friendly button secondary style */
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

/* Textarea styling */
textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  outline: none;
  resize: vertical;
  width: 100%;
  min-height: 80px;
}
textarea:focus {
  border-color: var(--border-strong);
}

/* ===========================================
   MOBILE-FRIENDLY PHYSICIAN APP ENHANCEMENTS
   =========================================== */

/* Bottom navigation bar for physicians (mobile) */
.physician-nav-bottom {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.physician-nav-bottom nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.physician-nav-bottom a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
}
.physician-nav-bottom a.active {
  color: var(--c-blue);
}
.physician-nav-bottom svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  .physician-nav-bottom {
    display: block;
  }
  body.physician-app {
    padding-bottom: 80px;
  }
  body.physician-app .topbar nav {
    display: none;
  }
}

/* Offer cards for mobile - swipe-friendly */
.offer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow);
}
.offer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}
.offer-distance {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-blue);
}
.offer-distance-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
}
.offer-time {
  font-size: 12px;
  color: var(--ink-soft);
}
.offer-symptoms {
  font-size: 14px;
  margin-bottom: var(--space-3);
  padding: var(--space-2);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.offer-actions {
  display: flex;
  gap: var(--space-2);
}
.offer-actions .btn {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
}
.btn-accept {
  background: var(--c-teal);
  color: white;
  font-weight: 600;
}
.btn-accept:hover {
  background: #0d9488;
}
.btn-decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-soft);
}

/* Active job card - prominent */
.job-card {
  background: linear-gradient(135deg, var(--c-blue), var(--c-sky));
  color: white;
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.job-card h3 {
  margin: 0 0 var(--space-2);
  font-size: 18px;
}
.job-card .job-status {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.job-card-details {
  margin: var(--space-3) 0;
  font-size: 14px;
  opacity: 0.9;
}
.job-pin-section {
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-top: var(--space-3);
}
.job-pin-section label {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
}
.job-pin-section input {
  background: rgba(255,255,255,0.95);
  border: none;
  font-size: 18px;
  text-align: center;
  letter-spacing: 4px;
  font-weight: 600;
  width: 100%;
  margin-bottom: var(--space-2);
}
.job-card .btn {
  background: white;
  color: var(--c-blue);
  font-weight: 600;
  width: 100%;
}

/* Quick status toggle (availability) */
.availability-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}
.availability-toggle label {
  flex: 1;
  font-size: 14px;
  margin: 0;
}
.toggle-switch {
  position: relative;
  width: 50px;
  height: 28px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-strong);
  border-radius: 28px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--c-teal);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

/* Big action button (floating) */
.fab {
  position: fixed;
  bottom: 100px;
  right: var(--space-4);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-blue);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
}
.fab svg {
  width: 24px;
  height: 24px;
}
@media (min-width: 641px) {
  .fab {
    display: none;
  }
}

/* Pull to refresh indicator */
.pull-indicator {
  text-align: center;
  padding: var(--space-2);
  color: var(--ink-soft);
  font-size: 13px;
  display: none;
}
.pull-indicator.visible {
  display: block;
}

/* Location status bar */
.location-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: var(--space-3);
}
.location-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-teal);
  animation: pulse 2s infinite;
}
.location-dot.stale {
  background: var(--c-amber);
}
.location-dot.offline {
  background: var(--c-rose);
  animation: none;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.location-bar span {
  flex: 1;
}
.location-bar a {
  font-size: 12px;
}

/* Earnings widget compact */
.earnings-widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.earnings-widget .stat-card {
  padding: var(--space-2) var(--space-3);
}
.earnings-widget .stat-value {
  font-size: 18px;
}
.earnings-widget .stat-label {
  font-size: 11px;
}

/* Touch-friendly inputs */
@media (max-width: 640px) {
  input, select, textarea {
    font-size: 16px; /* Prevent iOS zoom */
    padding: 12px;
  }
  button, .btn {
    padding: 14px 16px;
    font-size: 15px;
  }
}

/* Safe area padding for notch devices */
@supports (padding: env(safe-area-inset-top)) {
  .topbar {
    padding-top: max(var(--space-3), env(safe-area-inset-top));
  }
  .container {
    padding-left: max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
  }
}

/* ==========================================
   SUBSCRIPTION PLANS
   ========================================== */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.plan-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  position: relative;
  transition: all 0.3s ease;
}

.plan-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.plan-card.premium {
  border-color: var(--c-accent);
  background: linear-gradient(180deg, #FFF9F0 0%, var(--surface) 100%);
}

.plan-card.current {
  border-color: var(--c-primary);
  background: linear-gradient(180deg, rgba(255,107,71,0.05) 0%, var(--surface) 100%);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--gradient-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.plan-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}

.plan-price {
  margin-bottom: var(--space-3);
}

.price-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--c-primary);
}

.price-period {
  font-size: 14px;
  color: var(--ink-soft);
  margin-left: 4px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}

.plan-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-btn {
  width: 100%;
}

.plan-current-label {
  text-align: center;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-weight: 600;
}

.current-plan {
  background: linear-gradient(135deg, rgba(255,107,71,0.08) 0%, rgba(45,212,191,0.06) 100%);
  border-left: 4px solid var(--c-primary);
  margin-bottom: var(--space-4);
}

.current-plan .plan-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: var(--space-2);
}

.current-plan .plan-status {
  display: inline-block;
  margin-bottom: var(--space-2);
}

.current-plan .plan-usage,
.current-plan .plan-expires {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: var(--space-1);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: rgba(52, 211, 153, 0.15);
  color: #059669;
}

.badge-info {
  background: rgba(56, 189, 248, 0.15);
  color: #0284c7;
}

.badge-gray {
  background: var(--surface-2);
  color: var(--ink-soft);
}

.badge-gold {
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  color: #78350F;
}

/* ==========================================
   MULTI-PROFESSIONAL ELEMENTS
   ========================================== */

.hero-also {
  margin-top: var(--space-3);
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
}

.professionals-callout {
  margin-top: var(--space-4);
  background: linear-gradient(135deg, rgba(45,212,191,0.08) 0%, rgba(255,107,71,0.05) 100%);
  border-left: 4px solid var(--c-secondary);
}

.professionals-content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.professionals-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--c-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.professionals-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.professionals-text {
  flex: 1;
  min-width: 200px;
}

.professionals-text h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--ink);
}

.professionals-text p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.professionals-callout .btn {
  flex-shrink: 0;
}

.subtitle {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: var(--space-3);
}

@media (max-width: 640px) {
  .professionals-content {
    flex-direction: column;
    text-align: center;
  }
  
  .professionals-callout .btn {
    width: 100%;
  }
}

/* ===== Cookie Consent Banner (EU GDPR / Garante Privacy) ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #fff;
  border-top: 2px solid var(--border-card, #e5e7eb);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  padding: 0;
  animation: cookieSlideUp 0.35s ease-out;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.cookie-banner-text {
  flex: 1 1 400px;
}
.cookie-banner-text h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--text-dark, #1a1a1a);
}
.cookie-banner-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted, #666);
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner-actions .btn {
  white-space: nowrap;
  font-size: 0.9rem;
  padding: 8px 18px;
}
.cookie-banner-actions .btn-link {
  background: none;
  border: none;
  color: var(--primary, #FF6B47);
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: cookieFadeIn 0.2s ease;
}
@keyframes cookieFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px 12px;
  border-bottom: 1px solid var(--border-card, #e5e7eb);
}
.cookie-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted, #888);
  padding: 0 4px;
  line-height: 1;
}
.cookie-modal-body {
  padding: 16px 24px;
}
.cookie-modal-body > p {
  font-size: 0.88rem;
  color: var(--text-muted, #666);
  margin: 0 0 16px;
  line-height: 1.5;
}
.cookie-category {
  border: 1px solid var(--border-card, #e5e7eb);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cookie-category-header label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}
.cookie-category-header input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary, #FF6B47);
}
.cookie-badge {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 99px;
  font-weight: 600;
}
.cookie-always {
  background: #d1fae5;
  color: #065f46;
}
.cookie-category-desc {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted, #888);
  line-height: 1.45;
}
.cookie-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--border-card, #e5e7eb);
}

/* ===== GDPR Consent Fieldset (signup/subscription) ===== */
.gdpr-consents {
  border: 1px solid var(--border-card, #e5e7eb);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
  background: #fafbfc;
}
.gdpr-consents legend {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 8px;
  color: var(--text-dark, #1a1a1a);
}
.consent-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.consent-item:last-of-type {
  border-bottom: none;
}
.consent-item label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.5;
}
.consent-item input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--primary, #FF6B47);
  flex-shrink: 0;
}
.consent-item a {
  color: var(--primary, #FF6B47);
  text-decoration: underline;
}
.consent-item .required {
  color: #dc2626;
  font-weight: 700;
}
.consent-item.small {
  padding: 4px 0;
}
.consent-item.small label {
  font-size: 0.82rem;
}

/* ===== Footer with Privacy Links ===== */
.footer {
  text-align: center;
  padding: 20px 16px;
  font-size: 0.85rem;
  color: var(--text-muted, #888);
  border-top: 1px solid var(--border-card, #e5e7eb);
  margin-top: 32px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 8px;
}
.footer-links a {
  color: var(--text-muted, #888);
  text-decoration: underline;
  font-size: 0.82rem;
}
.footer-links a:hover {
  color: var(--primary, #FF6B47);
}

/* ===== Policy Pages ===== */
.policy-page {
  line-height: 1.7;
  font-size: 0.92rem;
}
.policy-page h3 {
  margin-top: 24px;
  font-size: 1.05rem;
  color: var(--text-dark, #1a1a1a);
}
.policy-page h4 {
  margin-top: 16px;
  font-size: 0.95rem;
}
.policy-page ul {
  padding-left: 22px;
}
.policy-page li {
  margin-bottom: 4px;
}
.policy-updated {
  font-size: 0.8rem;
  color: var(--text-muted, #888);
  font-style: italic;
  margin-bottom: 16px;
}

/* Responsive cookie banner */
@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    padding: 16px;
  }
  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  .cookie-banner-actions .btn {
    width: 100%;
    text-align: center;
  }
  .cookie-modal-content {
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
  }
  .cookie-modal {
    align-items: flex-end;
    padding: 0;
  }
}

