/* DIVVY-UP CSS - Complete V2 */
:root {
    --primary: #F97316;
    --primary-light: #FDBA74;
    --green: #10B981;
    --yellow: #F59E0B;
    --red: #EF4444;
    --blue: #3B82F6;
    --purple: #8B5CF6;
    --bg: #F9FAFB;
    --card: #FFFFFF;
    --text: #1F2937;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}
[data-theme="dark"] {
    --bg: #111827; --card: #1F2937; --text: #F9FAFB; --text-light: #9CA3AF; --border: #374151;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
.hidden { display: none !important; }

/* Splash */
.splash { position: fixed; inset: 0; background: linear-gradient(135deg, var(--primary), var(--yellow)); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.splash-content { text-align: center; color: white; }
.splash-icon { font-size: 4rem; animation: bounce 1s infinite; }
.splash h1 { font-size: 2.5rem; margin-top: 1rem; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Auth */
#auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.auth-box { width: 100%; max-width: 400px; background: var(--card); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header .logo { font-size: 3rem; }
.auth-header h1 { font-size: 1.5rem; margin-top: 0.5rem; }
.auth-box h2 { margin-bottom: 1.5rem; }
.auth-box input { width: 100%; padding: 0.875rem 1rem; margin-bottom: 1rem; border: 2px solid var(--border); border-radius: var(--radius); font-size: 1rem; background: var(--bg); }
.auth-box input:focus { outline: none; border-color: var(--primary); }
.switch { margin-top: 1.5rem; text-align: center; color: var(--text-light); }
.switch a { color: var(--primary); cursor: pointer; font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.5rem; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--yellow)); color: white; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(249,115,22,0.4); }
.btn.secondary { background: var(--bg); color: var(--text); border: 2px solid var(--border); }
.btn.danger { background: var(--red); color: white; }
.btn.small { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Profiles */
#profiles { padding: 2rem; min-height: 100vh; }
.profiles-header { text-align: center; margin-bottom: 2rem; }
.profiles-header h1 { font-size: 1.5rem; }
.profiles-header p { color: var(--primary); font-weight: 600; }
.profiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.profile-card { background: var(--card); border: 3px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.profile-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.profile-card .emoji { font-size: 3rem; }
.profile-card .name { font-weight: 700; margin-top: 0.5rem; }
.profile-card .coins { font-size: 0.875rem; color: var(--yellow); margin-top: 0.25rem; }

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-left { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.header-left .avatar { width: 40px; height: 40px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.header-left strong { display: block; font-size: 0.9rem; }
.header-left small { color: var(--yellow); font-weight: 600; }
.header-logo { font-size: 1.5rem; }
.header-right { display: flex; gap: 0.5rem; }
.header-right button { background: none; border: none; font-size: 1.25rem; padding: 0.5rem; cursor: pointer; position: relative; }
.badge { position: absolute; top: 0; right: 0; background: var(--red); color: white; font-size: 0.65rem; padding: 2px 5px; border-radius: 10px; }

/* Main */
main { padding: 1rem; padding-bottom: calc(80px + var(--safe-bottom)); }
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.view-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.view-title h1 { font-size: 1.5rem; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.card h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--text-light); }

/* Quick Stats */
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.stat { background: var(--card); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stat .value { font-size: 1.5rem; font-weight: 800; }
.stat .label { font-size: 0.75rem; color: var(--text-light); }

/* Tabs */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; overflow-x: auto; }
.tab { padding: 0.5rem 1rem; background: var(--bg); border: none; border-radius: 20px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab.active { background: var(--primary); color: white; }

/* Lists */
.list-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: none; }
.list-item .icon { font-size: 1.5rem; }
.list-item .info { flex: 1; }
.list-item .title { font-weight: 600; }
.list-item .meta { font-size: 0.8rem; color: var(--text-light); }
.list-item .action { background: var(--green); color: white; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.list-item.done { opacity: 0.5; }
.list-item.done .title { text-decoration: line-through; }

/* Chore/Task item */
.chore-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: var(--bg); border-radius: var(--radius); margin-bottom: 0.5rem; cursor: pointer; }
.chore-item:hover { background: var(--border); }
.chore-item .check { width: 28px; height: 28px; border: 3px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.chore-item .check.done { background: var(--green); border-color: var(--green); color: white; }
.chore-item .details { flex: 1; }
.chore-item .coins { background: var(--yellow); color: #333; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }

/* Meal Plan */
.meal-day { margin-bottom: 1rem; }
.meal-day-header { font-weight: 700; margin-bottom: 0.5rem; display: flex; justify-content: space-between; }
.meal-slot { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; background: var(--bg); border-radius: 8px; margin-bottom: 0.25rem; }
.meal-slot .type { font-size: 0.75rem; color: var(--text-light); width: 50px; }
.meal-slot .name { flex: 1; font-weight: 600; }
.meal-slot .empty { color: var(--text-light); font-style: italic; }

/* Shopping List */
.shopping-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; }
.shopping-item input[type="checkbox"] { width: 20px; height: 20px; }
.shopping-item .have { background: var(--green); color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; }
.shopping-item .need { background: var(--red); color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; }

/* Calendar */
#calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
#calendar-nav button { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
#calendar-nav .month { font-weight: 700; }
#calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 1rem; }
.cal-day { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--card); border-radius: 8px; font-size: 0.9rem; cursor: pointer; }
.cal-day.today { background: var(--primary); color: white; }
.cal-day.has-event::after { content: ''; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; margin-top: 2px; }
.cal-day.other-month { opacity: 0.3; }

/* Rewards */
.reward-card { background: var(--card); border-radius: var(--radius); padding: 1rem; text-align: center; }
.reward-card .icon { font-size: 2.5rem; }
.reward-card .name { font-weight: 700; margin: 0.5rem 0; }
.reward-card .cost { color: var(--yellow); font-weight: 700; }
#rewards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1rem; }

/* Leaderboard */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; margin: 2rem 0; }
.podium-place { text-align: center; }
.podium-place .emoji { font-size: 2rem; }
.podium-place .name { font-weight: 700; font-size: 0.9rem; }
.podium-place .points { color: var(--primary); font-weight: 700; }
.podium-place .bar { width: 70px; background: linear-gradient(to top, var(--primary), var(--yellow)); border-radius: 8px 8px 0 0; margin-top: 0.5rem; display: flex; align-items: flex-start; justify-content: center; padding-top: 0.5rem; color: white; font-size: 1.25rem; }
.podium-place:nth-child(1) .bar { height: 70px; }
.podium-place:nth-child(2) .bar { height: 100px; }
.podium-place:nth-child(3) .bar { height: 50px; }
.ranking-list { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.ranking-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.ranking-item .pos { width: 24px; font-weight: 700; }
.ranking-item .emoji { font-size: 1.5rem; }
.ranking-item .info { flex: 1; }
.ranking-item .points { font-weight: 700; color: var(--primary); }

/* Period Tabs */
.period-tabs { display: flex; background: var(--bg); border-radius: 20px; padding: 4px; margin-bottom: 1rem; }
.period-tabs button { flex: 1; padding: 0.5rem; border: none; background: none; border-radius: 16px; font-weight: 600; cursor: pointer; }
.period-tabs button.active { background: var(--card); box-shadow: var(--shadow); }

/* Settings */
.settings-list { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.setting { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--border); }
.setting input[type="number"] { width: 80px; padding: 0.5rem; border: 1px solid var(--border); border-radius: 8px; text-align: right; }
.version { text-align: center; margin-top: 2rem; color: var(--text-light); font-size: 0.875rem; }

/* Switch */
.switch { position: relative; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: var(--border); border-radius: 28px; transition: 0.3s; }
.slider::before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(22px); }

/* Bottom Nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: 0.5rem; padding-bottom: calc(0.5rem + var(--safe-bottom)); z-index: 100; }
.nav-btn { background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.65rem; color: var(--text-light); cursor: pointer; padding: 0.5rem; }
.nav-btn span:first-child { font-size: 1.5rem; }
.nav-btn.active { color: var(--primary); }
.nav-btn.fab { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--yellow)); color: white; border-radius: 50%; transform: translateY(-15px); box-shadow: 0 4px 12px rgba(249,115,22,0.4); }
.nav-btn.fab span { font-size: 2rem; font-weight: 300; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; }
@media (min-width: 640px) { .modal { align-items: center; justify-content: center; } }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-content { position: relative; width: 100%; max-width: 500px; max-height: 90vh; background: var(--card); border-radius: var(--radius) var(--radius) 0 0; padding: 1.5rem; overflow-y: auto; animation: slideUp 0.3s; }
@media (min-width: 640px) { .modal-content { border-radius: var(--radius); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal-header h2 { font-size: 1.25rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Form */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 2px solid var(--border); border-radius: 8px; font-size: 1rem; background: var(--bg); }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Emoji Picker */
.emoji-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.emoji-picker button { width: 44px; height: 44px; font-size: 1.5rem; background: var(--bg); border: 2px solid transparent; border-radius: 8px; cursor: pointer; }
.emoji-picker button.selected { border-color: var(--primary); background: var(--primary-light); }

/* Coins Picker */
.coins-picker { display: flex; gap: 0.5rem; }
.coins-picker button { flex: 1; padding: 0.5rem; background: var(--bg); border: 2px solid transparent; border-radius: 8px; font-weight: 600; cursor: pointer; }
.coins-picker button.selected { border-color: var(--yellow); background: #FEF3C7; }

/* Toast */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: white; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; z-index: 2000; animation: fadeIn 0.3s; }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* Celebration */
.celebration { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 3000; }
.celebration-content { text-align: center; color: white; animation: pop 0.5s; }
@keyframes pop { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
.celebration .big-emoji { font-size: 5rem; display: block; animation: bounce 0.5s infinite; }
.celebration h2 { font-size: 2rem; margin-top: 1rem; }
.celebration p { font-size: 1.5rem; color: var(--yellow); }

/* Filters */
.filters { display: flex; gap: 0.5rem; margin-bottom: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.filter { padding: 0.5rem 1rem; background: var(--bg); border: none; border-radius: 20px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.filter.active { background: var(--primary); color: white; }

/* Vote */
.vote-card { background: var(--card); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.vote-card h4 { margin-bottom: 0.5rem; }
.vote-options { display: flex; flex-direction: column; gap: 0.5rem; }
.vote-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: var(--bg); border-radius: 8px; cursor: pointer; }
.vote-option.selected { background: var(--primary-light); border: 2px solid var(--primary); }
.vote-option .bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.vote-option .bar-fill { height: 100%; background: var(--primary); }
.vote-option .pct { font-weight: 700; min-width: 40px; text-align: right; }

/* Empty State */
.empty { text-align: center; padding: 2rem; color: var(--text-light); }
.empty .icon { font-size: 3rem; margin-bottom: 0.5rem; }

/* Activity */
.activity-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.5rem 0; }
.activity-item .emoji { font-size: 1.25rem; }
.activity-item .text { flex: 1; font-size: 0.9rem; }
.activity-item .time { font-size: 0.75rem; color: var(--text-light); }
.activity-item .coins { color: var(--green); font-weight: 600; }

/* Responsive */
@media (max-width: 360px) {
    .quick-stats { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
/* Logo styles */
.splash-logo { width: 120px; height: auto; }
.auth-logo { width: 80px; height: auto; border-radius: 12px; }
.header-logo-img { width: 36px; height: auto; border-radius: 8px; }
/* ========== AUTH PAGE SEXY ========== */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 2rem;
    color: #1a1a2e;
    margin: 0.5rem 0;
}

.tagline {
    color: #666;
    font-size: 1.1rem;
}

.auth-form h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.input-group {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.25rem 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.input-group:focus-within {
    border-color: #F97316;
    background: #fff;
}

.input-icon {
    font-size: 1.3rem;
    margin-right: 0.75rem;
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 0;
    font-size: 1rem;
    outline: none;
}

.btn.full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.btn.primary {
    background: linear-gradient(135deg, #F97316, #f59e0b);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn.secondary {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
    font-weight: 600;
    cursor: pointer;
}

.btn.text {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    margin-top: 1rem;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #999;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.auth-features {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.feature {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Splash améliore */
.splash {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.splash-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin-bottom: 1rem;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Profiles page */
.profiles-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profiles-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.profiles-container h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.family-name {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
}

.profile-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-card:hover {
    transform: scale(1.05);
}

.profile-card .emoji {
    font-size: 3rem;
}

.profile-card .name {
    font-weight: 700;
    margin-top: 0.5rem;
    color: #333;
}

.profile-card .coins {
    color: #f59e0b;
    font-weight: 600;
}

/* === CUISINE VOTING === */
.cuisine-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.cuisine-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}
.cuisine-header p {
    margin: 0;
    color: #666;
}

.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cuisine-card {
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cuisine-card:active {
    transform: scale(0.95);
}

.cuisine-card.voted {
    border-color: var(--cuisine-color, #F97316);
    background: linear-gradient(135deg, rgba(249,115,22,0.1) 0%, rgba(249,115,22,0.05) 100%);
    box-shadow: 0 4px 12px rgba(249,115,22,0.2);
}

.cuisine-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cuisine-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cuisine-votes {
    font-size: 0.85rem;
    color: #666;
}

.cuisine-card.voted .cuisine-votes {
    color: var(--cuisine-color, #F97316);
    font-weight: 600;
}

.divvy-btn {
    width: 100%;
    font-size: 1.3rem;
    padding: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* === RECIPE DETAILS === */
.recipe-detail {
    padding: 1rem 0;
}
.recipe-times {
    display: flex;
    justify-content: space-around;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.recipe-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
}
.recipe-time .icon {
    font-size: 1.5rem;
}
.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.recipe-meta .badge {
    background: #F97316;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}
.recipe-section {
    margin-bottom: 1rem;
}
.recipe-section h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}
.recipe-section p {
    margin: 0;
    line-height: 1.6;
    color: #374151;
}
[data-theme="dark"] .recipe-times {
    background: #374151;
}
[data-theme="dark"] .recipe-section p {
    color: #d1d5db;
}

/* Clickable meals */
.meal-slot.clickable {
    cursor: pointer;
    transition: background 0.2s;
}
.meal-slot.clickable:hover {
    background: rgba(249,115,22,0.1);
}
.meal-slot.clickable:active {
    transform: scale(0.98);
}

/* === SHOPPING LIST === */
.shopping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.shopping-header h3 {
    margin: 0;
}
.shopping-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.shopping-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s;
}
.shopping-item:last-child {
    border-bottom: none;
}
.shopping-item:active {
    background: #f3f4f6;
}
.shopping-item.checked {
    background: #f0fdf4;
}
.shopping-item.checked .item-name {
    text-decoration: line-through;
    color: #9ca3af;
}
.shopping-item .checkbox {
    font-size: 1.3rem;
}
.shopping-item .item-name {
    flex: 1;
    text-transform: capitalize;
}
.shopping-actions {
    display: flex;
    gap: 0.5rem;
}
.shopping-actions .btn {
    flex: 1;
    font-size: 0.9rem;
}
.empty-state {
    text-align: center;
    padding: 2rem;
}
.empty-state p {
    color: #666;
    margin-bottom: 1rem;
}
[data-theme="dark"] .shopping-list {
    background: #1f2937;
}
[data-theme="dark"] .shopping-item {
    border-color: #374151;
}
[data-theme="dark"] .shopping-item.checked {
    background: #064e3b;
}

/* === CONFETTI === */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}
.confetti {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* === BADGES === */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
}
.badge-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s;
}
.badge-card.locked {
    opacity: 0.5;
    filter: grayscale(1);
}
.badge-card.earned {
    box-shadow: 0 4px 12px rgba(249,115,22,0.2);
}
.badge-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}
.badge-name {
    font-size: 0.85rem;
    font-weight: 600;
}
.badge-unlock {
    text-align: center;
    padding: 2rem;
}
.badge-unlock .badge-emoji {
    font-size: 4rem;
    animation: bounce 0.5s ease infinite alternate;
}
@keyframes bounce {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}
.streak-badge {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}
[data-theme="dark"] .badge-card {
    background: #1f2937;
}

/* === STREAK DISPLAY === */
.streak-display {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.streak-fire {
    font-size: 2.5rem;
    animation: fire-pulse 1s ease infinite alternate;
}
@keyframes fire-pulse {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}
.streak-count {
    font-size: 3rem;
    font-weight: bold;
}
.streak-label {
    font-size: 1rem;
    opacity: 0.9;
}
.badge-desc {
    font-size: 0.75rem;
    color: #666;
    display: block;
    margin-top: 0.25rem;
}
[data-theme="dark"] .badge-desc {
    color: #9ca3af;
}
