/* ============================================
   STICKERLAB — PREMIUM DARK THEME (64-BIT EDITION)
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: #16162a;
    --bg-input: #1e1e35;
    --bg-hover: #252545;

    --accent-primary: #8b5cf6;
    --accent-secondary: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --accent-gradient-2: linear-gradient(135deg, #a78bfa, #22d3ee);

    --neon-purple: #c084fc;
    --neon-cyan: #22d3ee;
    --neon-pink: #f472b6;
    --neon-green: #34d399;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(139, 92, 246, 0.15);
    --border-light: rgba(255, 255, 255, 0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.3);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --header-height: 60px;
    --input-height: 80px;
    --max-width: 480px;
}
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow: hidden !important;
    width: 100%;
    height: 100%;
}
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    background-color: #050505 !important;
    
    /* 🚨 A MÁGICA ACONTECE AQUI */
    background-image: 
        /* 1ª Camada: Uma película escura sutil para melhor contraste (15% de opacidade) */
        linear-gradient(rgba(5, 5, 5, 0.40), rgba(5, 5, 5, 0.50)),
        /* 2ª Camada: A sua imagem de fundo */
        url('/backapp.png') !important;
        
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important; /* Alterado de fixed para scroll */
    background-repeat: no-repeat !important;
    color: #fff;
    width: 100vw;
    height: 100vh;
    position: fixed; /* Garante que o body ocupe toda a tela */
    top: 0;
    left: 0;
    /* Garante que a imagem não cause overflow */
    background-origin: border-box !important;
    background-clip: border-box !important;
}
/* ============================================
   APP CONTAINER E HEADER
   ============================================ */

.app-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 100%; /* <--- A MÁGICA QUE DESESMAGA A TELA */
    height: 100vh;
    height: 100dvh;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow-y: hidden; /* 🔥 Permite scroll horizontal em filhos */
    overflow-x: visible;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 16px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
    z-index: 20;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
}
.logo-emoji {
    font-size: 20px;
    z-index: 1;
}
.logo-glow {
    position: absolute;
    inset: -4px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    opacity: 0.3;
    filter: blur(8px);
    animation: logoGlow 4s ease-in-out infinite alternate;
}
@keyframes logoGlow {
    from { opacity: 0.2; transform: scale(1); }
    to { opacity: 0.4; transform: scale(1.05); }
}
.logo-text h1 {
    font-size: 18px;
    font-weight: 800;
    background: var(--accent-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.logo-subtitle {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.header-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
    color: #4ade80;
}
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
/* 1. O ELEVADOR DO MODAL (Joga tudo pro topo) */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 480px);
    align-items: start; /* ISSO AQUI SOBE O MODAL E TIRA O BURACO! */
    gap: 44px;
}

/* 2. A NOVA CAIXA PARALLAX (Vitrine Magnética) */
.sticker-stage {
    position: relative;
    width: 100%;
    height: 480px; /* Altura travada para forçar a rolagem */
    margin-top: 10px;
    background: rgba(10, 10, 12, 0.45) !important; 
    backdrop-filter: blur(15px) !important; 
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 184, 0, 0.15) !important; /* Toque dourado sutil na borda */
    border-radius: 24px !important; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important; 
    overflow-y: auto; /* A mágica da rolagem interna */
    scrollbar-width: none; /* Esconde barra no Firefox */
}
.sticker-stage::-webkit-scrollbar { 
    display: none; /* Esconde barra no Chrome/Edge */
}

/* 3. A PISTA DE ROLAGEM (Mais alta que a caixa) */
.stage-scroll-area {
    position: relative;
    width: 100%;
    height: 850px; /* Altura gigante para permitir o scroll profundo */
}

/* 4. OS ADESIVOS E O EFEITO DE HOVER (Destaque) */
.sticker-float {
    position: absolute;
    width: 130px; 
    object-fit: contain;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.4));
    animation: floatSticker 8s ease-in-out infinite;
    transition: transform 0.2s ease-out;
    cursor: pointer;
}

/* Quando o mouse passa, a imagem pula na cara do usuário e fica por cima de tudo */
.sticker-float:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 50 !important;
    filter: drop-shadow(0 20px 30px rgba(255, 184, 0, 0.2)); /* Brilho dourado atrás */
}

/* ============================================
   CHAT AREA E MENSAGENS
   ============================================ */

.chat-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.chat-area::-webkit-scrollbar {
    width: 4px;
}
.chat-area::-webkit-scrollbar-track {
    background: transparent;
}
.chat-area::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
    opacity: 0.5;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 100%;
    animation: msgSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes msgSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}
.bot-message .message-avatar {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    border-color: rgba(139, 92, 246, 0.3);
}

.message-content {
    flex: 1;
    min-width: 0;
}
.message-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bot-message .message-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top-left-radius: 4px;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: var(--accent-gradient);
}
.user-message .message-bubble {
    background: var(--accent-gradient);
    color: white;
    border-top-right-radius: 4px;
}
.message-time {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

.user-message .message-time {
    text-align: right;
}

/* ============================================
   STICKER RESULT E AÇÕES
   ============================================ */

.sticker-result {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sticker-canvas-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-image:
        linear-gradient(45deg, #1a1a2e 25%, transparent 25%),
        linear-gradient(-45deg, #1a1a2e 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1a1a2e 75%),
        linear-gradient(-45deg, transparent 75%, #1a1a2e 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    background-color: #12121a;
    border: 1px solid var(--border-color);
}
.sticker-canvas-wrapper:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}

.sticker-canvas-wrapper canvas,
.sticker-canvas-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sticker-actions-inline {
    display: flex;
    gap: 8px;
}

.btn-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    font-family: var(--font-sans);
}
.btn-inline-download {
    background: var(--accent-gradient);
    color: white;
}

.btn-inline-download:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-inline-expand {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}
.btn-inline-expand:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}
/* ============================================
   LOADING
   ============================================ */

.loading-dots {
    display: flex;
    gap: 6px;
    padding: 8px 0;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: loadingBounce 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.generating-text {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 4px;
}

.generating-text .gen-step {
    color: var(--neon-cyan);
}
/* ============================================
   INPUT AREA (SIMPLIFICADA)
   ============================================ */

.input-area {
    flex-shrink: 0;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    z-index: 20;
}
.input-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 6px;
    transition: border-color 0.3s;
}
.input-container:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}
.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    padding: 8px 45px 8px 12px;
    resize: none;
    outline: none;
    max-height: 100px;
    overflow-y: auto;
}
.input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

.char-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    pointer-events: none;
}
.btn-send {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s;
    opacity: 0.4;
    pointer-events: none;
}
.btn-send.active {
    opacity: 1;
    pointer-events: all;
}
.btn-send.active:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.btn-send.active:active {
    transform: scale(0.95);
}
.input-footer {
    display: flex;
    justify-content: flex-end; /* Alterado para alinhar à direita já que o nome do estilo sumiu */
    align-items: center;
    padding: 6px 8px 0;
}
.powered-by {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
/* ============================================
   ERROR MESSAGE STYLE
   ============================================ */

.error-bubble {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5;
}
/* ============================================
   RESPONSIVE & MOBILE TWEAKS
   ============================================ */

@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
}
@media (min-width: 481px) {
    .app-container {
        border-left: 1px solid var(--border-light);
        border-right: 1px solid var(--border-light);
    }
}
@supports (-webkit-touch-callout: none) {
    .input-area {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}
/* --- ESTILOS DA BIBLIOTECA --- */
.library-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.library-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-back:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

/* A Mágica da Grade */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

.library-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.library-item:hover {
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.library-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

.library-placeholder {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- ESTILOS DOS NOVOS MODAIS --- */
.modal-small { max-width: 400px !important; }

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-option-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 16px;
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.btn-option-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    transform: scale(1.02);
}

.btn-option-card .icon { font-size: 24px; }
.btn-option-card .text strong { display: block; font-size: 16px; margin-bottom: 2px; }
.btn-option-card .text span { font-size: 12px; color: #94a3b8; }

/* CSS DOS BOTÕES DE ESTILO */
.style-selector-bar {
    display: flex; 
    gap: 8px; 
    padding: 0 16px 8px 16px; 
    overflow-x: auto;
}

.style-option {
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8; 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-size: 12px;
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s; 
    white-space: nowrap;
}

.style-option.active {
    background: rgba(139, 92, 246, 0.2); 
    border-color: #8b5cf6; 
    color: #fff;
}

/* NOVO CSS MODERNO PARA OS BOTÕES DE SUGESTÃO (CHIPS) */
.suggestion-chips {
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-top: 14px;
}

.chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0; 
    padding: 8px 14px; 
    border-radius: 12px;
    font-size: 13px; 
    font-weight: 500; 
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.chip:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.6);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* CSS DO MENU HAMBURGER E SIDEBAR */
.hamburger-btn {
    background: none; 
    border: none; 
    color: #94a3b8; 
    cursor: pointer;
    padding: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: color 0.2s;
}

.hamburger-btn:hover { 
    color: #fff; 
}

.sidebar-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 1000; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s ease;
}

.sidebar-overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

.sidebar-menu {
    position: fixed; 
    top: 0; 
    right: -280px; 
    width: 280px; 
    height: 100vh;
    background: #0f172a; 
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001; 
    transition: right 0.3s ease; 
    display: flex; 
    flex-direction: column;
    padding: 24px; 
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
}

.sidebar-menu.active { 
    right: 0; 
}

.sidebar-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 32px; 
}

.sidebar-close { 
    background: none; 
    border: none; 
    color: #94a3b8; 
    font-size: 24px; 
    cursor: pointer; 
}

.sidebar-item {
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 16px; 
    margin-bottom: 8px;
    border-radius: 12px; 
    color: #fff; 
    font-weight: 500; 
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03); 
    transition: all 0.2s;
}

.sidebar-item:hover { 
    background: rgba(139, 92, 246, 0.2); 
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 16px 0;
}

.sidebar-item-logout {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    margin-top: auto;
}

.sidebar-item-logout:hover {
    background: rgba(248, 113, 113, 0.2);
}

.store-preview {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   MODAL OVERLAY & CONTENT STYLES
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(22, 22, 42, 0.95), rgba(26, 26, 46, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
    opacity: 0.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.btn-action {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.btn-action.btn-download {
    background: var(--accent-gradient);
    color: white;
}

.btn-action.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.btn-action.btn-new {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-action.btn-new:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(139, 92, 246, 0.5);
    color: var(--neon-purple);
}

.sticker-preview-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 16px;
}

.sticker-checkered-bg {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, #1a1a2e 25%, transparent 25%),
        linear-gradient(-45deg, #1a1a2e 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1a1a2e 75%),
        linear-gradient(-45deg, transparent 75%, #1a1a2e 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    background-color: #12121a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticker-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.info-badge {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

/* ============================================
   LOJA DE PACOTES STYLES
   ============================================ */
.store-packages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .store-packages {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.package-card {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6), rgba(22, 22, 42, 0.6));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
}

.package-card.featured {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(34, 211, 238, 0.05));
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.package-card.featured:hover {
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3);
}

.package-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.package-badge.featured-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.3));
    border-color: rgba(34, 211, 238, 0.5);
    color: #22d3ee;
}

.package-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.package-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.package-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature {
    font-size: 13px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.package-price {
    font-size: 24px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 8px 0 0 0;
}

.package-price.featured-price {
    font-size: 28px;
}

.btn-package {
    width: 100%;
    padding: 12px;
    border: none;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.btn-package:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
    transform: scale(1.02);
}

.btn-package-featured {
    background: var(--accent-gradient);
    border: none;
    color: white;
}

.btn-package-featured:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* ============================================
   OPÇÕES DE FORMATO (Modal de Exportação)
   ============================================ */
.btn-format-option {
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.btn-format-option.selected {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: var(--accent-primary) !important;
}

.btn-format-option.selected .format-check {
    display: block !important;
    color: #22d3ee;
    animation: checkPulse 0.3s ease;
}

@keyframes checkPulse {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}
/* ============================================
   ESTILOS DA LOJA PREMIUM (CORREÇÃO DE SOBREPOSIÇÃO)
   ============================================ */

.store-packages {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 25px; /* Dá um respiro para o texto acima */
}

.package-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    /* O SEGREDO ESTÁ AQUI: 36px de padding no topo para o texto não bater na borda/etiqueta */
    padding: 36px 16px 24px; 
    position: relative; /* Necessário para a etiqueta flutuar em relação ao card */
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s;
}

.package-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.package-badge {
    position: absolute;
    top: -12px; /* Joga a etiqueta metade para fora e metade para dentro do card */
    left: 50%;
    transform: translateX(-50%); /* Centraliza perfeitamente no eixo X */
    background: #1e293b;
    border: 1px solid #334155;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    color: #cbd5e1;
}

/* Destaque do pacote do meio */
.package-card.featured {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
    transform: scale(1.05); /* Deixa o do meio levemente maior */
    z-index: 10;
}

.package-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.featured-badge {
    background: #8b5cf6;
    border-color: #a78bfa;
    color: #fff;
}

/* Ajuste dos textos para ficarem alinhados */
.package-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #fff;
}

.package-desc {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 20px;
}

.package-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 24px;
    font-size: 13px;
    color: #e2e8f0;
}

.package-price {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    margin-top: auto; /* Empurra o preço e o botão lá pro fundo do card */
}

.btn-package {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-package:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-package-featured {
    background: #8b5cf6;
}

.btn-package-featured:hover {
    background: #7c3aed;
}

/* ============================================
   AÇÕES DA BIBLIOTECA (LIXEIRA & PUBLICAR)
   ============================================ */
.library-item {
    position: relative; /* Necessário para os botões flutuarem dentro do card */
}

.lib-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 6px;
    opacity: 0; /* Escondido por padrão */
    transition: opacity 0.2s;
}

/* Revela os botões quando passa o mouse por cima do sticker */
.library-item:hover .lib-actions {
    opacity: 1;
}

.btn-lib-action {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-lib-action:hover {
    background: #8b5cf6;
    transform: scale(1.1);
}

.btn-lib-action.delete:hover {
    background: #ef4444; /* Vermelho para a lixeira */
}

/* ============================================
   🔥 NEON SNAP GALLERY (GLOBAL FEED)
   ============================================ */




/* ============================================
   A MARRETA DO GLOBAL FEED (LIMPA E BLINDADA)
   ============================================ */
.feed-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Proíbe de cair pra linha de baixo */
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important; /* Força a ocupar a tela toda */
    height: 100% !important;
    gap: 22px !important;
    padding: 24px 24px 40px 24px !important; /* Respiro extra na parte de baixo */
    align-items: flex-start !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important; /* Deslize macio no iPad */
    scrollbar-width: none !important; /* Esconde barra no Firefox */
}

/* Esconde a barra feia no Chrome/Safari/Edge */
.feed-container::-webkit-scrollbar {
    display: none !important;
}

.feed-post {
    flex: 0 0 auto !important; /* O SEGREDO: Proíbe o cartão de encolher! */
    width: 340px !important;
    min-width: 340px !important; /* A trava absoluta pro Tablet! */
    max-width: 85vw !important; /* Segurança para não vazar no celular */
    scroll-snap-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    
    /* O SEU DESIGN PREMIUM (MANTIDO INTACTO) */
    background: linear-gradient(180deg, rgba(8, 13, 25, 0.96), rgba(14, 20, 38, 0.94));
    border: 1px solid rgba(110, 231, 255, 0.12);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.26), 0 0 0 1px rgba(168, 85, 247, 0.06), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
}

.feed-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
}

.feed-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.feed-post-img {
    width: 100%;
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(34, 211, 238, 0.1), rgba(0, 0, 0, 0.2));
    margin-bottom: 14px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,0.06);
}

.feed-post-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.feed-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.1s;
}

.feed-btn:active {
    transform: scale(0.8);
}

.feed-likes {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
}

.feed-caption {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 16px;
    line-height: 1.4;
}

.feed-comment-box {
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px;
    cursor: pointer;
}

.feed-post-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.feed-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.feed-user-trigger:hover .feed-username {
    color: var(--neon-cyan);
}

.feed-username {
    transition: color 0.2s ease;
}

.feed-post-time {
    font-size: 11px;
    color: var(--text-muted);
}

.feed-btn.like-active {
    color: #ff77b7;
    text-shadow: 0 0 18px rgba(244, 114, 182, 0.45);
}

.feed-btn.like-burst {
    animation: likeBurstNeon 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes likeBurstNeon {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(244, 114, 182, 0)); }
    35% { transform: scale(1.35); filter: drop-shadow(0 0 14px rgba(244, 114, 182, 0.9)); }
    55% { transform: scale(0.92); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(244, 114, 182, 0)); }
}

.feed-comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.feed-comment-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.45;
}

.feed-comment-item strong {
    color: #fff;
    margin-right: 6px;
}

.feed-comment-meta {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVIDADE DO FEED CARROSSEL
   ============================================ */
@media (max-width: 768px) {
    .feed-container {
        padding: 16px 16px 24px 16px;
        gap: 16px;
    }
    
    .feed-post {
        width: 280px; /* Cartões um pouco menores em mobile */
        min-height: 380px;
    }
    
    /* Scroll mais visível em mobile */
    .feed-container::-webkit-scrollbar {
        height: 4px;
    }
}

@media (max-width: 480px) {
    .feed-post {
        width: 260px;
        min-height: 360px;
        padding: 14px;
    }
    
    .feed-container {
        gap: 14px;
        scroll-padding: 16px;
    }
}

/* Suporte para touch devices */
@media (hover: none) and (pointer: coarse) {
    .feed-container {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .feed-post {
        scroll-snap-align: center; /* Melhor para touch */
    }
}

.profile-modal-shell {
    max-width: 760px;
    width: min(100%, 760px);
    max-height: 90vh;
    border-radius: 28px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    background: rgba(8, 12, 22, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.12),
        0 30px 90px rgba(0,0,0,0.6),
        0 0 60px rgba(34,211,238,0.07),
        0 0 100px rgba(168,85,247,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Override base .modal-content overflow so inner body scrolls */
.profile-modal-shell.modal-content {
    overflow: hidden;
}

.profile-modal-header {
    position: relative;
    z-index: 4;
    background: linear-gradient(180deg, rgba(15,23,42,0.95), rgba(10,16,32,0.85));
    border-bottom: 1px solid rgba(34,211,238,0.12);
    border-radius: 28px 28px 0 0;
    flex-shrink: 0;
}

/* Override base .modal-body padding — profile body manages its own */
.profile-modal-shell .modal-body {
    padding: 0;
}

.profile-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 3;
    pointer-events: auto;
    overflow-y: auto;
    flex: 1;
    padding: 24px;
}

.profile-modal-body::-webkit-scrollbar { width: 4px; }
.profile-modal-body::-webkit-scrollbar-track { background: transparent; }
.profile-modal-body::-webkit-scrollbar-thumb { background: rgba(34,211,238,0.3); border-radius: 4px; }

.profile-hero-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(34,211,238,0.07) 0%, rgba(139,92,246,0.10) 50%, rgba(8,12,22,0.95) 100%);
    border: 1px solid rgba(34,211,238,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.25);
}

.profile-avatar-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-avatar-frame {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(34,211,238,0.35);
    background: radial-gradient(circle at 30% 30%, rgba(34,211,238,0.18), rgba(8,12,22,0.95));
    box-shadow: 0 0 0 3px rgba(34,211,238,0.08), 0 16px 40px rgba(0,0,0,0.4), inset 0 0 24px rgba(34,211,238,0.06);
}

.profile-avatar-image,
.profile-avatar-fallback {
    width: 100%;
    height: 100%;
}

.profile-avatar-image {
    object-fit: cover;
    display: none;
}

.profile-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #d8f7ff;
}

.profile-avatar-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-rank-chip,
.profile-public-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.profile-rank-chip {
    color: #dffaff;
    background: rgba(110,231,255,0.1);
    border: 1px solid rgba(110,231,255,0.22);
}

.profile-public-badge {
    display: none;
    color: #ffd7f0;
    background: rgba(244,114,182,0.12);
    border: 1px solid rgba(244,114,182,0.24);
}

.profile-favorite-link {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
}

.profile-display-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.profile-display-name-row h4 {
    margin: 0;
    font-size: 28px;
    color: #fff;
}

.profile-bio-text {
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 48px;
    margin-bottom: 18px;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-stat-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(139,92,246,0.06));
    border: 1px solid rgba(34,211,238,0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 16px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.profile-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34,211,238,0.4), transparent);
}

.profile-stat-card strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    line-height: 1.1;
}

.profile-stat-card span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(148,163,184,0.8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field span {
    font-size: 12px;
    font-weight: 700;
    color: #dbeafe;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-field-full {
    grid-column: 1 / -1;
}

.profile-input,
.profile-textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(8,12,22,0.7);
    color: #f1f5f9;
    padding: 13px 16px;
    outline: none;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-input:focus,
.profile-textarea:focus {
    border-color: rgba(34,211,238,0.45);
    box-shadow: 0 0 0 3px rgba(34,211,238,0.08), 0 0 16px rgba(34,211,238,0.06);
}

.profile-input::placeholder,
.profile-textarea::placeholder {
    color: rgba(100,116,139,0.7);
}

.profile-textarea {
    min-height: 96px;
    resize: vertical;
}

.profile-field small {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

.profile-favorite-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-section-head h4 {
    margin: 0 0 4px;
    color: #fff;
}

.profile-section-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.favorite-sticker-slot {
    position: relative;
    width: 152px;
    height: 152px;
    min-height: 152px;
    border-radius: 26px;
    border: 1px dashed rgba(110,231,255,0.28);
    background: linear-gradient(180deg, rgba(12,18,34,0.9), rgba(8,13,25,0.96));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.favorite-sticker-slot:hover {
    transform: translateY(-2px);
    border-color: rgba(34,211,238,0.4);
    box-shadow: 0 12px 30px rgba(34,211,238,0.1);
}

.favorite-sticker-slot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

.favorite-sticker-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #dffaff;
    padding: 20px;
    text-align: center;
}

.favorite-plus {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 1px dashed rgba(110,231,255,0.35);
    background: rgba(110,231,255,0.06);
}

.favorite-sticker-public {
    display: none;
}

.profile-favorite-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.profile-modal-actions {
    position: relative;
    z-index: 5;
    pointer-events: auto;
    flex-shrink: 0;
    border-top: 1px solid rgba(34,211,238,0.10);
    background: linear-gradient(180deg, rgba(8,12,22,0.6), rgba(8,12,22,0.9));
    border-radius: 0 0 28px 28px;
}

.profile-modal-actions .btn-action {
    pointer-events: auto;
    position: relative;
    z-index: 6;
}

.profile-modal-actions .btn-download {
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    border: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(34,211,238,0.25);
}

.profile-modal-actions .btn-download:hover {
    box-shadow: 0 6px 28px rgba(34,211,238,0.4);
    transform: translateY(-1px);
}

.sticker-picker-shell {
    max-width: 520px;
    width: min(100%, 520px);
    border-radius: 28px;
}

.sticker-picker-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sticker-picker-copy {
    color: var(--text-secondary);
    font-size: 13px;
}

.sticker-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
}

.sticker-picker-item {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    padding: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sticker-picker-item:hover,
.sticker-picker-item.selected {
    transform: translateY(-2px);
    border-color: rgba(34,211,238,0.32);
    box-shadow: 0 10px 24px rgba(34,211,238,0.12);
}

.sticker-picker-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sticker-picker-empty-state {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-align: center;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 20px;
}

.profile-modal-body.profile-mode-public .profile-edit-only {
    display: none !important;
}

.profile-modal-actions.profile-actions-hidden {
    display: none !important;
}

.profile-modal-body.profile-mode-public .favorite-sticker-public,
.profile-modal-body.profile-mode-public .profile-public-badge {
    display: flex;
}

.profile-modal-body.profile-mode-private .favorite-sticker-public {
    display: none;
}

@media (max-width: 640px) {
    .profile-hero-card,
    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-favorite-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-avatar-stack {
        align-items: center;
    }

    .profile-avatar-frame {
        width: 140px;
        height: 140px;
    }

    .profile-stat-grid {
        grid-template-columns: 1fr;
    }
}

.feed-comment-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-size: 14px;
    outline: none;
}

.feed-comment-btn {
    background: none;
    border: none;
    color: #8b5cf6;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}
/* ============================================
   🔥 ELITE PREMIUM UPGRADE (NEON, GLASS & GLOW)
   ============================================ */

/* 1. Fundo Animado e Profundo (Carbono, Laranja e Ouro) - REMOVIDO PARA EVITAR CONFLITO */
/* A regra do body principal já inclui a imagem de fundo */

/* 2. Efeito Glassmorphism nas Áreas Principais */
.app-container, .modal-content, .sidebar-menu {
    background: rgba(10, 10, 10, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 184, 0, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

/* 3. Brilho no Logo Título */
.logo-text h1 {
    background: linear-gradient(to right, #ff5500, #ffb800);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 85, 0, 0.4);
    font-weight: 800;
}

/* 4. O Botão de Enviar (O Coração do App) */
.btn-send {
    background: linear-gradient(135deg, #ff5500, #ffb800) !important;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.4) !important;
    border: none !important;
    color: #fff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-send:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px rgba(255, 184, 0, 0.6) !important;
}

/* 5. Efeito Neon nos Chips e Opções de Estilo */
.chip, .style-option {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    transition: all 0.3s ease !important;
}

.chip:hover, .style-option:hover, .style-option.active {
    border-color: #ffb800 !important;
    background: rgba(255, 85, 0, 0.1) !important;
    box-shadow: 0 0 15px rgba(255, 184, 0, 0.2) !important;
    color: #ffb800 !important;
    transform: translateY(-1px);
}

/* 6. Animando os Orbes do Fundo (Smoke) */
.smoke-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: floatOrb 15s infinite alternate ease-in-out;
}
.smoke-1 { 
    top: -10%; left: -10%; width: 50vw; height: 50vw; 
    background: rgba(255, 85, 0, 0.05); 
}
.smoke-2 { 
    bottom: -20%; right: -10%; width: 60vw; height: 60vw; 
    background: rgba(255, 184, 0, 0.05); 
    animation-delay: -5s; 
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

/* 7. Ícones do Feed brilhando no Hover */
.feed-btn:hover {
    color: #ff5500;
    text-shadow: 0 0 10px rgba(255, 85, 0, 0.5);
}
/* ============================================
   🛠️ CORREÇÕES DE ESQUADRO E ALINHAMENTO
   ============================================ */

/* 1. Salvando a cabeça dos botões de Modo */
.input-area {
    overflow: visible !important; /* Impede que o footer corte o que tentar sair dele */
}

.style-selector-bar {
    padding-top: 8px !important; /* Dá um respiro no topo para o brilho e a borda caberem */
    padding-bottom: 8px !important;
    margin-top: -5px; /* Compensa o espaço para não empurrar muito a tela */
}

/* 2. Centralizando e salvando as Tags da Loja Premium */
.store-packages {
    padding-top: 15px; /* Empurra os cartões para baixo, dando espaço para a tag existir */
}

.package-card {
    position: relative !important;
    margin-top: 15px !important; /* Dá distância do texto de cima */
    padding-top: 35px !important; /* Empurra o conteúdo do cartão para baixo, liberando o topo */
}

.package-badge {
    position: absolute !important;
    top: -12px !important; /* Faz a tag flutuar exatamente na linha da borda superior */
    left: 50% !important;
    transform: translateX(-50%) !important; /* Centraliza a tag perfeitamente no meio do cartão */
    z-index: 10;
    white-space: nowrap; /* Impede que o texto da tag quebre em duas linhas */
}
/* ==========================================
   PREMIUM UI BOOST
========================================== */

:root {
    --bg-1: #07111f;
    --bg-2: #0b1324;
    --panel: rgba(10, 18, 33, 0.72);
    --panel-strong: rgba(13, 20, 38, 0.9);
    --stroke: rgba(255, 255, 255, 0.10);
    --stroke-soft: rgba(255, 255, 255, 0.06);
    --text-1: #f8fafc;
    --text-2: #cbd5e1;
    --text-3: #94a3b8;
    --accent: #6ee7ff;
    --accent-2: #8b5cf6;
    --accent-3: #f472b6;
    --success: #34d399;
    --danger: #fb7185;
    --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.45);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --blur: blur(18px);
}

body {
    background:
        radial-gradient(circle at 15% 20%, rgba(110, 231, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.10), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(244, 114, 182, 0.08), transparent 25%),
        linear-gradient(180deg, #030712 0%, #07111f 40%, #050b16 100%);
    color: var(--text-1);
}

/* shell premium */
.premium-shell {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(8, 14, 27, 0.86), rgba(8, 14, 27, 0.68));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xl);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

.app-shell-glow {
    position: absolute;
    inset: -2px;
    border-radius: 34px;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 10%, rgba(110, 231, 255, 0.16), transparent 22%),
        radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.14), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(244, 114, 182, 0.10), transparent 28%);
    filter: blur(20px);
    opacity: 0.8;
}

.app-neon-frame {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    pointer-events: none;
    overflow: hidden;
}

.app-neon-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.04) 0%,
        rgba(110,231,255,0.5) 20%,
        rgba(139,92,246,0.35) 35%,
        rgba(255,255,255,0.02) 50%,
        rgba(244,114,182,0.4) 70%,
        rgba(110,231,255,0.45) 85%,
        rgba(255,255,255,0.04) 100%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.75;
}

/* ============================================
   🎨 MAGIC VARIANT SYSTEM
   ============================================ */

/* Variant Preview Container - CSS-only carousel */
.variant-preview-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.variant-preview-container::-webkit-scrollbar {
    display: none;
}

/* Variant image items for horizontal scrolling */
.variant-image-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.variant-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 90%;
    max-height: 90%;
}

.variant-scroll-hint {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.variant-preview-container:hover .variant-scroll-hint {
    opacity: 0.7;
}

.variant-scroll-hint span {
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Variant Controls */
.variant-controls {
    background: rgba(22, 22, 42, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.variant-section {
    margin-bottom: 20px;
}

.variant-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.variant-section-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.category-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.category-tab:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.category-tab.active {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.category-icon {
    font-size: 18px;
    line-height: 1;
}

.category-label {
    line-height: 1.2;
}

/* Variant Options Container */
.variant-options-container {
    position: relative;
    min-height: 120px;
}

.variant-options {
    display: none;
    animation: fadeIn 0.3s ease;
}

.variant-options.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.variant-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.variant-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(30, 30, 53, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.variant-option:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.variant-option.active {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.variant-option-icon {
    font-size: 20px;
    line-height: 1;
}

.variant-option-label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

/* Quantity Controls */
.variant-quantity-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quantity-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.quantity-icon {
    font-size: 14px;
}

.quantity-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 30, 53, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-primary);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.token-cost-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 10px;
}

.token-cost-icon {
    font-size: 16px;
    color: var(--neon-cyan);
}

.token-cost-text {
    font-size: 13px;
    color: var(--text-primary);
}

.token-cost-text strong {
    color: var(--neon-cyan);
}

/* Variant Button */
.btn-action.btn-variant {
    background: linear-gradient(135deg, #ff5500, #ffb800);
    color: #0a0a0f;
    border: none;
    flex: 1.5;
}

.btn-action.btn-variant:hover {
    background: linear-gradient(135deg, #ff6a1a, #ffc233);
    box-shadow: 0 8px 20px rgba(255, 85, 0, 0.4);
    transform: translateY(-2px);
}

.btn-action.btn-variant:active {
    transform: scale(0.98);
}

.btn-action.btn-variant:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .category-tab {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px;
        gap: 12px;
    }
    
    .variant-options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .variant-quantity-controls {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .quantity-selector {
        width: 100%;
    }
    
    .quantity-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .token-cost-info {
        width: 100%;
        justify-content: center;
    }
    
    .modal-actions {
        flex-wrap: wrap;
    }
    
    .btn-variant {
        order: -1;
        width: 100%;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .variant-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-tab {
        padding: 10px;
    }
    
    .variant-option {
        padding: 10px 6px;
    }
}

.app-neon-frame::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -35%;
    width: 42%;
    height: 140%;
    transform: rotate(18deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(110, 231, 255, 0.03),
        rgba(110, 231, 255, 0.22),
        rgba(255,255,255,0.06),
        transparent
    );
    filter: blur(14px);
    animation: borderSweep 5.8s linear infinite;
}

@keyframes borderSweep {
    0% { left: -40%; opacity: 0; }
    8% { opacity: 0.9; }
    50% { opacity: 0.65; }
    100% { left: 120%; opacity: 0; }
}

/* header */
.premium-header {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border-bottom: 1px solid var(--stroke-soft);
    backdrop-filter: blur(12px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.9);
}

/* welcome */
.premium-welcome .message-bubble {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 16, 30, 0.76));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

.welcome-badge-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.mini-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(110,231,255,0.12);
    border: 1px solid rgba(110,231,255,0.18);
    color: #bff6ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mini-badge-soft {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
    color: var(--text-2);
}

.welcome-highlight-card {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(110,231,255,0.08), rgba(139,92,246,0.08));
    border: 1px solid rgba(255,255,255,0.08);
}

.welcome-highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.08);
    font-size: 18px;
}

.welcome-highlight-text {
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.45;
}

.highlight-word {
    color: #c4b5fd;
    font-weight: 700;
}

/* input / footer */
.premium-input-area {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(7, 12, 24, 0.6), rgba(7, 12, 24, 0.94));
    border-top: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
}

.premium-style-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.studio-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(110,231,255,0.18);
    background: linear-gradient(180deg, rgba(110,231,255,0.14), rgba(139,92,246,0.10));
    color: #e6fbff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(110,231,255,0.10);
    transition: 0.2s ease;
}

.studio-trigger-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(110,231,255,0.16);
}

.studio-trigger-icon {
    font-size: 16px;
}

.active-setup-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.active-setup-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-2);
    font-size: 12px;
}

.active-setup-pill span {
    color: var(--text-3);
}

.active-setup-pill strong {
    color: var(--text-1);
    font-weight: 700;
}

.premium-input-container {
    gap: 10px;
}

.premium-input-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-3);
}

.footer-separator {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.08);
}

/* style buttons */
.style-option,
.library-view-btn,
.folder-action-btn,
.btn-folder-create,
.btn-palette,
.chip {
    transition: all 0.2s ease;
}

.style-option {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-2);
}

.style-option.active {
    background: linear-gradient(180deg, rgba(110,231,255,0.15), rgba(139,92,246,0.12));
    color: white;
    border-color: rgba(110,231,255,0.24);
    box-shadow: 0 8px 22px rgba(110,231,255,0.08);
}

/* modal */
.premium-modal {
    background: linear-gradient(180deg, rgba(12, 18, 34, 0.96), rgba(8, 13, 25, 0.94));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.studio-modal {
    max-width: 860px;
    width: calc(100% - 24px);
    border-radius: 28px;
}

.studio-modal-body {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.studio-section {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.studio-section-head h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-1);
}

.studio-section-head p {
    margin: 0 0 16px;
    color: var(--text-3);
    font-size: 13px;
}

.studio-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.studio-mode-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-1);
    cursor: pointer;
    text-align: left;
}

.studio-mode-card.active {
    background: linear-gradient(180deg, rgba(110,231,255,0.12), rgba(139,92,246,0.10));
    border-color: rgba(110,231,255,0.25);
    box-shadow: 0 12px 30px rgba(110,231,255,0.08);
}

.studio-card-icon {
    font-size: 20px;
}

.studio-mode-card small {
    color: var(--text-3);
    font-size: 12px;
}

.premium-palette-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-palette {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    color: var(--text-2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.btn-palette.active {
    color: #fff;
    border-color: rgba(110,231,255,0.30);
    box-shadow: 0 8px 24px rgba(110,231,255,0.08);
}

.palette-pastel {
    background: linear-gradient(180deg, rgba(253,242,248,0.95), rgba(250,232,242,0.85));
    color: #be185d;
}

.palette-matcha {
    background: linear-gradient(180deg, rgba(240,253,244,0.95), rgba(220,252,231,0.88));
    color: #166534;
}

.palette-dark {
    background: linear-gradient(180deg, rgba(41,37,36,0.95), rgba(28,25,23,0.95));
    color: #e7e5e4;
}

.palette-cyber {
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(88,28,135,0.95));
    color: #e9d5ff;
}

.premium-chip-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: var(--text-2);
    cursor: pointer;
    font-size: 13px;
}

.chip:hover,
.btn-palette:hover,
.folder-action-btn:hover,
.btn-folder-create:hover,
.library-view-btn:hover {
    transform: translateY(-1px);
}

/* library */
.premium-library {
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
}

.library-topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.library-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.library-title-wrap h2 {
    margin: 0;
    font-size: 24px;
}

.library-title-wrap p {
    margin: 4px 0 0;
    color: var(--text-3);
    font-size: 13px;
}

.library-topbar-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.library-stat-chip {
    min-width: 96px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
}

.library-stat-chip strong {
    color: white;
    font-size: 15px;
}

.library-stat-chip small {
    color: var(--text-3);
}

.library-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
    min-height: calc(100vh - 180px);
}

.library-sidebar,
.library-content {
    background: linear-gradient(180deg, rgba(13, 20, 38, 0.92), rgba(9, 15, 28, 0.82));
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.library-sidebar {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.library-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.library-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
}

.btn-folder-create {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(110,231,255,0.18);
    background: rgba(110,231,255,0.08);
    color: #dffaff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.folder-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    max-height: 58vh;
    padding-right: 2px;
}

.folder-item {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    color: var(--text-2);
    cursor: pointer;
    text-align: left;
}

.folder-item.active {
    background: linear-gradient(180deg, rgba(110,231,255,0.12), rgba(139,92,246,0.10));
    border-color: rgba(110,231,255,0.22);
    color: #fff;
}

.folder-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-count {
    font-size: 12px;
    color: var(--text-3);
}

.folder-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.folder-action-btn {
    flex: 1;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: var(--text-2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.folder-action-btn.danger {
    color: #ffd0d7;
    border-color: rgba(251,113,133,0.16);
    background: rgba(251,113,133,0.08);
}

.library-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.library-content-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.library-search-wrap {
    flex: 1;
    min-width: 220px;
}

/* ============================================
   TOKEN DISPLAY
   ============================================ */
.token-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    user-select: none;
}

.token-display:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.token-icon {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.token-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.token-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Estilo para quando os tokens estão baixos */
.token-display.low-tokens .token-count {
    color: var(--neon-pink);
    animation: warning-pulse 1s infinite;
}

@keyframes warning-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Estilo para quando não há tokens */
.token-display.no-tokens .token-count {
    color: #ff6b6b;
    animation: critical-pulse 0.8s infinite;
}

@keyframes critical-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.library-search {
    width: 100%;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: white;
    padding: 0 16px;
    outline: none;
}

.library-toolbar-actions {
    display: flex;
    gap: 8px;
}

.library-view-btn {
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-2);
    cursor: pointer;
}

.library-view-btn.active {
    color: white;
    background: rgba(110,231,255,0.10);
    border-color: rgba(110,231,255,0.20);
}

.folder-drop-hint {
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(110,231,255,0.08), rgba(255,255,255,0.03));
    border: 1px dashed rgba(110,231,255,0.22);
    color: var(--text-2);
    font-size: 13px;
}

.premium-sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
    align-content: start;
    min-height: 320px;
}

/* generic sticker card suggestion for JS render */
.sticker-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    min-height: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.sticker-card.dragging {
    opacity: 0.6;
    transform: scale(0.98);
}

.sticker-card .thumb {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background:
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0px;
}

.sticker-card .thumb img {
    width: 86%;
    height: 86%;
    object-fit: contain;
}

.sticker-card .meta {
    padding: 12px;
}

.sticker-card .title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.sticker-card .sub {
    font-size: 12px;
    color: var(--text-3);
}

/* responsive */
@media (max-width: 980px) {
    .library-layout {
        grid-template-columns: 1fr;
    }

    .library-sidebar {
        order: 2;
    }

    .library-content {
        order: 1;
    }

    .studio-mode-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .premium-shell {
        border-radius: 0;
    }

    .app-neon-frame,
    .app-shell-glow {
        border-radius: 0;
    }

    .header-status-pill {
        display: none;
    }

    .premium-input-footer .footer-hint,
    .footer-separator {
        display: none;
    }

    .premium-sticker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* ============================================
   💻 TABLET & DESKTOP EXPANSION (FULLSCREEN STUDIO)
   ============================================ */

/* Quando a tela for maior que um celular (Tablet, PC) */
@media (min-width: 768px) {
    
    /* 1. O App domina 100% da tela */
    .app-container {
        max-width: 100% !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* 2. Centraliza o conteúdo do chat para não esticar demais na horizontal */
    .chat-area {
        padding-left: 10% !important;
        padding-right: 10% !important;
    }

    /* 3. A barra de digitação acompanha o chat */
    .input-area {
        padding-left: 10% !important;
        padding-right: 10% !important;
        border-radius: 0 !important; /* Tira as bordas arredondadas do fundo para colar na tela */
    }

    /* 4. Os botões de Modo ganham fôlego e ficam centralizados */
    .style-selector-bar {
        justify-content: center !important;
        gap: 24px !important;
    }

    .style-option {
        padding: 8px 24px !important;
        font-size: 14px !important;
    }

    /* 5. A Biblioteca e o Feed aproveitam o telão */
    .sticker-grid, .feed-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        padding-left: 10% !important;
        padding-right: 10% !important;
    }

    .feed-container {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 30px !important;
    }

    .feed-post {
        width: 380px !important; 
        margin: 0 !important;
    }
}

/* Telas Ultra-Wide e Monitores Grandes (Garante que o chat não passe de um limite confortável) */
@media (min-width: 1440px) {
    .chat-area, .input-area, .sticker-grid, .feed-container {
        padding-left: 20% !important;
        padding-right: 20% !important;
    }
}
/* 1. O Muro de Fumaça vira Vidro (Deixa a fumaça, mas tira o fundo preto) */
.smoke-bg {
    background-color: transparent !important; 
    /* A fumaça vai continuar flutuando, mas agora por cima do seu wallpaper! */
}

/* 2. O Aplicativo vira um Vidro Premium */
.app-container.premium-shell {
    background: rgba(10, 10, 12, 0.45) !important; /* Escuro, mas 55% transparente */
    backdrop-filter: blur(15px) !important; /* O desfoque chique do iOS */
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important; /* Borda de luz */
}

/* 3. Tirando o fundo sólido de dentro do chat para ver o vidro */
.chat-area {
    background: transparent !important;
}
/* --- O EFEITO DE VIDRO NOS ADESIVOS DA BIBLIOTECA --- */

.sticker-image-wrap {
    overflow: hidden;
    border-radius: 16px;
}

.sticker-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 15, 0.6); /* Vidro escuro */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    opacity: 0; /* Invisível por padrão */
    transition: all 0.3s ease;
    border-radius: 16px;
    backdrop-filter: blur(2px);
}

/* A mágica acontece quando passa o mouse (PC) ou toca (Tablet) */
.sticker-image-wrap:hover .sticker-card-overlay,
.sticker-card:active .sticker-card-overlay {
    opacity: 1;
}

.card-actions-top, .card-actions-bottom {
    display: flex;
    gap: 8px;
}

.card-actions-top { justify-content: flex-end; }
.card-actions-bottom { justify-content: flex-end; }

.btn-share {
    background: rgba(255, 184, 0, 0.9);
    color: #000;
    border: none;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.action-icon-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.action-icon-btn:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.05); }
/* ============================================
   🔥 NEON SNAP GALLERY (GLOBAL FEED)
   ============================================ */

/* O Efeito Neon Hover (Desktop) */
.feed-post:hover {
    transform: translateY(-10px);
    border-color: rgba(34, 211, 238, 0.5); /* Borda Cyan Neon */
    box-shadow: 0 20px 50px rgba(34, 211, 238, 0.15), inset 0 0 20px rgba(34, 211, 238, 0.05);
}

/* O Palco do Adesivo */
.feed-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Deixa a sombra vazar */
}

/* A Arte em si */
.feed-post-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.7)); /* Sombra realista 3D no adesivo */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efeito 3D de "Pulo" quando passa o mouse na foto */
.feed-post:hover .feed-post-img {
    transform: scale(1.1) rotate(-3deg);
}

/* Tipografia e Cabeçalho */
.feed-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.8rem;
}
.feed-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    text-align: left;
    transition: opacity 0.2s;
}
.feed-user-trigger:hover { opacity: 0.7; }
.feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(34, 211, 238, 0.8); /* Aro neon na foto do perfil */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    font-size: 20px;
}
.feed-username {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.feed-post-time {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* Prompt / Caption Premium */
.feed-caption {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
    font-style: italic;
    border-left: 2px solid rgba(34, 211, 238, 0.5);
    padding-left: 10px;
}

/* Botões de Ação */
.feed-post-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.feed-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    transition: transform 0.2s, filter 0.2s;
}
.feed-btn:hover {
    transform: scale(1.2);
    filter: brightness(1.5);
}

/* O POP de Dopamina do Like */
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5) rotate(-10deg); }
    100% { transform: scale(1); }
}
.like-active {
    animation: heartPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #f43f5e; /* Rosa forte */
    text-shadow: 0 0 15px rgba(244, 63, 94, 0.6); /* Brilho neon no coração */
}

.feed-likes {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Caixinha de Comentário Dark/Sleek */
.feed-comment-box {
    display: flex;
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}
.feed-comment-input {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 12px;
    color: white;
    font-size: 0.9rem;
    outline: none;
}
.feed-comment-btn {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.feed-comment-btn:hover {
    background: rgba(34, 211, 238, 0.3);
}
/* 1. CONSERTANDO O TÍTULO (Destruindo o limite de 10 letras) */
.hero-title {
    max-width: 100% !important; /* Libera o espaço todo pro texto respirar */
    line-height: 1.1 !important;
    font-size: clamp(42px, 4vw, 56px) !important; /* Tamanho mais elegante */
}

/* 2. A VITRINE DE ADESIVOS (Mais alta e imponente) */
.sticker-stage {
    position: relative;
    width: 100%;
    height: 600px !important; /* Aumentei a caixa para ficar da altura do modal de login! */
    margin-top: 24px; /* Afasta um pouco do texto */
    background: rgba(10, 10, 12, 0.45) !important; 
    backdrop-filter: blur(15px) !important; 
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 184, 0, 0.15) !important; 
    border-radius: 24px !important; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important; 
    overflow-y: auto; 
    scrollbar-width: none; 
}

/* 1. A PISTA DE ROLAGEM TEM QUE SER GIGANTE */
.stage-scroll-area {
    position: relative;
    width: 100%;
    height: 1300px !important; /* Se não tiver essa altura, o scroll não funciona! */
}

/* 2. A POSIÇÃO DOS 8 ADESIVOS */
.float-1 { top: 2%; left: 10%; --r: -12deg; animation-delay: 0s; z-index: 2; }
.float-2 { top: 12%; right: 10%; --r: 8deg; animation-delay: -1.2s; z-index: 3; }
.float-3 { top: 24%; left: 50%; transform: translateX(-50%); --r: -4deg; animation-delay: -2.5s; width: 170px; z-index: 10; }
.float-4 { top: 38%; left: 12%; --r: 15deg; animation-delay: -3.8s; z-index: 2;}
.float-5 { top: 50%; right: 15%; --r: -8deg; animation-delay: -5s; z-index: 3; }
/* Os três novatos aqui embaixo: */
.float-6 { top: 64%; left: 35%; --r: -15deg; animation-delay: -2s; z-index: 4; }
.float-7 { top: 76%; left: 8%; --r: 10deg; animation-delay: -4s; width: 150px; z-index: 10;}
.float-8 { top: 88%; right: 12%; --r: -5deg; animation-delay: -1s; z-index: 5;}
/* ============================================
   TRAVA ABSOLUTA DE SCROLL (PC E TABLET)
   ============================================ 

/* 2. O FILHO: Libera a rolagem e força o limite */
.feed-container {
    flex: 1 !important; /* Preenche o espaço do pai */
    min-height: 0 !important; /* Segredo do Flexbox para permitir scroll */
    min-width: 0 !important; /* Segredo do Flexbox pro eixo X */
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 22px !important;
    padding: 24px 24px 40px 24px !important;
    -webkit-overflow-scrolling: touch !important; /* Efeito manteiga no iPad */
    pointer-events: auto !important; /* Garante que o touch funciona */
}

/* 3. O CARTÃO: Blindado contra esmagamento */
.feed-post {
    flex: 0 0 auto !important;
    width: 340px !important;
    min-width: 340px !important;
    pointer-events: auto !important;
}
/* ============================================
   A MARRETA DO GLOBAL FEED - TELA CHEIA (COZY & CUTE)
   ============================================ */
/* 1. O PAI: Tela cheia com Gradiente Animado */
.feed-area {
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 200 !important; 
    flex-direction: column !important;
    overflow: hidden !important; 
    
    /* O FUNDO COLORIDO ANIMADO (Tons profundos e aconchegantes) */
    background: linear-gradient(-45deg, #1e0f2d, #0f172a, #2a1510, #0f172a) !important;
    background-size: 400% 400% !important;
    animation: gradientGlow 15s ease infinite !important;
}

/* 2. O TEXTURA CUTE (Pontinhos de Caderno que deslizam) */
.feed-area::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    /* Cria a malha de pontinhos */
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2px) !important;
    background-size: 28px 28px !important;
    z-index: 0 !important;
    pointer-events: none !important; /* A blindagem pro dedo atravessar! */
    
    /* Faz os pontinhos andarem suavemente na diagonal */
    animation: moveDots 40s linear infinite !important;
}

/* 3. AS ANIMAÇÕES */
@keyframes gradientGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes moveDots {
    0% { background-position: 0 0; }
    100% { background-position: 280px 280px; }
}

/* 4. PROTEÇÃO DOS ADESIVOS */
/* Mantém o container flutuando acima do fundo animado */
.feed-container {
    position: relative !important;
    z-index: 10 !important; 
    /* (Mantenha o resto do seu .feed-container que já está aí embaixo intacto!) */
}

/* ============================================
   JOYRIDE & GIFT MODAL (ONBOARDING) - VERSÃO LIMPA
   ============================================ */
.joyride-overlay {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background: rgba(3, 5, 10, 0.85) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 999990 !important;
}

.joyride-highlight {
    position: relative !important;
    z-index: 999991 !important;
    pointer-events: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.5) !important;
}

.joyride-tooltip {
    position: fixed !important;
    z-index: 999999 !important;
    background: linear-gradient(180deg, rgba(14, 20, 38, 0.98), rgba(8, 13, 25, 0.98)) !important;
    border: 1px solid rgba(255, 184, 0, 0.3) !important;
    padding: 16px 20px !important;
    border-radius: 16px !important;
    width: 260px !important;
    max-width: 90vw !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 122, 24, 0.2) !important;
}

.joyride-tooltip p {
    font-size: 14px !important; color: #cbd5e1 !important; margin-bottom: 16px !important;
}

.joyride-btn {
    width: 100% !important; padding: 10px !important; border-radius: 10px !important;
    border: none !important; color: #fff !important; font-weight: 700 !important; cursor: pointer !important;
    background: linear-gradient(135deg, #ff7a18, #ffb800) !important;
}

/* Animação do Presente */
.token-burst {
    animation: burstGlow 1s ease-out forwards !important;
}

@keyframes burstGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px 10px rgba(52, 211, 153, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}