/**
 * Dev & Sec - Reusable Components
 */

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(93, 255, 59, 0.32);
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #031006;
  padding: 13px 19px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(46, 255, 81, 0.16);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(46, 255, 81, 0.25);
}

.btn.alt {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.btn.alt:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

/* Eyebrow / Badges */
.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #c9ffd0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(93, 255, 59, 0.05);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(93, 255, 59, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 11px transparent;
  }
}

/* Tags & Chips */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tags span {
  font-size: 11px;
  color: #c6dac9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: #c7d8ca;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.contact-chip:hover {
  border-color: var(--green);
  color: var(--text);
}

/* Status Card (Hero) */
.status-card {
  position: relative;
  right: auto;
  bottom: auto;
  margin-top: 4px;
  align-self: flex-end;
  z-index: 3;
  background: rgba(7, 17, 10, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  width: 230px;
  box-shadow: var(--shadow);
}

.status-card small {
  color: #88a18e;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11px;
}

.status-card strong {
  display: block;
  font-size: 20px;
  margin: 4px 0;
  color: #dfffe2;
}

.bar {
  height: 5px;
  background: #17301c;
  border-radius: 5px;
  overflow: hidden;
}

.bar i {
  display: block;
  width: 93%;
  height: 100%;
  background: linear-gradient(90deg, var(--green2), var(--green));
}

/* Service Card */
.card {
  position: relative;
  padding: 31px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-7px);
  border-color: rgba(93, 255, 59, 0.4);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -30px -50px auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(93, 255, 59, 0.18), transparent 68%);
  pointer-events: none;
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(93, 255, 59, 0.09);
  color: var(--green);
  border: 1px solid var(--line);
  font-size: 22px;
}

.card h3 {
  font-size: 25px;
  margin: 20px 0 10px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

/* Terminal Component (Trilha de Treinamento) */
.terminal {
  background: #050a07;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal-head {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.terminal-head i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
}

.terminal-head i:nth-child(2) {
  background: #ffbd2e;
}

.terminal-head i:nth-child(3) {
  background: #27c93f;
}

pre {
  white-space: pre-wrap;
  margin: 0;
  padding: 27px;
  color: #b9d6bf;
  font: 13px/1.8 var(--font-mono);
}

pre b {
  color: var(--green);
}

/* FAQ Accordion */
details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 21px 0;
}

summary {
  cursor: pointer;
  font-size: 19px;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  color: var(--muted);
  max-width: 780px;
  margin: 14px 0 0;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 980;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #04150a;
  border-radius: 999px;
  padding: 11px 16px 11px 12px;
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(37, 211, 102, 0.34);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 48px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  flex-shrink: 0;
}

.whatsapp-float small {
  display: block;
  font-size: 10px;
  line-height: 1;
  color: #073714;
}

.whatsapp-float strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: #03180a;
}

/* Toast Notification */
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  background: #dfffe5;
  color: #07120a;
  padding: 13px 17px;
  border-radius: 12px;
  font-weight: 800;
  transform: translateY(100px);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  pointer-events: none;
}

.toast.show {
  transform: none;
  opacity: 1;
}
