/* Reusable component styles */

/* Layout Components */
.auth-card {
  max-width: 400px;
  margin: 2rem auto;
}

.profile-edit-card {
  max-width: 600px;
  margin: 0 auto;
}

.hero-section {
  text-align: center;
  padding: 2rem 0;
}

.how-it-works-card {
  max-width: 500px;
  margin: 0 auto 2rem;
}

.empty-state-card {
  text-align: center;
  padding: 2rem;
}

.empty-state-card p {
  margin-bottom: 1.5rem;
}

/* Avatar Components */
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.conversation-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.user-avatar-placeholder-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--light-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.conversation-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--light-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* Button Variants */
.auth-button {
  width: 100%;
  margin-bottom: 1rem;
}

.install-button {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

.cta-button-large {
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

.back-button {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.5rem;
}

.back-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.5rem;
}

.rating-star-button {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--divider);
}

.send-button {
  align-self: flex-end;
}

/* Shop Components */
.shop-logo-large {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.shop-logo-placeholder-large {
  width: 60px;
  height: 60px;
  background: var(--light-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2rem;
  border-radius: 8px;
}

.shop-logo-placeholder-small {
  background: var(--light-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

/* Grid Layouts */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.credits-features-grid {
  display: grid;
  gap: 1rem;
}

.credits-packages-grid {
  display: grid;
  gap: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.category-filters {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shop-actions-large {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rating-stars-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.profile-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

/* Form Components */
.message-form-container {
  display: flex;
  gap: 0.5rem;
}

.message-textarea {
  flex: 1;
  resize: none;
  min-height: 60px;
}

.photo-upload-trigger {
  border: 2px dashed var(--divider);
  border-radius: 8px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.upload-form-hidden {
  display: none;
}

/* Text Styling */
.hero-title {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--secondary-text);
  margin-bottom: 2rem;
  font-weight: normal;
}

.page-title {
  margin-bottom: 1rem;
}

.shop-title {
  margin: 0;
}

.conversation-title {
  margin: 0;
}

.conversation-name {
  margin: 0;
  font-size: 1.1rem;
}

.shop-name-link {
  color: var(--primary-text);
  text-decoration: none;
}

.auth-link {
  color: var(--primary);
}

/* Description Text */
.hero-credits-info {
  color: var(--secondary-text);
  margin-top: 2rem;
  font-size: 0.9rem;
}

.auth-help-text {
  margin-bottom: 1.5rem;
  color: var(--secondary-text);
}

.field-help-text {
  color: var(--secondary-text);
}

.empty-state-description {
  color: var(--secondary-text);
  margin-bottom: 1.5rem;
}

.shop-description-large {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.conversation-preview {
  margin: 0.25rem 0 0;
  color: var(--secondary-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-instructions {
  color: var(--secondary-text);
  font-size: 0.9rem;
}

.upload-instructions {
  color: var(--secondary-text);
  font-size: 0.9rem;
}

.help-text {
  color: var(--secondary-text);
  margin: 0;
}

/* Content Sections */
.load-more-section {
  text-align: center;
  margin-top: 2rem;
}

.load-previous-section {
  text-align: center;
  margin-bottom: 1rem;
}

.auth-links {
  text-align: center;
}

.auth-links-spaced {
  text-align: center;
  margin-bottom: 1rem;
}

.help-section {
  text-align: center;
}

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

.interests-section {
  margin-top: 1rem;
}

.photos-section {
  margin-top: 1.5rem;
}

/* Special Elements */
.section-divider {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--divider);
}

.photo-upload-icon {
  color: var(--secondary-text);
  font-size: 2rem;
}

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

/* Profile Photo Gallery Styles */
.profile-gallery {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.gallery-main-photo {
  width: 100%;
  height: 800px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.3s ease;
}

.gallery-main-photo:hover {
  transform: scale(1.02);
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.5rem;
  max-width: 100%;
}

.gallery-thumbnail {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
  border: 2px solid transparent;
}

.gallery-thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
}

.gallery-thumbnail.active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.profile-photo-placeholder {
  width: 100%;
  height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-variant);
  color: var(--secondary-text);
  font-size: 4rem;
  border-radius: 12px;
  border: 2px dashed var(--divider);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .gallery-main-photo {
    height: 300px;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.25rem;
  }

  .gallery-thumbnail {
    height: 60px;
  }

  .profile-photo-placeholder {
    height: 300px;
    font-size: 3rem;
  }

  .auth-card,
  .profile-edit-card,
  .how-it-works-card,
  .settings-card,
  .dashboard-tabs {
    width: calc(100% - 1rem);
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}

/* Enhanced profile card styles */
.profile-card {
  background: var(--text-icons);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.profile-header {
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-variant) 100%);
  color: white;
  text-align: center;
}

.profile-content {
  padding: 2rem;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 1px 2px rgba(0, 0, 0, 0.6);
}

.profile-age {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  opacity: 0.9;
}

.profile-location {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Profile content sections */
.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.bio-section {
  margin-bottom: 2rem;
}

.profile-bio {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.interests-section {
  margin-bottom: 2rem;
}

.interests-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interest-tag {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.interest-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.3);
}

.profile-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
}

.inline-form {
  display: inline-block;
}

/* Mobile responsive for profile actions */
@media (max-width: 768px) {
  .profile-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .profile-header {
    padding: 1.5rem;
  }

  .profile-content {
    padding: 1.5rem;
  }

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

.unread-indicator {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.sender-indicator {
  color: var(--primary);
}

.empty-messages {
  text-align: center;
  color: var(--secondary-text);
  padding: 2rem;
}

/* Step Components */
.feature-step {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.step-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.step-title {
  margin: 0;
  color: var(--primary-text);
}

.step-description {
  margin: 0;
  color: var(--secondary-text);
}

/* Credit Package Components */
.credit-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-description {
  margin: 0;
  color: var(--secondary-text);
  font-size: 0.9rem;
}

.credit-package {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--divider);
  border-radius: 8px;
}

.credit-package-popular {
  border-color: var(--primary);
  background: var(--light-primary);
}

.credit-package-premium {
  border-color: var(--accent);
  background: rgba(139, 195, 74, 0.1);
}

.package-description {
  margin: 0;
  color: var(--secondary-text);
}

.package-description-popular {
  margin: 0;
  color: var(--primary);
}

.package-description-premium {
  margin: 0;
  color: var(--accent);
}

.package-pricing {
  text-align: right;
}

.package-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
}

.package-price-premium {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent);
}

/* Header Components */
.shop-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.conversation-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.conversations-list-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

.conversation-item {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.conversation-content {
  flex: 1;
  min-width: 0;
}

/* Photo Components */
.photo-container {
  position: relative;
}

.photo-edit-thumbnail {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.photo-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.2s,
    opacity 0.2s;
  font-size: 18px;
  line-height: 1;
  opacity: 0.8;
}

.photo-delete-btn:hover {
  background: rgba(220, 53, 69, 1);
  opacity: 1;
}

.photo-container:hover .photo-delete-btn {
  opacity: 1;
}

.photo-thumbnail {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

/* Messages Page Specific */
.messages-title {
  margin-bottom: 1.5rem;
}

.conversation-list-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

.conversation-item {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.conversation-content {
  flex: 1;
  min-width: 0;
}

.conversation-name {
  margin: 0;
  font-size: 1.1rem;
}

.conversation-preview {
  margin: 0.25rem 0 0;
  color: var(--secondary-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-you-prefix {
  color: var(--primary);
}

.conversation-time {
  color: var(--secondary-text);
}

.unread-indicator {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .profile-actions {
    flex-direction: column;
  }

  .shop-actions-large {
    flex-direction: column;
  }
}

/* Dashboard Styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin: 0;
}

.logout-btn {
  background-color: var(--light-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.logout-btn:hover {
  background-color: #c62828;
  color: white;
  text-decoration: none;
}

.dashboard-tabs {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tab-nav {
  display: flex;
  background: var(--surface-variant);
  border-bottom: 1px solid var(--divider);
}

.tab-link {
  flex: 1;
  padding: 1rem 2rem;
  text-align: center;
  text-decoration: none;
  color: var(--secondary-text);
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.tab-link:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.tab-link.active {
  background: var(--surface);
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  padding: 2rem;
}

/* Settings specific styles */
.settings-card {
  max-width: 800px;
  margin: 0 auto;
}

.settings-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--divider);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 1rem 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.form-check-input {
  width: 18px;
  height: 18px;
}

.form-check-label {
  font-size: 1rem;
  color: var(--text);
}

.current-info {
  background: var(--surface-variant);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.dashboard-profile {
  max-width: none;
}

/* Mobile responsive for dashboard */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 1rem 0.5rem;
  }

  .dashboard-header h1 {
    font-size: 2rem;
  }

  .tab-nav {
    flex-direction: column;
  }

  .tab-link {
    border-bottom: none;
    border-right: 3px solid transparent;
  }

  .tab-link.active {
    border-right-color: var(--primary);
  }

  .tab-content {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .preset-buttons {
    justify-content: center;
  }
}

/* Home page specific styles */
.hero-section {
  text-align: center;
}
.hero-title-large {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-subtitle-large {
  color: var(--secondary-text);
  margin-bottom: 2rem;
  font-weight: normal;
}

.how-it-works-card {
  max-width: 500px;
  margin: 0 auto 2rem;
}

.how-it-works-card .card-body {
  text-align: left;
}

.how-it-works-title {
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-step-large {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.step-icon-large {
  font-size: 2rem;
  margin-right: 1rem;
}

.step-title-large {
  margin: 0;
  color: var(--primary-text);
}

.step-description-large {
  margin: 0;
  color: var(--secondary-text);
}

.cta-buttons-large {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

.credits-disclaimer {
  color: var(--secondary-text);
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* Credits page specific styles */
.credits-features-grid {
  display: grid;
  gap: 1rem;
}

.credit-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon-large {
  font-size: 1.5rem;
}

.feature-description-small {
  margin: 0;
  color: var(--secondary-text);
  font-size: 0.9rem;
}

.credits-packages-grid {
  display: grid;
  gap: 1rem;
}

.credit-package {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--divider);
  border-radius: 8px;
}

.credit-package-popular {
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: var(--light-primary);
}

.credit-package-premium {
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: rgba(139, 195, 74, 0.1);
}

.package-pricing {
  text-align: right;
}

.package-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
}

.package-price-accent {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent);
}

.package-description {
  margin: 0;
  color: var(--secondary-text);
}

.package-description-primary {
  margin: 0;
  color: var(--primary);
}

.package-description-accent {
  margin: 0;
  color: var(--accent);
}

.credits-help-section {
  text-align: center;
}

.credits-help-title {
  color: var(--secondary-text);
  margin-bottom: 0.5rem;
}

.credits-help-text {
  color: var(--secondary-text);
  margin: 0;
}

/* Browse Header and Filter Trigger */
.browse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.browse-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.filter-trigger-btn {
  position: relative;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.filter-trigger-btn:hover {
  background: var(--primary-variant);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.filter-icon {
  font-size: 1.1rem;
}

.filter-count {
  background: white;
  color: var(--primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
}

/* Filter Modal/Overlay */
.filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.filter-overlay.active {
  opacity: 1;
  visibility: visible;
}

.filter-modal {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.filter-overlay.active .filter-modal {
  transform: translateY(0);
}

.filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--divider);
}

.filter-modal-header h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.filter-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--secondary-text);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.filter-close:hover {
  color: var(--text);
}

.filter-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.filter-section {
  margin-bottom: 2rem;
}

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

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

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-checkbox-item {
  position: relative;
}

.filter-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
}

.filter-checkbox-label:hover {
  background: var(--surface-variant);
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--divider);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.filter-checkbox:checked + .filter-checkbox-label .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.filter-checkbox:checked + .filter-checkbox-label .checkbox-custom::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.filter-modal-footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--divider);
  display: flex;
  gap: 0.75rem;
}

.btn-full {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Desktop adjustments */
@media (min-width: 769px) {
  .filter-overlay {
    align-items: center;
  }

  .filter-modal {
    border-radius: 12px;
    max-height: 80vh;
    transform: scale(0.9) translateY(-50px);
  }

  .filter-overlay.active .filter-modal {
    transform: scale(1) translateY(0);
  }

  .filter-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .browse-header {
    padding: 0;
  }
}
