.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 12px 24px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
  transform: none;
}

.badge-counter {
  min-width: 16px;
  height: 16px;
  padding: 0 6px;
  background: var(--primary);
  color: #fff;
  line-height: 1;
  margin-left: 6px;
  font-size: 11px;
}

.badge-counter.is-hidden {
  display: none;
}

.btn-primary {
  background: #3A57E8;
  color: #fff;
}

.btn-primary:hover {
  background: #2D47C5;
  color: #fff;
  box-shadow: 0 8px 16px rgba(58, 87, 232, 0.25);
}

.btn-primary:active {
  background: #23389A;
  color: #fff;
  box-shadow: none;
}

.btn-primary:disabled {
  background: #A9B7F6;
  color: #fff;
}

.btn-accent {
  background: #2EC27E;
  color: #fff;
}

.btn-accent:hover {
  background: #26A76C;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(38, 167, 108, 0.25);
}

.btn-accent:active {
  background: #1F8A59;
  color: #fff;
  box-shadow: none;
}

.btn-outline,
.btn-outline-secondary {
  border: 1px solid #3A57E8;
  background: transparent;
  color: #3A57E8;
}

.btn-outline:hover,
.btn-outline-secondary:hover {
  background: #EFF3FF;
  color: #3A57E8;
  box-shadow: none;
}

.btn-outline:active,
.btn-outline-secondary:active {
  background: #DDE5FF;
  color: #2D47C5;
}

.btn-secondary {
  background: #F7F9FC;
  color: #2D2D2D;
  border: 1px solid transparent;
}

.btn-secondary:hover {
  background: #ECEFF5;
  color: #2D2D2D;
  box-shadow: none;
}

.btn-secondary:active {
  background: #E0E5EE;
  color: #2D2D2D;
}

.btn-danger {
  background: #FF6B6B;
  color: #fff;
  border: 1px solid transparent;
}

.btn-danger:hover {
  background: #E85858;
  color: #fff;
  box-shadow: 0 8px 16px rgba(255, 107, 107, 0.2);
}

.btn-warning {
  background: #f97316;
  color: #fff;
  border: none;
}

.btn-warning:hover {
  background: #ea580c;
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.2);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.input,
input[type=\"text\"],
input[type=\"email\"],
input[type=\"password\"],
input[type=\"number\"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(75,123,245,0.15);
}

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 16px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  cursor: pointer;
}

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

.listing-card--static {
  cursor: default;
}

.listing-card--static:hover {
  transform: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.listing-img {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

.listing-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.listing-category {
  font-size: 13px;
  color: var(--primary);
}

.listing-title {
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.listing-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 14px;
}

.listing-location-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.listing-price {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-top: auto;
}

.listing-seller-link {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  margin-top: 4px;
  display: inline-block;
}

.listing-seller-link:hover {
  text-decoration: underline;
}

.org-badge {
  background: #f5e9ff;
  color: #5a2ba0;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
}

.listing-actions {
  display: none;
}

.listing-actions:not([hidden]) {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.listing-actions .btn {
  flex: 1;
  min-height: 36px;
  border-radius: 8px;
  font-size: 14px;
}

.listing-card--highlighted {
  background: #fff8d6;
  border: 1px solid #f3d27b;
}

.listing-org-rating {
  font-size: 12px;
  color: #374151;
  margin-top: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.badge-type-good {
  background: rgba(79,180,119,0.15);
  color: var(--accent-green);
}

.badge-type-service {
  background: rgba(242,159,5,0.15);
  color: var(--accent-orange);
}

.badge-type-club {
  background: rgba(90,143,216,0.15);
  color: var(--primary-light);
}

.badge-type-event {
  background: rgba(242,193,209,0.3);
  color: var(--accent-pink);
}

.badge-role-admin {
  background: rgba(43,76,126,0.15);
  color: var(--primary);
}

.badge-role-business {
  background: rgba(79,180,119,0.15);
  color: var(--accent-green);
}

.category-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

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

.category-card .icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 20px;
  color: var(--primary-dark);
}

.category-card .name {
  font-weight: 600;
}

.category-card .type {
  color: var(--text-soft);
  font-size: 14px;
  margin-top: 6px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  width: min(520px, 90%);
  box-shadow: 0 24px 40px rgba(0,0,0,0.15);
}

.modal h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal form label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.modal form label:hover {
  background: #F7F9FB;
}

.modal form label input[type="radio"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.modal form .input {
  width: 100%;
  margin-bottom: 0;
}

.modal form .btn {
  margin-top: 8px;
}

.toast-container,
#toast-container {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
  pointer-events: none;
}

.toast {
  min-width: 240px;
  max-width: 420px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--toast-bg, #3B82F6);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: auto;
  font-weight: 600;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-error { --toast-bg: #EF4444; }
.toast-success { --toast-bg: #22C55E; }
.toast-info { --toast-bg: #3B82F6; }

.btn-report {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 13px;
  padding: 2px 0;
  cursor: pointer;
}

.btn-report:hover {
  color: #374151;
}

.icon-warning {
  font-size: 16px;
  color: #6B7280;
}

.btn-report:hover .icon-warning,
.btn-report-message:hover .icon-warning {
  color: #374151;
}

.btn-report-unified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #6B7280;
  margin: 0;
}

.btn-report-unified:hover {
  color: #374151;
}

.btn-report-unified .icon-warning {
  color: #6B7280;
}

.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid var(--border-gray);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
  margin: 32px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 32px 0;
}

.pagination button {
  border: 1px solid var(--border-gray);
  background: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
}

.pagination button.active {
  background: var(--primary);
  color: #fff;
}
