:root {
    --card-reminder: #fef2f2;
    --card-reminder-border: #ef4444;
    --card-shopping: #f0fdf4;
    --card-shopping-border: #22c55e;
    --card-wallet: #fef3c7;
    --card-schedule: #f0f9ff;
    --card-settings: #fefce8;
    --text-primary: #111111;
    --text-secondary: #888888;
    --bg-page: #ffffff;
    --bg-card: #f8f9fa;
    --nav-height: 64px;
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background: var(--bg-page);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, #ffffff 60%, transparent);
    z-index: 50;
    pointer-events: none;
}

.nav-toggle {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #64748b, #475569);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.2);
}

.nav-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}
.nav-toggle-icon svg {
    width: 18px;
    height: 18px;
}
.nav-toggle-label { font-size: 14px; font-weight: 600; letter-spacing: 0.5px; }

/* Main Menu Sheet */
.menu-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 55; opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.menu-overlay.open { opacity: 1; pointer-events: auto; }

.main-menu {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    padding: 12px 12px 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 56;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
}

.main-menu.open { transform: translateY(0); }

.main-menu-handle {
    width: 36px; height: 4px;
    background: #e0e0e0; border-radius: 2px;
    margin: 0 auto 16px;
}

.main-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.main-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 4px;
    border: none;
    background: #f7f7f9;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.main-menu-item:active {
    transform: scale(0.93);
    background: #eef0f5;
}

.main-menu-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.main-menu-icon svg {
    width: 24px;
    height: 24px;
}

.menu-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    display: none;
    pointer-events: none;
}
.menu-badge:not(:empty) {
    display: block;
}
.main-menu-label { font-size: 11px; color: var(--text-secondary); font-weight: 600; }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 70; opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-sheet {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    padding: 12px 20px 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 71;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-sheet.open { transform: translateY(0); }
.modal-handle {
    width: 36px; height: 4px;
    background: #e0e0e0; border-radius: 2px;
    margin: 0 auto 16px;
}
.modal-title {
    font-size: 18px; font-weight: 700;
    text-align: center; margin-bottom: 12px; color: #111;
}
.modal-balance {
    font-size: 14px; font-weight: 600;
    text-align: center; color: var(--text-secondary); margin-bottom: 16px;
}
.modal-presets {
    display: flex; gap: 8px; margin-bottom: 12px;
}
.modal-preset-btn {
    flex: 1; padding: 12px 8px;
    border: 1.5px solid #e0e0e0; border-radius: 10px;
    background: #f8f8f8; font-size: 14px; font-weight: 600;
    color: var(--text-primary); cursor: pointer; transition: all 0.2s ease;
}
.modal-preset-btn:active { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.modal-input {
    width: 100%; padding: 14px 16px;
    border: 2px solid #e0e0e0; border-radius: 14px;
    font-size: 18px; font-weight: 600; text-align: center;
    outline: none; margin-bottom: 16px; box-sizing: border-box;
}
.modal-input:focus { border-color: #0ea5e9; }
.modal-submit {
    width: 100%; padding: 14px; border: none; border-radius: 14px;
    font-size: 16px; font-weight: 600; cursor: pointer; margin-bottom: 8px;
    transition: all 0.2s ease;
}
.modal-submit:active { transform: scale(0.97); }
#withdraw-submit { background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff; }
.modal-submit.confirm-yes { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.modal-submit.confirm-no { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.modal-cancel {
    width: 100%; padding: 12px; border: none; border-radius: 14px;
    background: #f5f5f5; font-size: 14px; font-weight: 500;
    color: var(--text-secondary); cursor: pointer;
}
.modal-detail {
    font-size: 14px; color: var(--text-secondary);
    text-align: center; margin-bottom: 16px; line-height: 1.5;
}

/* Cards */
.card-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s ease;
    cursor: pointer;
}

.card-section:active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-section .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-section .card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-section .card-link {
    font-size: 12px;
    color: var(--text-secondary);
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
}

/* Accent Cards */
.card-accent-reminder {
    background: var(--card-reminder);
    border-left: 3px solid var(--card-reminder-border);
}

.card-accent-shopping {
    background: var(--card-shopping);
    border-left: 3px solid var(--card-shopping-border);
}

.card-accent-wallet {
    background: var(--card-wallet);
}

.card-accent-schedule {
    background: var(--card-schedule);
    border-left: 3px solid #3b82f6;
}

.card-wallet-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-top: 4px;
}



/* Section transitions */
.section {
    display: none;
    padding: 16px;
    padding-bottom: 140px;
}

.section.active {
    display: block;
    animation: sectionIn 0.25s ease;
}

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

/* Page header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-top: 8px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-header .header-date {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Utility */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.hidden {
    display: none !important;
}

/* Loading */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.loading-spinner::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Reminders Section */
.reminder-create {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e6 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.reminder-create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.reminder-create-title {
    font-size: 18px;
    font-weight: 700;
    color: #991b1b;
}

.reminder-create-badge {
    font-size: 24px;
}

.reminder-create-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reminder-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(239, 68, 68, 0.15);
    border-radius: 14px;
    font-size: 15px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    color: #111;
}

.reminder-input:focus {
    border-color: #ef4444;
}

.reminder-input::placeholder {
    color: #aaa;
}

.quick-times {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.quick-times::-webkit-scrollbar {
    display: none;
}

.quick-time-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1.5px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    background: #ffffff;
    color: #991b1b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-time-btn:active {
    background: #fef2f2;
    border-color: #ef4444;
    transform: scale(0.96);
}

.quick-time-btn.selected {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.quick-time-more {
    font-size: 16px;
    padding: 8px 14px;
}

.time-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    border: 1.5px solid rgba(239, 68, 68, 0.12);
}

.time-picker-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.time-picker-input {
    border: none;
    background: #fef2f2;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #991b1b;
    outline: none;
}

.reminder-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.reminder-submit:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.reminder-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.reminder-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.reminder-section-count {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 10px;
}

/* Reminder List Items */
.reminder-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reminder-item:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.reminder-item-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: none;
    padding: 0;
}

.reminder-item-check.completed {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
    font-size: 12px;
}

.reminder-item-body {
    flex: 1;
    min-width: 0;
}

.reminder-item-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reminder-item-text.completed {
    text-decoration: line-through;
    color: #bbb;
}

.reminder-item-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.reminder-item-delete {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: #999;
}

.reminder-item-delete:active {
    background: #fef2f2;
    color: #ef4444;
}

/* Shopping Section */
.shop-create {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.shop-create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.shop-create-title {
    font-size: 18px;
    font-weight: 700;
    color: #166534;
}

.shop-create-badge {
    font-size: 24px;
}

.shop-create-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(34, 197, 94, 0.15);
    border-radius: 14px;
    font-size: 15px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    color: #111;
}

.shop-input:focus {
    border-color: #22c55e;
}

.shop-input::placeholder {
    color: #aaa;
}

.shop-name-row {
    display: flex;
    gap: 10px;
}

.shop-name-row .shop-input {
    flex: 1;
}

.shop-urgent-btn {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(34, 197, 94, 0.15);
    border-radius: 14px;
    background: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.shop-urgent-btn:active {
    transform: scale(0.92);
}

.shop-urgent-btn.active {
    background: #fef2f2;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.shop-visibility-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    border: 2px solid rgba(34, 197, 94, 0.12);
}

.shop-visibility-label {
    font-size: 14px;
    font-weight: 500;
    color: #166534;
}

.shop-visibility-select {
    border: none;
    background: #f0fdf4;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    outline: none;
}

.shop-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.shop-submit:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.2);
}

.shop-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.shop-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.shop-section-count {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 10px;
}

.shop-clear-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.shop-clear-btn:active {
    background: #fef2f2;
}

/* Shopping Items */
.shop-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.shop-item:active {
    transform: scale(0.98);
}

.shop-item.urgent {
    border-left: 3px solid #ef4444;
}

.shop-item-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: none;
    padding: 0;
    color: transparent;
    font-size: 11px;
}

.shop-item-check.done {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.shop-item-body {
    flex: 1;
    min-width: 0;
}

.shop-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.shop-item-name.done {
    text-decoration: line-through;
    color: #bbb;
}

.shop-item-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.shop-item-delete {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: #999;
}

.shop-item-delete:active {
    background: #fef2f2;
    color: #ef4444;
}

.shop-item.done-item {
    opacity: 0.5;
}

.shop-section-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

.shop-section-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    display: inline-block;
}

.shop-section-tag.urgent-tag {
    background: #fef2f2;
    color: #dc2626;
}

.shop-section-tag.normal-tag {
    background: #f5f5f5;
    color: #888;
}

.shop-section-tag.done-tag {
    background: #f0fdf4;
    color: #16a34a;
}

/* Media Section */
.media-create {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(236, 72, 153, 0.1);
}

.media-create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.media-create-title { font-size: 18px; font-weight: 700; color: #9d174d; }
.media-create-badge { font-size: 24px; }

.media-create-body { display: flex; flex-direction: column; gap: 12px; }

.media-type-row { display: flex; gap: 8px; }

.media-type-btn {
    flex: 1;
    padding: 10px;
    border: 1.5px solid rgba(236, 72, 153, 0.2);
    border-radius: 12px;
    background: #fff;
    color: #9d174d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.media-type-btn:active { transform: scale(0.97); background: #fdf2f8; }
.media-type-btn.selected { background: #ec4899; color: #fff; border-color: #ec4899; }

.media-input {
    width: 100%; padding: 14px 16px;
    border: 2px solid rgba(236, 72, 153, 0.15);
    border-radius: 14px; font-size: 15px; background: #fff;
    outline: none; color: #111;
}

.media-input:focus { border-color: #ec4899; }
.media-input::placeholder { color: #aaa; }

.media-status-select {
    width: 100%; padding: 12px 14px;
    border: 2px solid rgba(236, 72, 153, 0.15);
    border-radius: 12px; font-size: 14px; font-weight: 600;
    background: #fff; color: #9d174d; outline: none;
}

.media-submit {
    width: 100%; padding: 14px;
    border: none; border-radius: 14px;
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: #fff; font-size: 15px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 8px;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
    transition: all 0.2s ease;
}

.media-submit:active { transform: scale(0.98); box-shadow: 0 2px 6px rgba(236, 72, 153, 0.2); }

.media-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin-bottom: 16px;
}

.media-stat {
    background: #fff; border-radius: 14px; padding: 12px 8px;
    text-align: center; border: 1px solid #f0f0f0;
}

.media-stat-value { display: block; font-size: 20px; font-weight: 700; color: var(--text-primary); }
.media-stat-label { display: block; font-size: 10px; color: var(--text-secondary); margin-top: 2px; }

.media-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding: 0 4px;
}

.media-section-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.media-section-count {
    font-size: 12px; font-weight: 600; color: #888;
    background: #f0f0f0; padding: 2px 10px; border-radius: 10px;
}

/* Media Items */
.media-item {
    background: #fff; border-radius: 14px; padding: 14px 16px;
    margin-bottom: 8px; border: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 12px; transition: all 0.2s ease;
}

.media-item:active { transform: scale(0.98); }
.media-item .media-item-icon { font-size: 24px; flex-shrink: 0; }
.media-item-body { flex: 1; min-width: 0; }
.media-item-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.media-item-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.media-item-delete {
    width: 28px; height: 28px; border: none; background: #f5f5f5;
    border-radius: 8px; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #999; transition: all 0.2s ease;
}

.media-item-delete:active { background: #fef2f2; color: #ef4444; }

/* Points Section */
.points-header-card {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-radius: 20px; padding: 20px; margin-bottom: 16px;
    border: 1px solid rgba(234, 179, 8, 0.1);
}

.points-header-top { margin-bottom: 16px; }
.points-header-title { font-size: 18px; font-weight: 700; color: #854d0e; }

.points-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }

.points-stat {
    background: rgba(255,255,255,0.6); border-radius: 14px;
    padding: 14px 8px; text-align: center;
}

.points-stat-value { display: block; font-size: 24px; font-weight: 700; color: #854d0e; }
.points-stat-label { display: block; font-size: 11px; color: #a16207; margin-top: 2px; }

.points-progress { background: rgba(255,255,255,0.5); border-radius: 12px; padding: 12px; }
.points-progress-header {
    display: flex; justify-content: space-between;
    font-size: 12px; color: #854d0e; font-weight: 500; margin-bottom: 6px;
}

.points-progress-bar {
    height: 8px; background: rgba(234, 179, 8, 0.2);
    border-radius: 4px; overflow: hidden;
}

.points-progress-fill {
    height: 100%; background: linear-gradient(90deg, #eab308, #f59e0b);
    border-radius: 4px; transition: width 0.5s ease;
}

.points-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding: 0 4px;
}

.points-section-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }

.points-rules {
    background: #fff; border-radius: 16px; padding: 4px 16px;
    border: 1px solid #f0f0f0;
}

.points-rule {
    display: flex; justify-content: space-between;
    padding: 12px 0; font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.points-rule:last-child { border-bottom: none; }
.points-rule-plus { font-weight: 700; color: #16a34a; }
.points-rule-minus { font-weight: 700; color: #dc2626; }

/* Points Items */
.points-history-item {
    background: #fff; border-radius: 14px; padding: 12px 16px;
    margin-bottom: 6px; border: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 12px;
}

.points-history-icon { font-size: 20px; flex-shrink: 0; }
.points-history-body { flex: 1; min-width: 0; }
.points-history-text { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.points-history-date { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.points-history-value { font-size: 15px; font-weight: 700; flex-shrink: 0; }
.points-history-value.plus { color: #16a34a; }
.points-history-value.minus { color: #dc2626; }

/* Leaderboard Items */
.leaderboard-item {
    background: #fff; border-radius: 14px; padding: 12px 16px;
    margin-bottom: 6px; border: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 12px;
}

.leaderboard-rank {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.leaderboard-rank.gold { background: #fef3c7; color: #d97706; }
.leaderboard-rank.silver { background: #f1f5f9; color: #64748b; }
.leaderboard-rank.bronze { background: #fed7aa; color: #c2410c; }
.leaderboard-rank.default { background: #f5f5f5; color: #888; }

.leaderboard-body { flex: 1; min-width: 0; }
.leaderboard-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.leaderboard-score { font-size: 12px; font-weight: 700; color: #d97706; flex-shrink: 0; }

/* Earnings Section */
.earnings-header-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px; padding: 20px; margin-bottom: 16px;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.earnings-balance-row {
    display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}

.earnings-balance-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}

.earnings-balance-label { font-size: 13px; color: #0c4a6e; font-weight: 500; }
.earnings-balance-value { font-size: 28px; font-weight: 700; color: #0c4a6e; letter-spacing: -0.5px; }

.earnings-stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }

.earnings-stat {
    background: rgba(255,255,255,0.6); border-radius: 14px; padding: 12px; text-align: center;
}

.earnings-stat-value { display: block; font-size: 16px; font-weight: 700; color: #0c4a6e; }
.earnings-stat-label { display: block; font-size: 11px; color: #0c4a6e; opacity: 0.6; margin-top: 2px; }

.earnings-withdraw-btn {
    width: 100%; padding: 14px;
    border: none; border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff; font-size: 15px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 8px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    transition: all 0.2s ease;
}

.earnings-withdraw-btn:active { transform: scale(0.98); }

.earnings-penalty {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 20px; padding: 20px; margin-bottom: 16px;
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.earnings-penalty-header { font-size: 16px; font-weight: 700; color: #991b1b; margin-bottom: 12px; }
.earnings-penalty-members { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.earnings-input {
    width: 100%; padding: 12px 14px;
    border: 2px solid rgba(239, 68, 68, 0.15);
    border-radius: 12px; font-size: 14px; background: #fff;
    outline: none; margin-bottom: 10px; color: #111;
}

.earnings-input:focus { border-color: #ef4444; }

.earnings-textarea {
    width: 100%; padding: 12px 14px;
    border: 2px solid rgba(239, 68, 68, 0.15);
    border-radius: 12px; font-size: 14px; background: #fff;
    outline: none; margin-bottom: 12px; font-family: inherit; color: #111;
    resize: none;
}

.earnings-textarea:focus { border-color: #ef4444; }

.earnings-penalty-btn {
    width: 100%; padding: 12px;
    border: none; border-radius: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff; font-size: 14px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 8px;
    transition: all 0.2s ease;
}

.earnings-penalty-btn:active { transform: scale(0.98); }

.earnings-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding: 0 4px;
}

.earnings-section-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }

/* Earnings History Items */
.earnings-history-item {
    background: #fff; border-radius: 14px; padding: 12px 16px;
    margin-bottom: 6px; border: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 12px;
}

.earnings-history-icon { font-size: 20px; flex-shrink: 0; }
.earnings-history-body { flex: 1; min-width: 0; }
.earnings-history-text { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.earnings-history-date { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.earnings-history-value { font-size: 15px; font-weight: 700; flex-shrink: 0; }
.earnings-history-value.plus { color: #16a34a; }
.earnings-history-value.minus { color: #dc2626; }

.pending-withdrawal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fffbeb;
    border-radius: 12px;
    margin-bottom: 8px;
    border-left: 3px solid #f59e0b;
}

.pending-withdrawal-item .pwd-info {
    flex: 1;
    min-width: 0;
}

.pending-withdrawal-item .pwd-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.pending-withdrawal-item .pwd-amount {
    font-size: 15px;
    font-weight: 700;
    color: #d97706;
}

.pending-withdrawal-item .pwd-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.pending-withdrawal-item .pwd-actions {
    display: flex;
    gap: 6px;
}

.pending-withdrawal-item .pwd-confirm,
.pending-withdrawal-item .pwd-reject {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pending-withdrawal-item .pwd-confirm { background: #ecfdf5; }
.pending-withdrawal-item .pwd-confirm:active { background: #16a34a; color: #fff; }
.pending-withdrawal-item .pwd-reject { background: #fef2f2; }
.pending-withdrawal-item .pwd-reject:active { background: #ef4444; color: #fff; }

/* Recipes Section */
.recipe-create {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: 20px; padding: 20px; margin-bottom: 16px;
    border: 1px solid rgba(249, 115, 22, 0.1);
}

.recipe-create-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.recipe-create-title { font-size: 18px; font-weight: 700; color: #9a3412; }
.recipe-create-badge { font-size: 24px; }

.recipe-create-body { display: flex; flex-direction: column; gap: 10px; }

.recipe-input {
    width: 100%; padding: 12px 14px;
    border: 2px solid rgba(249, 115, 22, 0.15);
    border-radius: 12px; font-size: 14px; background: #fff;
    outline: none; color: #111; transition: border-color 0.2s ease;
}
.recipe-input:focus { border-color: #f97316; }
.recipe-input::placeholder { color: #aaa; }

.recipe-textarea {
    width: 100%; padding: 12px 14px;
    border: 2px solid rgba(249, 115, 22, 0.15);
    border-radius: 12px; font-size: 14px; background: #fff;
    outline: none; color: #111; font-family: inherit;
    resize: none; transition: border-color 0.2s ease;
}
.recipe-textarea:focus { border-color: #f97316; }
.recipe-textarea::placeholder { color: #aaa; }

.recipe-select {
    padding: 12px 14px;
    border: 2px solid rgba(249, 115, 22, 0.15);
    border-radius: 12px; font-size: 14px; font-weight: 500;
    background: #fff; color: #9a3412; outline: none;
}

.recipe-row { display: flex; gap: 10px; }

.recipe-submit {
    width: 100%; padding: 14px;
    border: none; border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff; font-size: 15px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 8px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
    transition: all 0.2s ease;
}
.recipe-submit:active { transform: scale(0.98); }

.recipe-tabs {
    display: flex; gap: 8px; margin-bottom: 12px;
}

.recipe-tab {
    flex: 1; padding: 10px;
    border: 1.5px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px; background: #fff;
    color: #9a3412; font-size: 13px; font-weight: 600;
    cursor: pointer; text-align: center; transition: all 0.2s ease;
}
.recipe-tab:active { transform: scale(0.97); }
.recipe-tab.active { background: #f97316; color: #fff; border-color: #f97316; }

/* Recipe Items */
.recipe-item {
    background: #fff; border-radius: 16px; padding: 16px;
    margin-bottom: 10px; border: 1px solid #f0f0f0;
}

.recipe-item-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}

.recipe-item-name {
    font-size: 16px; font-weight: 700; color: var(--text-primary);
}

.recipe-item-fav {
    width: 28px; height: 28px; border: none; background: #f5f5f5;
    border-radius: 8px; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}

.recipe-item-fav.active { background: #fef3c7; }

.recipe-item-desc {
    font-size: 13px; color: var(--text-secondary); margin-bottom: 8px;
}

.recipe-item-tags {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px;
}

.recipe-tag {
    font-size: 11px; font-weight: 600; padding: 3px 10px;
    border-radius: 6px;
}
.recipe-tag.easy { background: #f0fdf4; color: #16a34a; }
.recipe-tag.medium { background: #fef3c7; color: #d97706; }
.recipe-tag.hard { background: #fef2f2; color: #dc2626; }
.recipe-tag.time { background: #eff6ff; color: #2563eb; }
.recipe-tag.day { background: #f5f3ff; color: #7c3aed; }

.recipe-item-ingredients {
    font-size: 12px; color: var(--text-secondary); margin-bottom: 6px;
    line-height: 1.4;
}

.recipe-item-instructions {
    font-size: 12px; color: var(--text-primary); line-height: 1.5;
    margin-bottom: 8px;
}

.recipe-item-actions {
    display: flex; gap: 8px;
}

.recipe-item-btn {
    flex: 1; padding: 8px; border: 1.5px solid #e8e8e8;
    border-radius: 10px; background: #fff; font-size: 12px;
    font-weight: 500; cursor: pointer; text-align: center;
    transition: all 0.2s ease; color: #888;
}

.recipe-item-btn:active { background: #f5f5f5; transform: scale(0.97); }
.recipe-item-btn.delete:active { background: #fef2f2; color: #ef4444; }

/* Settings Section */
.settings-card {
    background: #fff; border-radius: 20px; padding: 20px;
    margin-bottom: 16px; border: 1px solid #f0f0f0;
}

.settings-card-admin {
    border: 1px solid rgba(239, 68, 68, 0.12);
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}

.settings-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}

.settings-card-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.settings-card-badge {
    font-size: 10px; font-weight: 700; color: #dc2626;
    background: #fef2f2; padding: 3px 10px; border-radius: 6px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.settings-card-body { display: flex; flex-direction: column; gap: 12px; }

.settings-invite-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.settings-invite-input-row {
    display: flex; gap: 8px;
}

.settings-invite-input {
    flex: 1; padding: 12px 14px;
    border: 2px solid #e0e0e0; border-radius: 12px;
    font-size: 16px; font-family: 'Courier New', monospace;
    font-weight: 700; background: #f9f9f9;
    outline: none; color: #111; letter-spacing: 2px;
}

.settings-copy-btn {
    width: 44px; height: 44px; border: 2px solid #e0e0e0;
    border-radius: 12px; background: #fff; font-size: 18px;
    cursor: pointer; transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center;
}

.settings-copy-btn:active { background: #f0f0f0; transform: scale(0.95); }

.settings-members {
    display: flex; flex-direction: column; gap: 8px;
}

.settings-field {
    width: 100%; padding: 12px 14px;
    border: 2px solid #e8e8e8; border-radius: 12px;
    font-size: 14px; background: #fff; outline: none;
    transition: border-color 0.2s ease; color: #111;
}

.settings-field:focus { border-color: #888; }
.settings-field::placeholder { color: #bbb; }

.settings-select {
    width: 100%; padding: 12px 14px;
    border: 2px solid #e8e8e8; border-radius: 12px;
    font-size: 14px; font-weight: 500; background: #fff;
    outline: none; color: #111;
}

.settings-row { display: flex; gap: 10px; }

.settings-divider {
    font-size: 13px; font-weight: 600; color: #888;
    padding: 4px 0; position: relative;
}

.settings-note {
    font-size: 12px; color: #888; margin: 0;
}

.settings-btn-row {
    display: flex; gap: 10px;
}

.settings-btn {
    width: 100%; padding: 12px;
    border: none; border-radius: 12px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center;
    gap: 6px;
}

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

.settings-btn-primary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: #fff; box-shadow: 0 3px 10px rgba(100, 116, 139, 0.2);
}

.settings-btn-warning {
    background: #fef3c7; color: #92400e;
}

.settings-btn-success {
    background: #f0fdf4; color: #16a34a;
}

.settings-btn-ghost {
    background: #f5f5f5; color: #888;
}

/* Settings Member Items */
.settings-member-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: #f9f9f9;
    border-radius: 12px;
}

.settings-member-emoji { font-size: 22px; }
.settings-member-info { flex: 1; }
.settings-member-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.settings-member-role { font-size: 11px; color: var(--text-secondary); }
.settings-member-edit {
    width: 28px; height: 28px; border: none; background: #e8e8e8;
    border-radius: 8px; cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}



/* Todos Section */
.todo-create {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.todo-create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.todo-create-title {
    font-size: 18px;
    font-weight: 700;
    color: #6b21a8;
}

.todo-create-badge {
    font-size: 24px;
}

.todo-create-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.todo-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(168, 85, 247, 0.15);
    border-radius: 14px;
    font-size: 15px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    color: #111;
}

.todo-input:focus {
    border-color: #a855f7;
}

.todo-input::placeholder {
    color: #aaa;
}

.todo-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b21a8;
}

.todo-person-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.todo-person-btn {
    flex: 1;
    min-width: calc(33% - 8px);
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #f5f5f5;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}

.todo-person-btn:active {
    transform: scale(0.95);
}

.todo-person-btn.selected {
    background: linear-gradient(135deg, #c084fc, #a855f7);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.25);
}

.todo-schedule-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.todo-schedule-btn {
    flex: 1;
    min-width: calc(50% - 6px);
    padding: 10px 8px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #f5f5f5;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.todo-schedule-btn:active {
    transform: scale(0.95);
}

.todo-schedule-btn.selected {
    background: linear-gradient(135deg, #c084fc, #a855f7);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(168, 85, 247, 0.2);
}

.todo-paid-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #a855f7;
    cursor: pointer;
}

.todo-checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b21a8;
    cursor: pointer;
}

.todo-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.todo-submit:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(168, 85, 247, 0.2);
}

.todo-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.todo-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.todo-section-count {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 10px;
}

/* Todo Items */
.todo-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.todo-item:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.todo-item-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: none;
    padding: 0;
    color: transparent;
    font-size: 12px;
}

.todo-item-check.done {
    background: #a855f7;
    border-color: #a855f7;
    color: #fff;
}

.todo-item-body {
    flex: 1;
    min-width: 0;
}

.todo-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.todo-item-title.done {
    text-decoration: line-through;
    color: #bbb;
}

.todo-item-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.todo-item-delete {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: #999;
}

.todo-item-delete:active {
    background: #fef2f2;
    color: #ef4444;
}

.todo-item.done-item {
    opacity: 0.6;
}

.todo-item.done-item .todo-item-delete {
    opacity: 1;
}

.todo-section-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.pending-tag {
    background: #fef3c7;
    color: #d97706;
}

.todo-item.pending-item {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
}

.todo-item-check.pending {
    background: #fef3c7;
    color: #d97706;
    font-size: 14px;
    cursor: default;
}

.todo-item-confirm,
.todo-item-reject {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.todo-item-confirm {
    background: #ecfdf5;
    color: #16a34a;
}

.todo-item-confirm:active {
    background: #16a34a;
    color: #fff;
}

.todo-item-reject {
    background: #fef2f2;
    color: #ef4444;
}

.todo-item-reject:active {
    background: #ef4444;
    color: #fff;
}

/* Schedule Section */
.schedule-create {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.schedule-create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.schedule-create-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
}

.schedule-create-badge {
    font-size: 24px;
}

.schedule-create-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(59, 130, 246, 0.15);
    border-radius: 14px;
    font-size: 15px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    color: #111;
}

.schedule-input:focus {
    border-color: #3b82f6;
}

.schedule-input::placeholder {
    color: #aaa;
}

.schedule-person-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.schedule-person-btn {
    flex: 1;
    min-width: calc(33% - 6px);
    padding: 10px 8px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #f5f5f5;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}

.schedule-person-btn:active {
    transform: scale(0.93);
}

.schedule-person-btn.selected {
    background: #3b82f6;
    color: #fff;
    border-color: #2563eb;
    font-weight: 600;
}

.schedule-days {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.schedule-day-btn {
    flex: 1;
    min-width: 40px;
    padding: 10px 6px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #f5f5f5;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.schedule-day-btn:active {
    transform: scale(0.93);
}

.schedule-day-btn.selected {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.schedule-row {
    display: flex;
    gap: 10px;
}

.schedule-time-input {
    flex: 0 0 auto;
    padding: 12px 14px;
    border: 2px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background: #ffffff;
    outline: none;
    color: #1e40af;
    min-width: 100px;
}

.schedule-time-input:focus {
    border-color: #3b82f6;
}

.schedule-location-input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    font-size: 14px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    color: #111;
}

.schedule-location-input:focus {
    border-color: #3b82f6;
}

.schedule-location-input::placeholder {
    color: #aaa;
}

.schedule-repeat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.schedule-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.schedule-checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: #1e40af;
    cursor: pointer;
}

.schedule-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.schedule-submit:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.schedule-cancel {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #ddd;
    border-radius: 14px;
    background: #ffffff;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.schedule-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.schedule-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Schedule Week Items */
.schedule-week-day {
    margin-bottom: 12px;
}

.schedule-week-day-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding: 0 4px;
}

.schedule-week-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 6px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-week-item-body {
    flex: 1;
    min-width: 0;
}

.schedule-week-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-week-item-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.schedule-week-item-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.schedule-week-item-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
}

.schedule-week-item-btn:active {
    background: #eff6ff;
}

.schedule-week-item-btn.delete:active {
    background: #fef2f2;
}

/* Misc */
.reminder-create {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e6 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.reminder-create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.reminder-create-title {
    font-size: 18px;
    font-weight: 700;
    color: #991b1b;
}

.reminder-create-badge {
    font-size: 24px;
}

.reminder-create-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reminder-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(239, 68, 68, 0.15);
    border-radius: 14px;
    font-size: 15px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    color: #111;
}

.reminder-input:focus {
    border-color: #ef4444;
}

.reminder-input::placeholder {
    color: #aaa;
}

.quick-times {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.quick-times::-webkit-scrollbar {
    display: none;
}

.quick-time-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1.5px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    background: #ffffff;
    color: #991b1b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-time-btn:active {
    background: #fef2f2;
    border-color: #ef4444;
    transform: scale(0.96);
}

.quick-time-btn.selected {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.quick-time-more {
    font-size: 16px;
    padding: 8px 14px;
}

.time-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    border: 1.5px solid rgba(239, 68, 68, 0.12);
}

.time-picker-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.time-picker-input {
    border: none;
    background: #fef2f2;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #991b1b;
    outline: none;
}

.reminder-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.reminder-submit:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.reminder-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.reminder-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.reminder-section-count {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 10px;
}

/* Reminder List Items */
.reminder-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reminder-item:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.reminder-item-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: none;
    padding: 0;
}

.reminder-item-check.completed {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
    font-size: 12px;
}

.reminder-item-body {
    flex: 1;
    min-width: 0;
}

.reminder-item-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reminder-item-text.completed {
    text-decoration: line-through;
    color: #bbb;
}

.reminder-item-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.reminder-item-delete {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: #999;
}

.reminder-item-delete:active {
    background: #fef2f2;
    color: #ef4444;
}

/* Misc */
.overflow-x-auto {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.overflow-x-auto::-webkit-scrollbar {
    display: none;
}

.cursor-pointer {
    cursor: pointer;
}

