/* ======================================================== */
/* 🎨 MASTER CSS: PREMIUM RICH THEME (ALL PAGES FIXED)      */
/* ======================================================== */
:root {
    --primary-green: #059669;       
    --primary-purple: #6D28D9;      
    --gradient-purple: linear-gradient(135deg, #7C3AED 0%, #4338CA 100%); 
    --bg-gray: #F1F5F9;             
    --card-bg: #FFFFFF;
    --text-dark: #0F172A;
    --text-light: #475569;
    --border-color: #E2E8F0;
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 25px rgba(0,0,0,0.08);
}

* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
    -webkit-tap-highlight-color: transparent; 
}

body { 
    background: #CBD5E1; 
    display: flex; justify-content: center; 
    height: 100dvh; overflow: hidden; color: var(--text-dark); 
}

.app-container { 
    width: 100%; max-width: 480px; 
    background-color: var(--bg-gray); 
    height: 100dvh; position: relative; 
    display: flex; flex-direction: column; 
    overflow: hidden; box-shadow: 0 0 40px rgba(0,0,0,0.15); 
}

/* ================= LOGIN SCREEN ================= */
#login-screen { padding: 30px 20px; background: var(--card-bg); height: 100%; overflow-y: auto; display: flex; flex-direction: column; }
.login-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.lang-btn { border: 1px solid var(--border-color); padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.login-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.login-title span { color: #F59E0B; }
.login-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; margin-bottom: 30px; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.input-wrapper { position: relative; }
.input-wrapper input { width: 100%; padding: 15px 40px 15px 15px; border: 2px solid var(--border-color); border-radius: 14px; font-size: 0.95rem; outline: none; background: var(--bg-gray); transition: 0.3s; color: var(--text-dark); }
.input-wrapper input:focus { border-color: var(--primary-purple); background: var(--card-bg); box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1); }
.input-wrapper i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-light); }

.btn-login { width: 100%; padding: 16px; background: var(--bg-gray); color: #94A3B8; border: none; border-radius: 14px; font-weight: 700; font-size: 1rem; margin-top: 10px; cursor: not-allowed; opacity: 0.6; transition: 0.3s; }
.btn-login.active { background: var(--primary-purple); color: white; box-shadow: 0 6px 20px rgba(109, 40, 217, 0.3); transform: translateY(-2px); cursor: pointer; opacity: 1; }
.btn-login.active:active { transform: scale(0.98); }

.divider { text-align: center; margin: 20px 0; color: var(--text-light); font-size: 0.85rem; position: relative; font-weight: 600; }
.divider::before, .divider::after { content: ""; position: absolute; top: 50%; width: 40%; height: 2px; background: var(--border-color); }
.divider::before { left: 0; } .divider::after { right: 0; }

.btn-outline { width: 100%; padding: 16px; background: var(--card-bg); color: var(--text-dark); border: 2px solid var(--border-color); border-radius: 14px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.2s; }
.btn-outline:active { background: var(--bg-gray); transform: scale(0.98); }

.login-tips { margin-top: 30px; font-size: 0.8rem; color: var(--text-dark); line-height: 1.8; }
.login-tips p { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-weight: 600; }
.login-tips i { color: var(--primary-green); margin-top: 3px; font-size: 1rem; }

/* ================= MAIN APP & TABS ================= */
#main-app { display: none; height: 100%; flex-direction: column; background: var(--bg-gray); }
.main-content { flex: 1; overflow-y: auto; padding-bottom: 90px; }
.tab-content { display: none; animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.tab-content.active { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* --- 🏠 HOME TAB --- */
.home-header { background: var(--gradient-purple); padding: 25px 20px 80px 20px; color: white; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; box-shadow: 0 10px 30px rgba(109, 40, 217, 0.3); }
.user-info { display: flex; justify-content: space-between; align-items: center; }
.user-id-badge { background: rgba(255,255,255,0.2); padding: 5px 12px; border-radius: 15px; font-size: 0.75rem; margin-top: 6px; display: inline-block; cursor:pointer; font-weight: 600; backdrop-filter: blur(5px); transition: 0.2s; }
.user-id-badge:active { transform: scale(0.95); }
.avatar-circle { width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 3px solid rgba(255,255,255,0.8); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }

.overview-card { background: var(--card-bg); margin: -50px 20px 20px 20px; border-radius: 20px; padding: 22px; box-shadow: var(--shadow-md); position: relative; z-index: 10; border: 1px solid rgba(255,255,255,0.8); }
.plan-status { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 18px; margin-bottom: 18px; }
.status-badge { background: #D1FAE5; color: #059669; padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }

.icon-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 5px; padding: 10px 0; }
.grid-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.grid-item:hover { transform: translateY(-4px); }
.grid-item:active { transform: scale(0.92); }

.icon-wrapper { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: all 0.3s ease; }
.grid-item:hover .icon-wrapper { box-shadow: 0 8px 15px rgba(0,0,0,0.08); }
.icon-wrapper i { display: block !important; opacity: 1 !important; visibility: visible !important; }
.grid-item span { font-size: 0.6rem; font-weight: 700; color: var(--text-dark); line-height: 1.2; letter-spacing: -0.2px; }

.grid-item:nth-child(1) .icon-wrapper { background: #D1FAE5; color: #059669; }
.grid-item:nth-child(2) .icon-wrapper { background: #DBEAFE; color: #2563EB; }
.grid-item:nth-child(3) .icon-wrapper { background: #D1FAE5; color: #059669; }
.grid-item:nth-child(4) .icon-wrapper { background: #FEE2E2; color: #DC2626; }
.grid-item:nth-child(5) .icon-wrapper { background: #EDE9FE; color: #7C3AED; }
.grid-item:nth-child(6) .icon-wrapper { background: #FEF3C7; color: #D97706; }
.grid-item:nth-child(7) .icon-wrapper { background: #FAE8FF; color: #C026D3; }
.grid-item:nth-child(8) .icon-wrapper { background: #DBEAFE; color: #2563EB; }
.grid-item:nth-child(9) .icon-wrapper { background: #F1F5F9; color: #475569; }
.grid-item:nth-child(10) .icon-wrapper { background: #FAE8FF; color: #C026D3; }

.advance-tools { padding: 10px 20px 20px 20px; }
.tool-card { padding: 20px; border-radius: 18px; display: flex; align-items: center; gap: 15px; margin-top: 10px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: all 0.3s ease; cursor: pointer; background: var(--card-bg); }
.tool-card:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-md); border-color: rgba(109, 40, 217, 0.2); }
.tool-icon { width: 48px; height: 48px; background: white; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #EF4444; font-size: 1.4rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

/* --- 🚀 FORWARD LIST TAB --- */
.forward-header { padding: 20px; background: var(--card-bg); border-bottom: 1px solid var(--border-color); box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.search-bar { background: var(--bg-gray); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 15px; border: 1px solid transparent; transition: 0.3s; }
.search-bar:focus-within { border-color: var(--primary-purple); background: var(--card-bg); box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1); }
.search-bar input { border: none; background: transparent; outline: none; width: 100%; font-size: 0.95rem; font-weight: 500; }
.tab-pills { display: flex; gap: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }
.pill { font-size: 0.95rem; font-weight: 700; color: var(--text-light); position: relative; padding-bottom: 10px; cursor: pointer; transition: 0.2s; }
.pill.active { color: var(--primary-purple); }
.pill.active::after { content: ''; position: absolute; bottom: -12px; left: 0; width: 100%; height: 4px; background: var(--primary-purple); border-radius: 4px; }
.pill-count { background: var(--primary-purple); color: white; border-radius: 50%; padding: 2px 8px; font-size: 0.75rem; margin-left: 6px; }

.task-list { padding: 20px; }
.task-item { background: var(--card-bg); border-radius: 18px; padding: 18px; margin-bottom: 15px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: all 0.3s ease; }
.task-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(109, 40, 217, 0.2); }
.task-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.task-icon { color: var(--primary-purple); font-size: 1.3rem; margin-top: 2px; }
.task-details h4 { font-size: 0.75rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.task-details p { font-size: 0.95rem; font-weight: 800; color: var(--text-dark); margin-top: 2px; }

/* --- 🧭 EXPLORE TAB --- */
.explore-header { padding: 20px; background: var(--bg-gray); font-size: 1.3rem; font-weight: 800; color: var(--text-dark); }
.credit-card { margin: 0 20px 20px 20px; background: var(--gradient-purple); border-radius: 20px; padding: 25px; color: white; box-shadow: 0 8px 25px rgba(109, 40, 217, 0.25); position: relative; overflow: hidden; }
.credit-btns { display: flex; gap: 10px; margin-top: 20px; }
.btn-credit { flex: 1; background: white; color: var(--primary-purple); border: none; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; display: flex; justify-content: center; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: 0.2s;}
.btn-credit:active { transform: scale(0.95); }
.btn-credit-outline { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.3); box-shadow: none; }
.addon-item { background: var(--card-bg); margin: 0 20px 15px 20px; border-radius: 16px; padding: 15px; display: flex; gap: 15px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: 0.3s; }
.addon-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(109, 40, 217, 0.2); }
.btn-unlock { background: var(--primary-purple); color: white; border: none; padding: 8px 20px; border-radius: 10px; font-weight: 600; font-size: 0.85rem; cursor: pointer; box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3); transition: 0.2s; }
.btn-unlock:active { transform: scale(0.95); }

/* --- 👤 PROFILE TAB --- */
.profile-header { background: var(--card-bg); padding: 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.profile-header-left { display: flex; align-items: center; gap: 15px; }
.profile-header .avatar-circle { width: 55px; height: 55px; border-radius: 50%; border: 2px solid var(--border-color); overflow: hidden; }
.more-btn { background: var(--bg-gray); border: none; width: 38px; height: 38px; border-radius: 12px; color: var(--text-light); cursor: pointer; transition: 0.2s; }
.more-btn:active { background: #E2E8F0; }

.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 20px; background: var(--bg-gray); }
.stat-box { background: var(--card-bg); padding: 18px; border-radius: 16px; border: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); transition: 0.3s; cursor: pointer; }
.stat-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

.premium-banner { background: linear-gradient(135deg, #F59E0B, #D97706); margin: 0 20px 20px 20px; padding: 25px 20px; border-radius: 16px; color: white; position: relative; overflow: hidden; box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3); }
@keyframes spin3D { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
.rotating-diamond { position: absolute; right: 20px; top: 50%; margin-top: -35px; font-size: 4.5rem; color: rgba(255, 255, 255, 0.9); animation: spin3D 4s linear infinite; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1)); }

.section-label { padding: 15px 20px 8px 20px; font-size: 0.75rem; font-weight: 800; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.menu-list { background: var(--card-bg); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin-bottom: 10px; }
.menu-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color); background: var(--card-bg); cursor:pointer; transition: all 0.2s ease;}
.menu-item:hover { background: #F8FAFC; padding-left: 25px; }
.menu-left { display: flex; align-items: center; gap: 15px; font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
.menu-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.menu-icon i { display: block !important; }

/* ================= BOTTOM NAVIGATION & FAB ================= */
.bottom-nav { 
    position: absolute; bottom: 0; left: 0; width: 100%; 
    background: var(--card-bg); border-top: 1px solid var(--border-color); 
    display: flex; justify-content: space-between; padding: 10px 15px 20px 15px; 
    z-index: 50; box-shadow: 0 -5px 20px rgba(0,0,0,0.04);
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #94A3B8; cursor: pointer; flex: 1; font-size: 0.7rem; font-weight: 700; transition: all 0.3s ease; }
.nav-item.active { color: var(--primary-purple); }
.nav-item i { font-size: 1.4rem; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.nav-item:hover i { transform: translateY(-3px); }
.nav-item.active i { transform: translateY(-4px); }

.fab-container { flex: 1; display: flex; justify-content: center; position: relative; }
.fab-btn { 
    width: 60px; height: 60px; background: var(--gradient-purple); 
    border-radius: 50%; border: 5px solid var(--bg-gray); color: white; 
    font-size: 1.8rem; position: absolute; top: -35px; 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.4); cursor: pointer; z-index: 60; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatingPulse 2.5s infinite ease-in-out;
}
.fab-btn:hover { transform: scale(1.08); box-shadow: 0 10px 25px rgba(109, 40, 217, 0.6); }
.fab-btn:active { transform: scale(0.9); }

@keyframes floatingPulse {
    0% { box-shadow: 0 8px 20px rgba(109, 40, 217, 0.4); }
    50% { box-shadow: 0 10px 30px rgba(109, 40, 217, 0.6), 0 0 15px rgba(109, 40, 217, 0.3); transform: translateY(-3px); }
    100% { box-shadow: 0 8px 20px rgba(109, 40, 217, 0.4); }
}

/* ================= BOTTOM SHEET MODALS ================= */
.modal-overlay { 
    display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); z-index: 100; 
    align-items: flex-end; justify-content: center; transition: opacity 0.3s;
}
.bottom-sheet { 
    background: var(--card-bg); width: 100%; border-radius: 28px 28px 0 0; 
    padding: 25px 20px; animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    max-height: 88vh; overflow-y: auto; box-shadow: 0 -15px 40px rgba(0,0,0,0.15); 
    color: var(--text-dark);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sheet-header { display: flex; justify-content: center; align-items: center; margin-bottom: 25px; position: relative; }
.sheet-header h3 { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); }
.sheet-header button { position: absolute; right: 0; background: var(--bg-gray); border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--text-light); cursor:pointer; transition: 0.2s; }
.sheet-header button:hover { background: #FEE2E2; color: #DC2626; transform: rotate(90deg); }

.create-list .create-item { display: flex; align-items: flex-start; gap: 15px; padding: 18px 15px; border-bottom: 1px solid var(--border-color); cursor: pointer; border-radius: 16px; transition: all 0.3s ease; }
.create-list .create-item:hover { background: var(--bg-gray); transform: translateX(8px); }
.create-list .create-item:active { transform: scale(0.98); }
.create-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; flex-shrink: 0; box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.create-text h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 5px; color: var(--text-dark); }
.create-text p { font-size: 0.85rem; color: var(--text-light); line-height: 1.4; font-weight: 500; }

.modal-submit-btn { width: 100%; padding: 16px; background: var(--primary-purple); color: white; border: none; border-radius: 14px; font-weight: 800; font-size: 1.05rem; cursor: pointer; box-shadow: 0 6px 20px rgba(109, 40, 217, 0.35); transition: 0.3s; margin-top: 15px; }
.modal-submit-btn:active { transform: scale(0.96); }

/* ======================================================== */
/* ⚙️ TASK SETTINGS PAGE (ULTIMATE UNIFIED FIX)              */
/* ======================================================== */

/* 📱 MOBILE FIRST: Full Screen Parda (Breaks out of 480px jail & hides bottom nav) */
#settings-panel-container, #settings-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background-color: #F8FAFC !important;
    z-index: 999999999 !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: none; /* JS will toggle this */
    border-radius: 0 !important;
    transform: none !important;
}

.app-settings-container {
    width: 100% !important;
    max-width: 100% !important;
    background-color: transparent !important;
    padding: 20px 15px 80px 15px !important; /* Bottom padding for scroll */
    box-sizing: border-box !important;
    min-height: 100vh !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Header & Buttons (Ask AI / Delete) */
.app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; gap: 10px; width: 100%; flex-wrap: nowrap; }
.app-header-title { font-size: 1.15rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; flex-grow: 1; color: var(--text-dark); display: flex; align-items: center; gap: 5px; }

/* 🟢 ASK AI BUTTON */
.ask-ai-btn {
    background: var(--gradient-purple) !important;
    color: white !important; border: none !important; padding: 6px 10px !important;
    border-radius: 20px !important; font-size: 0.75rem !important; font-weight: 700 !important;
    display: flex !important; align-items: center !important; gap: 5px !important; cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(109, 40, 217, 0.3) !important; transition: 0.2s; flex-shrink: 0;
}
.ask-ai-btn:active { transform: scale(0.95); }

/* 🟢 DELETE BUTTON */
.del-btn-top {
    background: linear-gradient(135deg, #FF416C, #FF4B2B) !important;
    color: white !important; border: none !important; padding: 6px 10px !important;
    border-radius: 10px !important; font-size: 1.1rem !important; cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.4) !important; display: flex; align-items: center; justify-content: center; transition: 0.2s; flex-shrink: 0;
}
.del-btn-top:active { transform: scale(0.95); }

/* White Box List */
.app-white-box { background: var(--card-bg); border-radius: 14px; padding: 0 15px; margin-bottom: 15px; box-shadow: var(--shadow-sm); width: 100%; border: 1px solid var(--border-color); box-sizing: border-box; }
.app-list-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px dashed var(--border-color); font-size: 0.9rem; }
.app-list-item:last-child { border-bottom: none; }
.item-label { font-weight: 600; color: var(--text-light); }
.item-value { font-weight: 700; text-align: right; color: var(--text-dark); }

/* Toggles */
.ios-toggle { position: relative; width: 44px; height: 24px; -webkit-appearance: none; background: #E5E7EB; border-radius: 24px; outline: none; cursor: pointer; transition: 0.3s; flex-shrink: 0; }
.ios-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.ios-toggle:checked { background: #10B981; }
.ios-toggle:checked::after { transform: translateX(20px); }

/* Big Buttons (Edit Source/Target) */
.edit-task-grid { display: flex; gap: 10px; margin-bottom: 15px; width: 100%; flex-direction: row !important; box-sizing: border-box; }
.app-btn { flex: 1; padding: 12px 5px; border-radius: 12px; border: none; color: white; font-weight: 700; font-size: 0.85rem; text-align: center; cursor: pointer; white-space: nowrap; transition: 0.2s; }
.app-btn:active { transform: scale(0.95); }
.btn-green { background: #10B981; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); }
.btn-red { background: #EF4444; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); }
.btn-blue { background: #3B82F6; width: 100%; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3); display: block !important; }

/* 🟢 SECTION TITLES (SMART SETTINGS, ETC - CENTERED) */
.section-title, .section-header-small { 
    font-size: 1.05rem; font-weight: 800; margin: 30px 0 15px 0; 
    text-align: center !important; width: 100%; display: block; 
    color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.5px; 
}

/* Feature Grid & Cards (STRICT 2 COLUMNS) */
.feature-grid, .feat-grid { 
    display: grid !important; 
    grid-template-columns: 1fr 1fr !important; /* Forces exactly 2 buttons per row */
    gap: 12px !important; 
    width: 100%; 
}
.feat-card { background: var(--card-bg); border-radius: 12px; padding: 12px; display: flex; align-items: center; border: 1px solid var(--border-color); position: relative; width: 100%; box-shadow: var(--shadow-sm); cursor: pointer; transition: 0.2s; }
.feat-card:active { transform: scale(0.96); background: #F8FAFC; }
.feat-card.locked { opacity: 0.65; background: #F1F5F9; pointer-events: none; }

.plan-badge, .badge { position: absolute; top: -6px; right: 8px; font-size: 0.5rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; color: white; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.badge-gold { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.badge-diamond { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.badge-platinum { background: linear-gradient(135deg, #C084FC, #7C3AED); }

.icon-box, .fc-icon { width: 32px; height: 32px; font-size: 1.1rem; display: flex; justify-content: center; align-items: center; border-radius: 8px; flex-shrink: 0; }
.feat-text, .fc-text { margin-left: 10px; overflow: hidden; flex-grow: 1; }
.feat-title, .fc-text h4 { font-size: 0.8rem; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; color: var(--text-dark); margin-bottom: 2px; }
.feat-sub, .fc-text p { font-size: 0.6rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

/* Paid Addon Banner */
.paid-addon-banner { background: linear-gradient(135deg, #FBBF24, #F59E0B); border-radius: 14px; padding: 15px; color: white; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; width: 100%; box-shadow: 0 6px 15px rgba(245, 158, 11, 0.3); box-sizing: border-box; }

/* 🟢 FORWARD CONTROLS (Green bottom boxes fixed) */
.feat-card-green {
    background: #ECFDF5 !important; border: 1px solid #A7F3D0 !important; border-radius: 14px !important;
    padding: 15px !important; display: flex !important; flex-direction: row !important; justify-content: space-between !important;
    align-items: center !important; width: 100% !important; margin-bottom: 12px !important; box-shadow: var(--shadow-sm); box-sizing: border-box !important;
}
.feat-card-green .feat-text { display: flex; flex-direction: column; align-items: flex-start; flex-grow: 1; margin-right: 10px; }
.feat-card-green .feat-title { font-size: 0.9rem; font-weight: 800; color: #065F46; margin-bottom: 2px; }
.feat-card-green .feat-sub { font-size: 0.7rem; color: #059669; font-weight: 600; text-transform: uppercase; }

/* Keep Popups on top */
#filter-modal, .filter-modal, .modal-overlay[id*="filter"] { z-index: 999999999 !important; }

/* ======================================================== */
/* 💻 LAPTOP / DESKTOP JAILBREAK (Center Align)             */
/* ======================================================== */
@media screen and (min-width: 768px) {
    #settings-panel-container, #settings-panel {
        background-color: #E5E7EB !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        padding: 40px 0 !important;
    }
    .app-settings-container {
        max-width: 700px !important; 
        background-color: #FFFFFF !important;
        margin: 0 auto !important; 
        border-radius: 20px !important;
        min-height: auto !important;
        border: 1px solid #D1D5DB !important;
        box-shadow: 0 10px 50px rgba(0,0,0,0.15) !important;
        padding: 30px 40px !important;
    }
    .app-header-title { max-width: 70%; font-size: 1.25rem !important; }
    .feature-grid, .feat-grid { gap: 15px !important; }
    .edit-task-grid { display: flex !important; gap: 15px !important; }
}
