/* ARQUIVO: style.css */
:root {
    --primary: #6e0ad6; --primary-dark: #4a00b0; --accent: #f78320;
    --bg: #f2f4f5; --surface: #ffffff; --text-main: #222; --text-light: #666;
    --border: #e0e0e0; --input-bg: #fafafa; --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --success: #00c851; --error: #ff4444; --info: #33b5e5;
}
[data-theme="dark"] {
    --bg: #121212; --surface: #1e1e1e; --text-main: #f5f5f5; --text-light: #aaa;
    --border: #333; --input-bg: #2c2c2c; --shadow: 0 4px 12px rgba(0,0,0,0.5);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Nunito Sans', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--text-main); padding-bottom: 80px; overflow-x: hidden; transition: 0.3s; }

/* HEADER */
.header { background: var(--primary); padding: 15px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: white; }
.logo { font-weight: 800; font-size: 1.3rem; }
.btn-sell-header { background: var(--accent); color: white; padding: 6px 16px; border-radius: 20px; font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.search-bar { background: var(--surface); border-radius: 8px; padding: 10px 15px; display: flex; align-items: center; gap: 10px; }
.search-bar input { border: none; width: 100%; outline: none; background: transparent; color: var(--text-main); }

/* CARROSSEL PREMIUM */
.premium-scroll { display: flex; gap: 15px; overflow-x: auto; padding: 10px 5px 20px 5px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.premium-scroll .card { min-width: 200px; width: 200px; flex-shrink: 0; scroll-snap-align: start; border: 2px solid var(--accent); box-shadow: 0 8px 20px rgba(247, 131, 32, 0.25); }

/* GRID & CARDS */
.container { max-width: 1000px; margin: 0 auto; padding: 15px; }
.section-title { margin: 10px 0 15px; font-weight: 700; font-size: 1.1rem; color: var(--primary); border-bottom: 2px solid var(--border); padding-bottom: 5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }

.card { background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; cursor: pointer; transition: 0.2s; }
.card:active { transform: scale(0.98); }
.card-premium { border: 2px solid var(--accent); }
.badge-top { position: absolute; top: 0; left: 0; background: var(--accent); color: white; font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-bottom-right-radius: 12px; z-index: 2; }
.card-img { width: 100%; height: 160px; object-fit: cover; background: #eee; }
.card-body { padding: 10px; display: flex; flex-direction: column; flex: 1; }
.card-price { font-size: 1.1rem; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.card-title { font-size: 0.9rem; color: var(--text-light); line-height: 1.3; height: 38px; overflow: hidden; }
.card-meta { margin-top: 8px; font-size: 0.75rem; color: #888; display: flex; justify-content: space-between; }

/* MINHAS CAMPANHAS (LIST VIEW) */
.list-card { display: flex; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 15px; padding: 10px; gap: 15px; align-items: center; border-left: 5px solid transparent; }
.list-card.premium-active { border-left-color: var(--accent); background: linear-gradient(to right, rgba(247,131,32,0.05), var(--surface)); }
.list-card.free-active { border-left-color: #ccc; }
.list-img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; background: #eee; flex-shrink: 0; }
.list-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.list-title { font-weight: 700; font-size: 1rem; color: var(--text-main); margin-bottom: 5px; }
.list-price { color: var(--primary); font-weight: 800; font-size: 1.1rem; }
.list-status { font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; display: inline-block; font-weight: bold; text-transform: uppercase; margin-top: 5px; width: fit-content; }
.status-premium { background: var(--accent); color: white; }
.status-free { background: #eee; color: #666; }

/* NAV & CATEGORIAS */
.nav-cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 15px; background: var(--primary-dark); scrollbar-width: none; }
.cat-pill { color: white; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; font-size: 0.85rem; cursor: pointer; }
.cat-pill.active { background: var(--accent); border-color: var(--accent); font-weight: bold; }

.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--surface); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: 12px 0; z-index: 90; }
.nav-item { display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; color: #888; gap: 4px; cursor: pointer; }
.nav-item.active { color: var(--primary); font-weight: 700; }
.nav-item i { font-size: 1.4rem; }

/* UTILS & MODALS */
.screen { display: none; animation: fadeIn 0.3s; }
.screen.active { display: block; }
.auth-container { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 30px; background: var(--surface); text-align: center; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal-box { background: var(--surface); width: 95%; max-width: 500px; max-height: 90vh; overflow-y: auto; border-radius: 16px; padding: 20px; position: relative; }
.modal-header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: var(--text-main); }
.input-field { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 8px; outline: none; font-size: 1rem; background: var(--input-bg); color: var(--text-main); }
.btn { width: 100%; padding: 14px; border-radius: 8px; border: none; font-weight: 700; cursor: pointer; margin-bottom: 10px; }
.btn-primary { background: var(--primary); color: white; }
.btn-google { background: var(--surface); border: 1px solid var(--border); color: var(--text-main); }
.btn-refresh { width: 100%; padding: 15px; margin-top: 20px; background: var(--surface); border: 1px solid var(--border); color: var(--text-main); border-radius: 8px; cursor: pointer; }
.upload-box { border: 2px dashed var(--primary); padding: 20px; text-align: center; border-radius: 8px; color: var(--primary); margin-bottom: 15px; cursor: pointer; background: rgba(110, 10, 214, 0.05); }
.premium-box { background: rgba(247, 131, 32, 0.1); border: 1px solid var(--accent); padding: 15px; border-radius: 8px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); }
.pix-key-display { background: #eee; padding: 15px; font-family: monospace; font-size: 0.9rem; border-radius: 8px; margin-bottom: 15px; word-break: break-all; color: #333; }
.btn-whatsapp { display: block; background: #25D366; color: white; text-align: center; padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 700; width: 100%; margin-top: 20px; }
.btn-menu { width: 100%; padding: 15px; text-align: left; background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px; border-radius: 8px; color: var(--text-main); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.profile-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 40px 20px; text-align: center; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; margin-bottom: 20px; }
.avatar-circle { width: 80px; height: 80px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 10px; }

.btn-close-circle, .btn-fav-circle { position: absolute; top: 15px; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; }
.btn-close-circle { left: 15px; background: rgba(0,0,0,0.5); color: white; }
.btn-fav-circle { right: 15px; background: white; color: #ccc; box-shadow: 0 2px 5px rgba(0,0,0,0.2); } .btn-fav-circle i.fas { color: red; }
.cat-tag { background: var(--primary); color: white; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; }
.info-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; color: var(--text-light); }

#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast { background: var(--surface); padding: 12px 20px; margin-bottom: 10px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); border-left: 5px solid; display: flex; gap: 10px; align-items: center; color: var(--text-main); }
.toast.success { border-color: var(--success); } .toast.error { border-color: var(--error); } .toast.info { border-color: var(--primary); }
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }