/* =========================================
   Global Variables & Design System
========================================= */
:root {
  /* Colors */
  --color-primary: #1E40AF; /* Trustworthy Blue */
  --color-secondary: #EA580C; /* Warm Orange for CTA */
  --color-secondary-hover: #C2410C;
  --color-text-main: #1F2937;
  --color-text-muted: #4B5563;
  --color-bg-base: #FFFFFF;
  --color-bg-alt: #F3F4F6; /* Gray 100 */
  --color-bg-accent: #EFF6FF; /* Blue 50 */
  --color-border: #E5E7EB;

  /* Typography */
  --font-family-base: 'Inter', 'Noto Sans JP', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* =========================================
   Reset & Base Styles
========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

/* =========================================
   Layout & Utilities
========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-accent {
  background-color: var(--color-bg-accent);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--color-primary);
}

/* =========================================
   Components
========================================= */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(234, 88, 12, 0.39);
}

.btn-primary:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  height: 70px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header-logo img {
  height: 48px;
  object-fit: contain;
}

/* Typography Utilities */
.text-primary {
  color: var(--color-primary);
}
.sp-only {
  display: none;
}

/* Cards */
.card {
  background: var(--color-bg-base);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 30px 20px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* =========================================
   Sections
========================================= */

/* Hero (FV) */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  background-color: var(--color-bg-base);
  background-image: 
    radial-gradient(circle at top right, rgba(30, 64, 175, 0.05) 0%, transparent 40%),
    radial-gradient(circle at bottom left, rgba(234, 88, 12, 0.05) 0%, transparent 40%);
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
}

/* Problems */
.problem-section {
  text-align: center;
  position: relative;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.problem-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.problem-text {
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.5;
}

.problem-arrow {
  color: var(--color-primary);
  opacity: 0.5;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Solution */
.solution-section {
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg-accent) 0%, #fff 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.solution-content {
  max-width: 800px;
  margin: 0 auto;
}

.solution-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text-main);
}

/* Reasons */
.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.reason-item {
  display: flex;
  align-items: center;
  background: var(--color-bg-base);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  gap: 30px;
}

.reason-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
}

.reason-content {
  flex: 1;
}

.reason-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.reason-desc {
  color: var(--color-text-muted);
}

/* Works */
.work-lead {
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--color-text-muted);
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.work-card {
  background: var(--color-bg-base);
  border-radius: 12px;
  padding: 25px;
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.work-category {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.work-items {
  list-style: none;
}

.work-items li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}

.work-items li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

/* =========================================
   Search Results
========================================= */
.search-results-section {
  background-color: #fcf8f6;
  border-top: 1px solid var(--color-border);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.results-count {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
}
.results-count-number {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-right: 5px;
}
.results-count-text {
  font-size: 1rem;
  font-weight: normal;
  color: var(--color-text-muted);
}

.sort-select {
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-base);
  font-size: 0.95rem;
  color: var(--color-text-main);
  outline: none;
  cursor: pointer;
}

/* Active Filters */
.active-filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--color-bg-base);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.filter-tag .remove-filter {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0 0 5px;
  opacity: 0.7;
}

.filter-tag .remove-filter:hover {
  opacity: 1;
}

/* Results Grid & Cards */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--color-bg-base);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #f1f5f9;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-alt);
}

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

.service-card:hover .card-image {
  transform: scale(1.05);
}

.card-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--color-text-main);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--color-text-main);
  /* Truncate to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
  /* Truncate to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-provider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.provider-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-alt);
}

.provider-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition-fast);
}

.card-provider:hover .provider-name {
  text-decoration-color: var(--color-text-main);
}

.card-divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: 15px;
  width: 100%;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card-price-area {
  display: flex;
  align-items: Baseline;
  color: var(--color-secondary);
}

.price-currency {
  font-size: 1rem;
  font-weight: 700;
  margin-right: 2px;
}

.price-amount {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.price-suffix {
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 2px;
  color: var(--color-text-muted);
}

.btn-card-action {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  background: transparent;
  padding: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-card-action:hover {
  background: rgba(234, 88, 12, 0.05); /* Light orange tint */
  transform: translateY(-2px);
}
.btn-card-action:active {
  transform: scale(0.98);
}


/* =========================================
   Forms (Register Page)
========================================= */
.bg-gray {
  background-color: #f8fafc;
}

.page-main {
  min-height: calc(100vh - 160px); /* header + footer approximation */
  padding: 40px 0 60px;
}

.container-sm {
  max-width: 680px;
}

.form-wrapper {
  padding: 40px;
  border: 1px solid var(--color-border);
}

.form-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-xs {
  font-size: 0.8rem;
}

/* Utilities */
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 30px; }
.mt-5 { margin-top: 40px; }
.g-2 { gap: 10px; }

.row {
  display: flex;
  flex-wrap: wrap;
}
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .mt-md-0 {
    margin-top: 0;
  }
}

/* Form Controls */
.form-group {
  margin-bottom: 0;
  border: none;
  padding: 0;
}

.form-label {
  display: flex;
  align-items: center;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  border-radius: 4px;
  margin-left: 10px;
  font-weight: 700;
}

.badge-required {
  background-color: var(--color-secondary);
  color: white;
}

.badge-optional {
  background-color: var(--color-border);
  color: var(--color-text-muted);
}

.form-control {
  display: block;
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-main);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  font-family: inherit;
}

.form-control:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); /* Tailwind primary ring */
}

select.form-control {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Radio Buttons */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-radio {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  position: relative;
  transition: all var(--transition-fast);
  background: white;
}

.radio-label input:checked ~ .custom-radio {
  border-color: var(--color-primary);
}

.radio-label input:checked ~ .custom-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.radio-label input:focus ~ .custom-radio {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-block {
  display: block;
  width: 100%;
}


/* Steps */
.steps-list {
  max-width: 600px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  background: var(--color-bg-base);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.step-number {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  font-size: 1.2rem;
}

.step-content {
  padding: 25px;
}

.step-title {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--color-primary);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.step-arrow {
  text-align: center;
  font-size: 1.5rem;
  color: var(--color-border);
  margin: 15px 0;
}

.step-note {
  text-align: center;
  color: var(--color-secondary);
  font-weight: bold;
  margin-top: 30px;
}

/* Voice */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.voice-card {
  position: relative;
  border-top: 4px solid var(--color-secondary);
}

.voice-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
}

.voice-title {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 700;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  padding: 20px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  list-style: none; /* Hide default arrow */
}
.faq-q::-webkit-details-marker {
  display: none;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-primary);
}
.faq-item[open] .faq-q::after {
  content: "-";
}

.faq-a {
  padding: 0 20px 20px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  margin-top: 10px;
  padding-top: 20px;
}

/* Closing */
.closing-section {
  text-align: center;
  padding: 100px 0;
}

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

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.copyright {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .problem-grid, .work-grid, .voice-grid, .results-grid {
    grid-template-columns: 1fr;
  }
  .reason-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .reason-number {
    font-size: 4rem;
  }
  .sp-only {
    display: block;
  }
  .hero {
    padding-top: 100px;
  }
  .btn-lg {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
  .step-item {
    flex-direction: column;
  }
  .step-number {
    padding: 10px;
    min-width: auto;
  }
  .closing-title {
    font-size: 1.5rem;
  }
}

/* =========================================
   Modal
========================================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  background: var(--color-bg-base);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.modal.is-open .modal-container {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.modal-close {
  background: var(--color-bg-alt);
  border: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: #e5e7eb;
  color: var(--color-text-main);
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

.modal-loader {
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 0;
}

/* Category Groups */
.category-group {
  margin-bottom: 35px;
}
.category-group:last-child {
  margin-bottom: 10px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.btn-select-all {
  background: none;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--color-text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-select-all:hover {
  background: var(--color-bg-alt);
}

/* Chips */
.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.category-chip:hover {
  border-color: #d1d5db;
  color: var(--color-text-main);
}

.category-chip.is-selected {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
  font-weight: 600;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-base);
}

.btn-clear-all {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 5px;
}
.btn-clear-all:hover {
  color: var(--color-text-main);
}

.modal-footer-actions {
  display: flex;
  gap: 15px;
}

.btn-cancel {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cancel:hover {
  background: var(--color-bg-alt);
}

.btn-apply {
  padding: 0.6rem 2rem;
}

/* Responsive modal tweaks */
@media (max-width: 768px) {
  .modal-container {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .modal-header, .modal-footer, .modal-body {
    padding: 20px;
  }
}
