

:root {
    --primary-grad: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    --secondary-grad: linear-gradient(135deg, #3cebd3 0%, #1ddbbd 100%);
    --success-grad: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    --danger-grad: linear-gradient(135deg, #e74a3b 0%, #c0392b 100%);
    --bg-color: #f8f9fc;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-border: #eef2f6;
    --font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
body {
    font-family: var(--font-family);
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo {
    width: 44px; height: 44px;
    background: var(--primary-grad);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.3);
    transition: transform 0.2s;
    cursor: pointer;
}
.logo:hover { transform: translateY(-2px); }
.brand-info h1 { font-size: 18px; font-weight: 700; color: var(--text-main); line-height: 1.2; margin: 0; }
.brand-info p { font-size: 11px; color: var(--text-muted); margin: 0; }
.header-center { display: flex; align-items: center; gap: 16px; }
.balance-badge {
    background: rgba(78, 115, 223, 0.08);
    color: #224abe;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(78, 115, 223, 0.1);
    transition: all 0.3s ease;
}
.balance-badge.updated {
    background: rgba(231, 74, 59, 0.1);
    color: #c0392b;
    border-color: rgba(231, 74, 59, 0.2);
}
.btn-cta {
    background: var(--primary-grad);
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.2);
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(78, 115, 223, 0.3); color: white; }
nav ul { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; }
nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
nav a:hover { color: #4e73df; background: rgba(78, 115, 223, 0.05); }
#notif-bell { position: relative; display: flex; align-items: center; justify-content: center; }
#notif-badge {
    position: absolute;
    top: -11px;
    right: -4px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    height: 16px;
    min-width: 16px;
    padding: 0 4px;
    border-radius: 50%;
    display: none; 
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.user-profile-trigger {
    width: 40px; height: 40px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; cursor: pointer;
    position: relative;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #e0e7ff;
    overflow: hidden;
}
.user-profile-trigger img { width: 100%; height: 100%; object-fit: cover; }
.dropdown-menu {
    position: absolute; top: 120%; right: 0;
    background: white; width: 240px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1060;
    padding: 8px 0;
}
.dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header {
    padding: 12px 16px; border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}
.dropdown-header h6 { margin: 0; font-size: 14px; color: var(--text-main); }
.dropdown-header small { color: var(--text-muted); font-size: 12px; display: block; }
.dropdown-item {
    padding: 10px 16px; color: var(--text-main); font-size: 14px;
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    transition: background 0.1s;
}
.dropdown-item:hover { background: #f1f5f9; }
.dropdown-item i { width: 16px; color: #64748b; }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 4px 0; }
main { flex: 1; width: 100%; max-width: 1200px; margin: 24px auto; padding: 0 18px; }
.hero {
    margin: 22px 0; padding: 28px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0, var(--glass-bg) 100%);
    box-shadow: var(--shadow-md);
    display: flex; gap: 20px; align-items: center; justify-content: space-between;
}
.hero .left h1 { margin: 0; font-size: 22px; color: var(--text-main); }
.hero .left p { color: var(--text-muted); margin: 8px 0 0; }
.search-container {
    background: #fff; padding: 12px; border-radius: 12px;
    box-shadow: var(--shadow-sm); min-width: 320px;
}
.search-title { font-weight: 700; text-align: center; }
.search { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.search input {
    padding: 10px 12px; border-radius: 12px; border: 2px solid #4e73df;
    min-width: 260px; text-align: center; outline: none; flex-grow: 1;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.search input:hover { border-color: #b3c0d1; background: #f5f7fa; }
.search input:focus { border-color: #409eff; background: #eef4fd; box-shadow: 0 0 5px rgba(64,158,255,0.5); }
.search button { 
    border-radius: 8px; padding: 10px 16px; font-weight: 600; 
    white-space: nowrap;
}
.search-popular { margin-top: 10px; color: var(--text-muted); font-size: 13px; text-align: center; }
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; margin-top: 18px; }
.sidebar {
    background: #fff; padding: 10px; border-radius: 12px;
    box-shadow: var(--shadow-sm); height: fit-content;
}
.category { font-weight: 700; margin: 6px 0 4px; color: #0f172a; }
.tool-list { list-style: none; padding: 0; margin: 0; }
.tool-list li {
    padding: 8px; border-radius: 8px; color: var(--text-muted);
    display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
    cursor: pointer; transition: all 0.3s;
}
.tool-list li:hover { background: rgba(78, 115, 223, 0.05); color: #4e73df; }
.pill {
    background: rgba(78, 115, 223, 0.08); color: #224abe;
    padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 12px;
}
.main-content { display: grid; gap: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
}
.section-header h2 { margin: 0; font-size: 20px; }
.tool-counter { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.card {
    background: #fff; 
    padding: 24px 20px; 
    border-radius: 16px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--card-border);
    min-height: 140px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-grad);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border-color: rgba(78, 115, 223, 0.2);
}
.card:hover::before { opacity: 1; }
.card h3 { margin: 0; font-size: 16px; color: var(--text-main); line-height: 1.4; font-weight: 700; }
.card p { margin: 8px 0 16px; color: var(--text-muted); font-size: 13px; line-height: 1.5; flex-grow: 1; }
.card-icon-wrapper {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.1), rgba(29, 219, 189, 0.05));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    transition: transform 0.3s;
}
.card:hover .card-icon-wrapper {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.15), rgba(29, 219, 189, 0.1));
}
.btn {
    padding: 10px 14px; border-radius: 10px; border: 0; cursor: pointer;
    font-weight: 600; transition: all 0.3s;
}
.btn-light { background-color: #e2e8f0; color: #333; border: 1px solid #cbd5e0; }
.btn-light:hover { background-color: #cbd5e0; }
.btn-tool {
    background: var(--primary-grad);
    color: #fff;
    border: none;
    width: 100%;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(78, 115, 223, 0.2);
}
.btn-tool:hover {
    color: #fff;
    background: linear-gradient(135deg, #3b6bdf 0%, #1a3a9e 100%);
    box-shadow: 0 6px 12px rgba(78, 115, 223, 0.3);
    transform: translateY(-2px);
}
footer {
    margin-top: auto; 
    background: #ffffff; 
    border-top: 1px solid var(--border-color); 
    padding: 40px 24px 24px;
    color: var(--text-main);
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}
.footer-col h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}
.footer-col p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}
.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.footer-links a:hover { color: #4e73df; text-decoration: underline; }
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-main); 
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}
.social-btn.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
    border: none; 
}
.social-btn.whatsapp { background: #25D366; color: white; }
.social-btn.facebook { background: #1877F2; color: white; }
.social-btn.imo { background: #1ddbbd; color: white; }
.social-btn.whatsapp:hover { transform: scale(1.1); }
.social-btn.facebook:hover { transform: scale(1.1); }
.social-btn.imo:hover { transform: scale(1.1); }

.social-btn.instagram:hover { transform: scale(1.1); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}
.footer-bottom a { color: var(--text-main); text-decoration: none; font-weight: 500; }
.footer-bottom a:hover { color: #4e73df; }
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; }
.toast {
    background: white; padding: 16px 20px; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-top: 10px;
    display: flex; align-items: center; gap: 12px;
    border-left: 4px solid #4e73df;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 350px;
}
.toast.success { border-left-color: #2ecc71; }
.toast.error { border-left-color: #e74a3b; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.profile-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); z-index: 2000;
    justify-content: center; align-items: center;
}
.profile-modal.active { display: flex; }
.profile-modal-content {
    background-color: white; padding: 2rem; border-radius: 15px;
    max-width: 500px; width: 90%; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease-out;
}
@keyframes modalFadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.profile-upload { position: relative; width: 120px; height: 120px; margin: 0 auto 20px; }
.profile-upload img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #4e73df; }
.profile-upload .upload-btn {
    position: absolute; bottom: 0; right: 0; background: #4e73df; color: white;
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.profile-form { display: flex; flex-direction: column; gap: 15px; }
.profile-form input, .profile-form textarea {
    padding: 12px 15px; border: 1px solid #ddd; border-radius: 10px;
    font-family: inherit; transition: all 0.3s;
}
.profile-form button {
    background: linear-gradient(135deg, #4e73df, #3cebd3); color: white;
    padding: 12px; border: none; cursor: pointer; border-radius: 10px; font-weight: 600;
}
.notification-toast {
    position: fixed; bottom: 20px; right: 20px; background: white; padding: 15px 20px;
    border-radius: 10px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
    transform: translateX(120%); transition: transform 0.3s ease; z-index: 2000;
}
.notification-toast.show { transform: translateX(0); }
.notification-toast.success { border-left: 4px solid #28a745; }
.notification-toast.error { border-left: 4px solid #e74a3b; }
.notification-toast.info { border-left: 4px solid #36b9cc; }
.notification-icon { font-size: 20px; }
.notification-toast.success .notification-icon { color: #28a745; }
.notification-toast.error .notification-icon { color: #e74a3b; }
.notification-toast.info .notification-icon { color: #36b9cc; }
@media (max-width: 992px) {
    .layout { 
        display: flex; 
        flex-direction: column; 
    }
    .sidebar { order: 2; }
    .main-content { order: 1; }
    header { padding: 0 16px; height: auto; flex-direction: column; gap: 15px; padding-bottom: 15px; }
    .header-center { width: 100%; justify-content: space-between; }
    nav ul { gap: 5px; font-size: 13px; flex-wrap: wrap; justify-content: center; }
    .hero { flex-direction: column; align-items: stretch; text-align: center; }
    .search-container { min-width: 100%; }
    .search { flex-direction: column; }
    .search input { width: 100%; }
    .search button { width: 100%; }
}
.hero .left h1 {
    color: #4e73df; 
}
.hero .left p {
    color: #334155; 
}
.footer-col h5 {
    color: #4e73df; 
}