
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%); min-height: 100vh; padding: 15px; }
.container { max-width: 1000px; margin: 5px auto; background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.header { background: linear-gradient(135deg, #1b5e20, #2e7d32); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.header h2 { font-size: 18px; }
.header-right { display: flex; gap: 8px; }
.btn-back { background: rgba(255,255,255,0.2); color: white; border: 2px solid white; padding: 7px 13px; border-radius: 6px; font-weight: 600; font-size: 13px; text-decoration: none; }
.content { padding: 15px 20px; }

/* Search */
.search-section { margin-bottom: 20px; }
.search-label { font-size: 16px; font-weight: 800; color: #333; margin-bottom: 10px; }
.search-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.search-input { flex: 1; padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: 10px; font-size: 14px; outline: none; }
.search-input:focus { border-color: #2e7d32; }
.search-btn { background: #2e7d32; color: white; border: none; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; }

/* Category buttons */
.cat-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.cat-btn { padding: 8px 14px; border-radius: 20px; border: 2px solid #e0e0e0; background: white; font-size: 12px; font-weight: 600; cursor: pointer; color: #555; transition: all 0.2s; }
.cat-btn:hover { border-color: #2e7d32; color: #2e7d32; }
.cat-btn.active { background: #2e7d32; color: white; border-color: #2e7d32; }

/* Result section */
.result-section { display: none; }
.result-title { font-size: 16px; font-weight: 800; color: #333; margin-bottom: 4px; }
.result-sub { font-size: 12px; color: #888; margin-bottom: 15px; }

/* Best card highlight */
.best-card { border: 3px solid #2e7d32; border-radius: 14px; padding: 16px; margin-bottom: 15px; background: linear-gradient(135deg, #e8f5e9, #f1f8e9); position: relative; }
.best-badge { position: absolute; top: -10px; left: 15px; background: #2e7d32; color: white; padding: 3px 12px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.best-name { font-size: 18px; font-weight: 800; color: #1b5e20; margin-top: 8px; }
.best-reward { font-size: 28px; font-weight: 900; color: #2e7d32; }
.best-info { font-size: 12px; color: #555; margin-top: 6px; line-height: 1.6; }
.best-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.best-stat { text-align: center; padding: 8px; background: white; border-radius: 8px; }
.best-stat .sl { font-size: 9px; font-weight: 600; color: #888; text-transform: uppercase; }
.best-stat .sv { font-size: 14px; font-weight: 800; color: #333; }

/* Other cards */
.other-title { font-size: 13px; font-weight: 700; color: #888; margin-bottom: 10px; margin-top: 5px; }
.other-card { border: 2px solid #e8e8e8; border-radius: 10px; padding: 12px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; cursor: pointer; }
.other-card:hover { border-color: #2e7d32; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.oc-left { flex: 1; }
.oc-name { font-size: 14px; font-weight: 700; color: #333; }
.oc-info { font-size: 11px; color: #888; margin-top: 2px; }
.oc-right { text-align: right; }
.oc-reward { font-size: 18px; font-weight: 800; }
.oc-rank { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-top: 3px; display: inline-block; }

.badge-tipo { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 8px; margin-left: 5px; }
.bt-business { background: #e3f2fd; color: #1565c0; }
.bt-pessoal { background: #f3e5f5; color: #6a1b9a; }

/* Warning box */
.warn-box { background: #fff3e0; border-left: 4px solid #ff9800; padding: 10px 14px; border-radius: 8px; margin-top: 10px; font-size: 12px; color: #e65100; }

/* Savings calculator */
.calc-section { background: #f5f7fa; border-radius: 12px; padding: 15px; margin-top: 15px; }
.calc-title { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 10px; }
.calc-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.calc-input { padding: 8px 12px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 14px; width: 120px; outline: none; }
.calc-input:focus { border-color: #2e7d32; }
.calc-result { font-size: 14px; font-weight: 700; color: #2e7d32; padding: 10px; background: #e8f5e9; border-radius: 8px; text-align: center; display: none; }

/* No usar */
.no-usar { opacity: 0.5; border-left: 4px solid #e53935; }
.no-usar .oc-name { text-decoration: line-through; }

/* Dark Mode */
body.dark-mode { background: linear-gradient(135deg, #0a2e0a 0%, #16213e 100%); }
body.dark-mode .container { background: #0f0f23; color: #e0e0e0; }
body.dark-mode .search-label, body.dark-mode .result-title { color: #e0e0e0; }
body.dark-mode .search-input { background: #16213e; border-color: #333; color: #e0e0e0; }
body.dark-mode .cat-btn { background: #16213e; border-color: #333; color: #aaa; }
body.dark-mode .best-card { background: linear-gradient(135deg, #0a2e0a, #152e15); border-color: #43a047; }
body.dark-mode .best-stat { background: #16213e; }
body.dark-mode .best-stat .sv { color: #e0e0e0; }
body.dark-mode .other-card { border-color: #333; background: #16213e; }
body.dark-mode .oc-name { color: #e0e0e0; }
body.dark-mode .calc-section { background: #16213e; }
body.dark-mode .calc-title { color: #e0e0e0; }
body.dark-mode .calc-input { background: #1a1a3e; border-color: #333; color: #e0e0e0; }

@media (max-width: 600px) {
    .header { flex-direction: column; text-align: center; }
    .best-details { grid-template-columns: repeat(3, 1fr); }
}

