:root {
  --primary: #0055ff;
  --accent: #00d4ff;
  --glass: rgba(255, 255, 255, 0.95);
  --text: #0f172a;
}

* {
  box-sizing: border-box;
}
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: #f8fafc;
  margin: 0;
  padding: 20px;
  overflow-x: hidden;
}

/* Background e Marca d'água */
.background-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% -20%, #e2e8f0 0%, #f8fafc 100%);
  z-index: -1;
}
body::before {
  content: "AHGORA";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-size: 15vw;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.02);
  z-index: -1;
  pointer-events: none;
}

header {
  text-align: center;
  padding: 40px 0;
}
.logo-area h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.logo-area .thin {
  font-weight: 300;
  color: var(--primary);
}
.badge {
  background: rgba(0, 85, 255, 0.1);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Grid e Cards */
.wide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 15px;
  max-width: 1800px;
  margin: 0 auto;
}
.flip-card {
  height: 220px;
  perspective: 1000px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 24px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Estilo Pill e URL na frente */
.url-pill {
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-front {
  background: var(--glass);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.card-front i.main-icon {
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.card-front h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.card-back {
  background: var(--primary);
  color: white;
  transform: rotateY(180deg);
  text-align: center;
}
.card-back.warning {
  background: #f59e0b;
}
.card-back.danger {
  background: #ef4444;
}

.card-back p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 15px;
}
.btn-open {
  background: white;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}
.btn-open:hover {
  transform: scale(1.05);
}

/* Barra de Busca */
.search-bar {
  background: white;
  padding: 15px 25px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 0 auto;
}
.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  margin: 0 15px;
  font-size: 1rem;
}







/* Estilos do botão de limpar */
.clear-btn {
  cursor: pointer;
  color: #94a3b8;
  font-size: 1.1rem;
  padding: 5px;
  margin-right: 10px;
  display: none; /* Escondido por padrão */
  transition: color 0.2s ease, transform 0.2s ease;
}

.clear-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Ajuste na margem do input para acomodar o botão perfeitamente */
.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  margin: 0 10px 0 15px;
  font-size: 1rem;
}