/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* BODY PORTAL */
body.portal {
  min-height: 100vh;
  background: linear-gradient(180deg, #020617, #0f172a);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTAINER CENTRAL */
.portal-container {
  text-align: center;
  max-width: 600px;
  width: 100%;
  padding: 40px 20px;
}

.portal-container h1 {
  font-size: 32px;
  color: #38bdf8;
  margin-bottom: 10px;
}

.portal-container p {
  font-size: 16px;
  color: #cbd5f5;
  margin-bottom: 40px;
}

/* SISTEMAS */
.portal-systems {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CARD DE SISTEMA */
.system-card {
  width: 220px;
  height: 120px;
  background: #020617;
  border-radius: 12px;
  text-decoration: none;
  color: #e5e7eb;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  font-weight: 600;

  border: 1px solid #1e293b;
  transition: all 0.25s ease;
}

.system-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 10px 25px rgba(56,189,248,0.15);
}

/* FLIP CARD */
.flip-card {
  perspective: 1000px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

/* FACES */
.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
}

/* FRENTE */
.flip-front {
  background: #020617;
  border: 1px solid #1e293b;
  font-size: 22px;
  font-weight: 600;
  color: #e5e7eb;
}

/* VERSO */
.flip-back {
  background: #020617;
  border: 1px solid #38bdf8;
  transform: rotateY(180deg);
}

.flip-back img {
  max-width: 140px;
  max-height: 80px;
}

/* ===============================
   RODAPÉ SUPORTE
================================ */

.portal-footer {
  position: fixed;
  bottom: 25px;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  pointer-events: none; /* evita conflitos */
}

.portal-footer a {
  pointer-events: auto; /* libera clique só no ícone */
}

.portal-footer img {
  width: 60px;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.portal-footer img:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.portal-footer span {
  font-size: 13px;
  color: #64748b; /* cinza elegante */
}
