:root {
    --bg: #000000;
    --surface: #0e0e10;
    --surface2: #1c1c1e;
    --border: rgba(255, 255, 255, 0.04);
    --accent: #ffffff;
    --accent-text: #000000;
    --accent2: #7b2fff;
    --text: #ffffff;
    --muted: #8e8e93;
    --green: #32d74b;
    --radius: 24px;
    --font-head: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --lp-bg: #000000;
    --lp-card: #0e0e10;
    --lp-text: #ffffff;
    --lp-muted: #8e8e93;
    --lp-border: rgba(255, 255, 255, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    overflow-x: hidden;
}

i.ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding-top: env(safe-area-inset-top);
}

.h-handle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    z-index: 2;
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.03em;
    z-index: 1;
    color: white;
}

.logo span {
    color: var(--muted);
    font-weight: 500;
}

.hbadge {
    background: var(--surface2);
    font-size: 9px;
    font-weight: 600;
    color: var(--text);
    padding: 6px 12px;
    border-radius: 100px;
    letter-spacing: .5px;
    text-transform: uppercase;
    z-index: 2;
}

.nav {
    display: flex;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav::-webkit-scrollbar {
    display: none;
}

.nb {
    flex: 1;
    min-width: 64px;
    padding: 14px 4px 18px;
    background: none;
    border: none;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    transition: color .2s;
    position: relative;
    white-space: nowrap;
}

.nb.active {
    color: var(--text);
}

.ni {
    font-size: 26px;
}

.page {
    display: none;
    padding: 90px 16px 130px;
    min-height: 100dvh;
    position: relative;
    z-index: 1;
}

.page.active {
    display: block;
}

#page-feed {
    padding-top: 140px;
}

.stitle {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.ctitle {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
    color: var(--muted);
}

.ilabel {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 8px;
    margin-left: 4px;
}

.ifield {
    width: 100%;
    background: var(--surface2);
    border: none;
    border-radius: 16px;
    padding: 16px 18px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: background .2s;
    -webkit-appearance: none;
    margin-bottom: 20px;
}

.ifield:focus {
    background: #2a2a2c;
}

.ifield::placeholder {
    color: #666666;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .1s, opacity .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn i {
    font-size: 20px;
}

.btn:active {
    transform: scale(.97);
}

.btn:disabled {
    opacity: .5;
    pointer-events: none;
}

.btn-p {
    background: var(--accent);
    color: var(--accent-text);
}

.btn-s {
    background: var(--surface2);
    color: var(--text);
}

.btn-g {
    background: #2a2a2c;
    color: var(--text);
}

.btn-gr {
    background: var(--accent);
    color: var(--accent-text);
}

.btn-sm {
    width: auto;
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 100px;
}

.fbar-wrap {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.fbar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.fbar::-webkit-scrollbar {
    display: none;
}

.fpill {
    flex-shrink: 0;
    padding: 11px 19px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    background: var(--surface2);
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fpill.active {
    background: var(--accent);
    color: var(--accent-text);
}

.pc {
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
    padding: 18px;
}

.pch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: space-between;
}

.pmeta {
    flex: 1;
    min-width: 0;
}

.phandle {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdate {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.ptype {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface2);
    padding: 4px 10px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ptype i {
    font-size: 14px;
    color: var(--text);
}

.pthumb {
    width: 100%;
    height: 180px;
    background: var(--surface2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--muted);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.pthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.pthumb-ov {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: flex-end;
}

.plink {
    background: rgba(28, 28, 30, .8);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pcap {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pstats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.si {
    flex: 1;
    background: var(--surface2);
    padding: 12px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sv {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sv i {
    color: var(--muted);
    font-size: 16px;
}

.sl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.pact {
    display: flex;
    gap: 8px;
}

.aip {
    display: none;
    background: var(--surface2);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
}

.aip.on {
    display: block;
}

.aipt {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aic {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.sbox {
    background: var(--bg);
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    margin-top: 12px;
    white-space: pre-wrap;
    outline: none;
}

.list-group {
    background: var(--surface2);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    width: 100%;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: background .2s;
}

.list-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.list-item+.list-item {
    border-top: 1px solid var(--border);
}

.li-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text);
    flex-shrink: 0;
}

.li-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.li-title {
    font-weight: 500;
}

.li-sub {
    font-size: 12px;
    color: var(--muted);
}

.empty {
    text-align: center;
    padding: 80px 20px;
}

.ei {
    font-size: 56px;
    margin-bottom: 16px;
    color: var(--surface2);
}

.et {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.es {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* ==========================================
   TELA DE ESTÚDIO (CÂMERA IMERSIVA)
   ========================================== */
#page-camera {
    padding: 0;
    background: #000;
    overflow: hidden;
    position: fixed;
    inset: 0;
    z-index: 1500;
    touch-action: none;
    overscroll-behavior: none;
}

.studio-container {
    position: relative;
    width: 100vw;
    height: 100dvh;
    background: #000;
    display: flex;
    flex-direction: column;
}

.studio-back {
    position: absolute;
    top: calc(16px + env(safe-area-inset-top));
    left: 16px;
    z-index: 110;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 24px;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.tp-speed-ctrl {
    position: absolute;
    top: calc(16px + env(safe-area-inset-top));
    right: 16px;
    z-index: 110;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
}

.tp-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
}

.tp-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

.tp-val {
    font-size: 14px;
    font-weight: 700;
    min-width: 36px;
    text-align: center;
    color: white;
    font-family: var(--font-head);
}

.camera-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
}

#vp {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scaleX(-1);
    transition: filter 0.1s linear;
}

.tp-overlay {
    position: absolute;
    top: calc(64px + env(safe-area-inset-top));
    left: 8%;
    right: 8%;
    height: 35%;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    display: none;
}

.tp-overlay.active {
    display: block;
}

.tp-content {
    padding: 40px 0 350px;
    transition: transform 0.05s linear;
}

.tp-text {
    font-size: 28px;
    line-height: 1.35;
    color: white;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 1);
    font-family: var(--font-head);
}

.cam-timer {
    position: absolute;
    top: calc(20px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 69, 58, 0.9);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    display: none;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(255, 69, 58, 0.5);
}

.cam-timer.on {
    display: flex;
}

.studio-toolbar {
    background: #000;
    padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
    border-top: 1px solid var(--border);
}

.toolbar-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
}

.toolbar-scroll::-webkit-scrollbar {
    display: none;
}

.t-btn {
    flex-shrink: 0;
    height: 38px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--surface2);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.t-btn.active {
    background: white;
    color: black;
    border-color: white;
}

.t-btn i {
    font-size: 16px;
    opacity: 0.7;
}

.studio-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.act-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--surface2);
    color: white;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.act-btn.on {
    background: var(--accent2);
    color: white;
}

.rec-wrap {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rec-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #ff453a;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.recording .rec-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

/* ==========================================
   MODAIS GERAIS E REVIEW DE VÍDEO
   ========================================== */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.modal-bg.on {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--surface);
    border-radius: 32px 32px 0 0;
    padding: 24px 20px 48px;
    width: 100%;
    max-width: 500px;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    max-height: 90dvh;
    overflow-y: auto;
}

.modal-bg.on .modal {
    transform: translateY(0);
}

.mtitle {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.msub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.mclose {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface2);
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* MODAL DE REVIEW (POP-UP CENTRALIZADO) */
#reviewModal {
    align-items: center;
    padding: 24px;
    z-index: 5000;
}

#reviewModal .modal {
    border-radius: 24px;
    padding: 16px;
    background: var(--surface);
    transform: scale(0.95) translateY(0);
    opacity: 0;
    margin: 0;
    max-height: 85dvh;
    overflow: hidden;
    width: 100%;
}

#reviewModal.on .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

#reviewVideo {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
    background: #000;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.review-actions {
    padding: 16px 0 0 0;
    display: flex;
    gap: 12px;
    position: static;
    background: transparent;
}


/* ==========================================
   TOAST E PROFILE AVATAR
   ========================================== */
.toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface2);
    border-radius: 100px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    z-index: 6000;
    opacity: 0;
    transition: all .3s;
    white-space: nowrap;
    max-width: 90vw;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    color: var(--text);
}

.toast.on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.avatar-edit {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--surface2);
    margin: 0 auto 16px;
    color: var(--muted);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 2px solid var(--border);
    transition: border-color 0.2s;
}

.avatar-edit:active {
    border-color: var(--accent);
}

.avatar-edit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    display: none;
    z-index: 2;
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    z-index: 3;
}

/* ==========================================
   PAYWALL DA ASSINATURA
   ========================================== */
.pw-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
    overflow-y: auto;
    text-align: center;
}

.pw-logo {
    width: 80px;
    height: 80px;
    background: var(--surface2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 24px;
    flex-shrink: 0;
    color: white;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 32px;
}

.pw-title {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.pw-sub {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.pw-features {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.pw-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 500;
}

.pw-feat:last-child {
    margin-bottom: 0;
}

.pw-feat i {
    color: var(--green);
    font-size: 20px;
    flex-shrink: 0;
}

.pw-price-box {
    margin-bottom: 32px;
}

.pw-price {
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.pw-price span {
    font-size: 16px;
    color: var(--muted);
    font-weight: 500;
}

/* ==========================================
   MODO DESKTOP (SIMULADOR MOBILE APP)
   ========================================== */
body.desktop-app-mode {
    background-color: var(--lp-bg);
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, rgba(123, 47, 255, 0.15) 0%, rgba(236, 72, 153, 0.05) 40%, transparent 70%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    background-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    margin: 0;
    padding: 40px 20px;
}

body.desktop-app-mode #app-root {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 850px;
    max-height: calc(100vh - 80px);
    background: var(--bg);
    border-radius: 44px;
    border: 14px solid #000;
    box-shadow: 0 0 0 1px #2a2a2c, 0 40px 80px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateZ(0);
}

body.desktop-app-mode #app-root::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

body.desktop-app-mode .page {
    height: 100%;
    min-height: auto;
    overflow-y: auto;
}

body.desktop-app-mode .page::-webkit-scrollbar {
    display: none;
}

body.desktop-app-mode #app-root::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 9999;
    pointer-events: none;
}

body.desktop-app-mode .header {
    padding-top: 24px;
}

body.desktop-app-mode #login-screen {
    min-height: 100% !important;
    height: 100% !important;
}

/* ==========================================
   REGRAS DE CONTENÇÃO DO ESTÚDIO NO DESKTOP
   ========================================== */
body.desktop-app-mode #page-camera {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
}

body.desktop-app-mode .studio-container {
    width: 100% !important;
    height: 100% !important;
}

/* Empurra os botões do topo para fugirem do falso notch */
body.desktop-app-mode .studio-back,
body.desktop-app-mode .tp-speed-ctrl {
    top: 40px !important;
}

body.desktop-app-mode .cam-timer {
    top: 44px !important;
}

/* ==========================================
   LANDING PAGE (TEMA ESCURO COM GRID TECH)
   ========================================== */
.lp-wrapper {
    display: none;
    background-color: var(--lp-bg);
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, rgba(123, 47, 255, 0.15) 0%, rgba(236, 72, 153, 0.05) 40%, transparent 70%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    background-position: center top;
    color: var(--lp-text);
    min-height: 100dvh;
    font-family: var(--font-body);
    z-index: 9999;
    position: relative;
    padding-bottom: 80px;
}

/* BOTÃO MENU (CRIADO E OCULTO NO DESKTOP) */
.lp-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--lp-text);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.lp-nav-pill {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 28, 30, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 48px);
    max-width: 1052px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
}

.lp-nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lp-logo-img {
    height: 32px;
    object-fit: contain;
}

.lp-logo-text {
    font-family: var(--font-head);
    font-size: 20px;
    letter-spacing: -0.03em;
    color: var(--lp-text);
    margin-top: 2px;
}

.lp-nav-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-text);
}

@media (max-width: 768px) {
    .lp-nav-links {
        display: none;
    }
}

.lp-btn-primary {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 100px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    transition: transform 0.1s;
}

.lp-btn-primary:active {
    transform: scale(0.97);
}

.lp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 24px 0;
}

.lp-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 40px;
    perspective: none;
}

@media (max-width: 900px) {
    .lp-hero {
        flex-direction: column;
        text-align: center;
    }
}

.lp-hero-text {
    flex: 1;
    max-width: 500px;
}

.lp-badges {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .lp-badges {
        justify-content: center;
    }
}

.lp-badge-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 10px;
    color: var(--lp-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .lp-badge-item {
        align-items: center;
    }
}

.lp-badge-val {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    color: var(--lp-text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.lp-badge-val i {
    font-size: 16px;
}

.lp-title {
    font-family: var(--font-head);
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--lp-text);
}

.lp-sub {
    font-size: 18px;
    color: var(--lp-muted);
    line-height: 1.5;
    margin-bottom: 40px;
}

.app-mockup-img {
    width: 420px;
    height: auto;
    max-height: 840px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transform: none;
    z-index: 10;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

.feature-graphic-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    background: var(--surface2);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    background: var(--lp-card);
    border: 1px solid var(--lp-border);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    min-width: 0;
}

.bento-card h3 {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--lp-text);
}

.bento-card p {
    font-size: 15px;
    color: var(--lp-muted);
    line-height: 1.5;
}

.c-graphic-small {
    grid-column: span 5;
    flex-direction: column;
    justify-content: flex-start;
    gap: 32px;
}

.c-graphic-small div {
    flex: 1;
}

.c-side-phone {
    grid-column: span 7;
    align-items: center;
    gap: 40px;
}

.bento-grid .app-mockup-img {
    -webkit-mask-image: none;
    mask-image: none;
}

.c-side-phone .app-mockup-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0;
}

.c-tall-left {
    grid-column: span 6;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.c-tall-left .app-mockup-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 40px auto 0;
}

.c-overlay-right {
    grid-column: span 6;
    background: var(--lp-card);
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
}

.c-overlay-right::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: radial-gradient(#ffffff 2px, transparent 2px);
    background-size: 30px 30px;
}

.c-overlay-content {
    position: relative;
    z-index: 2;
}

.c-full-width {
    grid-column: span 12;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.c-full-width .feature-graphic-img {
    flex: 1;
    height: 300px;
    margin: 0;
}

.c-full-text {
    flex: 1;
    max-width: 400px;
}

.c-full-text h3 {
    font-size: 48px;
}

.c-cursive {
    grid-column: span 6;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.c-cursive h3 {
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 52px;
    font-weight: 600;
    line-height: 1;
}

.c-cursive .app-mockup-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin-top: 40px;
    margin-bottom: 0;
}

.c-docs {
    grid-column: span 6;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: space-between;
}

.c-docs .app-mockup-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin-top: 0;
    margin-bottom: 40px;
}

@media (min-width: 769px) {
    .btn-mobile-only {
        display: none !important;
    }

    .desktop-warning-lp {
        display: block !important;
    }
}

@media (max-width: 900px) {

    .c-graphic-small,
    .c-side-phone,
    .c-tall-left,
    .c-overlay-right,
    .c-full-width,
    .c-cursive,
    .c-docs {
        grid-column: span 12;
    }

    .c-side-phone,
    .c-full-width {
        flex-direction: column;
        text-align: center;
    }

    .c-side-phone .app-mockup-img {
        margin: 0 auto;
    }

    .c-tall-left .app-mockup-img {
        margin: 40px auto 0;
    }

    .c-full-width .feature-graphic-img {
        width: 100%;
    }

    .lp-title {
        font-size: 48px;
    }

    .lp-hero {
        flex-direction: column;
        text-align: center;
    }

    .lp-badges {
        justify-content: center;
    }

    .lp-badge-item {
        align-items: center;
    }

    .app-mockup-img {
        width: 100%;
        max-width: 400px;
        max-height: none;
        transform: none;
        margin: 20px auto -60px auto;
    }

    /* MOCKUP DO IPHONE EDGE-TO-EDGE NO MOBILE */
    .lp-hero .app-mockup-img {
        width: calc(100% + 48px);
        /* Desconta o padding lateral do container (24px de cada lado) */
        max-width: none;
        margin: 20px -24px -60px -24px;
        /* O iPhone estica até as bordas */
    }
}

@media (max-width: 768px) {
    .lp-nav-links {
        display: none;
    }

    .btn-mobile-only {
        display: inline-flex !important;
    }

    .desktop-warning-lp {
        display: none !important;
    }

    /* MOSTRA O BOTÃO DO MENU SANDUÍCHE */
    .lp-menu-btn {
        display: flex;
        align-items: center;
    }

    .lp-nav-pill {
        top: 16px;
        width: calc(100% - 32px);
        padding: 10px 16px;
        position: relative;
    }

    /* FORÇA A LOGO A FICAR NO CENTRO EXATO */
    .lp-nav-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        gap: 8px;
        z-index: 5;
    }

    .lp-logo-img {
        height: 24px;
    }

    .lp-logo-text {
        font-size: 18px;
    }

    .lp-nav-pill .lp-btn-primary {
        padding: 8px 16px;
        font-size: 13px;
    }

    .lp-hero-text .lp-btn-primary {
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 16px;
    }

    .lp-container {
        padding-top: 150px;
    }
}

/* ==========================================
   MODAL MENU MOBILE (LANDING PAGE)
   ========================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    /* Fundo escurecido */
    backdrop-filter: blur(16px);
    /* Efeito vitrificado/glassmorphism */
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.on {
    opacity: 1;
    pointer-events: all;
}

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
}

.mobile-menu-links span {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: color 0.2s;
}

.mobile-menu-links span:active {
    color: var(--muted);
}