.card {
  background: var(--panel);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  z-index: 0;
}

.card h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.actions-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.actions-wrap.vertical {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.top-space {
  margin-top: 12px;
}

/* Button Styles - using Button component */

/* Base Button Style */
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger,
.btn-icon {
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-height: 40px;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Button Variants - Flat Colors */
.btn-primary {
  background: #06b6d4;
  color: #fff;
}

.btn-secondary {
  background: #64748b;
  color: #fff;
}

.btn-ghost {
  background: #e2e8f0;
  color: #334155;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-icon {
  padding: 8px 12px;
  min-height: 36px;
  background: #e2e8f0;
  color: #334155;
}

.btn-icon-danger {
  background: #fee2e2;
  color: #dc2626;
}

.btn-icon-danger:hover:not(:disabled) {
  background: #fecaca;
}

/* Button Sizes */
.btn-sm {
  padding: 8px 12px;
  min-height: 34px;
  font-size: 14px;
}

.btn-md {
  padding: 10px 14px;
  min-height: 40px;
  font-size: 14px;
}

.btn-lg {
  padding: 12px 18px;
  min-height: 44px;
  font-size: 14px;
}

/* Button Full Width */
.btn-full-width {
  width: 100%;
}

/* Button with Loading Spinner */
.btn-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-primary .btn-spinner {
  border-top-color: #fff;
}

.btn-secondary .btn-spinner {
  border-top-color: #fff;
}

.btn-ghost .btn-spinner,
.btn-icon .btn-spinner {
  border-top-color: #334155;
}

.btn-danger .btn-spinner {
  border-top-color: #fff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-primary:hover:not(:disabled) {
  background: #0891b2;
}

.btn-secondary:hover:not(:disabled) {
  background: #475569;
}

.btn-ghost:hover:not(:disabled) {
  background: #cbd5e1;
}

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

.btn-icon:hover:not(:disabled) {
  background: #cbd5e1;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
.btn-danger:focus-visible,
.btn-icon:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled,
.btn-danger:disabled,
.btn-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.hint.strong {
  color: #fe2c55;
  font-weight: 700;
}

.error-text {
  margin-top: 8px;
  color: #b91c1c;
  font-size: 12px;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
  color: #374151;
  line-height: 1.7;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}

.check-grid label {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #374151;
}

.check-grid input[type='checkbox'] {
  width: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  border-radius: 50%;
  background: #f3f4f6;
}

.muted {
  color: #d1d5db;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f172a;
  text-decoration: none;
  border: 1px solid #dbe3ef;
  background: #f8fafd;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-weight: 600;
}

.btn-link:hover {
  background: #eef4ff;
  border-color: #c9d8ef;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #06b6d4;
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: #0891b2;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.16);
}

/* KOC Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge-not_contacted {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-pending {
  background-color: #fed7aa;
  color: #92400e;
}

.badge-negotiating {
  background-color: #bae6fd;
  color: #0c4a6e;
}

.badge-confirmed {
  background-color: #bbf7d0;
  color: #065f46;
}

.badge-completed {
  background-color: #86efac;
  color: #166534;
}

.badge-cancelled {
  background-color: #f87171;
  color: #7f1d1d;
}

.badge-rejected {
  background-color: #fca5a5;
  color: #7f1d1d;
}

/* Consistent small link style used for KOC social links across views */
.links-wrap a {
  font-size: 13px;
  color: #0284c7;
  text-decoration: none;
}

.links-wrap a:hover {
  text-decoration: underline;
}

/* Additional class for social links rendered outside of .links-wrap */
.social-link {
  font-size: 13px;
  color: #0284c7;
  text-decoration: none;
}

.social-link:hover {
  text-decoration: underline;
}