/* CassinosPerfeitos - Chicken Road Theme
   New, unique design system with fresh classes and effects
   GEO: PT (Portuguese). Avoids the word "casino" in text content guidelines.
   Brand: cassinosperfeitos
   Palette: Night Sky, Chicken Yellow, Hot Orange, Mint Neon, Asphalt Gray
*/

:root {
  --cr-bg: #0b1020; /* night sky */
  --cr-surface: #121735; /* deep indigo */
  --cr-surface-2: #0f1a2e; /* darker panel */
  --cr-ink: #e8f0ff; /* light text */
  --cr-ink-dim: #b7c2e8; /* secondary text */
  --cr-accent: #ffd400; /* chicken yellow */
  --cr-accent-2: #ff7a1a; /* hot orange */
  --cr-mint: #2fffd2; /* mint neon */
  --cr-road: #2a2f3d; /* asphalt */
  --cr-success: #61ffa0;
  --cr-danger: #ff5670;
  --cr-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
  --cr-radius: 16px;
  --cr-radius-lg: 22px;
  --cr-gap: 20px;
  --cr-gap-lg: 28px;
}

/* Typography: Use with Google Fonts in HTML: 'Changa', 'Rubik' */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: radial-gradient(
    1200px 800px at 10% 5%,
    #121b3d 0%,
    #0b1020 50%,
    #080c17 100%
  );
  color: var(--cr-ink);
  font-family: "Rubik", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

.cr-container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* Header (optional, if added later) */
.cr-sitebar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 32, 0.95),
    rgba(10, 15, 32, 0.75)
  );
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cr-sitebar__wrap {
  display: flex;
  align-items: center;
  gap: var(--cr-gap);
  padding: 14px 0;
}
.cr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.cr-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
}
.cr-brand__name {
  font-family: "Changa", system-ui, sans-serif;
  font-size: 20px;
  color: var(--cr-accent);
  text-shadow: 0 2px 10px rgba(255, 212, 0, 0.25);
}

.cr-nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
}
.cr-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--cr-ink-dim);
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.cr-nav a:hover {
  color: var(--cr-ink);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

/* HERO */
.cr-hero {
  position: relative;
  padding: 64px 0 24px;
  overflow: hidden;
}
.cr-hero__wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--cr-gap-lg);
  align-items: center;
}
.cr-eyebrow {
  color: var(--cr-mint);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.9;
}
.cr-hero__title {
  font-family: "Changa", system-ui, sans-serif;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.15;
  margin: 10px 0 16px;
  text-wrap: balance;
}
.cr-hero__desc {
  color: var(--cr-ink-dim);
  font-size: 18px;
  max-width: 58ch;
}

.cr-badges {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.cr-badge {
  font-size: 13px;
  color: #0a1020;
  background: linear-gradient(180deg, var(--cr-accent), #ffc400);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(255, 212, 0, 0.25);
}
.cr-badge--soft {
  background: linear-gradient(180deg, #1a223d, #121735);
  color: var(--cr-ink-dim);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--cr-shadow);
}

.cr-hero__art {
  background: linear-gradient(180deg, #131a3a, #0f1a2e);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--cr-radius-lg);
  box-shadow: var(--cr-shadow);
  padding: 12px;
  position: relative;
}
.cr-hero__art-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/11;
  background: url("../assets/monitor.webp") center/cover no-repeat;
  transform: perspective(1200px) rotateX(2deg) rotateY(-3deg);
  animation: crFloat 8s ease-in-out infinite;
}
.chiken {
  position: absolute;
  top: 47.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88.5%;
  height: 87%;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

@keyframes crFloat {
  0%,
  100% {
    transform: perspective(1200px) rotateX(2deg) rotateY(-3deg) translateY(0);
  }
  50% {
    transform: perspective(1200px) rotateX(1deg) rotateY(-2deg) translateY(-6px);
  }
}

/* FEATURED GRID (replaces cards) */
.cr-grid {
  margin: 26px 0 12px;
}
.cr-grid__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.cr-grid__title {
  font-size: 22px;
  color: var(--cr-ink);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.cr-grid__subtitle {
  color: var(--cr-ink-dim);
  font-size: 14px;
}

.cr-grid__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--cr-gap);
  grid-template-columns: repeat(3, 1fr);
}

.cr-card {
  background: linear-gradient(180deg, #111733, #0e142b);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--cr-radius);
  box-shadow: var(--cr-shadow);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 212, 0, 0.18) inset;
  border-color: rgba(255, 212, 0, 0.35);
}

.cr-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 6px;
  gap: 12px;
}
.cr-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--cr-accent);
}
.cr-rank__chip {
  background: #1d223f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cr-ink-dim);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.cr-card__logo {
  padding: 0 14px 10px;
}
.cr-card__logo img {
  width: 100%;
  height: 130px;
  padding: 14px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cr-meta {
  padding: 0 14px 14px;
  text-align: center;
  display: grid;
  gap: 8px;
  color: var(--cr-ink-dim);
  font-size: 14px;
}
.cr-meta strong {
  color: var(--cr-ink);
}
.bonus {
  display: block;
}
.bonus + span {
  font-size: 1.1rem;
}

.cr-pay {
  padding: 8px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.cr-pay img {
  height: 14px;
  width: auto;
  filter: saturate(1.1) contrast(0.95);
  opacity: 0.9;
}

.cr-metrics {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 10px;
}
.cr-chip {
  flex: 1;
  background: #141c3a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cr-ink-dim);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  font-weight: 700;
}
.cr-chip strong {
  display: block;
  color: var(--cr-mint);
  font-size: 18px;
  margin-top: 2px;
}

.cr-cta {
  display: block;
  margin: 8px 14px 14px;
  background: linear-gradient(180deg, var(--cr-accent-2), #ff5a00);
  border: none;
  color: #0b0f20;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.35);
  text-align: center;
  transition: transform 0.15s ease, filter 0.2s ease;
}
.cr-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05) saturate(1.1);
}

/* Content Section */
.cr-section {
  padding: 36px 0 60px;
}
.cr-section h3 {
  font-size: 22px;
  margin: 18px 0 8px;
  font-family: "Changa", system-ui, sans-serif;
}
.cr-section p {
  color: var(--cr-ink-dim);
  margin: 0 0 10px;
}

.cr-callout {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #111734, #0c132a);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

/* Footer */
.cr-footer {
  padding: 28px 0 34px;
  background: linear-gradient(180deg, #0a0f22, #090e1c);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cr-footer__wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cr-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cr-footer__links a {
  color: var(--cr-ink-dim);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cr-footer__links a:hover {
  color: var(--cr-ink);
  background: rgba(255, 255, 255, 0.04);
}
.cr-legal {
  color: var(--cr-ink-dim);
  font-size: 14px;
  margin: 0;
}

.cr-badgesbar {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.cr-badgesbar img {
  height: 30px;
  width: auto;
  opacity: 0.9;
  filter: saturate(1.1);
}

/* Cookie popup (re-skin) - ensure hooks by IDs remain usable */
.cookie-popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(420px, 92vw);
  background: #0e1530;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: var(--cr-shadow);
  color: var(--cr-ink);
  z-index: 100;
  padding: 16px;
}
.cookie-popup h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.cookie-popup p {
  margin: 0 0 10px;
  color: var(--cr-ink-dim);
}
.cookie-popup .buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-popup .buttons button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
}
.cookie-popup .accept-all {
  background: linear-gradient(180deg, var(--cr-accent), #ffc400);
  color: #0b0f20;
}
.cookie-popup .reject-non-essential {
  background: #172149;
  color: var(--cr-ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cookie-popup .customize {
  background: #111733;
  color: var(--cr-ink-dim);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cookie-settings {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #0c132a;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.checkbox {
  margin: 6px 0;
}
.checkbox__label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--cr-ink-dim);
}

/* Utilities */
.cr-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.cr-sep {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0)
  );
  margin: 16px 0;
}
.big {
  height: 34px !important;
}
/* Responsive */
@media (max-width: 960px) {
  .cr-hero__wrap {
    grid-template-columns: 1fr;
  }
  .cr-grid__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cr-nav {
    display: none;
  }
  .cr-grid__list {
    grid-template-columns: 1fr;
  }
  .cr-card__logo img {
    height: 120px;
  }

  .chiken {
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }
  .cr-hero {
    padding: 14px 0 12px;
  }
  .cr-grid__head {
    flex-wrap: wrap;
  }
  .cr-badges {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .cr-badge {
    font-size: 10px;
    text-align: center;
    padding: 2px 4px;
  }
  .cr-hero__art,
  .cr-grid__head {
    display: none;
  }
  .cr-hero__desc {
    margin: 0;
    font-size: 0.8rem;
  }

  .big {
    height: 24px !important;
  }
  .cr-sitebar__wrap {
    justify-content: center;
  }
  .cr-hero__title {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
  }
}

/* Form and validation styles */
/* Base fields */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  background: #111733;
  color: var(--cr-ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Focus (orange accent) */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--cr-accent-2) !important; /* hot orange */
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.25);
}

/* Error state (red) */
.is-invalid {
  border-color: var(--cr-danger) !important; /* red */
  box-shadow: 0 0 0 3px rgba(255, 86, 112, 0.28) !important;
}

/* Checkbox error accent */
input[type="checkbox"].is-invalid + label,
.checkbox .is-invalid + label,
label[for="crAccept"].is-invalid {
  color: var(--cr-danger);
}

/* Error message */
.error-message--visible,
[data-error-for].error-message--visible {
  color: var(--cr-danger);
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

/* Improve button loader alignment inside .cr-cta */
.cr-cta .button-loader {
  vertical-align: middle;
}

.rounded img {
  border-radius: 5px;
}
