/* ==========================================================
   POS MULT - TUTORIAIS (IDENTIDADE NOVA)
   - Cinema/Streaming vibe
   - Fundo com wash vermelho (sem blur pesado)
   - Glass + contraste forte + foco no mobile
========================================================== */

:root{
  /* base */
  --bg: #07070b;
  --text: #f4f4f8;
  --muted: rgba(244,244,248,.72);

  /* cinema red */
  --accent: #ff003c;
  --accent-2: #b8002b;
  --accent-soft: rgba(255, 0, 60, .14);

  /* green CTA (você já usa e funciona bem) */
  --green: #1b7d2b;
  --green-2: #1fa63a;

  /* glass */
  --panel: rgba(10,10,14,.44);
  --panel-strong: rgba(10,10,14,.62);

  --border: rgba(255,255,255,.12);
  --border-strong: rgba(255,255,255,.16);

  --shadow: 0 22px 70px rgba(0,0,0,.62);
  --shadow-soft: 0 14px 40px rgba(0,0,0,.45);

  --radius: 18px;
  --radius-sm: 14px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==========================================================
   BACKGROUND
========================================================== */
.bg{
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("/img//fundo-extra-CLKX8uy9.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* wash vermelho estilo “cinema” + vignette pra leitura */
.bg::after{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 520px at 20% 10%, rgba(126, 1, 30, 0.22), transparent 55%),
    radial-gradient(900px 500px at 85% 35%, rgba(255,0,60,.12), transparent 55%),
    linear-gradient(180deg, rgba(129, 1, 1, 0.58), rgba(10, 0, 0, 0.925)),
    radial-gradient(1200px 900px at 50% 60%, rgba(0, 0, 0, 0.774), rgba(0,0,0,.88));
  pointer-events: none;
}

.grain{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .06;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ==========================================================
   LAYOUT BASE
========================================================== */
.wrap{
  min-height: 100%;
  display: flex;
  flex-direction: column;

  width: 100%;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
}


header{
  padding: 18px 16px 10px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;

  background: rgba(0,0,0,.28);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.849);
}
.logo img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.brand h1{
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: .2px;
}
.brand p{
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

main{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px 34px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  flex: 1;
}

/* ==========================================================
   GLASS CONTAINER (base para hero/section)
========================================================== */
.hero,
.section{
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.87), rgba(5, 4, 3, 0.527));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================
   HERO
========================================================== */
.hero{
  padding: 16px;
  overflow: hidden;
  position: relative;
}

/* brilho sutil na borda (identidade) */
.hero::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.kicker{
  font-size: 12px;
  color: rgba(244,244,248,.68);
  margin: 0 0 6px;
}

.headline{
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: .2px;
}

.sub{
  margin: 0 0 14px;
  color: rgba(244,244,248,.86);
  line-height: 1.5;
  font-size: 14px;
  max-width: 62ch;
}

.cta-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cta{
  border: 0;
  cursor: pointer;
  padding: 14px 14px;
  border-radius: 14px;
  font-weight: 950;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.cta:active{ transform: scale(.985); }

.cta.primary{
  background: linear-gradient(180deg, var(--green-2), var(--green));
  color: #06150a;
  box-shadow: 0 18px 42px rgba(31,166,58,.20);
}

.cta.secondary{
  background: rgba(0,0,0,.22);
  color: var(--text);
  border: 1px solid var(--border);
}

.cta.secondary:hover{
  border-color: var(--border-strong);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
}

.hint{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(244,244,248,.70);
  min-height: 18px;
}

.hero-art{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  background: rgba(0,0,0,.18);
  box-shadow: var(--shadow-soft);
}

.hero-art img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  opacity: .98;
}

/* ==========================================================
   SECTION
========================================================== */
.section{
  padding: 14px;
}

.section-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section h2{
  margin: 0;
  font-size: 16px;
}

.ghost{
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  font-weight: 900;
  font-size: 12px;
}
.ghost:active{ transform: scale(.98); }
.ghost:hover{
  background: rgba(0,0,0,.24);
  border-color: rgba(255,255,255,.16);
}

/* ==========================================================
   INPUTS / FILTERS
========================================================== */
.filters{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 10px 0 12px;
}

.input, .select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.input::placeholder{ color: rgba(244,244,248,.55); }

.input:focus, .select:focus{
  border-color: rgba(255, 0, 60, 0.678);
  background: rgba(0,0,0,.30);
}

.select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(244,244,248,.75) 50%),
    linear-gradient(135deg, rgba(244,244,248,.75) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}


/* ==========================================================
   CARDS
========================================================== */
.cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.card{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,.26), rgba(0,0,0,.18));
  padding: 12px;
  display: grid;
  gap: 8px;

  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.20));
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

.card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tag{
  font-size: 11px;
  font-weight: 950;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(244,244,248,.92);
  white-space: nowrap;
}

/* tag com “acentinho” vermelho */
.tag::before{
  content:"";
  display:inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 8px;
  background: rgba(255,0,60,.85);
  box-shadow: 0 0 0 3px rgba(255,0,60,.14);
  vertical-align: middle;
}

.card h3{
  margin: 0;
  font-size: 14px;
  letter-spacing: .1px;
}

.card p{
  margin: 0;
  color: rgba(244,244,248,.78);
  font-size: 13px;
  line-height: 1.45;
}

.card a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;

  color: rgba(255,255,255,.94);
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;

  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,0,60,.22);
  background: rgba(255,0,60,.10);
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}

.card a:active{ transform: scale(.985); }

/* ==========================================================
   FOOTER
========================================================== */
footer{
  padding: 22px 16px 30px;
  color: rgba(244,244,248,.60);
  text-align: center;
  font-size: 12px;
}

/* ==========================================================
   MODAL
========================================================== */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.68);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}

.modal{
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(14,14,18,.92), rgba(10,10,14,.92));
  box-shadow: 0 40px 120px rgba(0,0,0,.80);
  overflow: hidden;
  position: relative;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* brilho vermelho sutil */
.modal::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 9999px rgba(255, 0, 60, .05);
}

.modal-head{
  padding: 14px 14px 6px;
  text-align: center;
}

.modal-title{
  margin: 6px 0 2px;
  font-size: 20px;
}

.modal-sub{
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.modal-body{
  padding: 12px 14px 14px;
  display: grid;
  gap: 10px;
}

.label{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.error{
  border: 1px solid rgba(255,43,43,.35);
  background: rgba(255,43,43,.10);
  padding: 10px;
  border-radius: 12px;
  color: rgba(255,255,255,.92);
  font-size: 13px;
}

.hidden{ display: none !important; }

.modal-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px 14px;
}

.btn{
  border: 0;
  cursor: pointer;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 950;
  letter-spacing: .2px;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active{ transform: scale(.985); }

.btn.green{
  background: linear-gradient(180deg, var(--green-2), var(--green));
  color: #06150a;
}

.btn.gray{
  background: rgba(0,0,0,.22);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
}
.btn.gray:hover{
  border-color: rgba(255,255,255,.18);
}

/* ==========================================================
   RESPONSIVO
========================================================== */
@media (min-width: 760px){
  .headline{ font-size: 28px; }
  .hero-grid{
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 18px;
  }
  .cta-row{ grid-template-columns: 1fr 1fr; }
  .filters{ grid-template-columns: 1.2fr .8fr; }
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .hero-art img{ height: 320px; }
}

@media (min-width: 1020px){
  header, main{ max-width: 1150px; }
  .cards{ grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px){
  .cards{ grid-template-columns: repeat(4, 1fr); }
}


/* REMOVE FUNDO BRANCO DO SELECT (options) */
select,
select option {
  background-color: #0b0b10;
  color: #f2f2f7;
}

/* option quando passa o mouse (nem todo browser respeita) */
select option:hover {
  background-color: rgba(255, 0, 60, 0.25);
}

/* option selecionada */
select option:checked {
  background-color: rgba(255, 0, 60, 0.35);
  color: #fff;
}

main { min-width: 0; }
main > * { min-width: 0; }           /* seções dentro do grid */
.apps-scroll { min-width: 0; max-width: 100%; }

