/* BOUTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .005em;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent-deep); }

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover { background: var(--accent-deep); }

.btn--wa {
  background: var(--wa-green);
  color: #fff;
}
.btn--wa:hover { background: var(--wa-green-deep); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

.btn--ghost-inverse {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid rgba(236, 231, 220, 0.4);
}
.btn--ghost-inverse:hover {
  border-color: var(--accent-on-dark);
  color: var(--accent-on-dark);
}

.btn--sm {
  padding: 10px 16px;
  min-height: 40px;
  font-size: .92rem;
}

/* PILLS / TAGS */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 500;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.pill--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pill--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.pill--dot::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.pill--dot-mute::before { background: var(--text-mute); animation: none; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 0%, transparent); }
}

/* CARDS */
.c-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
}
.c-row__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  color: var(--accent-deep);
  flex-shrink: 0;
}
.c-row__icon svg { width: 22px; height: 22px; }

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: 20px;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 28, 29, 0.55);
  backdrop-filter: blur(2px);
}
.modal-box {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px 22px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}
.modal-box h2 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.modal-box h3 {
  font-family: var(--ff-display);
  font-size: 1rem;
  margin: 18px 0 6px;
  color: var(--accent-deep);
}
.modal-box p, .modal-box li {
  font-size: .94rem;
  color: var(--text-2);
}
.modal-box ul {
  padding-left: 18px;
  list-style: disc;
}
.modal-box ul li::marker { color: var(--accent); }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  font-size: 1.2rem;
  color: var(--text);
}
.modal-close:hover { background: var(--accent); color: #fff; }

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(15, 17, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  transition: background var(--t-fast);
}
.lb-btn:hover { background: rgba(255,255,255,0.22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev  { left: 18px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 18px; top: 50%; transform: translateY(-50%); }

/* FORM */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label {
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--r-md);
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* form on dark */
.section--dark .field label { color: var(--accent-on-dark); }
.section--dark .field input,
.section--dark .field select,
.section--dark .field textarea {
  background: rgba(255,255,255,0.04);
  border-color: rgba(216, 185, 122, 0.32);
  color: var(--text-on-dark);
}
.section--dark .field input::placeholder,
.section--dark .field textarea::placeholder { color: var(--text-on-dark-2); }
.section--dark .field input:focus,
.section--dark .field select:focus,
.section--dark .field textarea:focus {
  border-color: var(--accent-on-dark);
}

/* FAB */
.fab {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: var(--z-fab);
  background: var(--text);
  color: var(--bg);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--t-mid), transform var(--t-mid);
}
.fab.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.fab:hover { background: var(--accent-deep); }
.fab svg { width: 24px; height: 24px; }
@media (min-width: 768px) {
  .fab { display: none; }
}
