.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  border-color: var(--border-highlight);
}

.card-interactive:active {
  transform: scale(0.985);
}

.form-group {
  margin-bottom: 15px;
  min-width: 0;
  width: 100%;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-label span.optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.75rem;
}

.form-input, .form-select, .form-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  color: var(--text-primary);
  color-scheme: dark;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="date"].form-input {
  min-height: 50px;
  line-height: 1.4;
}

input[type="date"].form-input::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
}

.form-textarea {
  resize: vertical;
  min-height: 76px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.18);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.14s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  text-decoration: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-festive);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #0f172a;
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 8px 13px;
  font-size: 0.82rem;
  border-radius: 12px;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.action-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.action-tile:active {
  transform: scale(0.97);
}

.action-tile-primary {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.2), rgba(20, 27, 45, 0.85));
  border-color: rgba(244, 63, 94, 0.35);
}

.action-tile-secondary {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(20, 27, 45, 0.85));
  border-color: rgba(99, 102, 241, 0.35);
}

.action-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
}

.action-tile h3 {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}

.action-tile p {
  font-size: 0.77rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.section-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.25;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

.badge-open {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-drawn {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.badge-budget {
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-owner {
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
