.desktop-header {
  display: block;
}

.back-arrow {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.back-arrow:hover {
  background-color: var(--bg-secondary);
}

.mobile-header-title {
  flex: 1;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 3rem;
  /* Balance the back arrow */
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid var(--border-default);
  }

  .desktop-header {
    display: none !important;
  }
}

/* Service Header Badges */
.service-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.service-verified {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.service-license {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-license.licensed {
  background: #e6fffa;
  color: #00a383;
  border: 1px solid #b7eb8f;
}

.service-license.unlicensed {
  background: #fff1f0;
  color: #cf1322;
  border: 1px solid #ffa39e;
}

/* Service Details Layout */
.service-details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: 80vh;
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .service-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Use display: contents to flatten hierarchy for grid placement */
  .service-main,
  .service-sidebar {
    display: contents;
  }

  /* 
    Mobile Order: 
    1. Hero Image
    2. Mobile Provider Card 
    3. Service Description
    4. Key Features
    5. Service Details
    6. Stats
    7. Reviews
    8. Safety Tips
    
    Desktop Provider Card is hidden
  */

  .service-hero {
    grid-row: 1;
  }

  .provider-card-mobile {
    grid-row: 2;
  }

  .section-description {
    grid-row: 3;
  }

  .section-features {
    grid-row: 4;
  }

  .section-details {
    grid-row: 5;
  }

  .stats-container {
    grid-row: 6;
  }

  .section-reviews {
    grid-row: 7;
  }

  .safety-card {
    grid-row: 8;
  }

  /* Hide desktop provider card on mobile */
  .provider-card {
    display: none !important;
  }
}

/* Service Main Column */
.service-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Hero Section */
.service-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-image-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.service-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-image-container:hover .service-main-image {
  transform: scale(1.02);
}

.service-price-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: white;
  padding: 1rem 2rem;
  border-top-left-radius: 16px;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary);
  box-shadow: -4px -4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.service-price-badge .currency {
  font-size: 1rem;
  vertical-align: top;
}

.service-price-badge .unit {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.service-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .service-tags {
    gap: 0.375rem;
  }
}

.tag {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Tag Colors */
/* Tag Colors - Using CSS Variables */
.tag-blue {
  background: var(--info-bg);
  color: var(--info);
}

.tag-green {
  background: var(--success-bg);
  color: var(--success);
}

.tag-cyan {
  background: var(--bg-tertiary);
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

.tag-yellow {
  background: var(--warning-bg);
  color: var(--warning);
}

.tag-gray {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

/* Sections */
.service-section {
  background: transparent;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-description p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Features List */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 0.75rem;
  background: var(--bg-secondary, #fafafa);
  border-radius: 8px;
}

.feature-item svg {
  color: var(--primary);
  stroke-width: 2.5;
}

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

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb, 12, 122, 102), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.detail-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Stats Container */
.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .stats-container {
    padding: 1.25rem;
    gap: 0.5rem;
  }
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-right: 1px solid #e9ecef;
}

.stat-box:last-child {
  border-right: none;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-value.text-primary {
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Reviews */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header-row .btn-write-review {
    width: 100%;
    justify-content: center;
  }
}

.reviews-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border: 1px dashed var(--border-default);
  border-radius: 12px;
}

.empty-icon {
  color: var(--text-muted);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-text {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Sidebar Styling */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.provider-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.provider-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.provider-avatar {
  position: relative;
  margin-bottom: 1rem;
}

.provider-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.verified-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.provider-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.provider-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.stars {
  color: #ffc107;
  display: flex;
  gap: 2px;
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.member-since {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.provider-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.contact-item svg {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.provider-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Button Improvements */
.btn-full {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 122, 102, 0.2);
}

.btn-outline {
  background: var(--bg-secondary, #f8f9fa);
  border: 1px solid var(--border-medium, #d1d5db);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--border-dark);
  color: var(--primary);
  transform: translateY(-1px);
}

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

.btn-outline:hover svg {
  transform: scale(1.1);
}

/* Safety Card */
.safety-card {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 12px;
  padding: 1.5rem;
}

.safety-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #d48806;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.safety-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.safety-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #875800;
  line-height: 1.4;
}

.safety-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.8;
}

/* ===================================
   MOBILE PROVIDER CARD
   =================================== */

/* Hide mobile card on desktop, show desktop card */
.provider-card-mobile {
  display: none;
}

.provider-card {
  display: block;
}

/* Show mobile card on mobile, hide desktop card */
@media (max-width: 1024px) {

  /* Ensure desktop card is completely hidden */
  .provider-card {
    display: none !important;
  }

  /* Show mobile card */
  .provider-card-mobile {
    display: block;
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
}

/* Mobile Provider Card Layout */
.provider-mobile-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.provider-mobile-avatar {
  position: relative;
  flex-shrink: 0;
}

.provider-mobile-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.verified-badge-mobile {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.provider-mobile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.provider-mobile-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.provider-mobile-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars-mobile {
  display: flex;
  gap: 2px;
  color: #ffc107;
}

.rating-text-mobile {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.provider-mobile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.125rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.meta-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Mobile Action Buttons */
.provider-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.625rem;
}

.btn-mobile-primary,
.btn-mobile-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
}

.btn-mobile-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-mobile-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 122, 102, 0.25);
}

.btn-mobile-secondary {
  background: white;
  color: var(--primary);
  border-color: var(--border-medium, #d1d5db);
}

.btn-mobile-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-mobile-primary svg,
.btn-mobile-secondary svg {
  flex-shrink: 0;
}

/* Responsive adjustments for smaller mobile */
@media (max-width: 640px) {
  .provider-card-mobile {
    padding: 1rem;
    border-radius: 10px;
  }

  .provider-mobile-avatar img {
    width: 56px;
    height: 56px;
  }

  .verified-badge-mobile {
    width: 18px;
    height: 18px;
  }

  .verified-badge-mobile svg {
    width: 9px;
    height: 9px;
  }

  .provider-mobile-name {
    font-size: 1.0625rem;
  }

  .provider-mobile-actions {
    gap: 0.5rem;
  }

  .btn-mobile-primary,
  .btn-mobile-secondary {
    padding: 0.625rem 0.375rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .btn-mobile-primary svg,
  .btn-mobile-secondary svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .provider-card-mobile {
    padding: 0.875rem;
  }

  .provider-mobile-header {
    gap: 0.875rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
  }

  .provider-mobile-avatar img {
    width: 52px;
    height: 52px;
  }

  .provider-mobile-name {
    font-size: 1rem;
  }

  .rating-text-mobile {
    font-size: 0.8125rem;
  }

  .meta-item {
    font-size: 0.75rem;
  }

  .meta-item svg {
    width: 11px;
    height: 11px;
  }
}

/* Reviews Section Updates */

.btn-write-review {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(12, 122, 102, 0.2);
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  cursor: pointer;
  background: var(--primary);
  color: white;
  border: none;
}

.btn-write-review:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(12, 122, 102, 0.4);
  transform: translateY(-2px);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.review-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f8f9fa;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.review-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.review-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.review-rating {
  display: flex;
  gap: 2px;
}

.review-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .review-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .review-rating {
    margin-left: 64px;
    /* Align with name */
    margin-top: -0.5rem;
  }
}

/* ===================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   =================================== */

/* Tablet Devices */
@media (max-width: 768px) {
  .service-details-container {
    padding: 1.5rem 1rem;
  }

  .service-layout {
    gap: 2rem;
  }

  .service-main {
    gap: 1.75rem;
  }

  .service-title {
    font-size: 1.75rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices */
@media (max-width: 640px) {
  .service-details-container {
    padding: 1rem;
  }

  .service-layout {
    gap: 1.5rem;
  }

  .service-main {
    gap: 1.5rem;
  }

  /* Hero Section Mobile */
  .service-hero {
    gap: 1.25rem;
  }

  .service-image-container {
    border-radius: 12px;
  }

  .service-price-badge {
    font-size: 1.5rem;
    padding: 0.75rem 1.5rem;
    border-top-left-radius: 12px;
  }

  /* Title and Header */
  .service-title {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .service-badges {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  /* Section Spacing */
  .service-section {
    margin-bottom: 0.5rem;
  }

  .section-title {
    font-size: 1.125rem;
    margin-bottom: 0.875rem;
  }

  /* Details Grid - Full Width Cards */
  .details-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .detail-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    align-items: center;
  }

  .detail-icon {
    width: 40px;
    height: 40px;
  }

  .detail-value {
    font-size: 0.9375rem;
  }

  /* Feature List */
  .feature-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .feature-item {
    padding: 0.875rem;
    font-size: 0.9375rem;
  }

  /* Stats - Adjust Padding */
  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.8125rem;
  }

  /* Provider Card Mobile */
  .provider-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .provider-avatar img {
    width: 80px;
    height: 80px;
  }

  .verified-badge {
    width: 22px;
    height: 22px;
  }

  .provider-name {
    font-size: 1.0625rem;
  }

  .provider-actions {
    gap: 0.625rem;
  }

  .btn-full {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  /* Safety Card Mobile */
  .safety-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .safety-title {
    font-size: 1.0625rem;
    margin-bottom: 0.875rem;
  }

  .safety-list {
    gap: 0.625rem;
  }

  .safety-list li {
    font-size: 0.875rem;
  }

  /* Reviews Mobile */
  .review-card {
    padding: 1.25rem;
    border-radius: 10px;
  }

  .review-avatar {
    width: 44px;
    height: 44px;
  }

  .review-text {
    font-size: 0.9375rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .service-details-container {
    padding: 0.875rem;
  }

  .service-title {
    font-size: 1.375rem;
  }

  .service-price-badge {
    font-size: 1.375rem;
    padding: 0.625rem 1.25rem;
  }

  .section-title {
    font-size: 1.0625rem;
  }

  /* Compact Stats */
  .stats-container {
    padding: 1rem;
    gap: 0.25rem;
  }

  .stat-value {
    font-size: 1.375rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-box {
    padding: 0 0.5rem;
  }

  /* Tags - Smaller on tiny screens */
  .tag {
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
  }

  /* Provider Card Compact */
  .provider-card {
    padding: 1rem;
  }

  .provider-avatar img {
    width: 72px;
    height: 72px;
  }

  .provider-name {
    font-size: 1rem;
  }

  .contact-item {
    font-size: 0.875rem;
  }

  .btn-full {
    padding: 0.8125rem 0.875rem;
    font-size: 0.875rem;
  }

  /* Compact Details */
  .detail-item {
    padding: 0.875rem;
    gap: 0.875rem;
  }

  .detail-icon {
    width: 36px;
    height: 36px;
  }

  /* Review Responsive */
  .review-card {
    padding: 1rem;
  }

  .review-avatar {
    width: 40px;
    height: 40px;
  }

  .review-name {
    font-size: 0.9375rem;
  }

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

  .review-rating {
    margin-left: 56px;
  }
}

.dashboard-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-icon-link:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

.nav-icon-link svg {
  width: 22px;
  height: 22px;
}

.nav-icon-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 200;
  pointer-events: none;
}

.nav-icon-link:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: -2.5rem;
}

.nav-icon-link .notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--error);
  border-radius: 50%;
  border: 2px solid var(--nav-bg);
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border-light);
  padding: 0.5rem 0;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-item span:not(.bottom-nav-badge) {
  font-size: 0.625rem;
  font-weight: 500;
}

.bottom-nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 14px);
  width: 8px;
  height: 8px;
  background: var(--error);
  border-radius: 50%;
  border: 2px solid var(--card-bg);
}

@media (max-width: 48rem) {
  .mobile-bottom-nav {
    display: flex;
  }
}