/* Space Grotesk Font Definitions */
@font-face {
  font-family: 'Space Grotesk';
  src: url('./Space_Grotesk/static/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('./Space_Grotesk/static/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('./Space_Grotesk/static/SpaceGrotesk-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --panel: #f8f8f8;
  --text: #000000;
  --muted: #666666;
  --accent: #000000;
  --danger: #000000;
  --border: #e0e0e0;
  
  /* Typography System */
  --font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-size-lg: 24px;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  
  /* Prevent horizontal scrolling */
  --max-width: 100vw;
}

* { 
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body { 
  margin: 0; 
  padding: 0; 
  background: var(--bg); 
  color: var(--text); 
  font-family: var(--font-family); 
  font-size: var(--font-size-base); 
  font-weight: var(--font-weight-normal);
  overflow-x: hidden;
  width: 100%;
}

.container { 
  max-width: 920px; 
  margin: 0 auto; 
  padding: 16px;
  width: 100%;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .container {
    padding: 24px;
  }
}

/* Typography Classes */
h1, h2, h3 { 
  font-weight: var(--font-weight-semibold); 
  margin-top: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 { 
  font-size: clamp(20px, 5vw, var(--font-size-lg));
}

h2 { 
  font-size: clamp(18px, 4vw, calc(var(--font-size-base) * 1.25));
}

h3 { 
  font-size: clamp(16px, 3.5vw, var(--font-size-base));
}

p { 
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  h1 { font-size: var(--font-size-lg); }
  h2 { font-size: calc(var(--font-size-base) * 1.25); }
  h3 { font-size: var(--font-size-base); }
  p { line-height: 1.6; }
}

.app-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-bottom: 16px; 
  min-height: 48px; 
  padding-bottom: 12px;
  border-bottom: 2px solid #d0d0d0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  flex-wrap: wrap;
  gap: 12px;
}

.app-header h1 { 
  margin: 0; 
  font-size: clamp(20px, 5vw, var(--font-size-lg)); 
  font-weight: var(--font-weight-semibold);
}

.nav { 
  display: flex; 
  gap: 4px;
  flex-wrap: wrap;
}

.nav button { 
  margin-top: 0;
  padding: 6px 10px;
  font-size: 14px;
}

@media (max-width: 480px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .nav {
    justify-content: center;
    width: 100%;
  }
  
  .nav button {
    flex: 1;
    min-width: 70px;
    max-width: 120px;
  }
}

/* Content spacing after header */
.view {
  padding-top: 0;
  width: 100%;
  overflow-x: hidden;
}

.view.hidden, .hidden { display: none !important; }

.card { 
  background: var(--panel); 
  border: 1px solid var(--border); 
  padding: 16px; 
  border-radius: 10px; 
  margin-bottom: 16px;
  width: 100%;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .card {
    padding: 24px;
    margin-bottom: 24px;
  }
}
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.list { 
  display: flex; 
  flex-direction: column; 
  gap: 8px;
  width: 100%;
}
.row { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
.split { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gap { gap: 8px; }

label { 
  display: block; 
  margin: 12px 0 6px; 
  color: var(--muted); 
  font-size: var(--font-size-sm); 
  font-weight: var(--font-weight-medium);
}

label:first-child { 
  margin-top: 0;
}

input, textarea, select { 
  width: 100%; 
  padding: 12px; 
  background: #ffffff; 
  color: var(--text); 
  border: 1px solid var(--border); 
  border-radius: 8px; 
  font-family: var(--font-family); 
  font-size: 16px; /* Prevents zoom on iOS */
  font-weight: var(--font-weight-normal);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin-bottom: 4px;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  input, textarea, select {
    font-size: var(--font-size-base);
    padding: 12px 14px;
  }
}

/* Readonly input styling */
input[readonly] {
  background: #f5f5f5;
  color: #888888;
  cursor: not-allowed;
}
textarea { 
  resize: vertical;
  min-height: 80px;
}
select { 
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2398a2b3' d='M6 9L2 5h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Phone input group styles */
.phone-input-group { 
  display: flex; 
  gap: 6px; 
  align-items: stretch;
  width: 100%;
}

.country-code-select { 
  width: 95px; 
  flex-shrink: 0;
  font-weight: var(--font-weight-normal);
  font-size: 14px;
  padding: 12px 8px;
}

.phone-input-group input { 
  flex: 1;
  min-width: 0;
}

@media (min-width: 480px) {
  .phone-input-group {
    gap: 8px;
  }
  
  .country-code-select {
    width: 110px;
    font-size: 16px;
    padding: 12px;
  }
}
button { 
  padding: 12px 20px; 
  border: 1px solid var(--text); 
  background: var(--text); 
  color: var(--bg); 
  border-radius: 8px; 
  cursor: pointer; 
  font-family: var(--font-family); 
  font-size: 16px; /* Prevents zoom on iOS */
  font-weight: var(--font-weight-medium); 
  margin-top: 12px;
  width: 100%;
  touch-action: manipulation;
}

@media (min-width: 768px) {
  button {
    font-size: var(--font-size-base);
    margin-top: 16px;
    width: auto;
  }
}
.btn { 
  padding: 8px 12px; 
  background: var(--text); 
  border-radius: 8px; 
  color: var(--bg); 
  text-decoration: none; 
  font-size: 14px; 
  font-weight: var(--font-weight-medium);
  display: inline-block;
  text-align: center;
}

@media (min-width: 768px) {
  .btn {
    font-size: var(--font-size-base);
  }
}
.btn:hover { filter: brightness(0.95); }
.link { 
  background: transparent; 
  border: none; 
  color: var(--text); 
  cursor: pointer; 
  font-size: 14px;
  padding: 8px 12px;
  touch-action: manipulation;
}

.link:hover { 
  background: var(--text) !important; 
  color: white !important;
}

@media (min-width: 768px) {
  .link {
    font-size: var(--font-size-base);
  }
}
.danger { 
  background: var(--bg); 
  color: var(--text); 
  border: 1px solid var(--text);
  touch-action: manipulation;
}

.danger:hover { 
  background: var(--text) !important; 
  color: white !important;
}

/* Add Filters button styling */
#btn-add-filters {
  background: white;
  color: var(--text);
  border: 2px solid var(--text);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease;
  white-space: nowrap;
  margin: 0;
  font-size: 14px;
}

@media (min-width: 480px) {
  #btn-add-filters {
    padding: 10px 20px;
    font-size: var(--font-size-base);
  }
}

#btn-add-filters:hover {
  background: var(--text);
  color: white;
}
.muted { 
  color: var(--muted); 
  font-size: clamp(13px, 2.5vw, var(--font-size-sm));
}
.error { 
  color: var(--text); 
  font-weight: var(--font-weight-semibold);
  font-size: clamp(14px, 2.5vw, var(--font-size-base));
}

.kv { 
  display: flex; 
  justify-content: space-between; 
  gap: 8px; 
  font-size: 13px; 
  padding: 6px 0; 
  border-bottom: 1px dashed var(--border);
  flex-wrap: wrap;
}

.kv:last-child { 
  border-bottom: none;
}

@media (min-width: 768px) {
  .kv {
    font-size: var(--font-size-sm);
  }
}

/* Loading states */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button:disabled:hover {
  background: var(--text);
}

/* Info messages */
.info {
  color: var(--text);
  font-size: clamp(13px, 2.5vw, var(--font-size-sm));
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 12px;
  word-wrap: break-word;
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
}

.hero-content {
  flex: 1;
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.hero-title {
  font-size: clamp(24px, 6vw, 48px);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

.hero-points li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: clamp(14px, 2.5vw, 16px);
  color: var(--text);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

.hero-points li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.hero-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    gap: 48px;
    margin-bottom: 48px;
    padding: 48px 0;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-title {
    margin-bottom: 32px;
  }
  
  .hero-subtitle {
    margin: 0 0 24px 0;
  }
  
  .hero-points li {
    margin-bottom: 12px;
  }
  
  .hero-image {
    max-width: 400px;
  }
}

.login-title {
  text-align: center;
  margin: 24px 0 20px 0;
  font-size: clamp(20px, 4vw, 24px);
}

.otp-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  width: 100%;
}

.approval-notice {
  text-align: center;
  color: var(--muted);
  font-size: clamp(13px, 2.5vw, 14px);
  margin: 16px auto;
  max-width: 400px;
  padding: 0 16px;
  line-height: 1.5;
}

#login-form {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .login-title {
    margin: 48px 0 32px 0;
  }
  
  .otp-container {
    padding: 20px;
  }
  
  .approval-notice {
    padding: 0 20px;
  }
}

.otp-section {
  margin-top: 20px;
  animation: slideDown 0.3s ease-out;
}

.otp-section.hidden {
  display: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.otp-help-text {
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 0;
}

.resend-section {
  margin-top: 12px;
  text-align: center;
}

.resend-section.hidden {
  display: none;
}

#resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.2s;
  margin-top: 0;
  touch-action: manipulation;
}

@media (min-width: 768px) {
  #resend-btn {
    font-size: 0.9rem;
  }
}

#resend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #666;
}

#resend-btn:not(:disabled):hover {
  text-decoration: underline;
}

.resend-icon {
  font-size: 1.1rem;
  display: inline-block;
  transition: transform 0.3s;
}

#resend-btn:not(:disabled):hover .resend-icon {
  transform: rotate(180deg);
}

/* Remove old media query - replaced with mobile-first approach */

/* Listing Card Styles */
.listing-card {
  background: white;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  width: 100%;
}

@media (min-width: 768px) {
  .listing-card {
    padding: 24px;
  }
}

.listing-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}

.listing-name {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 12px 0;
  color: var(--text);
  line-height: 1.3;
  word-wrap: break-word;
}

@media (min-width: 768px) {
  .listing-name {
    margin: 0 0 16px 0;
  }
}

.listing-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.listing-info {
  flex: 1;
  margin-bottom: 16px;
}

.posted-by {
  font-size: clamp(13px, 2.5vw, var(--font-size-sm));
  color: var(--muted);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .posted-by {
    padding-top: 16px;
  }
}

.owner-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .owner-actions {
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
  }
}

.listing-detail {
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
  font-weight: var(--font-weight-normal);
  word-wrap: break-word;
}

@media (min-width: 768px) {
  .listing-detail {
    margin-bottom: 12px;
    line-height: 1.6;
  }
}

.view-details-btn {
  align-self: flex-start;
  padding: 8px 20px;
  background: var(--text);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 12px 0;
  width: 100%;
}

@media (min-width: 480px) {
  .view-details-btn {
    padding: 10px 24px;
    font-size: var(--font-size-base);
    margin: 16px 0;
    width: auto;
  }
}

.view-details-btn:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.listing-detail-label {
  font-weight: var(--font-weight-medium);
  color: var(--text);
  display: inline-block;
  min-width: 100px;
}

@media (min-width: 480px) {
  .listing-detail-label {
    min-width: 120px;
  }
}

.listing-about {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: clamp(14px, 2.5vw, var(--font-size-base));
  line-height: 1.5;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .listing-about {
    margin-top: 12px;
    padding-top: 12px;
    line-height: 1.6;
  }
}

/* Action Button Styles */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: white;
  color: var(--text);
  border: 2px solid var(--text);
  border-radius: 6px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn:hover {
  background: var(--text);
  color: white;
}

.action-btn.delete {
  background: white;
  color: var(--text);
  border: 2px solid var(--text);
}

.action-btn.delete:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
}

/* Filter Button Fix */
.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  width: 100%;
}

.split h2 {
  margin: 0;
  flex: 1;
  font-size: clamp(20px, 4vw, 24px);
  min-width: 0;
}

.split .btn {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 14px;
  margin: 0;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .split {
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .split .btn {
    padding: 10px 20px;
    font-size: var(--font-size-base);
  }
}

#btn-create-new {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease;
  white-space: nowrap;
  font-size: 14px;
}

@media (min-width: 480px) {
  #btn-create-new {
    padding: 10px 20px;
    font-size: var(--font-size-base);
  }
}

#btn-create-new:hover {
  background: #333;
  transform: scale(1.02);
}

/* Grid Layout Improvements */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1280px;
  }
  
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1480px;
  }
  
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* Mobile-specific improvements */
.listing-header {
  flex-direction: column;
  gap: 10px;
}

.listing-actions {
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.action-btn {
  flex: 1;
  min-width: 80px;
  max-width: 150px;
  padding: 6px 12px;
  font-size: 13px;
}

@media (max-width: 480px) {
  .split {
    flex-direction: column;
    align-items: stretch;
  }
  
  .split .btn, #btn-create-new {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .listing-header {
    flex-direction: row;
    gap: 12px;
  }
  
  .listing-actions {
    width: auto;
  }
  
  .action-btn {
    flex: initial;
    min-width: initial;
    max-width: initial;
    padding: 8px 20px;
    font-size: var(--font-size-sm);
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--bg);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

@media (min-width: 768px) {
  .modal {
    padding: 20px;
  }
  
  .modal-content {
    width: 90%;
    max-height: 90vh;
  }
}

.profile-modal {
  max-width: 600px;
  padding: 16px;
}

@media (min-width: 768px) {
  .profile-modal {
    padding: 24px;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
}

.modal-close:hover {
  background: var(--panel);
  color: var(--text);
}

.profile-section {
  margin-bottom: 24px;
}

.profile-section h2 {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.profile-section h3 {
  font-size: clamp(17px, 3.5vw, 1.2em);
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: var(--font-weight-semibold);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

@media (min-width: 768px) {
  .profile-section h3 {
    margin-top: 24px;
    margin-bottom: 16px;
  }
}

.profile-detail {
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(14px, 2.5vw, var(--font-size-base));
  word-wrap: break-word;
}

.profile-detail .label {
  font-weight: var(--font-weight-semibold);
  margin-right: 8px;
}

.profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 0;
  flex-wrap: wrap;
}

.profile-actions button {
  flex: 1;
  min-width: 100px;
}

@media (min-width: 768px) {
  .profile-actions {
    gap: 12px;
  }
  
  .profile-actions button {
    flex: initial;
    min-width: initial;
  }
}

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

.modal-header h3 {
  margin: 0;
  font-size: clamp(18px, 3.5vw, 20px);
}

@media (min-width: 768px) {
  .modal-header {
    padding: 20px 24px;
  }
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--muted);
}

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

.modal-body {
  padding: 16px;
}

.modal-body label {
  margin-top: 12px;
}

.modal-body label:first-child {
  margin-top: 0;
}

.modal-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.modal-footer button {
  min-width: 80px;
}

@media (min-width: 768px) {
  .modal-body {
    padding: 24px;
  }
  
  .modal-body label {
    margin-top: 16px;
  }
  
  .modal-footer {
    padding: 20px 24px;
    gap: 12px;
  }
}

/* Active Filters Display */
.active-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

@media (min-width: 768px) {
  .active-filters {
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: visible;
  }
}

.active-filters .filter-tag {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .active-filters .filter-tag {
    padding: 6px 12px;
    font-size: var(--font-size-sm);
    gap: 8px;
  }
}

.active-filters .filter-tag .remove-filter {
  cursor: pointer;
  font-weight: bold;
  color: var(--muted);
}

.active-filters .filter-tag .remove-filter:hover {
  color: var(--text);
}

/* Profile View Styles */
.profile-info-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 4px;
}

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

.profile-label {
  font-weight: var(--font-weight-semibold);
  color: var(--muted);
  font-size: 14px;
  margin-right: 0;
}

.profile-value {
  color: var(--text);
  font-size: 16px;
  flex: 1;
  word-wrap: break-word;
  width: 100%;
}

@media (min-width: 640px) {
  .profile-info-section {
    gap: 16px;
  }
  
  .profile-info-item {
    flex-direction: row;
    align-items: center;
    padding: 12px 0;
  }
  
  .profile-label {
    min-width: 150px;
    margin-right: 16px;
    font-size: var(--font-size-base);
  }
  
  .profile-value {
    font-size: var(--font-size-base);
  }
}

