/* Portal Vaoli Videomaker: azul-marinho, dourado e branco. Feito primeiro para celular. */
:root {
  --navy: #0a0f5c; --navy-deep: #060943; --navy-2: #1a2390; --royal: #3157e0;
  --gold: #f2b440; --gold-dk: #b98428; --gold-lt: #ffe9a8;
  --gold-grad: linear-gradient(120deg, #b98428 0%, #f3bb4d 28%, #fff1bd 48%, #f3bb4d 66%, #b98428 100%);
  --ink: #0d1240; --muted: #666d92; --line: #e2e5f3; --bg: #f5f6fc; --card: #fff;
  --ok: #1d8a5b; --err: #cf3a4b;
  --radius: 18px; --shadow: 0 18px 40px -26px rgba(10, 15, 92, .45);
  --display: "Outfit", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--body); color: var(--ink); background: var(--bg); min-height: 100dvh; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body.noscroll { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 18px 16px calc(40px + var(--safe-b)); }

/* ------------------------------------------------------------ brilho dourado */
.shine {
  background: linear-gradient(120deg, #a8741c 0%, #d2952a 28%, #f8d77c 50%, #d2952a 72%, #a8741c 100%); background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite; padding: 0 .04em;
}
.on-dark .shine { background-image: var(--gold-grad); }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.sparks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.spark {
  position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 8 4 11.200 12 12-8 .8-11.200 4-12 12-.8-8-4-11.200-12-12 8-.8 11.200-4 12-12z' fill='%23f6c453'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(246, 196, 83, .85));
  opacity: 0; animation: twinkle 4s ease-in-out infinite; will-change: transform, opacity;
}
.spark.dust { background: #ffd876; border-radius: 50%; filter: drop-shadow(0 0 3px rgba(255, 216, 118, .9)); }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}
.gold-rule { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); margin: 14px auto; }
.gold-rule::before, .gold-rule::after { content: ""; height: 1.500px; width: 54px; background: linear-gradient(90deg, transparent, var(--gold)); }
.gold-rule::after { transform: scaleX(-1); }
.gold-rule i { width: 9px; height: 9px; background: var(--gold-grad); transform: rotate(45deg); box-shadow: 0 0 10px rgba(242, 180, 64, .8); }

/* formas da marca */
.geo { position: absolute; width: clamp(170px, 42vw, 430px); aspect-ratio: 1; pointer-events: none; }
.geo svg { width: 100%; height: 100%; display: block; overflow: visible; }
.geo-tr { top: 0; right: 0; }
.geo-bl { bottom: 0; left: 0; transform: rotate(180deg); }
.g-a { fill: var(--navy); }
.g-l { fill: none; stroke: var(--gold); stroke-width: 15; }
.g-t, .g-d { fill: var(--gold); }
.on-dark .g-a { fill: rgba(255, 255, 255, .055); }

/* ------------------------------------------------------------ marca */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 38px; height: 33px; }
.brand-txt { display: grid; line-height: 1; }
.brand-txt b { font: 300 19px/1 var(--display); letter-spacing: .34em; color: var(--navy); }
.brand-txt i { font: 500 7.500px/1 var(--display); letter-spacing: .42em; color: var(--muted); font-style: normal; margin-top: 4px; }
.on-dark .brand-txt b { color: #fff; }
.on-dark .brand-txt i { color: rgba(255, 255, 255, .62); }

/* ------------------------------------------------------------ botoes e campos */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 14px; border: 1.500px solid transparent;
  font: 600 14.500px/1 var(--display); letter-spacing: .02em; white-space: nowrap;
  transition: transform .12s, box-shadow .2s, background .2s, opacity .2s; overflow: hidden; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.500px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold-grad); background-size: 180% 100%; color: #382500; box-shadow: 0 12px 24px -12px rgba(201, 146, 44, .9), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-gold::after { /* reflexo que passa pelo botao */
  content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%);
  transform: translateX(-120%); animation: sheen 4.200s ease-in-out infinite;
}
@keyframes sheen { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 12px 24px -14px rgba(10, 15, 92, .9); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: #c9cfee; }
.btn-danger { background: #fff; border-color: #f2c9cf; color: var(--err); }
.btn-glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-wa { background: #1faa59; color: #fff; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn.busy > * { opacity: .35; }
.btn.busy::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.500px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; border: 1.500px solid var(--line); background: #fff; color: var(--navy); flex: none; transition: .15s; }
.icon-btn:active { transform: scale(.94); }

.field { display: grid; gap: 6px; font: 600 12px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 15px; border-radius: 14px; border: 1.500px solid var(--line); background: #fff;
  font: 500 16px var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242, 180, 64, .22); }
.field small { font: 400 12.500px/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.field-row { position: relative; }
.field-row .icon-btn { position: absolute; right: 4px; top: 4px; border: 0; background: transparent; color: var(--muted); }
.field-row input { padding-right: 50px; }
.form { display: grid; gap: 14px; }
.form-err { color: var(--err); font-size: 13.500px; font-weight: 500; min-height: 1.2em; }

/* ------------------------------------------------------------ topo */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px; background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-grad); background-size: 240% 100%; animation: shine 7s linear infinite; opacity: .85; }
.topbar-sp { flex: 1; }
.brand-link { display: flex; }
@media (max-width: 380px) { .topbar .btn span { display: none; } }

/* ------------------------------------------------------------ avisos */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(18px + var(--safe-b)); z-index: 90; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { max-width: 460px; padding: 12px 18px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 500; font-size: 14px; box-shadow: 0 18px 40px -16px rgba(6, 9, 67, .8); opacity: 0; transform: translateY(12px); transition: .3s; }
.toast.in { opacity: 1; transform: none; }
.toast.ok { background: var(--ok); } .toast.err { background: var(--err); }

/* ------------------------------------------------------------ carregando */
.loader { display: grid; place-items: center; gap: 14px; padding: 90px 20px; text-align: center; color: var(--muted); }
.loader .mark { width: 74px; height: 64px; animation: pulse 1.600s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(242, 180, 64, .55)); }
@keyframes pulse { 0%, 100% { transform: scale(.94); opacity: .7; } 50% { transform: scale(1); opacity: 1; } }

/* ------------------------------------------------------------ folha (modal) */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(6, 9, 67, 0); transition: background .25s; }
.sheet.open { background: rgba(6, 9, 67, .55); }
.sheet-box {
  width: min(520px, 100%); max-height: 92dvh; overflow: auto; background: #fff; border-radius: 26px 26px 0 0;
  padding: 10px 20px calc(22px + var(--safe-b)); transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet.open .sheet-box { transform: none; }
.sheet-box::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sheet-head h2 { font-size: 22px; }
@media (min-width: 700px) {
  .sheet { align-items: center; }
  .sheet-box { border-radius: 26px; padding: 26px 28px 28px; transform: translateY(24px) scale(.97); opacity: 0; transition: .22s; }
  .sheet.open .sheet-box { opacity: 1; }
  .sheet-box::before { display: none; }
}

/* ------------------------------------------------------------ tela cheia */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(4, 6, 40, .96); touch-action: none; overscroll-behavior: contain; }
.lb-stage { position: absolute; inset: calc(58px + env(safe-area-inset-top, 0px)) 0 calc(86px + var(--safe-b)); display: grid; place-items: center; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .25s; will-change: transform; user-select: none; -webkit-user-drag: none; }
.lb-img.loading { opacity: .25; }
.lb-frame { border: 0; width: min(100%, 1100px); max-height: 100%; background: #000; border-radius: 10px; }
.lb-frame.vertical { width: auto; height: 100%; max-width: 100%; }
.lb-close, .lb-nav { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lb-close { top: calc(8px + env(safe-area-inset-top, 0px)); right: 10px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px calc(14px + var(--safe-b)); display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #cfd4f5; font: 500 13px var(--body); }
.lb-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lb-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 700px) {
  .lightbox:not(.is-video) .lb-nav { display: none; }
  .lb-nav { top: auto; bottom: calc(96px + var(--safe-b)); transform: none; }
  .lb-frame { border-radius: 0; }
  .lb-title { font-size: 12px; }
}

/* ============================================================ ENTRAR */
.pg-login { background: #fff; display: grid; place-items: center; padding: 24px 18px; position: relative; overflow: hidden; }
.pg-login::before { content: ""; position: fixed; inset: 0; background: radial-gradient(70% 55% at 50% 40%, rgba(242, 180, 64, .13), transparent 70%); pointer-events: none; }
.pg-login .geo { position: fixed; }
.pg-login .sparks { position: fixed; }
.login-card {
  position: relative; z-index: 2; width: min(400px, 100%); padding: 34px 26px 28px; border-radius: 28px; text-align: center;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 180, 64, .45); box-shadow: 0 40px 80px -40px rgba(10, 15, 92, .5), 0 0 0 6px rgba(255, 255, 255, .5);
  animation: rise .7s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.login-card .mark { width: 116px; height: 101px; filter: drop-shadow(0 6px 16px rgba(242, 180, 64, .35)); }
.wordmark { font: 300 34px/1 var(--display); letter-spacing: .36em; color: var(--navy); margin: 12px 0 0 .36em; }
.wordsub { font: 500 10px/1 var(--display); letter-spacing: .5em; color: var(--muted); margin: 8px 0 0 .5em; }
.login-card h1 { font-size: 21px; font-weight: 600; }
.login-card .lead { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.login-card .form { text-align: left; }
.tagline { position: relative; z-index: 2; margin-top: 22px; text-align: center; font: 600 11px/1.4 var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--navy); }
.tagline b { color: var(--gold-dk); }
.login-box { display: grid; justify-items: center; width: 100%; }
.login-col { display: grid; justify-items: center; width: 100%; }
.login-art { display: none; }
@media (min-width: 940px) and (min-height: 600px) {
  .login-box { grid-template-columns: 1fr minmax(360px, 400px); align-items: center; gap: 30px; max-width: 940px; }
  .login-art { display: block; text-align: center; }
  .login-art img { width: min(400px, 100%); display: block; margin: 0 auto -4px; mix-blend-mode: multiply; animation: flutua 6s ease-in-out infinite; }
  .login-art p { font: 600 34px/1.15 var(--display); color: var(--navy); }
}
@media (min-width: 940px) { .pg-login .geo-bl .g-d { display: none; } }
@keyframes flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================ PAINEL */
.hello { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 6px 0 16px; }
.kicker { font: 600 11px/1.2 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dk); }
.hello h1 { font-size: clamp(28px, 7vw, 40px); font-weight: 600; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { position: relative; padding: 13px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--gold-grad); }
.stat b { display: block; font: 700 26px/1.1 var(--display); color: var(--navy); }
.stat span { font-size: 12px; color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1; min-width: 0; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; min-height: 46px; padding: 0 14px 0 42px; border-radius: 14px; border: 1.500px solid var(--line); background: #fff; font-size: 16px; outline: none; -webkit-appearance: none; }
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242, 180, 64, .2); }

.projects { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .projects { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.pcard { position: relative; display: block; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; animation: rise .5s both; }
.pcard:active { transform: scale(.985); }
@media (hover: hover) { .pcard:hover { transform: translateY(-3px); box-shadow: 0 26px 46px -26px rgba(10, 15, 92, .6); } .pcard:hover .pcard-cover img { transform: scale(1.05); } }
.pcard-cover { position: relative; aspect-ratio: 16 / 10; background: var(--navy-deep) url(/img/glitter.jpg) center / cover; overflow: hidden; }
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s, transform .6s; }
.pcard-cover.ok img { opacity: 1; }
.pcard-cover.falhou img { display: none; }
.pcard-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 9, 67, .78), transparent 58%); }
.pcard-cover .mark { position: absolute; left: 50%; top: 46%; width: 76px; height: 66px; transform: translate(-50%, -50%); opacity: .9; }
.pcard-tipo { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 5px 11px; border-radius: 99px; background: var(--gold-grad); color: #382500; font: 700 10.500px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.pcard-title { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 11px; color: #fff; font: 600 20px/1.15 var(--display); text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.pcard-body { display: flex; align-items: center; gap: 12px; padding: 11px 14px 13px; font-size: 13px; color: var(--muted); }
.pcard-body span { display: inline-flex; align-items: center; gap: 5px; }
.pcard-body .ico { width: 16px; height: 16px; }
.pcard-body .acesso { margin-left: auto; color: var(--gold-dk); font-weight: 600; }
.pcard-body .acesso.sem { color: #a3a8c4; font-weight: 500; }
.pcard-date { padding: 0 14px 13px; margin-top: -6px; font-size: 12.500px; color: var(--muted); }

.empty { position: relative; text-align: center; padding: 46px 22px; border-radius: 22px; background: #fff; border: 1.500px dashed #cfd4ee; overflow: hidden; }
.empty .mark { width: 84px; height: 73px; margin-bottom: 10px; }
.empty .cam { width: min(190px, 52%); margin: -6px auto 4px; display: block; mix-blend-mode: multiply; }
.empty h3 { font-size: 21px; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 400px; margin: 0 auto 16px; }
.fab { position: fixed; right: 16px; bottom: calc(18px + var(--safe-b)); z-index: 25; min-height: 54px; border-radius: 18px; padding: 0 20px; }
@media (min-width: 700px) { .fab { display: none; } }
@media (max-width: 699px) { .toolbar .btn-novo { display: none; } }

/* ============================================================ PROJETO (produtora) */
.banner { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 20px; color: #fff; background: var(--navy-deep) url(/img/glitter.jpg) center / cover; box-shadow: var(--shadow); margin-bottom: 14px; isolation: isolate; }
.banner-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .34; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 9, 67, .8) 15%, rgba(6, 9, 67, .25)); }
.banner .geo { width: 190px; opacity: .9; z-index: -1; }
.banner .g-t, .banner .g-d { display: none; }
.banner h1 { color: #fff; font-size: clamp(25px, 6.500vw, 36px); font-weight: 600; margin: 4px 0 4px; }
.banner .kicker { color: var(--gold); }
.banner-meta { color: rgba(255, 255, 255, .78); font-size: 13.500px; }
.banner-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.tabs { position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); z-index: 20; display: flex; gap: 4px; padding: 5px; margin: 0 0 14px; border-radius: 16px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; font: 600 13.500px/1 var(--display); color: var(--muted); transition: .2s; white-space: nowrap; }
.tabs button .ico { width: 17px; height: 17px; }
.tabs button.on { background: var(--navy); color: #fff; box-shadow: 0 8px 18px -10px rgba(10, 15, 92, .9); }
.tabs .n { font-size: 11.500px; padding: 2px 7px; border-radius: 99px; background: rgba(10, 15, 92, .08); }
.tabs button.on .n { background: var(--gold-grad); color: #382500; }
@media (max-width: 520px) { .tabs.quatro button { padding: 0 8px; font-size: 13px; } .tabs.quatro button .ico { display: none; } }

.syncbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.syncbar .ico { color: var(--gold-dk); }
.syncbar b { display: block; color: var(--navy); font: 600 13.500px/1.2 var(--display); }
.syncbar .sp { flex: 1; min-width: 0; }

/* grade estilo Instagram */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 -16px; }
@media (min-width: 700px) { .feed { grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0; border-radius: 16px; overflow: hidden; } }
@media (min-width: 1000px) { .feed { grid-template-columns: repeat(5, 1fr); } }
.tile { position: relative; display: block; padding: 0; margin: 0; border: 0; aspect-ratio: 3 / 4; overflow: hidden; background: #e4e7f6; touch-action: manipulation; content-visibility: auto; contain-intrinsic-size: auto 180px; }
.tile::before { /* brilho dourado passando enquanto a foto carrega */
  content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 233, 168, .85) 50%, transparent 65%); background-size: 250% 100%; animation: shine 1.600s linear infinite;
}
.tile.ok::before { display: none; }
.tile img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s, transform .15s; }
.tile.ok img { opacity: 1; }
.tile.falhou { background: var(--navy-deep) url(/img/glitter.jpg) center / cover; }
.tile.falhou img { display: none; }
.tile:active img { transform: scale(.97); }
.tile .capa { position: absolute; left: 6px; top: 6px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-grad); color: #382500; box-shadow: 0 4px 10px -3px rgba(0, 0, 0, .6); }
.tile .capa .ico { width: 14px; height: 14px; fill: currentColor; }
.tile .play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: linear-gradient(to top, rgba(6, 9, 67, .6), transparent 50%); color: #fff; }
.tile .play i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .2); border: 1.500px solid rgba(255, 255, 255, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.tile .play .ico { width: 20px; height: 20px; margin-left: 2px; }
.tile .dur { position: absolute; right: 7px; bottom: 6px; z-index: 3; font: 600 11.500px/1 var(--display); color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.tile .nome { position: absolute; left: 8px; right: 44px; bottom: 6px; z-index: 3; font: 500 11.500px/1.2 var(--body); color: #fff; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.feed.videos { grid-template-columns: repeat(2, 1fr); gap: 3px; }
@media (min-width: 700px) { .feed.videos { grid-template-columns: repeat(4, 1fr); } }
.album-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 9px; font: 600 15px/1.2 var(--display); color: var(--navy); }
.album-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.album-title:first-child { margin-top: 2px; }

.panel-card { position: relative; padding: 20px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.panel-card h2 { font-size: 20px; margin-bottom: 4px; }
.panel-card > p { color: var(--muted); margin-bottom: 14px; }
.panel-card.gold-edge { border: 1.500px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gold-grad) border-box; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; font-size: 14.500px; min-height: 28px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); font: 700 13px/1 var(--display); }
.steps b { color: var(--navy); }
.cred { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #fffaf0, #fff4d9); border: 1px solid #f1d58f; margin-bottom: 14px; }
.cred div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cred span { font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #8d6a1c; }
.cred b { font: 600 17px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--navy); word-break: break-all; text-align: right; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row .btn { flex: 1 1 200px; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fff8e6; border: 1px solid #f1d58f; color: #6d5210; font-size: 13.500px; margin-bottom: 12px; }
.aviso .ico { color: var(--gold-dk); margin-top: 1px; }
.aviso a { font-weight: 700; text-decoration: underline; }
.danger-zone { border-color: #f2c9cf; }
.danger-zone h2 { color: var(--err); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font: 600 12px/1 var(--display); background: #e9f7f0; color: var(--ok); }
.pill.off { background: #fdecee; color: var(--err); }
.pill .ico { width: 14px; height: 14px; }
details.como { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
details.como summary { cursor: pointer; font: 600 14px/1.3 var(--display); color: var(--navy); list-style: none; display: flex; align-items: center; gap: 8px; }
details.como summary::-webkit-details-marker { display: none; }
details.como summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-grad); color: #382500; font-weight: 700; }
details.como[open] summary::before { content: "–"; }
details.como .steps { margin-top: 14px; }

/* ============================================================ GALERIA (cliente) */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; background: var(--navy-deep) url(/img/glitter.jpg) center / cover; padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 46px; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center 30%; opacity: 0; transition: opacity 1s; }
.hero-bg.ok { opacity: .36; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(to bottom, rgba(6, 9, 67, .2), rgba(6, 9, 67, .5) 62%, var(--navy-deep)); }
.hero .geo { z-index: -1; width: clamp(150px, 30vw, 320px); }
.hero .sparks { z-index: -1; }
@media (max-width: 700px) { .hero .g-t, .hero .g-d { display: none; } }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: clamp(30px, 8vw, 64px); }
.hero .kicker { color: var(--gold); letter-spacing: .34em; }
.hero h1 { font: 600 clamp(30px, 8.600vw, 76px)/1.06 var(--display); margin: 10px auto 4px; max-width: 16ch; text-wrap: balance; letter-spacing: -.01em; filter: drop-shadow(0 4px 22px rgba(242, 180, 64, .28)); }
.hero-meta { color: rgba(255, 255, 255, .82); font-size: 15px; }
.hero .gold-rule { margin: 16px auto 14px; }
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.hero-stats span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font: 500 13px/1 var(--display); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-stats .ico { width: 16px; height: 16px; color: var(--gold); }
.previa { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 14px; background: var(--gold-grad); color: #382500; font: 600 13px/1.2 var(--display); }
.previa a { text-decoration: underline; }

.gal { margin-top: -22px; position: relative; z-index: 2; }
.gal .tabs { top: 8px; max-width: 420px; margin: 0 auto 12px; }
.gal-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1.500px solid var(--line); background: #fff; font: 600 13px/1 var(--display); color: var(--muted); }
.chips button.on { border-color: transparent; background: var(--gold-grad); color: #382500; }
.masonry { column-count: 2; column-gap: 6px; margin: 0 -10px; }
@media (min-width: 700px) { .masonry { column-count: 3; column-gap: 10px; margin: 0; } }
@media (min-width: 1040px) { .masonry { column-count: 4; } }
.masonry .tile { width: 100%; margin: 0 0 6px; border-radius: 10px; break-inside: avoid; aspect-ratio: 3 / 4; box-shadow: 0 10px 22px -18px rgba(10, 15, 92, .7); }
@media (min-width: 700px) { .masonry .tile { margin-bottom: 10px; border-radius: 14px; } }
@media (hover: hover) { .tile { cursor: pointer; } .tile:hover img { transform: scale(1.03); transition: opacity .35s, transform .5s; } }

.footer { text-align: center; padding: 34px 18px calc(36px + var(--safe-b)); color: var(--muted); font-size: 13px; }
.footer .brand { margin-bottom: 10px; }
.footer .brand .mark { width: 52px; height: 45px; }
.footer .tagline { margin: 12px 0 10px; }
.footer a.ig { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); }

/* ============================================================ ajustes finos */
@media (prefers-reduced-motion: reduce) {
  .shine, .btn-gold::after, .topbar::after, .tile::before, .login-art img { animation: none; }
  .spark { animation: none; opacity: .8; transform: none; }
  .pcard, .login-card { animation: none; }
}
