:root {
    /* COR BASE EM RGB PARA SER USADA EM TODOS OS TRANSPARENTES */
    --primary-rgb: 16, 107, 58; 

    --primary: #106B3A;
    --primary-dark: #084020; 
    --discord: #5865F2;
    --bg-main: #0f111a;
    
    --smoke-dark: rgba(var(--primary-rgb), 0.25);
    --smoke-light: rgba(var(--primary-rgb), 0.10);
    --bg-gradient-top: var(--smoke-dark);
    
    --bg-card: rgba(30, 32, 47, 0.7);
    --bg-input: rgba(0, 0, 0, 0.3);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    /* Todas as transparências, bordas e glows agora usam o RGB Dinâmico */
    --border: rgba(var(--primary-rgb), 0.2);
    --success: #10b981; 
    --danger: #ef4444; 
    --radius: 12px;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --glow: 0 0 15px rgba(var(--primary-rgb), 0.4);
}

/* Variáveis do Modo Branco */
body.light-mode {
    --bg-main: #f0f2f5;
    --bg-gradient-top: var(--smoke-light);
    --bg-card: #ffffff;
    --bg-input: #e5e7eb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border: rgba(var(--primary-rgb), 0.4);
    --shadow-glass: 0 4px 12px rgba(0, 0, 0, 0.05);
    --glow: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }
.hidden { display: none !important; }

body { 
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% 0%, var(--bg-gradient-top) 0%, var(--bg-main) 40%);
    color: var(--text-main); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh; 
    padding: 20px; 
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s, color 0.3s, background-image 0.3s;
}

header { width: 100%; max-width: 900px; margin-bottom: 30px; }
.header-top { position: relative; display: flex; justify-content: center; align-items: center; margin-bottom: 25px; width: 100%; min-height: 50px; }
h1 { color: var(--primary); text-transform: uppercase; letter-spacing: 3px; font-size: 2.2rem; text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.6); font-weight: 800; margin: 0; text-align: center; z-index: 1; transition: color 0.3s, text-shadow 0.3s; }
.header-controls { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 15px; z-index: 2; }

.system-status { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 8px; font-family: monospace; background: rgba(0,0,0,0.3); padding: 5px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.2s; }
.system-status:hover { background: rgba(255,255,255,0.1); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.18); }
.status-dot { width: 8px; height: 8px; background-color: var(--success); border-radius: 50%; box-shadow: 0 0 10px var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } 100% { transform: scale(1); opacity: 1; } }
@keyframes statusGlow { 0%, 100% { box-shadow: 0 0 0 rgba(var(--primary-rgb), 0); } 50% { box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.18); } }

.nav-tabs { display: flex; justify-content: center; background: rgba(255, 255, 255, 0.03); padding: 6px; border-radius: var(--radius); gap: 8px; backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.05); width: 100%; }
.nav-btn { background: transparent; border: none; color: var(--text-muted); padding: 12px 20px; cursor: pointer; font-weight: 600; transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease; border-radius: 8px; flex: 1; letter-spacing: 0.5px; }
.nav-btn.active { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; box-shadow: var(--glow); text-shadow: 0 1px 2px rgba(0,0,0,0.3); animation: tabPop 0.28s ease; }
.nav-btn:hover:not(.active) { background: rgba(255, 255, 255, 0.05); color: var(--text-main); transform: translateY(-1px); }
@keyframes tabPop { 0% { transform: scale(0.985); } 100% { transform: scale(1); } }

.section { display: none; width: 100%; max-width: 900px; will-change: transform, opacity; animation: fadeIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInSoft { from { opacity: 0; transform: translateY(10px) scale(0.995); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes liftIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes subtlePulse { 0%, 100% { box-shadow: 0 0 0 rgba(var(--primary-rgb), 0); } 50% { box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0.05); } }

.row { display: flex; gap: 20px; width: 100%; align-items: stretch; }
.col { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; }

.card { background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow-glass); border: 1px solid var(--border); margin-bottom: 20px; position: relative; transition: background 0.3s, border-color 0.3s, transform 0.28s ease, box-shadow 0.28s ease; }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0.5; transition: background 0.3s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,0.28); }

/* --- FORMULÁRIOS E SELECTS --- */
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; justify-content: flex-end; flex-grow: 1; }
label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
input, select { width: 100%; padding: 12px 15px; background: var(--bg-input); border: 1px solid transparent; border-bottom: 2px solid rgba(255,255,255,0.1); color: var(--text-main); border-radius: 6px 6px 0 0; font-size: 1rem; transition: all 0.3s ease; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 15px center; background-size: 16px; padding-right: 40px; cursor: pointer; }
select option { background-color: var(--primary-dark); color: #f3f4f6; padding: 12px; }
optgroup { background-color: var(--primary-dark); color: var(--success); font-weight: 800; font-style: normal; text-transform: uppercase; letter-spacing: 1px; padding: 5px; }
optgroup option { background-color: #0f111a; color: #f3f4f6; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 12px; }
input:focus, select:focus { outline: none; background: rgba(0, 0, 0, 0.5); border-bottom-color: var(--primary); box-shadow: 0 4px 10px -5px rgba(0,0,0,0.5), 0 0 0 4px rgba(var(--primary-rgb), 0.08); transform: translateY(-1px); }
input[readonly] { background-color: rgba(255, 255, 255, 0.03); border-bottom-color: transparent; color: var(--text-muted); cursor: default; }

/* Ajustes de Select para o Modo Branco */
body.light-mode select option { background-color: #ffffff; color: #111827; }
body.light-mode optgroup { background-color: #f3f4f6; color: var(--primary-dark); }
body.light-mode optgroup option { background-color: #ffffff; color: #111827; }

/* --- BOTÕES E RADIOS --- */
.btn { padding: 14px; border: none; border-radius: var(--radius); cursor: pointer; font-weight: 700; transition: 0.3s; width: 100%; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; display: flex; justify-content: center; align-items: center; gap: 8px; position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3); border: 1px solid rgba(255,255,255,0.1); }
.btn-primary:hover { box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.6); transform: translateY(-2px); filter: brightness(1.1); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.2); }
.btn-secondary:hover { background: rgba(var(--primary-rgb), 0.2); border-color: var(--primary); color: white; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--text-muted); }
.btn-outline:hover { border-color: var(--primary); color: white; background: rgba(var(--primary-rgb), 0.1); }
.btn-small { width: auto; padding: 0 20px; background: var(--primary); color: white; border-radius: 0 6px 0 0; }
.btn-clear { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.85rem; text-decoration: underline; opacity: 0.7; transition: 0.2s;}
.btn-glow { box-shadow: var(--glow); }

.input-group { display: flex; gap: 0; }
.input-group input { border-radius: 6px 0 0 0; }
.radio-group { display: flex; gap: 10px; }
.radio-label { background: rgba(0,0,0,0.3); padding: 12px; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent; flex: 1; text-align: center; transition: 0.3s; font-weight: 600; }
input[type="radio"] { display: none; }
input[type="radio"]:checked + .radio-label { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.15); color: #fff; box-shadow: inset 0 0 10px rgba(var(--primary-rgb), 0.1); }
input[type="radio"]:checked + .label-win { border-color: var(--success); color: var(--success); background: rgba(16, 185, 129, 0.1); box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.1); }
input[type="radio"]:checked + .label-loss { border-color: var(--danger); color: var(--danger); background: rgba(239, 68, 68, 0.1); box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.1); }

/* --- LISTAS E CARRINHO --- */
.participants-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.chip { background: rgba(var(--primary-rgb), 0.2); border: 1px solid rgba(var(--primary-rgb), 0.4); color: white; padding: 6px 14px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: border-color 0.3s, background 0.3s; }
body.light-mode .chip { color: var(--text-main); border-color: var(--primary); } 
.chip span { cursor: pointer; background: rgba(0,0,0,0.2); width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: 0.2s; }
.chip span:hover { background: rgba(255,255,255,0.3); }
.chip { animation: liftIn 0.24s ease; }
.participant-suggestion-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.participant-card { width: 100%; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.22); color: var(--text-main); border-radius: 12px; padding: 14px 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; transition: 0.25s; }
body.light-mode .participant-card { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
.participant-card:hover, .participant-card.active { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--glow); }
.participant-card-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.participant-card-main strong { color: var(--text-main); font-size: 0.95rem; }
.participant-card-main span { color: var(--text-muted); font-size: 0.8rem; }
.participant-card-tag { color: var(--primary); font-size: 0.8rem; font-weight: 800; }

.card-cart { display: flex; flex-direction: column; }
@media (min-width: 769px) { .card-cart { position: sticky; top: 20px; max-height: 90vh; overflow-y: auto; } }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; gap: 10px; }

.cart-item { background-color: rgba(0,0,0,0.4); padding: 15px; margin-bottom: 10px; border-radius: 8px; display: flex; flex-direction: column; gap: 5px; position: relative; border: 1px solid rgba(255,255,255,0.05); border-left: 4px solid var(--primary); transition: border-color 0.3s; }
body.light-mode .cart-item { background-color: rgba(0,0,0,0.05); } 
.cart-item-title { color: var(--primary); font-size: 1rem; font-weight: bold; text-transform: uppercase; transition: color 0.3s; }
.wash-val-sujo { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.wash-val-limpo { color: var(--success); font-size: 1.1rem; font-weight: 700; margin-top: 4px; }
.wash-val-yours { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-top: 2px; transition: color 0.3s; }

.btn-remove-item { position: absolute; top: 15px; right: 15px; color: var(--text-muted); cursor: pointer; font-weight: bold; font-size: 1.2rem; }
.btn-remove-item:hover { color: var(--danger); transform: scale(1.1); }
.empty-msg { text-align: center; color: var(--text-muted); padding: 40px 0; font-style: italic; opacity: 0.6; }

.cart-summary-box { background: rgba(var(--primary-rgb), 0.15); border-radius: var(--radius); padding: 20px; margin-top: 20px; border: 1px solid var(--primary); display: flex; flex-direction: column; gap: 12px; align-items: center; transition: border-color 0.3s, background 0.3s; }
.summary-total { color: var(--text-main); border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; width: 100%; text-align: center; font-size: 1.2rem; }
.summary-yours { color: var(--success); font-size: 1.3rem; font-weight: 800; text-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }

/* --- REGRAS DIDÁTICAS DAS AÇÕES --- */
.rules-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.rule-box { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); padding: 12px; border-radius: 8px; display: flex; flex-direction: column; gap: 4px; }
.rule-full-box { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); padding: 12px; border-radius: 8px; }
body.light-mode .rule-box, body.light-mode .rule-full-box { background: rgba(0,0,0,0.03); } 
.rule-title { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; }
.rule-val { font-size: 0.95rem; color: var(--text-main); font-weight: 600; }
.rule-text { font-size: 0.9rem; color: var(--text-main); line-height: 1.6; margin-top: 5px; opacity: 0.9; }
.rules-toolbar { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 15px; }
.rules-favorites-wrap, .rules-results-wrap { margin-bottom: 20px; }
.rules-headline-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.rules-headline-row h3 { margin: 0; color: var(--text-main); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.rules-headline-sub { color: var(--text-muted); font-size: 0.8rem; }
.rules-helper-text { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 14px; line-height: 1.5; }
.action-picker-wrap { margin-bottom: 20px; }
.selected-action-display { background: rgba(var(--primary-rgb), 0.12); border: 1px solid rgba(var(--primary-rgb), 0.35); border-radius: 12px; padding: 16px; color: var(--text-main); font-weight: 700; min-height: 56px; display: flex; align-items: center; }
body.light-mode .selected-action-display { background: rgba(var(--primary-rgb), 0.08); }
.selected-action-display { animation: fadeInSoft 0.24s ease; }
.favorite-chip-list { display: flex; flex-wrap: wrap; gap: 10px; min-height: 44px; }
.favorite-chip { border: 1px solid rgba(var(--primary-rgb), 0.35); background: rgba(var(--primary-rgb), 0.12); color: var(--text-main); border-radius: 999px; padding: 10px 14px; cursor: pointer; font-weight: 700; transition: 0.25s; display: inline-flex; align-items: center; gap: 8px; }
.favorite-chip span { color: #fbbf24; }
.favorite-chip:hover, .favorite-chip.active { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.rules-empty-favorites { color: var(--text-muted); font-size: 0.85rem; margin: 0; padding: 10px 0; }
.rule-action-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rule-action-card { width: 100%; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.22); color: var(--text-main); border-radius: 12px; padding: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; transition: 0.25s; }
body.light-mode .rule-action-card { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
.rule-action-card:hover, .rule-action-card.active { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--glow); }
.rule-action-card-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rule-action-card-main strong { font-size: 0.95rem; color: var(--text-main); }
.rule-action-card-main span { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.7px; }
.rule-favorite-toggle { font-size: 1.2rem; color: var(--text-muted); transition: 0.2s; }
.rule-favorite-toggle.active { color: #fbbf24; text-shadow: 0 0 12px rgba(251, 191, 36, 0.35); }
.rule-favorite-toggle:hover { transform: scale(1.08); }
.rules-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 15px; flex-wrap: wrap; }
.rule-section-kicker { color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; margin-bottom: 6px; }
.rules-action-title { margin: 0; color: var(--primary); font-size: 1.2rem; }
.btn-favorite-rule { border: 1px solid rgba(var(--primary-rgb), 0.35); background: rgba(var(--primary-rgb), 0.1); color: var(--text-main); border-radius: 999px; padding: 10px 14px; cursor: pointer; font-weight: 700; transition: 0.25s; display: inline-flex; align-items: center; gap: 8px; }
.btn-favorite-rule span { color: #fbbf24; }
.btn-favorite-rule:hover, .btn-favorite-rule.active { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.45); }
.btn-mini-ghost { border: 1px solid rgba(var(--primary-rgb), 0.35); background: transparent; color: var(--text-main); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 0.8rem; font-weight: 700; transition: 0.2s; }
.btn-mini-ghost:hover { background: rgba(var(--primary-rgb), 0.12); border-color: var(--primary); }

/* --- UTILITÁRIOS --- */
.copy-card { background: rgba(0,0,0,0.2); border: 1px dashed rgba(255,255,255,0.2); border-radius: var(--radius); padding: 30px; color: var(--text-main); text-align: center; cursor: pointer; font-family: 'Consolas', monospace; white-space: pre-line; line-height: 1.6; transition: border-color 0.3s, background 0.3s; }
body.light-mode .copy-card { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.2); } 
.copy-card:hover { border-color: var(--primary); background-color: rgba(var(--primary-rgb), 0.05); transform: translateY(-2px); box-shadow: 0 16px 28px rgba(0,0,0,0.16); }

#toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: rgba(30, 32, 47, 0.95); backdrop-filter: blur(10px); color: #fff; padding: 16px 24px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); border-left: 5px solid var(--primary); font-weight: 600; animation: slideIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; transition: border-color 0.3s, opacity 0.25s ease, transform 0.25s ease; }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.closing { opacity: 0; transform: translateX(18px) scale(0.98); }

.text-center { text-align: center; }
.text-white { color: #fff !important; }
.text-muted { color: var(--text-muted); }
.text-sub { font-size: 0.85rem; color: #888; margin-bottom: 5px; }
.italic { font-style: italic; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.max-w-600 { max-width: 600px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.separator { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 20px 0; }

/* --- CATÁLOGO LAVAGEM --- */
.catalog-container { max-height: 400px; overflow-y: auto; padding-right: 5px; }
.grid-list-small { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 5px; }
.catalog-item { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 15px; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.2s; }
body.light-mode .catalog-item { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); } 
.catalog-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.catalog-item:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.16); }
.catalog-item.selected { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4); border-color: var(--primary); animation: subtlePulse 0.6s ease; }
.cat-name { font-size: 1rem; font-weight: 700; color: var(--text-main); }
.catalog-item.selected .cat-name { color: white; }

.animate-in {
    animation: fadeInSoft 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stagger-list > * {
    animation: liftIn 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.production-summary-box { background: rgba(20, 22, 35, 0.8); border: 1px solid rgba(var(--primary-rgb), 0.3); border-radius: var(--radius); padding: 15px; transition: border-color 0.3s; }
body.light-mode .production-summary-box { background: #fff; border-color: var(--primary); } 
.prod-box-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 2px solid var(--primary); padding-bottom: 5px; transition: border-color 0.3s; }
.summary-title-styled { margin: 0; font-size: 0.9rem; color: var(--text-main); text-transform: uppercase; letter-spacing: 2px; font-weight: 800; }
.btn-close-box { background: transparent; border: none; color: var(--danger); font-size: 1.2rem; cursor: pointer; }

.tags-container { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.mat-tag-pill { background: rgba(10, 10, 15, 0.6); border: 1px solid var(--primary); padding: 8px 16px; border-radius: 8px; color: var(--primary); font-weight: bold; font-size: 0.9rem; display: flex; gap: 6px; transition: border-color 0.3s, color 0.3s; }
body.light-mode .mat-tag-pill { background: rgba(var(--primary-rgb), 0.1); } 
.mat-tag-pill b { color: var(--text-main); }

.hidden-controls { display: none; }
.detail-card-small { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); border-radius: 6px; padding: 10px; margin-bottom: 5px; }
body.light-mode .detail-card-small { background: rgba(0,0,0,0.03); } 
.detail-header-small { display: flex; justify-content: space-between; margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.detail-name { font-size: 0.85rem; font-weight: 700; color: var(--primary); transition: color 0.3s; }
.mats-grid-small { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.mat-item-tiny { font-size: 0.75rem; color: var(--text-muted); background: rgba(255,255,255,0.03); padding: 4px 8px; border-radius: 4px; display: flex; justify-content: space-between; }
body.light-mode .mat-item-tiny { background: rgba(0,0,0,0.05); } 
.mat-item-tiny b { color: var(--text-main); }
.flex-column { display: flex; flex-direction: column; }
.gap-10 { gap: 10px; }
.uppercase { text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; }
.border-top { border-top: 1px dashed rgba(255,255,255,0.1); }
.pt-20 { padding-top: 20px; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; box-shadow: 0 0 10px var(--primary); }

/* --- MODO APLICATIVO (CELULAR) --- */
@media (max-width: 550px) {
    body { padding: 5px; overflow-x: hidden;}
    header { margin-bottom: 15px; }
    h1 { font-size: 1.6rem; letter-spacing: 2px; }
    .header-top { flex-direction: column; gap: 10px; height: auto; margin-bottom: 15px;}
    .header-controls { position: relative; transform: none; display: flex; justify-content: space-between; width: 100%; top: 0;}
    .card { padding: 15px; border-radius: 8px; margin-bottom: 12px; }
    .row { flex-direction: column; gap: 10px; }
    .nav-tabs { padding: 5px; justify-content: space-between; }
    .nav-btn { padding: 12px 5px; font-size: 0.85rem; letter-spacing: 0; }
    input, select { padding: 15px; font-size: 1.05rem; }
    .grid-list-small { grid-template-columns: 1fr; gap: 10px; }
    .catalog-item { padding: 15px; border-width: 2px; }
    .btn { padding: 18px; font-size: 1rem; }
    .rules-toolbar { grid-template-columns: 1fr; }
    .rule-action-list { grid-template-columns: 1fr; }
    #toast-container { right: 10px; bottom: 10px; left: 10px; }
    .toast { font-size: 0.9rem; justify-content: center; }
}

/* --- ABA LAVAGEM --- */
.wash-grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .wash-grid-container { grid-template-columns: 1fr; } }
.wash-results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.wash-item { background: rgba(0,0,0,0.3); padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
body.light-mode .wash-item { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); } 
.wash-item span { font-size: 0.70rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px; font-weight: 800; letter-spacing: 0.5px; }
.wash-item b { font-size: 1rem; color: var(--text-main); }
.wash-item.highlight { grid-column: span 2; background: rgba(16, 185, 129, 0.1); border-color: var(--success); }
.wash-item.highlight b { color: var(--success); font-size: 1.2rem; text-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
.wash-mats-info { margin-top: 8px; font-size: 0.85rem; color: var(--primary); font-weight: bold; text-align: center; background: rgba(var(--primary-rgb), 0.1); padding: 5px; border-radius: 6px; border: 1px dashed rgba(var(--primary-rgb), 0.3); transition: color 0.3s, border-color 0.3s, background 0.3s; }
