/* ============================================================
   GOURISEN SMARTOFFICE - MODERN WIDGET DESIGN SYSTEM
   ============================================================ */

:root {
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --accent-1: #10B981; /* Emerald 500 */
    --accent-2: #34D399; /* Emerald 400 */
    
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -4px rgba(0, 0, 0, 0.12);
    
    --border-subtle: 1px solid rgba(0, 0, 0, 0.04);
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Remove default spinner arrows from all number inputs project-wide */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Remove default password reveal icons (Edge/IE) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

html { 
    scroll-behavior: smooth; 
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
}
body {
    font-family: 'Inter', 'Noto Sans Bengali', 'Noto Sans Devanagari', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow-x: clip;
}

/* GLOBAL CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8; 
}

/* NAVBAR */
.navbar {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1000px;
    background: rgba(255,255,255,0.8); backdrop-filter: blur(20px);
    border: var(--border-subtle); border-radius: 100px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 24px; z-index: 100;
    box-shadow: var(--shadow-soft);
}
.nav-logo-img { height: 32px; width: auto; object-fit: contain; }
.brand-text { font-size: 18px; letter-spacing: -0.02em; }

.logo-box {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white; width: 32px; height: 32px; border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.nav-links { display: flex; gap: 8px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--text-muted); padding: 8px 16px; border-radius: 100px; transition: all 0.2s ease; }
.nav-links a:hover { color: var(--text-main); background-color: rgba(0,0,0,0.04); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-secondary { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text-main); padding: 8px 16px; border-radius: 100px; transition: background 0.2s; }
.btn-secondary:hover { background: #F3F4F6; }
.mobile-menu-btn { display: none; }

/* UTILS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 80px; }
.text-gradient {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text; color: transparent;
}
.badge {
    display: inline-block; padding: 6px 14px; border-radius: 100px;
    background: #F3F4F6; color: var(--text-muted); font-size: 12px; font-weight: 600;
    letter-spacing: 0.05em; margin-bottom: 24px;
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--text-main); color: white;
    padding: 14px 28px; border-radius: 100px;
    font-weight: 600; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* HERO */
.hero { position: relative; padding: 180px 0 100px; min-height: 100vh; display: flex; flex-direction: column; align-items: center; overflow: hidden; width: 100%; max-width: 100%; }
.hero-bg-glow {
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: min(600px, 90vw); height: min(600px, 90vw); border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    z-index: -1; pointer-events: none;
}
.hero h1 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: 24px; }
.hero .subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }

/* WIDGET CLUSTER */
.widget-cluster {
    position: relative; width: 100%; max-width: 900px; height: 400px; margin-top: 60px;
}
.widget {
    position: absolute; background: var(--card-bg); border-radius: 20px;
    box-shadow: var(--shadow-hover); border: var(--border-subtle);
    padding: 20px; transition: transform 0.1s ease-out; text-align: left;
}
.widget-header { font-size: 13px; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.widget-crm { top: 20px; left: 10%; width: 260px; z-index: 2; }
.widget-task { top: 120px; right: 10%; width: 240px; z-index: 3; }
.widget-wallet { top: 200px; left: 30%; width: 280px; z-index: 1; }

/* Widget Internals */
.pipeline-bar { height: 8px; background: #F3F4F6; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.pipeline-bar .fill { height: 100%; background: var(--accent-1); border-radius: 4px; }
.pipeline-stats { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.positive { color: #10B981; }

.task-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 8px; border-radius: 8px; transition: background 0.2s; }
.interactive-task:hover { background: #F9FAFB; cursor: pointer; }
.interactive-task:hover .checkbox { border-color: var(--accent-1); }
.interactive-task:active .checkbox { transform: scale(0.9); }
.checkbox { width: 20px; height: 20px; border: 2px solid #E5E7EB; border-radius: 6px; display: flex; justify-content: center; align-items: center; font-size: 10px; color: white; transition: all 0.2s; }
.checkbox.checked { background: #10B981; border-color: #10B981; }
.task-line { height: 8px; width: 100px; background: #E5E7EB; border-radius: 4px; }
.task-line.short { width: 60px; }

.wallet-balance { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.wallet-graph { display: flex; align-items: flex-end; gap: 8px; height: 60px; }
.bar { width: 100%; background: #E5E7EB; border-radius: 4px 4px 0 0; transition: height 1s cubic-bezier(0.16, 1, 0.3, 1); }
.bar.h-1 { height: 30%; } .bar.h-2 { height: 50%; } .bar.h-3 { height: 70%; }
.bar.h-4 { height: 100%; background: var(--accent-2); }

/* MOBILE NAV OVERLAY */
.mobile-nav-overlay { 
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100vh; height: 100dvh;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px);
    z-index: 1000; display: none; flex-direction: column; 
    padding: 30px 24px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active { 
    display: flex;
    opacity: 1;
}
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav-header button { background: #F8FAFC; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; color: var(--text-main); cursor: pointer; display: flex; justify-content: center; align-items: center; transition: background 0.2s; }
.mobile-nav-header button:active { background: #E2E8F0; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 0; }
.mobile-nav-links a.nav-link { 
    font-size: 24px; font-weight: 600; text-decoration: none; color: var(--text-main); 
    padding: 24px 0; border-bottom: 1px solid rgba(0,0,0,0.06); background: transparent; 
    display: flex; align-items: center; justify-content: space-between;
    transition: opacity 0.2s;
}
.mobile-nav-links a.nav-link:active { opacity: 0.6; }
.mobile-nav-links a.nav-link i { font-size: 18px; color: var(--text-main); opacity: 0.2; transition: transform 0.2s, opacity 0.2s; }
.mobile-nav-links a.nav-link:active i { transform: translateX(6px); opacity: 0.6; }
body.no-scroll { overflow: hidden; }

/* BENTO GRID */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 100px; }
.col-span-2 { grid-column: span 2; }
.col-span-1 { grid-column: span 1; }

.bento-card {
    background: var(--card-bg); border-radius: var(--radius-xl); border: var(--border-subtle);
    padding: 40px; box-shadow: var(--shadow-soft); overflow: hidden; position: relative;
    display: flex; flex-direction: column; justify-content: space-between; min-height: 350px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.bento-card:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-hover);
}
.bento-icon {
    width: 48px; height: 48px; background: #F3F4F6; border-radius: 12px;
    display: flex; justify-content: center; align-items: center; font-size: 20px;
    color: var(--text-main); margin-bottom: 20px; transition: background 0.3s, color 0.3s;
}
.bento-card:hover .bento-icon { background: var(--accent-1); color: white; }
.bento-content h3 { font-size: 24px; margin-bottom: 12px; letter-spacing: -0.02em; }
.bento-content p { color: var(--text-muted); font-size: 15px; max-width: 280px; }

/* Bento Visuals */
.bento-visual { position: absolute; bottom: 0; right: 0; width: 60%; height: 60%; display: flex; justify-content: flex-end; align-items: flex-end; padding: 20px; pointer-events: none; }
.kanban-board { display: flex; gap: 12px; transform: rotate(-5deg) translateY(20px); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.bento-card:hover .kanban-board { transform: rotate(0) translateY(0); }
.kanban-col { background: #F3F4F6; padding: 12px; border-radius: 12px; width: 100px; display: flex; flex-direction: column; gap: 8px; }
.k-card { height: 40px; background: white; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.shadow-card { opacity: 0.5; border: 2px dashed #CBD5E1; box-shadow: none; background: transparent; }

.scanner { width: 120px; height: 120px; background: #F3F4F6; border-radius: 20px; display: flex; justify-content: center; align-items: center; font-size: 40px; color: #CBD5E1; position: relative; overflow: hidden; transform: translateX(20px); transition: transform 0.5s; }
.bento-card:hover .scanner { transform: translateX(0); }
.scan-line { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: scan 2s infinite ease-in-out; opacity: 0; }
.bento-card:hover .scan-line { opacity: 1; }
@keyframes scan { 0% { top: 10%; } 50% { top: 90%; } 100% { top: 10%; } }

.ticket { width: 140px; height: 80px; background: #F3F4F6; border-radius: 12px; position: relative; padding: 16px; transform: translateY(30px); transition: transform 0.5s; }
.bento-card:hover .ticket { transform: translateY(0) rotate(-5deg); }
.t-hole { position: absolute; width: 16px; height: 16px; background: white; border-radius: 50%; left: -8px; }
.t-hole.top { top: 16px; } .t-hole.bot { bottom: 16px; }
.t-line { height: 6px; width: 80%; background: #E5E7EB; border-radius: 4px; margin-bottom: 8px; }
.t-line.short { width: 50%; }

.avatars { display: flex; transform: translateX(20px); transition: transform 0.5s; }
.bento-card:hover .avatars { transform: translateX(0); }
.avatar { width: 48px; height: 48px; border-radius: 50%; border: 4px solid white; margin-left: -16px; background-size: cover; background-position: center; }
.avatar.a1 { background-color: #FCA5A5; z-index: 3; }
.avatar.a2 { background-color: #FCD34D; z-index: 2; }
.avatar.a3 { background-color: #6EE7B7; z-index: 1; }
.avatar.a-join { background-color: #F3F4F6; display: flex; justify-content: center; align-items: center; color: var(--text-muted); font-weight: 800; z-index: 0; }

/* CTA BANNER */
.cta-banner {
    position: relative; background: var(--text-main); color: white;
    border-radius: var(--radius-xl); padding: 80px 40px; text-align: center;
    overflow: hidden;
}
.cta-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%; background: radial-gradient(circle, rgba(79, 70, 229, 0.4) 0%, transparent 60%);
    pointer-events: none;
}
.cta-banner h2 { font-size: 40px; margin-bottom: 16px; position: relative; z-index: 1; letter-spacing: -0.04em; font-weight: 800; }
.cta-banner p { color: #9CA3AF; margin-bottom: 32px; font-size: 18px; position: relative; z-index: 1; }
.cta-banner .btn-primary { background: white; color: var(--text-main); position: relative; z-index: 1; transition: transform 0.2s; }
.cta-banner .btn-primary:hover { transform: translateY(-3px) scale(1.02); }

/* SECTION HEADINGS */
.section-header { margin-bottom: 60px; }
.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.18;
    color: var(--text-main);
}
.title-line {
    display: block;
}

/* FOOTER */
.footer { padding: 48px 0; border-top: 1px solid rgba(0,0,0,0.05); color: var(--text-muted); font-size: 14px; }
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-1) !important; }

/* ============================================================
   LOGIN PAGE & TOP BAR NAVIGATION
   ============================================================ */
.login-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    z-index: 100;
    pointer-events: none;
    box-sizing: border-box;
}
.login-top-bar > * {
    pointer-events: auto;
}
.login-nav-btn {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid #E2E8F0;
    padding: 7px 15px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-nav-btn:hover {
    background: #FFFFFF;
    color: #0F172A;
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -3px rgba(15, 23, 42, 0.08);
}
.login-nav-btn:active {
    transform: translateY(0);
}
.login-nav-btn i.btn-icon {
    font-size: 12px;
    color: var(--accent-1);
}
.login-nav-btn .chevron {
    font-size: 9px;
    color: #94A3B8;
    margin-left: 2px;
    transition: transform 0.2s;
}
.login-nav-dropdown-wrapper {
    position: relative;
}
.login-nav-dropdown-wrapper.open .chevron {
    transform: rotate(180deg);
}
.login-nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 13.5px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}
.login-nav-icon-btn:hover {
    background: #FFFFFF;
    color: var(--accent-1);
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -3px rgba(15, 23, 42, 0.08);
}
.login-nav-icon-btn:active {
    transform: translateY(0);
}
.login-nav-dropdown-wrapper.open .login-nav-icon-btn {
    background: #FFFFFF;
    color: var(--accent-1);
    border-color: var(--accent-1);
}

/* PORTAL DROPDOWN MENU */
.login-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #FFFFFF;
    width: 280px;
    max-width: 90vw;
    border-radius: 20px;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    padding: 10px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}
.login-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.login-dropdown-menu .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px 12px 12px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 6px;
    font-size: 14px;
}
.login-dropdown-menu .menu-header button {
    background: #F8FAFC;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #64748B;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.login-dropdown-menu .menu-header button:hover {
    background: #E2E8F0;
    color: var(--text-main);
}
.menu-group-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 12px 4px;
}
.login-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    text-decoration: none;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.15s ease;
}
.login-dropdown-menu a i {
    width: 18px;
    text-align: center;
    color: #94A3B8;
    font-size: 14px;
    transition: color 0.15s;
}
.login-dropdown-menu a:hover {
    background: #F8FAFC;
    color: var(--accent-1);
}
.login-dropdown-menu a:hover i {
    color: var(--accent-1);
}
.login-dropdown-menu a.danger-link:hover {
    background: #FEF2F2;
    color: #EF4444;
}
.login-dropdown-menu a.danger-link:hover i {
    color: #EF4444;
}
.menu-divider {
    height: 1px;
    background: #F1F5F9;
    margin: 6px 0;
}

/* ============================================================
   LOGIN PAGE CORE
   ============================================================ */
.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 84px 20px 40px 20px;
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    overflow-x: clip;
}
.login-glow {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(650px, 90vw);
    height: min(650px, 90vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}
.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    margin: 0 auto;
}
.login-card {
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.login-card.p-premium {
    padding: 38px 36px 36px 36px;
}

/* CUSTOM BRAND LOGO - POLISHED & 100% RESPONSIVE */
.custom-brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}
.brand-icon-img {
    height: 54px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.brand-divider {
    width: 1.5px;
    height: 46px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.3), rgba(148, 163, 184, 0.8), rgba(148, 163, 184, 0.3));
    border-radius: 2px;
    flex-shrink: 0;
}
.brand-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}
.brand-title {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.brand-subtitle {
    font-size: 22px;
    font-weight: 900;
    color: var(--accent-1);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-top: 2px;
}
.brand-tagline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    width: 100%;
}
.brand-tagline .tag-line {
    height: 1.5px;
    width: 14px;
    background-color: var(--accent-1);
    border-radius: 2px;
    flex-shrink: 0;
}
.brand-tagline .tag-text {
    font-size: 8px;
    font-weight: 800;
    color: #64748B;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* LOGIN HEADER & INSTANT SETUP CHIP */
.login-header {
    margin-bottom: 22px;
}
.login-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0F172A;
    margin-bottom: 6px;
}
.login-subtitle {
    color: #64748B;
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 2px;
    font-weight: 450;
}
.instant-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: pulseDot 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes pulseDot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 4.5px rgba(16, 185, 129, 0);
        transform: scale(1.1);
    }
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon-wrapper .icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    font-size: 14px;
    pointer-events: none;
}
.input-icon-wrapper:focus-within .icon-left {
    color: var(--accent-1);
}
.form-input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    outline: none;
    background: #F8FAFC;
    color: var(--text-main);
    box-sizing: border-box;
}
textarea.form-input {
    height: auto !important;
    min-height: 120px;
    resize: vertical;
    padding-top: 14px;
    padding-bottom: 14px;
}
.form-input::placeholder {
    color: #94A3B8;
}
.form-input.with-icon {
    padding-left: 42px;
}
.form-input.pr-icon {
    padding-right: 44px;
}
.form-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.14);
    background: #FFFFFF;
}
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
    transition: color 0.2s, background-color 0.2s;
    padding: 0;
    outline: none;
}
.password-toggle:hover {
    color: #0F172A;
    background: #F1F5F9;
}
.forgot-link {
    font-size: 12.5px;
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.forgot-link:hover {
    color: #059669;
    text-decoration: underline;
}
.btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    height: 48px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    text-decoration: none;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.35);
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -5px rgba(16, 185, 129, 0.45);
}
.btn-gradient:active {
    transform: translateY(0);
}
.login-footer-info {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #94A3B8;
}
.login-footer-info a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
/* ============================================================
   INFO & CONTENT PAGES (ABOUT, PRIVACY, TERMS, DELETE ACCOUNT)
   ============================================================ */
.content-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding: 86px 20px 60px 20px;
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    overflow-x: clip;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}
.content-container {
    width: 100%;
    max-width: 760px;
    position: relative;
    z-index: 10;
    margin: 0 auto;
}
.content-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 44px 40px;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%;
}
.content-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0F172A;
    margin-bottom: 8px;
    text-align: center;
}
.content-divider {
    width: 48px;
    height: 3.5px;
    background: var(--accent-1);
    margin: 14px auto 26px auto;
    border-radius: 4px;
}
.content-divider.danger {
    background: #EF4444;
}
.content-body {
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}
.content-body p {
    margin-bottom: 18px;
}
.content-body p:last-child {
    margin-bottom: 0;
}
.content-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.content-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    color: #334155;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 12px 16px;
    border-radius: 14px;
    line-height: 1.5;
}
.content-list li i {
    color: var(--accent-1);
    font-size: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}
.content-actions {
    margin-top: 36px;
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.content-actions .btn-gradient,
.content-actions .btn-outline {
    min-width: 180px;
    width: auto;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFFFFF;
    color: #334155;
    border: 1.5px solid #E2E8F0;
    height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    box-sizing: border-box;
}
.btn-outline:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #CBD5E1;
    transform: translateY(-1px);
}
.delete-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #FEF2F2;
    color: #EF4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 18px auto;
    border: 1px solid #FECACA;
}

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.in-view,
.dashboard-body.fade-up { opacity: 1 !important; transform: translateY(0) !important; }
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
    .container { padding: 0 20px; }
    .mb-5 { margin-bottom: 50px; }
    .section-header { margin-bottom: 36px; }

    /* Navbar */
    .navbar {
        width: auto !important;
        left: 16px !important;
        right: 16px !important;
        transform: none !important;
        max-width: none !important;
        top: 14px;
        padding: 10px 18px;
        border-radius: 100px;
    }
    .nav-links { display: none; }
    .btn-secondary { display: none; }
    .mobile-menu-btn { 
        display: flex; 
        align-items: center; 
        justify-content: center;
        background: none; 
        border: none; 
        font-size: 22px; 
        color: var(--text-main); 
        cursor: pointer;
        padding: 4px;
    }
    .brand-text { font-size: 17px; }
    .nav-logo-img { height: 28px; }

    /* Hero */
    .hero { 
        padding: 110px 0 40px; 
        min-height: auto; 
    }
    .hero .fade-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hero .badge {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 18px;
        letter-spacing: 0.05em;
    }
    .hero h1 { 
        font-size: clamp(2.1rem, 7.5vw, 2.75rem); 
        line-height: 1.12;
        letter-spacing: -0.035em;
        margin-bottom: 16px;
    }
    .hero .subtitle { 
        font-size: 0.95rem; 
        line-height: 1.55; 
        padding: 0 8px; 
        max-width: 480px;
        margin-bottom: 28px;
    }
    .hero-actions .btn-primary {
        padding: 14px 28px;
        font-size: 15px;
        border-radius: 100px;
    }
    
    /* Widget Cluster on Mobile */
    .widget-cluster { 
        height: auto; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        gap: 16px; 
        margin-top: 36px; 
        width: 100%;
        max-width: 100%;
        padding: 0 4px;
    }
    .widget { 
        position: relative !important; 
        top: auto !important; 
        left: auto !important; 
        right: auto !important; 
        width: 100% !important; 
        max-width: 360px !important; 
        transform: none !important; 
        padding: 20px;
        border-radius: 18px;
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 8px 24px -4px rgba(0,0,0,0.06);
    }
    .widget-header {
        font-size: 13px;
        margin-bottom: 12px;
    }
    .wallet-balance {
        font-size: 26px;
        margin-bottom: 12px;
    }

    /* Section Title on Mobile */
    .section-title {
        font-size: clamp(1.5rem, 5.5vw, 2.25rem);
        line-height: 1.22;
        letter-spacing: -0.03em;
        padding: 0 4px;
    }
    .title-line {
        display: block;
        white-space: nowrap;
    }
    
    /* Bento Grid on Mobile */
    .bento-grid { 
        grid-template-columns: 1fr; 
        gap: 18px; 
        margin-bottom: 60px; 
    }
    .col-span-2, .col-span-1 { 
        grid-column: span 1; 
    }
    .bento-card { 
        padding: 28px 22px; 
        min-height: auto; 
        border-radius: 24px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .bento-icon {
        margin-bottom: 14px;
    }
    .bento-content {
        position: relative;
        z-index: 2;
    }
    .bento-content h3 {
        font-size: 21px;
        margin-bottom: 8px;
    }
    .bento-content p { 
        font-size: 14.5px;
        line-height: 1.5;
        max-width: 100%; 
    }
    
    /* Bento Visuals: in flow and centered on mobile instead of overlapping */
    .bento-visual { 
        position: relative !important; 
        bottom: auto !important; 
        right: auto !important; 
        width: 100% !important; 
        height: auto !important; 
        min-height: 110px;
        opacity: 1; 
        z-index: 1; 
        padding: 10px 0 0 0 !important; 
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .kanban-board { 
        transform: none !important; 
        justify-content: center;
    }
    .scanner { 
        transform: none !important; 
        margin: 0 auto;
    }
    .scan-line {
        opacity: 0.8 !important;
        animation: scan 2s infinite ease-in-out;
    }
    .ticket { 
        transform: none !important; 
        margin: 0 auto;
    }
    .avatars { 
        transform: none !important; 
        justify-content: center;
        margin: 0 auto;
    }
    
    /* CTA Banner on Mobile */
    .cta-banner { 
        padding: 44px 20px; 
        border-radius: 24px;
        margin-bottom: 40px;
    }
    .cta-banner h2 { 
        font-size: clamp(1.6rem, 5.5vw, 2.2rem); 
        line-height: 1.2;
        margin-bottom: 12px;
    }
    .cta-banner p { 
        font-size: 14.5px;
        margin-bottom: 24px;
    }
    .cta-banner .btn-primary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 24px;
    }

    /* Footer on Mobile */
    .footer {
        padding: 32px 16px;
    }
    .footer-links {
        gap: 12px 18px !important;
        margin-bottom: 20px !important;
    }
    .footer-links a {
        font-size: 13px !important;
    }
    .footer p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .navbar { left: 12px !important; right: 12px !important; top: 10px; padding: 8px 14px; }
    .brand-text { font-size: 15px; }
    .nav-logo-img { height: 26px; }
    .hero { padding: 92px 0 32px; }
    .hero h1 { font-size: clamp(1.85rem, 8vw, 2.2rem); }
    .hero .subtitle { font-size: 0.92rem; margin-bottom: 24px; padding: 0 4px; }
    .widget-cluster { gap: 14px; margin-top: 28px; }
    .widget { max-width: 100% !important; padding: 16px 18px; }
    .section-title { font-size: clamp(1.3rem, 5.5vw, 1.65rem); }
    .title-line { display: block; white-space: nowrap; }
    .bento-card { padding: 22px 18px; border-radius: 20px; }
    .cta-banner { padding: 36px 16px; border-radius: 20px; }

    /* Login Page on Mobile */
    .login-page { padding: 74px 14px 28px 14px; }
    .login-top-bar { padding: 12px 14px; }
    .login-nav-btn { padding: 6px 12px; font-size: 12px; gap: 6px; }
    .login-nav-icon-btn { width: 35px; height: 35px; font-size: 12.5px; }
    .login-card.p-premium { padding: 28px 18px 24px 18px; border-radius: 22px; }
    .custom-brand-logo { gap: 12px; margin-bottom: 18px; }
    .brand-icon-img { height: 46px; }
    .brand-divider { height: 38px; }
    .brand-title { font-size: 19px; }
    .brand-subtitle { font-size: 19px; }
    .brand-tagline .tag-text { font-size: 7px; letter-spacing: 0.08em; }
    .brand-tagline .tag-line { width: 10px; }
    .login-title { font-size: 22px; }
    .instant-account-chip { font-size: 11px; padding: 5px 11px; gap: 6px; }
    .form-group { margin-bottom: 16px; }
    .form-input { height: 46px; font-size: 14px; }
    .btn-gradient { height: 46px; font-size: 14.5px; }

    /* Content Pages on Mobile */
    .content-page { padding: 72px 14px 40px 14px; }
    .content-card { padding: 26px 18px; border-radius: 22px; }
    .content-title { font-size: 24px; }
    .content-body { font-size: 14px; line-height: 1.65; }
    .content-list li { padding: 10px 14px; font-size: 13.5px; }
    .content-actions { flex-direction: column-reverse; width: 100%; gap: 10px; }
    .content-actions .btn-gradient,
    .content-actions .btn-outline { width: 100% !important; min-width: 0 !important; height: 46px; font-size: 14px; }
}

@media (max-width: 375px) {
    .container { padding: 0 12px; }
    .navbar { left: 8px !important; right: 8px !important; padding: 8px 12px; }
    .brand-text { font-size: 14px; }
    .section-title { font-size: clamp(1.15rem, 5.2vw, 1.35rem); }
    .title-line { display: block; white-space: nowrap; }

    /* Ultra-compact login on small devices */
    .login-card.p-premium { padding: 24px 14px 20px 14px; }
    .content-card { padding: 22px 14px; }
    .content-title { font-size: 22px; }
    .brand-icon-img { height: 40px; }
    .brand-divider { height: 34px; }
    .brand-title { font-size: 17px; }
    .brand-subtitle { font-size: 17px; }
    .brand-tagline .tag-text { font-size: 6.5px; }
}

/* ============================================================
   PREMIUM SIDEBAR APP SHELL LAYOUT
   ============================================================ */
.app-container { display: flex; min-height: 100vh; background-color: var(--bg-color); }
.sidebar {
    width: 280px; background: white; border-right: 1px solid rgba(0,0,0,0.04);
    display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh;
    z-index: 50; transition: transform 0.3s ease;
}
.sidebar-header { padding: 32px 24px 24px; display: flex; align-items: center; gap: 12px; }
.sidebar-logo { height: 32px; width: auto; }
.sidebar-brand { 
    font-size: 20px; font-weight: 800; letter-spacing: -0.02em; 
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.sidebar-nav {
    padding: 8px 16px 24px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}
.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 6px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #CBD5E1;
}

.nav-category { margin-bottom: 8px; }
.category-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; cursor: pointer; border-radius: 12px;
    font-size: 12px; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: 0.08em;
    transition: all 0.2s ease;
}
.category-header .menu-icon {
    width: 28px; color: #94A3B8; text-align: left; font-size: 16px; transition: color 0.2s;
}
.category-header .chevron {
    font-size: 12px; color: #CBD5E1; transition: transform 0.3s ease, color 0.2s;
}
.category-header:hover { background: rgba(16, 185, 129, 0.05); color: var(--text-main); }
.category-header:hover .menu-icon { color: var(--accent-1); }
.category-header:hover .chevron { color: #94A3B8; }
.category-header.open { color: var(--accent-1); }
.category-header.open .menu-icon { color: var(--accent-1); }
.category-header.open .chevron { transform: rotate(180deg); color: var(--accent-1); }

.nav-category.open > .category-header { color: var(--accent-1); }
.nav-category.open > .category-header .menu-icon { color: var(--accent-1); }
.nav-category.open > .category-header .chevron { transform: rotate(180deg); color: var(--accent-1); }

.category-links {
    max-height: 0; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0;
    display: flex; flex-direction: column; gap: 4px; 
    margin-left: 28px; padding-left: 16px; border-left: 1px solid #E2E8F0;
}
.nav-category.open .category-links { max-height: 2500px; opacity: 1; margin-top: 8px; margin-bottom: 12px; }

.sidebar-link {
    padding: 10px 14px; font-size: 14px; font-weight: 500; border-radius: 10px;
    color: #475569; text-decoration: none; display: block;
    transition: all 0.2s ease; position: relative;
    white-space: nowrap;
}
.sidebar-link:hover { 
    color: var(--text-main); background: #F1F5F9; transform: translateX(4px);
}
.sidebar-link.active { 
    color: #059669; background: rgba(16, 185, 129, 0.1); font-weight: 600;
}
.sidebar-link.active:hover {
    color: #047857; background: rgba(16, 185, 129, 0.14);
}
.sidebar-link.active::before {
    content: ''; position: absolute; left: -17px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 16px; background: #10B981; border-radius: 4px;
}

.sidebar-footer { padding: 24px; border-top: 1px solid rgba(0,0,0,0.04); }
.logout-link {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
    color: #EF4444; font-weight: 600; text-decoration: none; font-size: 14px; transition: all 0.2s;
}
.logout-link:hover { background: #FEF2F2; transform: translateY(-2px); }

/* Main Content Area */
.main-content { flex: 1; margin-left: 280px; display: flex; flex-direction: column; min-height: 100vh; min-width: 0; max-width: 100%; box-sizing: border-box; }
.top-header {
    height: 80px; background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex; justify-content: flex-end; align-items: center; padding: 0 40px; 
    position: sticky; top: 0; z-index: 99;
    width: 100%; box-sizing: border-box; backdrop-filter: blur(10px);
}
.header-profile { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.header-profile .name { display: block; font-weight: 600; font-size: 14px; color: var(--text-main); }
.header-profile .pic { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: white; display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 16px; }

/* --- PREMIUM WELCOME HERO --- */
@keyframes floatUp { 0% { transform: translateY(15px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes floatGentle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.smart-welcome-hero {
    background: #ffffff;
    border-radius: 26px;
    padding: 32px 40px;
    margin: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    border: none;
    animation: floatUp 0.6s ease-out forwards;
}

/* Background Decorative Shapes */
.smart-welcome-hero::before {
    content: ''; position: absolute; top: -60px; right: 10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.04) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.smart-welcome-hero::after {
    content: ''; position: absolute; bottom: -100px; left: 20%; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}

/* Left: Avatar + Text */
.smart-welcome-content {
    display: flex; align-items: center; gap: 24px; z-index: 1; position: relative;
}
.smart-welcome-avatar {
    width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white; font-size: 24px; font-weight: 700;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.25);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.smart-welcome-avatar:hover { transform: scale(1.08); }
.smart-welcome-text h1 {
    font-size: 32px; font-weight: 800; color: #0f172a;
    margin-bottom: 6px; letter-spacing: -0.01em;
}
.smart-welcome-text p {
    font-size: 15px; color: #64748b; line-height: 1.5; font-weight: 500;
}

/* Right Group (Date + Visual) */
.smart-welcome-right {
    display: flex; align-items: center; gap: 40px; z-index: 1; position: relative;
}

/* Middle: Date */
.smart-welcome-date {
    display: flex; align-items: center; gap: 16px;
    background: #ffffff;
    padding: 16px 24px; border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
}
.date-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(79, 70, 229, 0.08); color: var(--accent-1);
    display: flex; justify-content: center; align-items: center; font-size: 18px;
}
.date-info { display: flex; flex-direction: column; }
.date-day { font-size: 13px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.date-full { font-size: 16px; font-weight: 800; color: #0f172a; }

/* Right: Visual Illustration */
.smart-welcome-visual {
    animation: floatGentle 4s ease-in-out infinite;
}
.floating-analytics-card {
    background: white; border-radius: 16px; padding: 16px;
    width: 130px; height: 95px;
    box-shadow: 0 12px 24px -8px rgba(79, 70, 229, 0.15);
    position: relative; border: 1px solid rgba(0,0,0,0.03);
    display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
}
.chart-line { position: absolute; top: 12px; left: 16px; right: 16px; height: 30px; }
.chart-bars { display: flex; align-items: flex-end; justify-content: space-between; height: 32px; gap: 6px; }
.chart-bars span { width: 100%; background: var(--accent-1); border-radius: 4px 4px 0 0; opacity: 0.9; }
.chart-bars span:nth-child(2) { background: var(--accent-2); }
.chart-bars span:nth-child(4) { background: #38bdf8; }
.success-badge {
    position: absolute; top: -10px; right: -10px; width: 26px; height: 26px;
    background: var(--accent-2); color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 11px;
    box-shadow: 0 4px 8px rgba(6, 182, 212, 0.3); border: 2px solid white;
}

.dashboard-body { padding: 0 40px 40px 40px; flex: 1; position: relative; z-index: 10; }

/* Desktop Defaults (Hidden on Desktop) */
.mobile-header-logo { display: none; }
.mobile-bottom-nav { display: none; }
.mobile-sidebar-btn { display: none; background: none; border: none; font-size: 20px; color: var(--text-main); cursor: pointer; }
.mobile-sidebar-close { display: none; }

@media (max-width: 1024px) {
    .app-container {
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        box-sizing: border-box;
        position: relative;
    }
    .sidebar {
        transform: translateX(-100%);
        padding-bottom: 64px;
        z-index: 2000;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.2);
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        height: 100%;
        max-height: 100dvh;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .sidebar-backdrop.active {
        display: block;
        opacity: 1;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        box-sizing: border-box;
        padding-bottom: 96px;
    }
    .top-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        min-height: 64px;
        height: auto;
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        box-sizing: border-box;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 100;
        align-self: flex-start;
        background: #FFFFFF;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .header-profile {
        margin-right: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        text-decoration: none;
    }
    .header-profile .name {
        display: none;
    }
    .header-profile .pic {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 2px solid #FFFFFF;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    }
    .header-profile .pic img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
    }
    
    .mobile-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #F1F5F9;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 16px;
        color: #64748B;
        cursor: pointer;
        margin-left: auto;
        transition: all 0.2s;
    }
    .mobile-sidebar-close:active {
        background: #E2E8F0;
    }
    
    /* Tablet Hero */
    .smart-welcome-hero {
        margin: 16px 12px;
        padding: 20px 16px;
        border-radius: 20px;
        gap: 16px;
    }
    .smart-welcome-right {
        gap: 16px;
    }
    .floating-analytics-card {
        transform: scale(0.85);
        transform-origin: right center;
    }
    
    .dashboard-body {
        padding: 16px 12px calc(90px + env(safe-area-inset-bottom, 16px)) 12px;
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        box-sizing: border-box;
    }
    
    /* Mobile Top Header Logo */
    .mobile-header-logo {
        display: flex !important;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        flex-shrink: 0;
    }
    .mobile-header-logo img {
        height: 26px;
        width: auto;
    }
    .mobile-header-logo span {
        font-size: 18px;
        font-weight: 800;
        color: var(--text-main);
        letter-spacing: -0.02em;
    }
    
    /* Mobile Bottom Navigation — Ultra-Modern SaaS Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-top: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04), 0 -1px 3px rgba(0, 0, 0, 0.02);
        height: 64px;
        padding: 0 10px calc(4px + env(safe-area-inset-bottom, 0px)) 10px;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-sizing: border-box;
    }
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #94A3B8;
        font-size: 10.5px;
        font-weight: 600;
        gap: 3px;
        min-width: 54px;
        padding: 5px 6px;
        border-radius: 12px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        background: transparent;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-nav-item i {
        font-size: 18px;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
    }
    .mobile-nav-item span {
        letter-spacing: -0.2px;
        font-size: 10.5px;
    }
    .mobile-nav-item:active i {
        transform: scale(0.9);
    }
    .mobile-nav-item.active {
        color: #059669;
        font-weight: 700;
    }
    .mobile-nav-item.active i {
        color: #10B981;
        transform: translateY(-1px) scale(1.06);
    }
    
    .mobile-nav-item.add-lead-btn {
        position: relative;
        top: -14px;
        padding: 0;
        min-width: auto;
    }
    .mobile-nav-item.add-lead-btn .add-icon-wrapper {
        width: 52px;
        height: 52px;
        background: linear-gradient(135deg, #10B981 0%, #059669 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
        box-shadow: 0 8px 24px -2px rgba(16, 185, 129, 0.45), 0 2px 6px rgba(16, 185, 129, 0.25);
        border: 3.5px solid #FFFFFF;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    }
    .mobile-nav-item.add-lead-btn:active .add-icon-wrapper {
        transform: scale(0.92);
        box-shadow: 0 4px 12px -1px rgba(16, 185, 129, 0.35);
    }
}

@media (max-width: 850px) {
    .smart-welcome-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .smart-welcome-right {
        width: 100%;
        justify-content: space-between;
        gap: 16px;
    }
    .smart-welcome-content {
        gap: 16px;
    }
    .smart-welcome-avatar {
        width: 52px;
        height: 52px;
        font-size: 18px;
    }
    .smart-welcome-text h1 {
        font-size: 22px;
    }
    .smart-welcome-date {
        width: 100%;
        justify-content: flex-start;
    }
    .floating-analytics-card {
        transform: scale(1);
        transform-origin: left center;
    }
}

/* Modern File Input Styling */
.modern-file-upload {
    position: relative;
    width: 100%;
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    background-color: #F8FAFC;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}
.modern-file-upload:hover {
    border-color: #10B981;
    background-color: #F0FDF4;
}
.modern-file-upload input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.modern-file-upload-icon {
    font-size: 24px;
    color: #10B981;
    margin-bottom: 8px;
}
.modern-file-upload-text {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

/* ============================================================
   GLOBAL SCROLL LOCKING WHEN ALERTS/NAVBAR ARE OPEN
   ============================================================ */
html.no-scroll,
body.no-scroll,
html.sidebar-open,
body.sidebar-open,
html.modal-open,
body.modal-open,
html.swal2-shown,
body.swal2-shown {
    overflow: hidden !important;
}