/* Premium: temas, molduras, emblemas, figurinhas, provador e página de planos */

@property --turn { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes turn { to { --turn: 360deg; } }
:root { --p1: #8468ff; --p2: #3aa0ff; }

/* temas exclusivos */
:root[data-theme='meianoite'] { --rail: #070b1c; --side: #0c1229; --ground: #111936; --raised: #1b2548; --hover: #202c55; --line: #2b3866; --soft: #a3afd6; --stage: #070b1c; }
:root[data-theme='ametista'] { --rail: #120a1f; --side: #1a102c; --ground: #22163a; --raised: #30214f; --hover: #39285c; --line: #46336d; --soft: #b9a9d8; --stage: #120a1f; }
:root[data-theme='nebulosa'] { --rail: #0b0718; --side: rgb(20 13 40 / .72); --ground: transparent; --raised: #2a1d4d; --hover: rgb(132 104 255 / .2); --line: #43347a; --soft: #bcb0e2; --stage: rgb(8 5 20 / .6); }
:root[data-theme='abissal'] { --rail: #020a0d; --side: rgb(4 22 30 / .74); --ground: transparent; --raised: #0d3340; --hover: rgb(60 190 220 / .16); --line: #17495a; --soft: #93bcc9; --stage: rgb(2 10 13 / .6); }
:root[data-theme='nebulosa'] body { background: radial-gradient(70% 80% at 85% 0, #57278f, transparent), radial-gradient(60% 70% at 25% 100%, #1b3f96, transparent), #130c29; }
:root[data-theme='abissal'] body { background: radial-gradient(80% 60% at 50% 110%, #0f6a78, transparent), radial-gradient(50% 50% at 90% 0, #103f66, transparent), #04141b; }
:root:is([data-theme='nebulosa'], [data-theme='abissal']) dialog { background: var(--rail); }
:root:is([data-theme='nebulosa'], [data-theme='abissal']) .toast { color: var(--rail); }
:root:is([data-theme='nebulosa'], [data-theme='abissal']) .panel { background: var(--rail); }

/* foto animada: roda no perfil e ao passar o mouse */
.live-photo { position: absolute; inset: 0; display: none; }
.face.xl .live-photo, .tile .live-photo, :is(.message, .person, .place, .rows li, .self-card):hover .live-photo { display: block; }

/* molduras: um anel no mesmo formato do rosto */
.frame::before {
  content: ''; position: absolute; inset: -3px; padding: 2.5px; border-radius: inherit; pointer-events: none; background: var(--ring);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: turn 5s linear infinite paused;
}
.frame.lg::before { inset: -4px; padding: 3px; }
.frame.xl::before { inset: -6px; padding: 5px; }
:is(.frame.xl, .message:hover .frame, .try-frames .frame, .person:hover .frame)::before { animation-play-state: running; }
.frame .dot { z-index: 1; }
.frame-aurora { --ring: conic-gradient(from var(--turn), #54cf94, #3aa0ff, #8468ff, #54cf94); }
.frame-neon { --ring: linear-gradient(#ff4fd8, #ff4fd8); }
.frame-neon::before { filter: drop-shadow(0 0 4px #ff4fd8) drop-shadow(0 0 9px #ff4fd8); }
.frame-cristal { --ring: linear-gradient(135deg, #fff, #9fd9ff 30%, #e9f7ff 50%, #7fb6ff 70%, #fff); }
.frame-orbita { --ring: conic-gradient(from var(--turn), #ffc247 0 14%, rgb(255 194 71 / .25) 20% 50%, #ffc247 50% 56%, rgb(255 194 71 / .25) 62%); }
.frame-eclipse { --ring: conic-gradient(from var(--turn), #fff7d6, #ffb347 12%, #1b1020 40% 70%, #ffb347 92%, #fff7d6); }
.frame-eclipse::before { filter: drop-shadow(0 0 6px #ffb347); }
.frame-prisma { --ring: conic-gradient(from var(--turn), #ff5d5d, #ffc247, #54cf94, #3aa0ff, #b36bff, #ff5d9e, #ff5d5d); }
.frame-prisma::before { filter: drop-shadow(0 0 5px rgb(179 107 255 / .8)); }
.frame-chama { --ring: conic-gradient(from calc(var(--turn) * -1), #ff3b1f, #ffc247, #ff7a1f, #ffe08a, #ff3b1f); }
.frame-chama::before { filter: drop-shadow(0 -3px 5px #ff5a2b); animation-duration: 2.4s; }
.frame-cometa { --ring: conic-gradient(from var(--turn), transparent 35%, #3aa0ff 70%, #fff 99%, transparent); }
.frame-cometa::before { filter: drop-shadow(0 0 5px #3aa0ff); animation-duration: 2s; }

/* emblema e nome em destaque */
.plan-title { display: inline-flex; vertical-align: -3px; }
.message header .plan-title { align-self: center; }
.plan-badge { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, #8468ff, #3a78e8); }
.plan-badge.p2 { color: #2b1500; background: linear-gradient(135deg, #ffe08a, #ffa83d 55%, #ff7fb0); }
.plan-badge .icon, .message header .plan-badge .icon { width: 12px; height: 12px; stroke-width: 2.4; color: inherit; }
.name.glow { color: transparent; background: linear-gradient(90deg, color-mix(in oklab, var(--c1) 58%, var(--text)), color-mix(in oklab, var(--c2) 58%, var(--text))); background-clip: text; -webkit-background-clip: text; }
.message.shine::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: linear-gradient(var(--c1), var(--c2)); }

/* Orelho e figurinhas */
.mascot.inline { width: 1.55em; height: 1.65em; vertical-align: -.4em; }
.mascot.medium { width: 58px; height: 62px; }
.sticker { display: block; width: 148px; height: 156px; object-fit: contain; margin-top: 4px; transform-origin: 50% 100%; }
.move-bob { animation: bob 2.4s ease-in-out infinite; } .move-hop { animation: hop 1.1s ease-in-out infinite; }
.move-shake { animation: shake .5s linear infinite; } .move-pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes bob { 50% { rotate: 4deg; translate: 0 -3px; } }
@keyframes hop { 40% { translate: 0 -12px; scale: .97 1.04; } 0%, 80% { scale: 1.04 .96; } }
@keyframes shake { 25% { rotate: -3deg; } 75% { rotate: 3deg; } }
@keyframes pulse { 50% { scale: 1.07; } }
.emoji-picker button { position: relative; display: grid; place-items: center; }
.emoji-picker .mascot.inline { width: 30px; height: 32px; }
.emoji-picker > .picker-bar { height: auto; overflow: visible; margin-top: 0; display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.emoji-picker .star-toggle { display: flex; align-items: center; gap: 6px; height: auto; padding: 5px 10px; font-size: 14px; color: var(--soft); margin-left: auto; }
.emoji-picker .star-toggle[aria-pressed='true'] { color: var(--warn); }
.emoji-picker .tabs button { display: block; height: auto; font-size: 15px; }
.emoji-picker .starred { box-shadow: inset 0 0 0 2px var(--warn); }
.emoji-picker .wide { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.emoji-picker .big { width: 100%; height: 88px; font-size: 14px; }
.emoji-picker .big .sticker { width: 66px; height: 70px; margin: 0; animation-play-state: paused; }
.emoji-picker .big:hover .sticker { animation-play-state: running; }
.own { position: relative; }
.emoji-picker .drop { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; background: var(--raised); }
.drop .icon { width: 13px; height: 13px; }
.add-sticker { border: 1.5px dashed var(--line); align-content: center; gap: 4px; }
.lock { position: absolute; right: 2px; bottom: 2px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; background: var(--p1); }
.lock.p2 { background: #ffb347; color: #2b1500; }
.emoji-picker button:not(.big) .lock { width: 14px; height: 14px; right: 0; bottom: 0; }
.emoji-picker button:not(.big) .lock .icon { width: 8px; height: 8px; }
.lock .icon { width: 10px; height: 10px; stroke-width: 2.6; }
.composer .chosen { color: var(--p1); }
.upsell { justify-items: center; }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* topo do perfil */
.profile-head.dressed { position: relative; overflow: hidden; isolation: isolate; border-radius: 16px; padding: 0 18px 18px; background: linear-gradient(160deg, color-mix(in oklab, var(--c1) 34%, var(--ground)), color-mix(in oklab, var(--c2) 24%, var(--ground))); }
.cover { height: 112px; margin: 0 -18px; background: linear-gradient(110deg, var(--c1), var(--c2)); }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dressed .profile-top { position: relative; z-index: 2; align-items: end; margin-top: -34px; }
.dressed .profile-top > div { padding-bottom: 2px; min-width: 0; }
.dressed .soft { color: color-mix(in oklab, var(--text) 78%, transparent); }
.dressed h3 { margin-top: 42px; }

/* provador */
.studio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.studio-view { position: sticky; top: 0; z-index: 3; }
.try-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.try-frames button { position: relative; display: grid; justify-items: center; gap: 9px; padding: 13px 4px 8px; border-radius: 12px; transition: background .15s; }
.try-frames .lock { right: 10px; bottom: 30px; }
:is(.try-frames, .chips) button:hover { background: var(--hover); }
:is(.try-frames, .chips) [aria-pressed='true'] { background: color-mix(in srgb, var(--p1) 30%, transparent); box-shadow: inset 0 0 0 1.5px var(--p1); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 10px; background: var(--raised); }
.chips .lock { position: static; }
.two-colors { display: flex; flex-wrap: wrap; gap: 8px 24px; }
input[type='color'] { width: 44px; height: 32px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--raised); cursor: pointer; }
.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.upload-row > span { flex: 1 1 200px; }
.upload-row label { cursor: pointer; }
.locked-note { display: grid; gap: 12px; justify-items: start; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--p1) 16%, transparent); }
.facts.wide { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.steps { display: grid; gap: 10px; padding-left: 20px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.price-grid input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
input[type='datetime-local'] { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }

/* página */
.premium-link .icon { color: var(--p1); }
.premium-scroll { position: relative; flex: 1; overflow-y: auto; }
.premium-scroll > .particles { position: fixed; z-index: 5; }
.hero {
  position: relative; overflow: hidden; isolation: isolate; color-scheme: dark; color: #fff; background: #130c33; padding: clamp(24px, 4vw, 52px) clamp(16px, 4vw, 52px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  --text: #fff; --soft: #c4bdea; --ground: #1a1140; --raised: rgb(255 255 255 / .1); --hover: rgb(255 255 255 / .12); --side: #1a1140; --line: rgb(255 255 255 / .2);
}
.sky { position: absolute; inset: 0; z-index: -1; filter: blur(60px); }
.sky i { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: #5a35e8; left: -12%; top: -50%; animation: drift 16s ease-in-out infinite alternate; }
.sky i:nth-child(2) { background: #1f74e0; left: 55%; top: 15%; animation-duration: 21s; animation-direction: alternate-reverse; }
.sky i:nth-child(3) { background: #a238c9; width: 34%; left: 34%; top: 58%; animation-duration: 13s; }
@keyframes drift { to { translate: 18% 14%; scale: 1.15; } }
.hero-text { display: grid; gap: 18px; min-width: 0; justify-items: start; }
.hero-text > :is(.try-frames, .chips) { width: 100%; }
.hero h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.02em; max-width: 14ch; }
.hero p { max-width: 46ch; }
.hero .notice { background: rgb(255 255 255 / .14); }
.hero-card { border-radius: 20px; background: #1a1140; box-shadow: 0 30px 80px rgb(5 0 30 / .6), 0 0 0 1px rgb(255 255 255 / .12); transition: translate .3s; }
.hero-card:hover { translate: 0 -5px; }
.hero-card .profile-head { border-radius: 20px 20px 0 0; }
.hero-bio { padding: 16px 18px 20px; color: var(--soft); overflow-wrap: anywhere; }
.subscribe { min-height: 46px; padding: 10px 22px; border-radius: 13px; font-weight: 600; text-align: center; color: #fff; background: linear-gradient(100deg, #7450ff, #2f7fe8); background-size: 160% 100%; transition: background-position .35s, box-shadow .25s; }
.subscribe:hover:not(:disabled) { background-position: 100% 0; box-shadow: 0 8px 28px rgb(90 70 255 / .5); }
.plans { display: grid; gap: 22px; padding: clamp(26px, 4vw, 46px) clamp(16px, 4vw, 52px) 10px; justify-items: center; }
.period { display: flex; padding: 4px; border-radius: 13px; background: var(--raised); }
.period button { padding: 8px 22px; border-radius: 10px; font-weight: 500; color: var(--soft); transition: background .2s; }
.period [aria-pressed='true'] { background: var(--p1); color: #fff; }
.closed { color: var(--soft); text-align: center; }
.plan-cards { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; width: min(880px, 100%); align-items: end; }
.plan-card { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 18px; padding: 24px; border-radius: 22px; background: var(--raised); transition: translate .25s; }
.plan-card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(260px at var(--mx, 50%) var(--my, 0), rgb(132 104 255 / .4), transparent); }
.plan-card:hover { translate: 0 -5px; }
.plan-card:hover::before { opacity: 1; }
.plan-card.p2 { padding-block: 34px; color: #fff; --soft: #cbc3f0; background: linear-gradient(150deg, #43289c, #234a9c); }
.plan-card.p2::before { background: radial-gradient(300px at var(--mx, 50%) var(--my, 0), rgb(255 255 255 / .22), transparent); }
.plan-card header { display: flex; align-items: center; gap: 12px; }
.plan-card h3 { font-size: 22px; }
.now { margin-left: auto; padding: 3px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: #06140d; background: #4ccb8e; white-space: nowrap; }
.price b { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-card ul { display: grid; gap: 9px; }
.plan-card li { display: flex; gap: 10px; }
.plan-card li .icon { margin-top: 2px; color: var(--p1); }
.plan-card.p2 li .icon { color: #ffd479; }
.plan-card.p2 .subscribe { color: #2a1470; background: #fff; }
.compare { padding: 30px clamp(16px, 4vw, 52px) 50px; display: grid; justify-items: center; gap: 14px; }
.compare h3 { font-size: 20px; }
.compare > div { width: min(880px, 100%); overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; }
.compare :is(th, td) { padding: 12px 10px; text-align: center; font-weight: 400; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 600; }
.compare :is(th:first-child) { text-align: left; }
.compare .mine { background: color-mix(in srgb, var(--p1) 14%, transparent); }
.compare td .icon { color: var(--live); display: inline-block; vertical-align: -3px; }

@media (max-width: 1080px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-card { width: min(400px, 100%); order: -1; justify-self: center; } }
@media (max-width: 760px) {
  .plan-cards { grid-template-columns: minmax(0, 1fr); }
  .try-frames { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .try-frames button { padding-inline: 0; }
  .compare :is(th, td) { padding: 10px 5px; font-size: 14px; }
  .composer .row .icon-button { width: 32px; }
  .sticker { width: 124px; height: 130px; }
}
