/* Aktirak AI Platform - Enhanced Brand CSS with Design System Integration */

/* Brand Color Palette - Official Aktirak Corporate Colors */
:root{
  /* Primary Colors - Main brand identity */
  --brand-navy:#004665;           /* Pantone 4160 CP - Primary navy */
  --brand-orange:#E89743;          /* Pantone 2011 CP - Primary orange accent */
  --white:#FFFFFF;                 /* White */
  
  /* Secondary Colors - Support and accent colors */
  --brand-navy-2:#1B5674;          /* Pantone 2210 CP - Dark teal */
  --brand-blue:#006C9C;            /* Pantone 641 CP - Bright blue */
  --brand-cyan:#17ABDD;            /* Pantone 299 CP - Light cyan */
  --brand-red:#D44835;             /* Pantone 7597 CP - Alert red */
  --brand-gray-50:#E6E9E8;         /* Pantone 427 CP-50% - Lightest gray */
  --brand-gray-200:#BDC4C2;        /* Pantone 428 CP - Medium gray */
  --brand-slate:#38484E;           /* Pantone 432 CP - Dark slate */
  --brand-gun:#222E34;             /* Pantone 433 CP - Darkest gray (corrected from #222E3) */
  
  /* Legacy/deprecated - keeping for backward compatibility */
  --brand-green:#22C55E;           /* Not in brand guidelines - consider replacing */
  
  /* Additional UI Colors mapped to brand palette */
  --text-primary: var(--brand-gun);
  --text-secondary: var(--brand-slate);
  --bg-light: var(--brand-gray-50);
  --border-light: var(--brand-gray-200);
  --brand-blue-light: #DBEAFE;
  --success-color: var(--brand-cyan);  /* Using brand cyan instead of green */
  --danger: var(--brand-red);
  --danger-light: #FEF2F2;
}

/* Base Styles - Consistent with Design System */
*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--brand-gun);
  background:var(--white);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  line-height: 1.6;
}

/* Layout Components - Enhanced from Design System */
.container{
  margin:0 auto;
  padding:0 1rem;
}

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

.grid{
  display:grid;
  gap:1.25rem;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

/* Enhanced Site Header */
.site-header{
  background:var(--white);
  border-bottom:1px solid var(--brand-gray-50);
}

/* Enhanced Site Footer */
.site-footer{
  margin-top:3rem;
  border-top:1px solid var(--brand-gray-50);
  padding:1rem;
  color:var(--brand-slate);
}

/* Enhanced Navigation */
.nav{
  list-style:none;
  display:flex;
  gap:1rem;
  margin:0;
  padding:0;
}

.nav a{
  color:var(--brand-navy);
  text-decoration:none;
}

.nav a:hover{
  text-decoration:underline;
}

/* Enhanced Hero Section */
.hero{
  padding:4rem 0;
  background:linear-gradient(120deg,var(--brand-navy),var(--brand-blue));
  color:var(--white);
  border-bottom:4px solid var(--brand-orange);
}

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

/* Enhanced Button System - Unified with Design System */
.btn{
  display:inline-block;
  padding:0.75rem 1.5rem;
  border-radius:0.5rem;
  border:2px solid transparent;
  font-weight:500;
  text-decoration:none;
  cursor:pointer;
  transition:all 0.2s ease;
  font-size:0.9rem;
  line-height:1.2;
}

.btn.primary, .btn--primary{
  background:var(--brand-orange);
  color:var(--brand-gun);
  border-color:var(--brand-orange);
}

.btn.primary:hover, .btn--primary:hover{
  filter:brightness(0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Cards System */
.cards{
  list-style:none;
  display:grid;
  gap:1.25rem;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  padding:0;
}

.cards li{
  border:1px solid var(--brand-gray-50);
  padding:1.5rem;
  border-radius:0.75rem;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.cards li:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Enhanced Table Styling */
.pricing{
  width:100%;
  border-collapse:collapse;
}

.pricing th,.pricing td{
  border:1px solid var(--brand-gray-50);
  padding:0.75rem;
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-9999px;
}

.skip-link:focus{
  left:1rem;
  top:1rem;
  background:var(--brand-orange);
  color:var(--brand-gun);
  padding:0.5rem;
}

.brand img{
  display:block;
}

/* Ensure logo scales without distortion */
.brand-logo{height:32px;width:auto;display:block}

/* Top Navigation Styling */
.top-nav{background:var(--white);border-bottom:2px solid var(--brand-gray-50);position:sticky;top:0;z-index:100;box-shadow:0 2px 4px rgba(0,0,0,0.1)}
.nav-content{display:flex;align-items:center;justify-content:space-between;padding:0.75rem 0}
.nav-left{display:flex;align-items:center}
.logo-link{display:flex;align-items:center;text-decoration:none;color:var(--brand-navy)}
.logo-link:hover{text-decoration:none}
.nav-right{display:flex;align-items:center}
.nav-links{list-style:none;display:flex;align-items:center;gap:1.5rem;margin:0;padding:0}
.nav-links a{color:var(--brand-navy);text-decoration:none;font-weight:500;transition:color 0.2s}
.nav-links a:hover{color:var(--brand-blue);text-decoration:none}
.logout-form{display:inline;margin:0}
.logout-btn{background:none;border:none;font:inherit;cursor:pointer;padding:0}

/* Dropdown Menu Styles */
.nav-dropdown{position:relative}
.dropdown-toggle{display:flex;align-items:center;cursor:pointer}
.dropdown-toggle:after{content:'▼';margin-left:0.5rem;font-size:0.75rem;transition:transform 0.2s}
.nav-dropdown:hover .dropdown-toggle:after{transform:rotate(180deg)}
.dropdown-menu{position:absolute;top:100%;left:0;background:var(--white);border:1px solid var(--brand-gray-50);border-radius:0.375rem;box-shadow:0 4px 12px rgba(0,0,0,0.15);list-style:none;margin:0.5rem 0 0 0;padding:0.5rem 0;min-width:160px;opacity:0;visibility:hidden;transform:translateY(-8px);transition:all 0.2s;z-index:1000}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown.active .dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}
.nav-dropdown.active .dropdown-toggle:after{transform:rotate(180deg)}
.dropdown-menu li{margin:0}
.dropdown-menu a{display:block;padding:0.5rem 1rem;color:var(--brand-navy);font-weight:400;border-bottom:none}
.dropdown-menu a:hover{background:var(--brand-gray-50);color:var(--brand-blue)}

/* Button variants */
.btn{display:inline-block;padding:0.5rem 1rem;border-radius:0.375rem;text-decoration:none;font-weight:500;transition:all 0.2s;border:1px solid transparent}
.btn.primary{background:var(--brand-orange);color:var(--white);border-color:var(--brand-orange)}
.btn.primary:hover{background:var(--brand-red);border-color:var(--brand-red);color:var(--white);text-decoration:none}
.btn.btn-outline{background:transparent;color:var(--brand-navy);border-color:var(--brand-navy)}
.btn.btn-outline:hover{background:var(--brand-navy);color:var(--white);text-decoration:none}

/* Header Styling */
.site-header{background:linear-gradient(135deg,var(--brand-navy),var(--brand-blue));color:var(--white);padding:2rem 0}
.header-content{text-align:center}
.site-title{font-size:2.5rem;margin:0 0 0.5rem 0;font-weight:700}
.site-description{font-size:1.125rem;margin:0;opacity:0.9}

/* Aktirak Team Access Banner */
.aktirak-banner{background:linear-gradient(90deg,var(--brand-orange),var(--brand-red));border-radius:0.5rem;padding:0.75rem 1rem;margin:1rem 0 0 0;box-shadow:0 2px 8px rgba(232,151,67,0.3)}
.aktirak-banner .site-description{font-size:1rem;font-weight:600;margin:0;opacity:1;color:var(--white)}

/* Main Content */
.main-content{min-height:60vh;padding:2rem 0}

/* Home Page Styling */
.hero-section{text-align:center;margin-bottom:3rem}
.hero-section h2{color:var(--brand-navy);font-size:2rem;margin-bottom:1rem}
.hero-section p{font-size:1.125rem;color:var(--brand-slate);margin-bottom:2rem;max-width:600px;margin-left:auto;margin-right:auto}
.cta-section{margin:2rem 0}
.login-link{margin-top:1rem;color:var(--brand-slate)}
.user-dashboard{background:var(--brand-gray-50);padding:2rem;border-radius:0.5rem;margin:2rem auto;max-width:400px}
.user-dashboard h3{color:var(--brand-navy);margin:0 0 1rem 0}
.dashboard-actions{display:flex;flex-direction:column;gap:0.75rem}

.features-section{margin-top:4rem}
.features-section h3{text-align:center;color:var(--brand-navy);font-size:1.75rem;margin-bottom:2rem}
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2rem;margin-top:2rem}
.feature-card{background:var(--white);border:2px solid var(--brand-gray-50);border-radius:0.5rem;padding:1.5rem;text-align:center;transition:all 0.3s}
.feature-card:hover{border-color:var(--brand-blue);box-shadow:0 4px 12px rgba(0,108,156,0.1);transform:translateY(-2px)}
.feature-card h4{color:var(--brand-navy);margin:0 0 1rem 0;font-size:1.25rem}
.feature-card p{color:var(--brand-slate);margin:0;line-height:1.5}

/* Footer Styling - Matching aktirak.com design */
.site-footer{background:var(--brand-navy);color:var(--white);margin-top:auto;padding:3rem 1rem 1.5rem}
.footer-content{display:grid;grid-template-columns:repeat(5,1fr);gap:2.5rem;max-width:1200px;margin:0 auto;padding-bottom:2rem}
.footer-section{min-width:0}
.footer-section h3{color:var(--brand-orange);margin:0 0 1rem 0;font-size:0.95rem;font-weight:700;text-transform:uppercase;letter-spacing:0.05em}
.footer-section ul{list-style:none;margin:0;padding:0}
.footer-section ul li{margin-bottom:0.75rem}
.footer-section ul li a{color:var(--brand-gray-200);text-decoration:none;transition:color 0.2s;font-size:0.9rem;line-height:1.5}
.footer-section ul li a:hover{color:var(--white)}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.1);padding-top:1.5rem;text-align:center;max-width:1200px;margin:0 auto}
.footer-bottom p{margin:0.25rem 0;color:var(--brand-gray-200);font-size:0.875rem}
.footer-tagline{font-style:italic;opacity:0.7;margin-top:0.5rem}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content{grid-template-columns:repeat(3,1fr);gap:2rem}
  .footer-bottom{padding-top:1.25rem}
}

@media (max-width: 768px) {
  .nav-content{flex-direction:column;gap:1rem;padding:1rem 0}
  .nav-links{flex-wrap:wrap;justify-content:center}
  .site-title{font-size:2rem}
  .site-footer{padding:2rem 1rem 1rem}
  .footer-content{grid-template-columns:repeat(2,1fr);gap:2rem}
  .footer-bottom{padding-top:1rem}
}

@media (max-width: 480px) {
  .nav-content{padding:0.75rem 0}
  .nav-links{gap:1rem}
  .site-title{font-size:1.75rem}
  .site-footer{padding:1.5rem 1rem 1rem}
  .footer-content{grid-template-columns:1fr;gap:1.5rem}
  .footer-bottom{padding-top:1rem}
}

/* Form styling */
.form-group{margin-bottom:1rem}
.form-group label{display:block;margin-bottom:.25rem;font-weight:500;color:var(--brand-navy)}
.form-group input,.form-group textarea{width:100%;max-width:400px;padding:.5rem;border:1px solid var(--brand-gray-200);border-radius:.375rem;font-size:1rem}
.form-group input:focus,.form-group textarea:focus{outline:none;border-color:var(--brand-blue);box-shadow:0 0 0 2px rgba(0,108,156,.1)}
.form-errors{color:var(--brand-red);font-size:.875rem;margin-top:.25rem}
.form-errors div{margin-bottom:.25rem}
.alert{padding:.75rem;margin-bottom:1rem;border-radius:.375rem;background:var(--brand-gray-50);border-left:4px solid var(--brand-blue)}
.alert.alert-success{background:rgba(23,171,221,0.1);border-color:var(--brand-cyan);color:var(--brand-navy)}
.alert.alert-error{background:rgba(212,72,53,0.1);border-color:var(--brand-red);color:var(--brand-gun)}
.auth-links{margin-top:1rem}

/* Auth Form Containers */
.auth-form-container{max-width:400px;margin:0 auto;background:var(--white);padding:2rem;border-radius:0.5rem;box-shadow:0 4px 6px rgba(0,0,0,0.1);border:1px solid var(--brand-gray-50)}
.auth-form{margin-bottom:1.5rem}
.full-width{width:100%}
.auth-links{text-align:center;color:var(--brand-slate)}

/* Subscription Page */
.subscription-container{max-width:800px;margin:0 auto}
.subscription-status,.subscription-actions,.support-section{background:var(--white);padding:2rem;border-radius:0.5rem;margin-bottom:2rem;border:1px solid var(--brand-gray-50);box-shadow:0 2px 4px rgba(0,0,0,0.05)}
.subscription-status h3,.subscription-actions h3,.support-section h3{color:var(--brand-navy);margin:0 0 1rem 0;font-size:1.25rem}
.action-buttons{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1rem}
.action-buttons .btn{flex:1;min-width:150px;text-align:center}

/* Specialists Directory */
.specialists-container{margin:0 auto;width:100%}
.specialists-actions{background:var(--brand-gray-50);padding:1.5rem;border-radius:0.5rem;margin-bottom:2rem;text-align:center;width:100%}
.selected-count{margin-left:1rem;color:var(--brand-slate);font-size:0.9rem}

/* Hierarchical Structure */
.specialists-hierarchy{margin-top:2rem;width:100%}
.business-unit,.department{border:1px solid var(--brand-gray-50);border-radius:0.5rem;margin-bottom:1rem;background:var(--white)}
.business-unit-header,.department-header{padding:1.5rem;cursor:pointer;border-radius:0.5rem;transition:background-color 0.2s;position:relative}
.business-unit-header:hover,.department-header:hover{background:var(--brand-gray-50)}
.business-unit-header h2,.department-header h3{margin:0;color:var(--brand-navy);padding-right:2rem}
.business-unit-header .description,.department-header .description{color:var(--brand-slate);font-size:0.9rem;margin-top:0.25rem}

/* Collapsible indicators */
.business-unit-header::after,.department-header::after{
  content:'▼';
  position:absolute;
  right:1.5rem;
  top:50%;
  transform:translateY(-50%);
  color:var(--brand-blue);
  font-size:0.8rem;
  transition:transform 0.3s ease
}
details[open] > .business-unit-header::after,
details[open] > .department-header::after{
  transform:translateY(-50%) rotate(180deg)
}

/* Specialists Grid */
.departments-container{padding:0 1.5rem 1.5rem}

/* Horizontal Specialists List */
.specialists-list{display:flex;flex-direction:column;gap:0.75rem;margin-top:1rem}
.specialist-horizontal-tile{display:flex;background:var(--white);border:1px solid var(--brand-gray-50);border-radius:8px;overflow:hidden;transition:all 0.2s ease;min-height:70px;box-shadow:0 1px 3px rgba(0,0,0,0.08)}
.specialist-horizontal-tile:hover{border-color:var(--brand-blue);box-shadow:0 2px 8px rgba(0,108,156,0.12);transform:translateY(-1px)}

/* Specialist Info Section (Left side) */
.specialist-info-section{flex:1;padding:0.75rem 1rem;display:flex;flex-direction:column;justify-content:center}
.specialist-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:0.5rem}
.specialist-title{margin:0;color:var(--brand-navy);font-size:1rem;font-weight:600;line-height:1.2}
.specialist-meta{display:flex;gap:0.75rem;align-items:center;flex-shrink:0}
.specialist-description{color:var(--brand-slate);margin:0 0 0.5rem 0;font-size:0.8rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.specialist-expertise{font-size:0.75rem;color:var(--brand-slate);margin:0;line-height:1.2}
.specialist-expertise strong{color:var(--brand-navy);font-weight:500}

/* Specialist Meta Info */
.ai-engine{color:var(--brand-blue);font-weight:500;font-size:0.75rem;background:var(--brand-gray-50);padding:0.2rem 0.5rem;border-radius:12px}
.monthly-rate{color:var(--brand-orange);font-weight:600;font-size:0.75rem;background:rgba(232,151,67,0.1);padding:0.2rem 0.5rem;border-radius:12px}
.monthly-rate.aktirak-free{color:var(--brand-cyan);background:rgba(34,211,238,0.1)}

/* Actions Section (Right side) */
.specialist-actions-section{flex:0 0 200px;padding:0.75rem 1rem;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:0.5rem;background:var(--brand-gray-50);border-left:1px solid var(--brand-gray-100)}
.status-badge{padding:0.25rem 0.75rem;border-radius:12px;font-size:0.7rem;font-weight:600;text-align:center;white-space:nowrap}
.status-badge.hired{background:var(--brand-orange);color:var(--white)}
.status-badge.available{background:var(--brand-gray-200);color:var(--brand-slate)}
.meeting-checkbox{display:flex;align-items:center;gap:0.5rem;font-size:0.75rem;color:var(--brand-navy);cursor:pointer}
.meeting-checkbox input{margin:0;transform:scale(0.9)}
.hire-btn{padding:0.4rem 0.8rem;font-size:0.75rem;border-radius:4px;white-space:nowrap}
.hired-btn{padding:0.4rem 0.8rem;font-size:0.75rem;border-radius:4px;white-space:nowrap;background:var(--brand-cyan);color:var(--white);border:1px solid var(--brand-cyan);text-decoration:none;transition:all 0.2s ease}
.hired-btn:hover{background:var(--brand-blue);border-color:var(--brand-blue);transform:translateY(-1px)}

/* Responsive design for horizontal tiles */
@media (max-width:768px){
  .specialist-horizontal-tile{flex-direction:column;min-height:auto}
  .specialist-info-section{padding:0.75rem}
  .specialist-header{flex-direction:column;align-items:stretch;gap:0.5rem}
  .specialist-meta{justify-content:flex-start}
  .specialist-actions-section{flex:none;padding:0.75rem;border-left:none;border-top:1px solid var(--brand-gray-100);background:var(--white);flex-direction:row;justify-content:space-between;align-items:center}
  .meeting-checkbox{font-size:0.8rem}
  .hired-btn{font-size:0.8rem;padding:0.5rem 1rem}
}

/* Backwards compatibility - keep old grid styles for any remaining usage */
.specialists-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem;margin-top:1rem}
.specialist-card{background:var(--white);border:2px solid var(--brand-gray-50);border-radius:0.5rem;padding:1.5rem;transition:all 0.3s;position:relative}
.specialist-card:hover{border-color:var(--brand-blue);box-shadow:0 4px 12px rgba(0,108,156,0.1);transform:translateY(-2px)}

.specialist-info h4{color:var(--brand-navy);margin:0 0 0.5rem 0;font-size:1.1rem}
.specialist-description{color:var(--brand-slate);margin:0.5rem 0;line-height:1.4}
.specialist-expertise{font-size:0.9rem;color:var(--brand-slate);margin:0.75rem 0}
.specialist-details{display:flex;justify-content:space-between;align-items:center;margin:0.75rem 0;font-size:0.9rem}
.ai-engine{color:var(--brand-blue);font-weight:500}
.monthly-rate{color:var(--brand-orange);font-weight:600}
.monthly-rate.aktirak-free{color:var(--brand-cyan);font-weight:600;font-style:italic}

/* Specialist Actions */
.specialist-actions{display:flex;flex-direction:column;gap:0.75rem;margin-top:1rem}
.status-badge{padding:0.25rem 0.75rem;border-radius:1rem;font-size:0.8rem;font-weight:600;text-align:center}
.status-badge.hired{background:var(--brand-orange);color:var(--white)}
.status-badge.available{background:var(--brand-gray-200);color:var(--brand-slate)}
.status-badge.active{background:var(--brand-cyan);color:var(--white)}
.status-badge.inactive{background:var(--brand-gray-200);color:var(--brand-slate)}

.meeting-checkbox{display:flex;align-items:center;gap:0.5rem;font-size:0.9rem;color:var(--brand-navy);cursor:pointer}
.meeting-checkbox input{margin:0}

/* Meeting Interface */
.meeting-container{display:grid;grid-template-columns:300px 1fr;gap:2rem;height:calc(100vh - 300px);min-height:600px}
.meeting-sidebar{background:var(--brand-gray-50);border-radius:0.5rem;padding:1.5rem;overflow-y:auto}
.meeting-main{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--brand-gray-50);border-radius:0.5rem;min-height:0}

/* Meeting Sidebar */
.meeting-info,.specialists-panel{margin-bottom:2rem}
.meeting-info h3,.specialists-panel h3{color:var(--brand-navy);margin:0 0 1rem 0;font-size:1.1rem}
.specialist-list{display:flex;flex-direction:column;gap:0.75rem}
.specialist-item{display:flex;align-items:center;gap:0.75rem;padding:0.75rem;background:var(--white);border-radius:0.5rem;border:1px solid var(--brand-gray-200)}
.specialist-avatar{width:40px;height:40px;border-radius:50%;background:var(--brand-blue);color:var(--white);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:1.1rem}

/* OAuth Modal System */
.oauth-modal-overlay{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
  z-index:10000;
  backdrop-filter:blur(2px)
}

.oauth-modal-overlay.active{
  display:flex;
  align-items:center;
  justify-content:center
}

.oauth-modal-content{
  background:var(--white);
  border-radius:12px;
  padding:2rem;
  max-width:500px;
  width:90%;
  max-height:80vh;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,0.3);
  transform:scale(0.9);
  transition:transform 0.3s ease;
  position:relative
}

.oauth-modal-overlay.active .oauth-modal-content{
  transform:scale(1)
}

.oauth-modal-header{
  text-align:center;
  margin-bottom:2rem;
  padding-bottom:1rem;
  border-bottom:1px solid var(--brand-gray-50)
}

.oauth-modal-header h2{
  color:var(--brand-navy);
  margin:0 0 0.5rem 0;
  font-size:1.5rem;
  font-weight:600
}

.oauth-modal-header p{
  color:var(--brand-slate);
  margin:0;
  font-size:0.95rem
}

.oauth-modal-close{
  position:absolute;
  top:1rem;
  right:1rem;
  background:none;
  border:none;
  font-size:1.5rem;
  color:var(--brand-slate);
  cursor:pointer;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  transition:all 0.2s ease
}

.oauth-modal-close:hover{
  background:var(--brand-gray-50);
  color:var(--brand-navy)
}

.oauth-modal-iframe{
  width:100%;
  height:400px;
  border:1px solid var(--brand-gray-200);
  border-radius:8px;
  margin-bottom:1rem
}

.oauth-modal-loading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  height:400px;
  color:var(--brand-slate)
}

.oauth-modal-loading .spinner{
  width:32px;
  height:32px;
  border:3px solid var(--brand-gray-200);
  border-top:3px solid var(--brand-blue);
  border-radius:50%;
  animation:spin 1s linear infinite;
  margin-bottom:1rem
}

@keyframes spin{
  0%{transform:rotate(0deg)}
  100%{transform:rotate(360deg)}
}

.oauth-modal-error{
  background:var(--brand-red);
  color:var(--white);
  padding:1rem;
  border-radius:8px;
  text-align:center;
  margin:1rem 0;
  display:none
}

.oauth-modal-error.active{
  display:block
}

.oauth-modal-footer{
  text-align:center;
  padding-top:1rem;
  border-top:1px solid var(--brand-gray-50);
  color:var(--brand-slate);
  font-size:0.85rem
}

/* OAuth Button Enhancements for Modal */
.oauth-providers{
  display:flex;
  flex-direction:column;
  gap:1rem;
  margin:1rem 0
}

.oauth-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.75rem;
  padding:0.75rem 1.5rem;
  border:2px solid var(--brand-gray-200);
  border-radius:8px;
  background:var(--white);
  color:var(--brand-navy);
  text-decoration:none;
  font-weight:500;
  transition:all 0.2s ease;
  cursor:pointer;
  font-size:0.95rem
}

.oauth-btn:hover{
  border-color:var(--brand-blue);
  background:var(--brand-gray-50);
  color:var(--brand-navy);
  text-decoration:none;
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,0.1)
}

.oauth-btn img{
  width:20px;
  height:20px;
  flex-shrink:0
}

/* Responsive Modal */
@media (max-width:768px){
  .oauth-modal-content{
    padding:1.5rem;
    margin:1rem;
    max-width:none;
    width:calc(100% - 2rem)
  }
  
  .oauth-modal-iframe{
    height:350px
  }
  
  .oauth-modal-loading{
    height:350px
  }
  
  .oauth-modal-header h2{
    font-size:1.25rem
  }
}

@media (max-width:480px){
  .oauth-modal-content{
    padding:1rem;
    margin:0.5rem;
    width:calc(100% - 1rem)
  }
  
  .oauth-modal-iframe{
    height:300px
  }
  
  .oauth-modal-loading{
    height:300px
  }
}
.specialist-details h4{margin:0;color:var(--brand-navy);font-size:0.9rem}
.specialist-details p{margin:0.25rem 0 0 0;color:var(--brand-slate);font-size:0.8rem}
.specialist-engine{font-size:0.75rem;color:var(--brand-blue);background:var(--brand-gray-50);padding:0.1rem 0.4rem;border-radius:0.25rem}

/* Conversation Area */
.conversation-area{flex:1;overflow-y:auto;padding:1rem;background:var(--white);min-height:0}
.messages-container{display:flex;flex-direction:column;gap:1rem;min-height:100%;padding-bottom:1rem}
.message{max-width:85%;word-wrap:break-word}
.user-message{align-self:flex-end;background:var(--brand-blue);color:var(--white);border-radius:1rem 1rem 0.25rem 1rem;padding:0.75rem 1rem}
.specialist-message{align-self:flex-start;background:var(--brand-gray-50);color:var(--brand-gun);border-radius:1rem 1rem 1rem 0.25rem;padding:0.75rem 1rem}
.message-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:0.5rem;font-size:0.8rem}
.user-message .message-header{color:rgba(255,255,255,0.8)}
.specialist-message .message-header{color:var(--brand-slate)}
.sender{font-weight:600}
.timestamp{opacity:0.7}
.ai-engine{background:var(--brand-blue);color:var(--white);padding:0.1rem 0.4rem;border-radius:0.25rem;font-size:0.7rem}
.message-content{line-height:1.4}

.empty-conversation{text-align:center;color:var(--brand-slate);margin:auto;padding:2rem}
.empty-conversation h3{color:var(--brand-navy);margin-bottom:0.5rem}

/* Message Input */
.message-input-area{border-top:1px solid var(--brand-gray-50);padding:1rem;background:var(--white);flex-shrink:0}
.input-group{display:flex;gap:1rem;align-items:end}
.input-group textarea{flex:1;border:1px solid var(--brand-gray-200);border-radius:0.5rem;padding:0.75rem;resize:vertical;min-height:60px;max-height:120px;font-family:inherit}
.input-group textarea:focus{outline:none;border-color:var(--brand-blue);box-shadow:0 0 0 2px rgba(0,108,156,0.1)}
.input-group .btn{align-self:flex-end;white-space:nowrap;min-width:80px;flex-shrink:0}
.send-loading{display:none}

/* Meeting History */
.meeting-history-container{max-width:800px;margin:0 auto}
.history-actions{text-align:center;margin-bottom:2rem}
.meetings-list{display:flex;flex-direction:column;gap:1rem}
.meeting-card{background:var(--white);border:1px solid var(--brand-gray-50);border-radius:0.5rem;padding:1.5rem;transition:box-shadow 0.2s}
.meeting-card:hover{box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.meeting-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}
.meeting-header h3{margin:0;color:var(--brand-navy)}
.meeting-date{color:var(--brand-slate);font-size:0.9rem}
.specialists-involved{margin-bottom:0.75rem}
.specialist-tag{background:var(--brand-gray-50);color:var(--brand-navy);padding:0.25rem 0.5rem;border-radius:0.25rem;font-size:0.8rem;margin-right:0.5rem}
.meeting-stats{display:flex;gap:1rem;color:var(--brand-slate);font-size:0.9rem}
.meeting-actions{display:flex;justify-content:space-between;align-items:center;margin-top:1rem}

/* Search Functionality */
.search-section{background:var(--white);border:1px solid var(--brand-gray-50);border-radius:0.5rem;padding:1.5rem;margin-bottom:1.5rem;box-shadow:0 2px 4px rgba(0,0,0,0.05);width:100%}
.search-container{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.search-input{flex:1;min-width:300px;padding:0.75rem 1rem;border:2px solid var(--brand-gray-200);border-radius:0.5rem;font-size:1rem;transition:border-color 0.2s,box-shadow 0.2s}
.search-input:focus{outline:none;border-color:var(--brand-blue);box-shadow:0 0 0 3px rgba(0,108,156,0.1)}
.search-input::placeholder{color:var(--brand-slate);opacity:0.7}
.search-actions{display:flex;gap:0.5rem;flex-wrap:wrap}
.search-actions .btn.secondary{background:var(--brand-gray-50);color:var(--brand-navy);border-color:var(--brand-gray-200);font-size:0.9rem;padding:0.5rem 0.75rem}
.search-actions .btn.secondary:hover{background:var(--brand-gray-200);border-color:var(--brand-slate)}
.search-results-summary{margin-top:1rem;padding:0.75rem;border-radius:0.375rem;font-weight:500}
.results-found{color:var(--brand-blue);background:rgba(0,108,156,0.1);padding:0.5rem 0.75rem;border-radius:0.375rem;display:inline-block}
.no-results{color:var(--brand-red);background:rgba(212,72,53,0.1);padding:0.5rem 0.75rem;border-radius:0.375rem;display:inline-block}

/* Enhanced Collapsible Sections */
.business-unit summary,.department summary{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color 0.2s}
.business-unit summary:hover,.department summary:hover{background:rgba(0,108,156,0.05)}
.business-unit summary::marker,.department summary::marker{color:var(--brand-blue)}

/* Search Highlighting */
.specialist-card[data-search-highlight="true"],.specialist-horizontal-tile[data-search-highlight="true"]{border-color:var(--brand-orange);box-shadow:0 0 0 2px rgba(232,151,67,0.2);transition:all 0.3s ease}

/* Hidden state for search */
.specialist-card[style*="display: none"],.specialist-horizontal-tile[style*="display: none"],.department[style*="display: none"],.business-unit[style*="display: none"]{display:none !important}

/* Password Reset Styles */
.password-reset-message{background:var(--brand-gray-50);border-radius:0.5rem;padding:1.5rem;margin-bottom:1.5rem;line-height:1.6}
.password-reset-message p{margin:0 0 1rem 0}
.password-reset-message p:last-child{margin-bottom:0}
.inline-link{color:var(--brand-blue);text-decoration:none;font-weight:500}
.inline-link:hover{text-decoration:underline;color:var(--brand-navy)}

/* Login Form Password Row */
.password-label-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:0.5rem}
.password-label-row label{margin:0;font-weight:600;color:var(--brand-navy)}
.forgot-password-link{color:var(--brand-blue);text-decoration:none;font-size:0.9rem;font-weight:500}
.forgot-password-link:hover{text-decoration:underline;color:var(--brand-navy)}

/* Responsive Design for Specialists and Meetings */
@media (max-width: 1024px) {
  .specialists-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
  .meeting-container{grid-template-columns:250px 1fr;gap:1rem;height:calc(100vh - 250px);min-height:500px}
}

@media (max-width: 768px) {
  .specialists-grid{grid-template-columns:1fr}
  .meeting-container{grid-template-columns:1fr;height:calc(100vh - 200px);min-height:400px}
  .meeting-sidebar{order:2;margin-top:1rem;max-height:200px}
  .input-group{flex-direction:column;align-items:stretch;gap:0.75rem}
  .input-group .btn{align-self:stretch;min-width:auto}
  
  /* Search responsive */
  .search-container{flex-direction:column;align-items:stretch}
  .search-input{min-width:auto;width:100%}
  .search-actions{justify-content:center;flex-wrap:wrap}
}

@media (max-width: 480px) {
  .message{max-width:95%}
  .input-group textarea{min-height:50px;font-size:16px} /* Prevent zoom on iOS */
  .conversation-area{padding:0.5rem}
  .message-input-area{padding:0.75rem}
  .meeting-container{height:calc(100vh - 150px);min-height:350px}
  
  /* Search mobile */
  .search-section{padding:1rem;margin-bottom:1rem}
  .search-actions .btn.secondary{font-size:0.8rem;padding:0.4rem 0.6rem}
  .search-input{font-size:16px} /* Prevent zoom on iOS */
  
  /* Login form mobile */
  .password-label-row{flex-direction:column;align-items:flex-start;gap:0.5rem}
  .forgot-password-link{align-self:flex-end}
}

/* Prepayment Summary Styles */
.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.summary-card {
  background: var(--white);
  border: 1px solid var(--brand-gray-50);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-card.prepaid {
  border-left: 4px solid var(--brand-cyan);
}

.summary-card.monthly {
  border-left: 4px solid var(--brand-blue);
}

.summary-card.total {
  border-left: 4px solid var(--brand-navy);
  background: var(--brand-gray-50);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: CENTER;
  margin-bottom: 1rem;
}

.summary-header h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 1.1rem;
}

.count-badge {
  background: var(--brand-blue);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.total-amount {
  text-align: center;
  margin-bottom: 1rem;
}

.total-amount .amount {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.25rem;
}

.total-amount small {
  color: var(--brand-slate);
  font-size: 0.9rem;
}

.prepaid-breakdown, .monthly-breakdown {
  margin-top: 1rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--brand-gray-50);
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.specialist-name {
  font-weight: 600;
  color: var(--brand-navy);
  flex: 1;
}

.term-info, .monthly-cost {
  color: var(--brand-slate);
  font-size: 0.9rem;
}

.breakdown-item .expires {
  color: var(--brand-slate);
  font-size: 0.8rem;
  width: 100%;
  margin-top: 0.25rem;
}

.total-line {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--brand-gray-50);
}

.total-line:last-of-type {
  border-bottom: 2px solid var(--brand-navy);
  font-weight: 600;
  margin-bottom: 1rem;
}

.recommendation {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 108, 156, 0.05);
  border-radius: 0.375rem;
}

.recommendation p {
  margin: 0 0 0.75rem 0;
  color: var(--brand-navy);
  font-size: 0.9rem;
}

.btn.small {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

/* Enhanced subscription details for prepayment */
.price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.equivalent-rate {
    display: block;
    color: var(--brand-gray-200);
    margin-top: 0.25rem;
    font-size: 0.9rem;
}.savings {
  display: block;
  color: var(--brand-cyan);
  font-weight: 600;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .payment-summary-grid {
    grid-template-columns: 1fr;
  }
  
  .breakdown-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .term-info, .monthly-cost {
    margin-top: 0.25rem;
  }
}

/* Invoice-Style Subscription Summary */
.subscription-invoice {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--brand-blue);
}

.invoice-header h3 {
  color: var(--brand-navy);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.invoice-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.invoice-sections {
  margin-bottom: 2rem;
}

.invoice-section {
  margin-bottom: 1.5rem;
}

.section-title {
  color: var(--brand-navy);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.invoice-items {
  margin-left: 1rem;
}

.invoice-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--brand-gray-50);
}

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

.item-description {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-name {
  font-weight: 600;
  color: var(--brand-gun);
  font-size: 0.95rem;
}

.item-detail {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.item-term {
  color: var(--brand-blue);
  font-size: 0.85rem;
  font-weight: 500;
}

.item-cost {
  text-align: right;
  font-weight: 600;
  color: var(--brand-navy);
  min-width: 140px;
}

.prepaid-cost {
  font-size: 0.95rem;
  color: var(--brand-navy);
}

.equivalent-cost {
  display: block;
  color: var(--brand-gray-200);
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

.discount-item {
  background: var(--success-color);
  background: rgba(34, 197, 94, 0.05);
  margin: 0 -0.5rem;
  padding: 0.75rem 0.5rem;
  border-radius: 4px;
}

.discount-amount {
  color: var(--success-color) !important;
  font-weight: 700;
}

.invoice-totals {
  border-top: 2px solid var(--brand-blue);
  padding-top: 1rem;
  margin-top: 2rem;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.total-line.subtotal {
  color: var(--text-secondary);
}

.total-line.discount {
  color: var(--success-color);
  font-weight: 600;
}

.total-line.grand-total {
  border-top: 1px solid var(--border-light);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.total-label {
  font-weight: 600;
}

.total-amount {
  font-weight: 700;
  min-width: 140px;
  text-align: right;
}

.invoice-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-light);
  margin: 2rem -2rem -2rem -2rem;
  padding: 1.5rem 2rem;
  border-radius: 0 0 8px 8px;
}

.invoice-footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.invoice-footer .billing-link {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease-in-out;
}

.invoice-footer .billing-link:hover {
  color: var(--brand-navy);
  border-bottom-color: var(--brand-navy);
  text-decoration: none;
}

/* Responsive Invoice Design */
@media (max-width: 768px) {
  .subscription-invoice {
    padding: 1.5rem;
    margin: 1rem -1rem 0 -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .invoice-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .invoice-meta {
    align-items: flex-start;
  }
  
  .invoice-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .item-cost {
    text-align: left;
    min-width: auto;
  }
  
  .total-amount {
    min-width: auto;
    text-align: left;
  }
  
  .invoice-footer {
    margin: 2rem -1.5rem -1.5rem -1.5rem;
    padding: 1.5rem;
  }
}

/* Cookie Banner & Modal Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 3px solid var(--brand-blue);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

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

.cookie-banner-text h3 {
  margin: 0 0 0.5rem 0;
  color: var(--brand-navy);
  font-size: 1.25rem;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--brand-slate);
  line-height: 1.5;
}

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

.cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.cookie-modal-content {
  position: relative;
  background: white;
  border-radius: 1rem;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cookie-modal-header {
  padding: 2rem;
  border-bottom: 2px solid var(--brand-gray-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal-header h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 1.5rem;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brand-slate);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.cookie-modal-close:hover {
  background: var(--brand-gray-50);
  color: var(--brand-navy);
}

.cookie-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-modal-intro {
  color: var(--brand-slate);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cookie-category {
  background: var(--brand-gray-50);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cookie-category-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-category-info h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 1.1rem;
}

.cookie-category-badge {
  background: var(--brand-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.cookie-category-badge.required {
  background: var(--brand-slate);
}

.cookie-category-description {
  margin: 0;
  color: var(--brand-slate);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.cookie-toggle.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brand-gray-50);
  border: 2px solid var(--brand-slate);
  border-radius: 28px;
  transition: all 0.3s;
}

.cookie-toggle-slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 2px solid var(--brand-gray-50);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Cookie Banner & Modal Responsive */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner-actions .btn {
    width: 100%;
  }

  .cookie-modal-content {
    max-height: 95vh;
  }

  .cookie-modal-header,
  .cookie-modal-body {
    padding: 1.5rem;
  }

  .cookie-modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
  }

  .cookie-modal-footer .btn {
    width: 100%;
  }

  .cookie-category {
    padding: 1rem;
  }
}

/* Help Panel System */
.help-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--brand-orange);
  color: var(--white);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(232, 151, 67, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: all 0.3s ease;
}

.help-button:hover {
  background: var(--brand-blue);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 108, 156, 0.4);
}

.help-button svg {
  width: 28px;
  height: 28px;
}

.help-button-text {
  display: none;
}

@media (min-width: 768px) {
  .help-button {
    width: auto;
    border-radius: 30px;
    padding: 0 20px;
    gap: 8px;
  }
  
  .help-button-text {
    display: inline;
    font-weight: 600;
    font-size: 15px;
  }
  
  .help-button svg {
    width: 24px;
    height: 24px;
  }
}

/* Help Panel */
.help-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  pointer-events: none;
}

.help-panel.open {
  pointer-events: all;
}

.help-panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.help-panel.open .help-panel-overlay {
  opacity: 1;
}

.help-panel-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.help-panel.open .help-panel-content {
  transform: translateX(0);
}

.help-panel-header {
  padding: 24px;
  border-bottom: 2px solid var(--brand-gray-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.help-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-icon {
  font-size: 28px;
}

.help-panel-title h2 {
  margin: 0;
  font-size: 24px;
  color: var(--brand-navy);
  font-weight: 700;
}

.help-panel-close {
  background: none;
  border: none;
  color: var(--brand-slate);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-panel-close:hover {
  background: var(--brand-gray-50);
  color: var(--brand-navy);
}

.help-panel-search {
  padding: 16px 24px;
  border-bottom: 1px solid var(--brand-gray-50);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.help-panel-search svg {
  color: var(--brand-slate);
  flex-shrink: 0;
}

.help-panel-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--brand-gun);
}

.help-panel-search input::placeholder {
  color: var(--brand-slate);
}

.help-panel-context {
  padding: 16px 24px;
  background: var(--brand-blue-light);
  border-bottom: 1px solid var(--brand-gray-50);
  flex-shrink: 0;
}

.help-context-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--brand-navy);
  font-weight: 600;
  border: 2px solid var(--brand-blue);
}

.context-icon {
  font-size: 18px;
}

.help-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.help-content {
  margin-bottom: 24px;
}

.help-section {
  margin-bottom: 32px;
}

.help-section:last-child {
  margin-bottom: 0;
}

.help-section-title {
  color: var(--brand-navy);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.help-section-content {
  color: var(--brand-gun);
  font-size: 15px;
  line-height: 1.6;
}

.help-section-content p {
  margin: 0 0 12px 0;
}

.help-section-content p:last-child {
  margin-bottom: 0;
}

.help-section-content ul,
.help-section-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.help-section-content li {
  margin-bottom: 8px;
  color: var(--brand-gun);
}

.help-section-content ul li {
  list-style-type: disc;
}

.help-panel-categories {
  padding: 24px;
  border-top: 2px solid var(--brand-gray-50);
  background: var(--brand-gray-50);
  flex-shrink: 0;
}

.help-panel-categories h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: var(--brand-navy);
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.category-btn {
  background: var(--white);
  border: 2px solid var(--brand-gray-200);
  border-radius: 8px;
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  color: var(--brand-navy);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.category-btn span {
  font-size: 24px;
}

.category-btn:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 108, 156, 0.15);
}

.help-panel-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--brand-gray-50);
  text-align: center;
  background: var(--brand-gray-50);
  flex-shrink: 0;
}

.help-panel-footer p {
  margin: 0;
  color: var(--brand-slate);
  font-size: 14px;
}

.help-panel-footer a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
}

.help-panel-footer a:hover {
  text-decoration: underline;
}

/* Search Results */
.search-results {
  margin-bottom: 24px;
}

.results-count {
  color: var(--brand-slate);
  font-size: 14px;
  margin-bottom: 20px;
  font-style: italic;
}

.search-result-item {
  background: var(--brand-gray-50);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.result-icon {
  font-size: 28px;
}

.result-header h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 20px;
}

.search-result-item .help-section {
  margin-bottom: 16px;
}

.search-result-item .help-section:last-child {
  margin-bottom: 0;
}

.search-result-item .help-section-title {
  font-size: 16px;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--brand-slate);
}

.no-results p {
  margin: 0 0 12px 0;
  font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .help-panel-content {
    max-width: 100%;
  }
  
  .help-panel-header {
    padding: 20px;
  }
  
  .help-panel-title h2 {
    font-size: 20px;
  }
  
  .help-panel-body {
    padding: 20px;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .help-panel-categories {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .help-button {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .category-btn {
    padding: 10px 6px;
    font-size: 12px;
  }
  
  .category-btn span {
    font-size: 20px;
  }
}
