/* Main Application Styles for index.html */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
        @import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;700&display=swap');

        /* =========================================
           CSS Variables
           ========================================= */
        :root {
            --body-color: #1a1625;
            --sidebar-color: rgba(30, 25, 45, 0.65);
            --primary-color: #ff8fb3;
            --primary-color-light: rgba(255, 143, 179, 0.15);
            --text-color: #f4f0ff;
            --input-bg: rgba(25, 20, 35, 0.5);
            --border-color: rgba(255, 255, 255, 0.1);
            --card-bg: rgba(40, 35, 60, 0.4);
            --tran-03: all 0.3s ease;
            --tran-04: all 0.4s ease;
            --tran-05: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body.light-mode {
            --body-color: #fdfbfb;
            --sidebar-color: rgba(255, 255, 255, 0.75);
            --primary-color: #ff758c;
            --primary-color-light: rgba(255, 117, 140, 0.15);
            --text-color: #4a4a4a;
            --input-bg: rgba(255, 255, 255, 0.7);
            --border-color: rgba(255, 117, 140, 0.25);
            --card-bg: rgba(255, 255, 255, 0.65);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', 'Prompt', sans-serif;
        }

        body {
            min-height: 100vh;
            background-color: var(--body-color) !important;
            transition: background-color 1.5s ease-out;
            overflow-x: hidden;
        }

        ::selection {
            background-color: var(--primary-color);
            color: #fff;
        }

        .hidden { display: none !important; }

        body.hide-sidebar .sidebar { display: none !important; }
        body.hide-sidebar .main-content { margin-left: 0 !important; width: 100% !important; padding: 80px 40px 40px 40px !important; }

        .premium-glass {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.15); 
            transition: background-color 1s ease-out, border-color 1s ease-out, transform 0.3s ease, box-shadow 0.3s ease;
        }

        body.light-mode .premium-glass {
            box-shadow: 0 15px 35px rgba(255, 117, 140, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.3);
        }

        .premium-glass-hover:hover {
            border-color: var(--primary-color);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2); 
            transform: translateY(-5px);
        }

        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            height: 100%;
            width: 250px;
            padding: 10px 14px;
            background: #1a1625;
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-right: none;
            transition: var(--tran-05) !important;
            z-index: 150;
            box-shadow: 15px 0 30px rgba(0, 0, 0, 0.2);
        }

        .sidebar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
            z-index: -1;
            clip-path: circle(0% at calc(110vw - 70px) calc(110vh - 70px));
            transition: clip-path 1.5s ease-out;
        }

        body.light-mode .sidebar::before {
            clip-path: circle(310% at calc(90vw - 70px) calc(90vh - 70px));
        }

        .sidebar.close { width: 88px; }

        .sidebar .text, .sidebar .icon, header .image-text .name, header .image-text .profession, .sidebar header .toggle {
            color: var(--text-color);
            transition: color 1s ease-out, background-color 1s ease-out, transform 0.3s ease !important;
        }

        .sidebar li {
            height: 50px;
            list-style: none;
            display: flex;
            align-items: center;
            margin-top: 5px;
        }

        .sidebar header .image, .sidebar .icon {
            min-width: 60px;
            border-radius: 12px;
        }

        .sidebar .icon {
            min-width: 60px;
            border-radius: 12px;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }

        .sidebar .text {
            font-size: 15px;
            font-weight: 500;
            white-space: nowrap;
            opacity: 1;
            letter-spacing: 0.3px;
            transition: opacity 0.4s ease-out;
        }

        .sidebar.close .text { opacity: 0; pointer-events: none; }
        .sidebar header { position: relative; }
        .sidebar header .image-text { display: flex; align-items: center; }
        .sidebar header .logo-text { display: flex; flex-direction: column; }

        header .image-text .name {
            margin-top: 2px;
            font-size: 18px;
            font-weight: 600;
            background: linear-gradient(135deg, var(--text-color), var(--primary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        header .image-text .profession { font-size: 13px; margin-top: -2px; display: block; opacity: 0.8; }
        .sidebar header .image { display: flex; align-items: center; justify-content: center; }
        .sidebar header .image img { width: 60px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }

        .sidebar header .toggle {
            position: absolute;
            top: 50%;
            right: -25px;
            transform: translateY(-50%) rotate(180deg);
            height: 28px;
            width: 28px;
            background: linear-gradient(135deg, var(--primary-color), #ff9a9e);
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 4px 10px var(--primary-color-light);
        }

        .sidebar.close .toggle { transform: translateY(-50%) rotate(0deg); }

        .sidebar .menu-bar {
            height: calc(100% - 55px);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow-y: auto;
            padding-top: 15px;
        }

        .sidebar .menu-bar::-webkit-scrollbar { display: none; }

        .sidebar li a {
            list-style: none;
            height: 100%;
            background-color: transparent;
            display: flex;
            align-items: center;
            width: 100%;
            border-radius: 14px;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .sidebar li a:hover,
        .sidebar li.active a {
            background: var(--primary-color-light);
            box-shadow: inset 0 0 0 1px var(--border-color);
        }

        .sidebar li a:hover .icon,
        .sidebar li a:hover .text,
        .sidebar li.active a .icon,
        .sidebar li.active a .text {
            color: var(--primary-color);
        }

        .main-content {
            margin-left: 250px;
            padding: 80px 40px 40px 40px; 
            width: calc(100% - 250px);
            transition: var(--tran-05);
            z-index: 10;
            min-height: 100vh;
        }

        .sidebar.close ~ .main-content {
            margin-left: 88px;
            width: calc(100% - 88px);
        }

        /* =========================================
           หน้า Login (ดีไซน์ใหม่ ธีมม่วงชมพู Pastel) พร้อมการ์ดลอย
           ========================================= */
        #login-section {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 10000;
            overflow-y: auto; overflow-x: hidden; background: #120d1d;
        }
        
        .saba-login {
            --saba-bg: #120d1d;
            --saba-panel: rgba(30,22,43,.84);
            --saba-line: rgba(255,255,255,.10);
            --saba-glow: #c77dff;
            --saba-text: #f8f4ff;
            --saba-muted: #b7a8c4;
            position: relative;
            z-index: 1;
            min-height: 100vh;
            display: grid;
            place-items: center;
            padding: 24px;
            overflow: hidden;
            font-family: 'Prompt', 'Kanit', sans-serif;
            color: var(--saba-text);
            background: var(--saba-bg);
        }
        .saba-login__sky {
            position: absolute; inset: 0; pointer-events: none;
            background: radial-gradient(circle at 14% 8%, rgba(206,144,255,.24), transparent 28%),
                        radial-gradient(circle at 88% 12%, rgba(255,128,190,.22), transparent 27%),
                        radial-gradient(circle at 50% 100%, rgba(131,94,246,.18), transparent 38%),
                        linear-gradient(145deg,#120d1d 0%,#1b1229 42%,#170f23 100%);
        }
        .saba-login__aurora {
            position: absolute; inset: -10% -5% 20%; pointer-events: none; opacity: .72;
            background: radial-gradient(ellipse 45% 35% at 22% 28%,rgba(194,118,255,.25),transparent 70%),
                        radial-gradient(ellipse 40% 32% at 78% 22%,rgba(255,117,181,.20),transparent 68%),
                        radial-gradient(ellipse 50% 28% at 55% 0%,rgba(167,139,250,.10),transparent 72%);
            filter: blur(28px); animation: saba-aurora 18s ease-in-out infinite alternate;
        }
        .saba-login__horizon { position: absolute; left: -10%; right: -10%; bottom: -8%; height: 48%; pointer-events: none; background: radial-gradient(ellipse 80% 55% at 50% 100%,rgba(255,117,181,.15),transparent 70%),linear-gradient(180deg,transparent 0%,rgba(255,255,255,.015) 45%,rgba(167,139,250,.06) 100%); }
        .saba-login__orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
        .saba-login__orbs span { position: absolute; border-radius: 50%; opacity: .5; }
        .saba-login__orbs span:nth-child(1) { width: 420px; height: 420px; left: -120px; top: 8%; background: radial-gradient(circle,rgba(194,118,255,.22) 0%,transparent 68%); animation: saba-orb-a 16s ease-in-out infinite alternate; }
        .saba-login__orbs span:nth-child(2) { width: 380px; height: 380px; right: -100px; top: 18%; background: radial-gradient(circle,rgba(255,117,181,.19) 0%,transparent 70%); animation: saba-orb-b 19s ease-in-out infinite alternate; }
        .saba-login__orbs span:nth-child(3) { width: 300px; height: 300px; left: 35%; bottom: -80px; background: radial-gradient(circle,rgba(167,139,250,.14) 0%,transparent 70%); animation: saba-orb-c 17s ease-in-out infinite alternate; }
        .saba-login__grid { position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%,#000 10%,transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%,#000 10%,transparent 75%); }
        .saba-login__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 45%,transparent 44%,rgba(0,0,0,.20) 100%); }
        .saba-login__noise { position: absolute; inset: 0; opacity: .03; pointer-events: none; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
        
        @keyframes saba-aurora { 0% { transform: translate3d(-1.5%,0,0) scale(1); opacity: .55; } to { transform: translate3d(2%,1.5%,0) scale(1.04); opacity: .8; } }
        @keyframes saba-orb-a { 0% { transform: translate(0); } to { transform: translate(28px,20px); } }
        @keyframes saba-orb-b { 0% { transform: translate(0); } to { transform: translate(-24px,28px); } }
        @keyframes saba-orb-c { 0% { transform: translate(0); } to { transform: translate(16px,-18px); } }
        
        .saba-login__frame { position: relative; width: min(1180px,100%); border-radius: 28px; border: 1px solid var(--saba-line); background: linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.038)); box-shadow: 0 28px 70px rgba(0,0,0,.28),0 0 0 1px rgba(255,255,255,.04) inset; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); overflow: hidden; }
        .saba-login__frame:before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(90deg,transparent,rgba(240,163,207,.55),transparent); height: 1px; opacity: .55; }
        .saba-login__inner { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(320px,.85fr); min-height: min(720px,calc(100vh - 48px)); }
        .saba-login__showcase { display: flex; flex-direction: column; gap: 22px; padding: 28px 28px 22px; position: relative; }
        .saba-login__brand { display: flex; align-items: center; gap: 12px; }
        .saba-login__brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(240,163,207,.35),0 8px 24px rgba(167,139,250,.17); }
        .saba-login__brand strong { display: block; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; color: var(--saba-text); }
        .saba-login__brand span { font-size: 12px; color: var(--saba-muted); }
        .saba-login__hero-copy h1 { margin: 0; font-size: clamp(28px,3.4vw,40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; color: var(--saba-text); }
        .saba-login__hero-copy h1 span { display: block; margin-top: 6px; font-size: .55em; font-weight: 600; color: #d8b5ff; letter-spacing: 0; }
        .saba-login__hero-copy p { margin: 12px 0 0; max-width: 34rem; font-size: 14px; line-height: 1.6; color: var(--saba-muted); }
        .saba-login__stage { flex: 1; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 18px; align-items: center; min-height: 320px; }
        .saba-login__features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
        .saba-login__features li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.045); }
        .saba-login__feat-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #e6c9ff; background: linear-gradient(135deg,rgba(179,111,255,.22),rgba(255,120,184,.17)); border: 1px solid rgba(255,255,255,.10); box-shadow: 0 8px 22px rgba(0,0,0,.18); flex-shrink: 0; font-size: 16px;}
        .saba-login__features strong { display: block; font-size: 13px; margin-bottom: 2px; color: var(--saba-text); }
        .saba-login__features small { font-size: 11px; color: var(--saba-muted); line-height: 1.4; }
        
        /* -------------------------------------
           สไตล์การ์ดลอย (Floating Docs) 
           ------------------------------------- */
        .saba-login__docs { position: relative; height: 380px; display: grid; place-items: center; }
        .saba-login__doc { position: absolute; width: min(200px,40vw); height: auto; max-height: 340px; border-radius: 14px; box-shadow: 0 18px 38px rgba(95,69,116,.17) !important; background: #fff; color: #0f172a; overflow: hidden; object-fit: cover; object-position: top center; }
        .saba-login__doc.is-receipt { left: 4%; top: 14%; transform: rotate(-11deg); z-index: 1; opacity: .96; animation: saba-float-a 5.5s ease-in-out infinite; }
        .saba-login__doc.is-invoice { right: 2%; top: 8%; transform: rotate(10deg); z-index: 2; opacity: .96; animation: saba-float-b 6s ease-in-out infinite; }
        .saba-login__doc.is-transfer { left: 26%; top: 2%; width: min(220px,44vw); max-height: 360px; transform: rotate(-1.5deg); z-index: 3; animation: saba-float-c 4.8s ease-in-out infinite; box-shadow: 0 24px 48px rgba(95,69,116,.20),0 0 0 1px rgba(240,163,207,.24) !important; }
        
        @keyframes saba-float-a { 0%,to { transform: rotate(-11deg) translateY(0); } 50% { transform: rotate(-11deg) translateY(-8px); } }
        @keyframes saba-float-b { 0%,to { transform: rotate(10deg) translateY(0); } 50% { transform: rotate(10deg) translateY(-6px); } }
        @keyframes saba-float-c { 0%,to { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(-1.5deg) translateY(-10px); } }
        /* ------------------------------------- */

        .saba-login__stats { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid rgba(148,163,184,.12); }
        .saba-login__secure { display: flex; align-items: center; gap: 10px; }
        .saba-login__secure-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #4ade80; background: #4ade801f; border: 1px solid rgba(74,222,128,.25); font-size: 16px;}
        .saba-login__secure strong { display: block; font-size: 13px; color: var(--saba-text); }
        .saba-login__secure small { font-size: 11px; color: var(--saba-muted); }
        .saba-login__stat-box { display: flex; gap: 18px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); }
        .saba-login__stat-box > div { display: flex; flex-direction: column; gap: 2px; min-width: 70px; }
        .saba-login__stat-box em { font-style: normal; font-size: 16px; font-weight: 700; color: #d6a8ff; }
        .saba-login__stat-box span { font-size: 11px; color: var(--saba-muted); }
        .saba-login__panel { display: flex; flex-direction: column; padding: 36px 32px 28px; background: radial-gradient(circle at 50% 0%,rgba(255,117,181,.15),transparent 42%),linear-gradient(180deg,rgba(24,17,36,.68),rgba(19,13,29,.82)); border-left: 1px solid rgba(255,255,255,.08); }
        .saba-login__shield { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #e6c9ff; background: linear-gradient(135deg,rgba(179,111,255,.22),rgba(255,120,184,.17)); border: 1px solid rgba(255,255,255,.10); box-shadow: 0 0 0 8px rgba(185,116,255,.08),0 9px 25px rgba(0,0,0,.20); animation: saba-pulse 3.2s ease-in-out infinite; font-size: 24px;}
        
        @keyframes saba-pulse { 0%,to { box-shadow: 0 0 0 8px rgba(216,180,254,.10),0 0 24px rgba(167,139,250,.14); } 50% { box-shadow: 0 0 0 12px rgba(216,180,254,.15),0 0 36px rgba(167,139,250,.25); } }
        
        .saba-login__panel h2 { margin: 0; text-align: center; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--saba-text); }
        .saba-login__panel-lead { margin: 8px 0 22px; text-align: center; font-size: 13px; color: var(--saba-muted); }
        .saba-login__form { display: flex; flex-direction: column; gap: 14px; width: 100%;}
        .saba-login__field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: #cbbdd7; }
        .saba-login__control { position: relative; display: flex; align-items: center; }
        .saba-login__control-ico { position: absolute; left: 14px; color: #a99ab8; display: grid; place-items: center; pointer-events: none; }
        .saba-login__control input { width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.055); color: #f8f4ff; font: inherit; font-size: 14px; padding: 13px 44px 13px 42px; outline: none; transition: border-color .15s,box-shadow .15s; }
        .saba-login__control input::placeholder { color: #8f819b; }
        .saba-login__control input:focus { border-color: rgba(199,126,255,.55); box-shadow: 0 0 0 4px rgba(185,116,255,.13); }
        .saba-login__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
        .saba-login__remember { display: inline-flex; align-items: center; gap: 8px; color: var(--saba-muted); cursor: pointer; }
        .saba-login__remember input { accent-color: #a78bfa; }
        .saba-login__forgot { color: #d2a7ff; text-decoration: none; font-weight: 600; }
        .saba-login__forgot:hover { text-decoration: underline; }
        .saba-login__submit { margin-top: 4px; width: 100%; border: none; border-radius: 14px; padding: 14px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 700; color: #fff; cursor: pointer; background: linear-gradient(105deg,#a78bfa,#c58fe8 48%,#f0a3cf); box-shadow: 0 12px 28px rgba(193,132,220,.24); transition: filter .15s,transform .15s; }
        .saba-login__submit:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
        .saba-login__or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 16px 0 12px; color: #8f819b; font-size: 12px; }
        .saba-login__or:before,.saba-login__or:after { content: ""; height: 1px; background: rgba(255,255,255,.08); }
        .saba-login__contact { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.045); color: #eee4f6; text-decoration: none; font-size: 14px; font-weight: 600; transition: border-color .15s,background .15s; }
        .saba-login__contact:hover { border-color: rgba(240,163,207,.28); background: rgba(255,117,181,.09); }
        .saba-login__foot { margin: auto 0 0; padding-top: 18px; text-align: center; font-size: 11px; color: #81748c; }
        
        @media (max-width: 980px) {
            .saba-login__inner { grid-template-columns:1fr; }
            .saba-login__panel { border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
            .saba-login__stage { grid-template-columns: 1fr; }
            .saba-login__features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
            .saba-login__docs { height: 280px; }
        }
        
        @media (max-width: 720px) {
            .saba-login { padding:12px; }
            .saba-login__showcase,.saba-login__panel { padding: 20px 16px; }
            .saba-login__features { grid-template-columns: 1fr; }
            .saba-login__docs { height: 220px; }
            .saba-login__doc { width: min(150px,38vw); max-height: 200px; }
            .saba-login__doc.is-transfer { width: min(168px,42vw); }
            .saba-login__stat-box { width: 100%; justify-content: space-between; }
            .saba-login__hero-copy h1 { font-size: 26px; }
        }

        /* =========================================
           Menu Grid 
           ========================================= */
        .header-title, .menu-item-main p, .menu-item-sub p {
            color: var(--text-color);
            transition: color 1s ease-out, border-color 1s ease-out !important;
        }
        .menu-item-main i.menu-icon { color: var(--primary-color); transition: color 1s ease-out, transform 0.3s !important; }

        .main-menu-centered { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: calc(100vh - 120px); }
        .header-title { font-size: 24px; margin-bottom: 30px; text-align: left; font-weight: 600; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; letter-spacing: 0.5px;}
        
        .centered-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; width: 100%; }
        .menu-item-main {
            border-radius: 24px; padding: 30px; text-align: center; cursor: pointer; text-decoration: none; 
            display: flex; flex-direction: column; align-items: center; justify-content: center; width: 260px; height: 260px;
        }
        .menu-item-main img { width: 120px; height: 120px; object-fit: contain; margin-bottom: 25px; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));}
        .menu-item-main i.menu-icon { font-size: 120px; margin-bottom: 25px; text-shadow: 0 5px 15px var(--primary-color-light);}
        .menu-item-main p { font-size: 18px; margin: 0; font-weight: 600; letter-spacing: 0.5px;}
        .menu-item-main:hover img, .menu-item-main:hover i.menu-icon { transform: scale(1.15) translateY(-5px); }

        .sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; width: 100%; padding-bottom: 40px;}
        .menu-item-sub {
            border-radius: 20px; padding: 25px 15px; cursor: pointer; text-decoration: none; 
            display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
        }
        .menu-item-sub img { width: 100%; height: 110px; object-fit: contain; margin-bottom: 15px; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));}
        .menu-item-sub p { font-size: 15px; margin: 0; font-weight: 500; line-height: 1.4; }
        .menu-item-sub:hover img { transform: scale(1.1) translateY(-3px); }

        /* =========================================
           Dark / Light Mode Toggle 
           ========================================= */
        .theme-toggle-label {
            position: fixed;
            bottom: 35px;
            right: 35px;
            width: 55px;
            height: 55px;
            border-radius: 50px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        #theme-checkbox { position: absolute; opacity: 0; pointer-events: none; }

        .theme-toggle-label .sun {
            position: absolute; font-size: 2.2em; color: #ffca28; 
            filter: drop-shadow(0 0 8px rgba(255, 202, 40, 0.8)) drop-shadow(0 0 15px rgba(255, 202, 40, 0.4));
            transform: scale(0); transition: 1s cubic-bezier(0.4, 0, 0.2, 1);
        }
        #theme-checkbox:checked~.sun { transition-delay: .8s; transform: scale(1) rotate(360deg); }

        .theme-toggle-label .moon {
            font-size: 2.2em; color: #f4f0ff;
            filter: drop-shadow(0 0 5px rgba(244, 240, 255, 0.5));
            transition: 1s cubic-bezier(0.4, 0, 0.2, 1); transition-delay: .8s;
        }
        #theme-checkbox:checked~.moon { transition-delay: 0s; transform: rotate(360deg) scale(0); }

        .theme-toggle-label .toggle-btn-bg {
            position: absolute; display: block; width: 55px; height: 55px; border-radius: 80px;
            box-shadow: inset 0 8px 60px rgba(0, 0, 0, .1), inset 0 8px 8px rgba(0, 0, 0, .1), inset 0 -4px 4px rgba(0, 0, 0, .1);
            z-index: -1; transition: 1s; background: rgba(30, 25, 45, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1);
        }
        #theme-checkbox:checked~.toggle-btn-bg {
            background: rgba(255, 255, 255, 0.9); box-shadow: inset 0 8px 20px rgba(0, 0, 0, .05); border-color: rgba(255, 117, 140, 0.2);
        }

        .animateBg {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
            z-index: -1; 
            clip-path: circle(0% at calc(100% - 55px) calc(100% - 55px));
            transition: clip-path 1.5s ease-out;
            pointer-events: none;
        }

        body.light-mode .animateBg { clip-path: circle(150% at calc(100% - 55px) calc(100% - 55px)); }

        /* =========================================
           Custom Scrollbar 
           ========================================= */
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: transparent; border-radius: 10px; }
        ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; transition: background 0.3s ease; }
        ::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

        /* =========================================
           Toast แจ้งเตือน
           ========================================= */
        .toast-container { position: fixed; top: 35px; left: 0; right: 0; margin: 0 auto; width: 350px; z-index: 99999; display: flex; flex-direction: column; gap: 15px; pointer-events: none; }
        .toast { 
            background: var(--card-bg); border: 1px solid var(--border-color);
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); 
            border-radius: 16px; padding: 0 20px; height: 70px; 
            box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.2); 
            display: flex; align-items: center; gap: 15px; transform: translateY(calc(-100% - 35px)); 
            animation: slideDownToast 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; pointer-events: auto; 
        }
        .toast.closing { animation: slideUpToast 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
        @keyframes slideDownToast { 100% { transform: translateY(0); } }
        @keyframes slideUpToast { 100% { transform: translateY(calc(-100% - 100px)); } }
        .toast .icon { font-size: 32px; text-shadow: 0 4px 10px rgba(0,0,0,0.1);} 
        .toast .details span { font-size: 15px; color: var(--text-color); font-weight: 500;} 
        .toast .progress-bar { position: absolute; bottom: 0; left: 0; height: 4px; width: 100%; background: var(--border-color); border-radius: 0 0 16px 16px; overflow: hidden;} 
        .toast .progress-bar::before { content: ''; position: absolute; bottom: 0; left: 0; height: 100%; width: 100%; animation: progressToast 1.5s linear forwards; }
        @keyframes progressToast { 100% { width: 0; } }
        .toast.success .icon { color: #00E676; } .toast.success .progress-bar::before { background: linear-gradient(to right, #00E676, #00C853); }
        .toast.error .icon { color: #ff758c; } .toast.error .progress-bar::before { background: linear-gradient(to right, #ff758c, #ff4d6d); }
        .toast.info .icon { color: #a18cd1; } .toast.info .progress-bar::before { background: linear-gradient(to right, #a18cd1, #8fd3f4); }

        /* =========================================
           Performance Mode (ลดเอฟเฟกต์ลดความหน่วง)
           ========================================= */
        /* ปุ่มเปิด/ปิด โหมดลดเอฟเฟกต์ */
        .perf-toggle-btn {
            position: fixed;
            bottom: 100px; 
            right: 35px;
            width: 55px;
            height: 55px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            background: rgba(30, 25, 45, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-color);
            font-size: 22px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            transition: var(--tran-03);
            backdrop-filter: blur(10px);
        }
        body.light-mode .perf-toggle-btn {
            background: rgba(255, 255, 255, 0.9);
            border-color: rgba(255, 117, 140, 0.2);
            color: var(--primary-color);
        }
        
        /* สไตล์เมื่อเปิดโหมดประหยัด (ปุ่มจะเปลี่ยนสี) */
        body.low-spec-mode .perf-toggle-btn {
            background: #ff4d6d;
            color: #fff;
            border-color: transparent;
            box-shadow: 0 0 15px rgba(255, 77, 109, 0.4);
        }

        /* --- การทำงานเมื่อเปิด Low Spec Mode --- */
        body.low-spec-mode * {
            /* ปิด Transition และ Animation ทุกอย่างในหน้าเว็บ */
            transition: none !important;
            animation: none !important;
        }

        body.low-spec-mode .premium-glass,
        body.low-spec-mode .sidebar,
        body.low-spec-mode .saba-login,
        body.low-spec-mode .saba-login__frame,
        body.low-spec-mode .toast,
        body.low-spec-mode .theme-toggle-label .toggle-btn-bg,
        body.low-spec-mode .perf-toggle-btn {
            /* ปิดเอฟเฟกต์เบลอ (ตัวกินสเปคการ์ดจอหลัก) */
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }

        /* ปรับสีการ์ดให้ทึบขึ้นเพราะไม่มีเบลอช่วยแล้ว */
        body.low-spec-mode .premium-glass { 
            background: #2b253b; 
            border-color: rgba(255,255,255,0.05); 
            box-shadow: none !important; 
            transform: none !important;
        }
        body.low-spec-mode.light-mode .premium-glass { 
            background: #ffffff; 
            border-color: #eee; 
        }
        
        body.low-spec-mode .sidebar { background: #1a1625; box-shadow: none !important; }
        body.low-spec-mode.light-mode .sidebar { background: #fdfbfb; border-right: 1px solid #eee; }

        /* ปิดลูกเล่นในหน้า Login เพื่อความลื่นไหล */
        body.low-spec-mode .saba-login__sky,
        body.low-spec-mode .saba-login__aurora,
        body.low-spec-mode .saba-login__horizon,
        body.low-spec-mode .saba-login__orbs,
        body.low-spec-mode .saba-login__noise { display: none !important; }
        
        body.low-spec-mode .saba-login__frame { background: #fff; box-shadow: none !important; }
        body.low-spec-mode .saba-login__panel { background: #f9f2ff; }

        /* ปิดลูกเล่นเด้งๆ ตอนเอาเมาส์ชี้เมนู */
        body.low-spec-mode .menu-item-main:hover img, 
        body.low-spec-mode .menu-item-main:hover i.menu-icon,
        body.low-spec-mode .menu-item-sub:hover img {
            transform: none !important;
        }

        /* =========================================
           Tooltip แจ้งเตือนปุ่มลดความหน่วง
           ========================================= */
        .perf-tooltip {
            position: absolute;
            right: 75px; 
            background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
            color: #fff;
            padding: 8px 14px;
            border-radius: 14px;
            font-size: 13px;
            font-weight: 600;
            white-space: nowrap;
            box-shadow: 0 5px 15px rgba(255, 117, 140, 0.4);
            pointer-events: none; 
            animation: floatTooltip 2s ease-in-out infinite;
        }

        /* หางลูกศรชี้ไปที่ปุ่ม */
        .perf-tooltip::after {
            content: '';
            position: absolute;
            top: 50%;
            right: -5px; 
            transform: translateY(-50%);
            border-width: 6px 0 6px 6px;
            border-style: solid;
            border-color: transparent transparent transparent #ff7eb3;
        }

        /* อนิเมชั่นเด้งซ้ายขวาชี้ชวนให้กด */
        @keyframes floatTooltip {
            0%, 100% { transform: translateY(-50%) translateX(0); top: 50%; }
            50% { transform: translateY(-50%) translateX(-8px); top: 50%; }
        }

        body.low-spec-mode .perf-tooltip {
            display: none !important;
            animation: none !important;
        }


        /* =========================================
           Dashboard Redesign 2026 — Purple / Pink Aurora
           ========================================= */
        #dashboard-section {
            min-height: 100vh;
            color: #f8f4ff;
            background:
                radial-gradient(circle at 14% 8%, rgba(206,144,255,.24), transparent 28%),
                radial-gradient(circle at 88% 12%, rgba(255,128,190,.22), transparent 27%),
                radial-gradient(circle at 50% 100%, rgba(131,94,246,.18), transparent 38%),
                linear-gradient(145deg, #120d1d 0%, #1b1229 42%, #170f23 100%);
            overflow-x: hidden;
        }

        #dashboard-section::before {
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            opacity: .18;
            background-image:
                linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
            background-size: 54px 54px;
            mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
            -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
        }

        .dashboard-shell {
            position: relative;
            z-index: 1;
            width: min(1440px, calc(100% - 40px));
            margin: 0 auto;
            padding: 24px 0 48px;
        }

        .dashboard-orb {
            position: fixed;
            border-radius: 999px;
            filter: blur(4px);
            pointer-events: none;
            opacity: .48;
            z-index: 0;
        }
        .dashboard-orb.orb-a { width: 280px; height: 280px; left: -110px; top: 22%; background: radial-gradient(circle, rgba(194,118,255,.24), transparent 68%); }
        .dashboard-orb.orb-b { width: 360px; height: 360px; right: -145px; top: 9%; background: radial-gradient(circle, rgba(255,117,181,.22), transparent 68%); }

        .dashboard-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            padding: 16px 18px;
            border: 1px solid rgba(255,255,255,.10);
            border-radius: 24px;
            background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
            box-shadow: 0 20px 55px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.08);
            backdrop-filter: blur(22px);
            -webkit-backdrop-filter: blur(22px);
        }

        .dashboard-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
        .dashboard-brand__logo {
            width: 48px; height: 48px; border-radius: 15px; object-fit: cover;
            box-shadow: 0 0 0 1px rgba(255,255,255,.13), 0 10px 28px rgba(228,132,255,.22);
        }
        .dashboard-brand__text strong { display: block; font-size: 17px; letter-spacing: .02em; color: #f8f4ff; }
        .dashboard-brand__text span { display: block; margin-top: 2px; font-size: 11px; color: #bbaec8; }

        .dashboard-actions { display: flex; align-items: center; gap: 10px; }
        .dashboard-clock {
            min-width: 190px;
            padding: 10px 14px;
            border-radius: 16px;
            border: 1px solid rgba(255,255,255,.08);
            background: rgba(255,255,255,.045);
            text-align: right;
        }
        .dashboard-clock strong { display: block; font-size: 13px; font-weight: 600; color: #f4ecff; }
        .dashboard-clock span { display: block; margin-top: 2px; font-size: 11px; color: #ac9db8; }
        .dashboard-logout {
            height: 44px;
            padding: 0 15px;
            border: 1px solid rgba(255,137,188,.22);
            border-radius: 15px;
            color: #ffdce9;
            background: rgba(255,111,169,.10);
            font: inherit;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: transform .2s ease, background .2s ease, border-color .2s ease;
        }
        .dashboard-logout:hover { transform: translateY(-2px); background: rgba(255,111,169,.18); border-color: rgba(255,137,188,.44); }

        .dashboard-main { padding-top: 24px; }
        .dashboard-hero {
            display: grid;
            grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
            gap: 18px;
            align-items: stretch;
        }
        .dashboard-welcome,
        .dashboard-expiry,
        .dashboard-section-card {
            border: 1px solid rgba(255,255,255,.09);
            background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
            box-shadow: 0 24px 60px rgba(0,0,0,.20), inset 0 1px rgba(255,255,255,.06);
            backdrop-filter: blur(22px);
            -webkit-backdrop-filter: blur(22px);
        }
        .dashboard-welcome {
            position: relative;
            overflow: hidden;
            min-height: 220px;
            padding: 30px;
            border-radius: 28px;
        }
        .dashboard-welcome::after {
            content: '';
            position: absolute;
            width: 360px; height: 360px; right: -140px; bottom: -210px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(242,118,194,.32), rgba(171,108,255,.12) 48%, transparent 70%);
        }
        .dashboard-status {
            position: relative; z-index: 1;
            display: inline-flex; align-items: center; gap: 8px;
            padding: 7px 11px; border-radius: 999px;
            color: #dfffea; background: rgba(65,211,129,.10); border: 1px solid rgba(90,229,150,.20);
            font-size: 11px; font-weight: 600;
        }
        .dashboard-status__dot { width: 7px; height: 7px; border-radius: 50%; background: #55e08d; box-shadow: 0 0 14px rgba(85,224,141,.78); }
        .dashboard-welcome h1 {
            position: relative; z-index: 1;
            margin: 16px 0 8px;
            font-size: clamp(24px, 3vw, 34px);
            line-height: 1.22;
            letter-spacing: -.025em;
            background: linear-gradient(105deg, #fff 0%, #eadbff 48%, #ffc9e0 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .dashboard-welcome p { position: relative; z-index: 1; max-width: 620px; margin: 0; color: #bcaec8; font-size: 14px; line-height: 1.7; }
        .dashboard-user-pill {
            position: relative; z-index: 1;
            display: inline-flex; align-items: center; gap: 9px;
            max-width: 100%; margin-top: 18px; padding: 10px 13px;
            border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(10,8,16,.18);
            color: #d8cce1; font-size: 12px;
        }
        .dashboard-user-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        .dashboard-expiry {
            position: relative;
            overflow: hidden;
            border-radius: 28px;
            padding: 26px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background:
                radial-gradient(circle at 90% 0%, rgba(247,121,190,.20), transparent 40%),
                linear-gradient(145deg, rgba(132,85,201,.20), rgba(255,255,255,.05));
        }
        .dashboard-expiry__eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #cbbad9; font-size: 11px; }
        .dashboard-expiry__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, rgba(185,116,255,.22), rgba(255,119,181,.18)); border: 1px solid rgba(255,255,255,.11); color: #efd9ff; }
        .dashboard-expiry__days { margin-top: 16px; display: flex; align-items: baseline; gap: 9px; }
        .dashboard-expiry__days strong { font-size: clamp(46px, 7vw, 72px); line-height: 1; letter-spacing: -.06em; }
        .dashboard-expiry__days span { color: #c9b8d5; font-size: 14px; }
        .dashboard-expiry__bar { height: 6px; margin: 18px 0 16px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
        .dashboard-expiry__bar span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a873ff, #f184c0); box-shadow: 0 0 18px rgba(235,126,193,.38); }
        .dashboard-expiry__countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
        .count-box { padding: 9px 5px; text-align: center; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); }
        .count-box strong { display: block; font-size: 16px; color: #f8f4ff; }
        .count-box span { display: block; margin-top: 2px; font-size: 9px; color: #aa9bb6; }
        .dashboard-expiry__date { margin-top: 14px; color: #ac9db8; font-size: 11px; }
        .dashboard-expiry__date strong { color: #f7edff; font-weight: 600; }

        .dashboard-menu-wrap { margin-top: 20px; }
        .dashboard-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; padding: 0 3px; }
        .dashboard-section-head h2 { margin: 0; font-size: 20px; }
        .dashboard-section-head p { margin: 3px 0 0; color: #9f91aa; font-size: 11px; }
        .dashboard-mini-badge { padding: 7px 10px; border-radius: 999px; color: #cdbdd7; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.04); font-size: 10px; }

        .dashboard-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
        .dashboard-menu-card {
            position: relative;
            min-height: 210px;
            padding: 24px;
            border-radius: 24px;
            border: 1px solid rgba(255,255,255,.085);
            background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
            box-shadow: 0 18px 40px rgba(0,0,0,.16);
            color: #fff;
            text-decoration: none;
            overflow: hidden;
            transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
        }
        .dashboard-menu-card:hover { transform: translateY(-5px); border-color: rgba(224,151,255,.28); box-shadow: 0 28px 55px rgba(0,0,0,.22); }
        .dashboard-menu-card::after { content:''; position:absolute; width:170px; height:170px; right:-55px; bottom:-72px; border-radius:50%; background: radial-gradient(circle, rgba(217,132,255,.16), transparent 70%); }
        .dashboard-menu-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
        .dashboard-menu-card__icon { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(179,111,255,.22), rgba(255,120,184,.17)); border: 1px solid rgba(255,255,255,.10); box-shadow: 0 9px 25px rgba(0,0,0,.16); }
        .dashboard-menu-card__icon img { width: 52px; height: 52px; object-fit: contain; }
        .dashboard-menu-card__icon i { font-size: 38px; color: #e6c9ff; }
        .dashboard-menu-card__arrow { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.05); color: #bbaac6; transition: transform .2s ease; }
        .dashboard-menu-card:hover .dashboard-menu-card__arrow { transform: translate(2px,-2px); }
        .dashboard-menu-card h3 { position: relative; z-index: 1; margin: 22px 0 6px; font-size: 21px; color: #fff; }
        .dashboard-menu-card p { position: relative; z-index: 1; margin: 0; color: #a99bb5; font-size: 12px; line-height: 1.65; }

        .dashboard-subview { margin-top: 0; }
        .dashboard-subview-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
        .dashboard-back {
            display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
            border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.045); color: #e8dcf2; font: inherit; font-size: 12px; cursor: pointer;
        }
        .dashboard-subview-title h2 { margin: 0; font-size: 21px; }
        .dashboard-subview-title p { margin: 3px 0 0; color: #9f91aa; font-size: 11px; }
        #dashboard-section .sub-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 13px; }
        #dashboard-section .menu-item-sub {
            min-height: 155px;
            padding: 19px 14px;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,.08);
            background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
            box-shadow: 0 15px 35px rgba(0,0,0,.14);
        }
        #dashboard-section .menu-item-sub img { width: 90px; height: 75px; margin-bottom: 13px; }
        #dashboard-section .menu-item-sub p { color: #eadff1; font-size: 13px; }
        #dashboard-section .menu-item-sub:hover { border-color: rgba(224,151,255,.26); background: linear-gradient(145deg, rgba(199,126,255,.10), rgba(255,128,186,.06)); }
        #dashboard-section .header-title { display: none; }

        .dashboard-footer { margin-top: 24px; padding: 14px 3px 0; border-top: 1px solid rgba(255,255,255,.055); display: flex; justify-content: space-between; gap: 10px; color: #81748c; font-size: 10px; }

        @media (max-width: 960px) {
            .dashboard-shell { width: min(100% - 24px, 1440px); padding-top: 12px; }
            .dashboard-hero { grid-template-columns: 1fr; }
            .dashboard-menu-grid { grid-template-columns: 1fr; }
            .dashboard-menu-card { min-height: 180px; }
            .dashboard-clock { display: none; }
        }
        @media (max-width: 640px) {
            .dashboard-topbar { border-radius: 20px; padding: 12px; }
            .dashboard-brand__logo { width: 42px; height: 42px; }
            .dashboard-brand__text span { display: none; }
            .dashboard-logout { width: 44px; padding: 0; font-size: 0; }
            .dashboard-logout i { font-size: 15px; }
            .dashboard-welcome, .dashboard-expiry { border-radius: 22px; padding: 22px; }
            .dashboard-welcome { min-height: 200px; }
            .dashboard-expiry__countdown { gap: 5px; }
            #dashboard-section .sub-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
            .dashboard-footer { flex-direction: column; }
        }


        /* Continuous announcement ribbon, clipped to the header center. */
        .dashboard-announcement { display: flex; align-items: center; flex: 1 1 0; min-width: 0; height: 48px; overflow: hidden; border-radius: 12px; text-decoration: none; color: #fff0fc; border: 1px solid rgba(237,160,221,.28); background: linear-gradient(100deg,#38233f,#281d36 65%,#39223f); box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 5px 18px rgba(0,0,0,.12); }
        .dashboard-announcement__badge { display: flex; align-items: center; gap: 7px; align-self: stretch; padding: 0 13px; flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #ffe8f5; background: linear-gradient(135deg,#a357a4,#75478f); border-right: 1px solid rgba(255,255,255,.16); }
        .dashboard-announcement__viewport { display: block; flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg,transparent,#000 18px,#000 calc(100% - 18px),transparent); }
        .dashboard-announcement__track { display: flex; width: max-content; animation: announcement-scroll 12s linear infinite !important; will-change: transform; }
        .dashboard-announcement__item { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; white-space: nowrap; padding: 0 32px; font-size: 14px; font-weight: 500; line-height: 24px; }
        .dashboard-announcement__item .fa-telegram { color: #82d9ff; font-size: 24px; }
        .dashboard-announcement__handle { color: #a7e5ff; font-weight: 600; }
        .dashboard-announcement:focus-visible { outline: 2px solid #e6b1ff; outline-offset: 3px; }
        .dashboard-topbar > .dashboard-actions { flex-shrink: 0; }
        @keyframes announcement-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
        @media (max-width: 640px) { .dashboard-topbar { flex-wrap: wrap; } .dashboard-announcement { order: 3; flex-basis: 100%; } }


        .dashboard-welcome { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; align-items: center; padding: 24px; }
        .dashboard-welcome-copy { min-width: 0; }
        .dashboard-welcome h1 { font-size: clamp(21px, 2.2vw, 30px); }
        .dashboard-welcome p { font-size: 12px; }
        .welcome-slider { position: relative; z-index: 1; min-width: 0; overflow: hidden; border-radius: 20px; background: rgba(16,10,25,.3); border: 1px solid rgba(235,182,255,.2); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
        .welcome-slider-track { display: flex; transition: transform .7s cubic-bezier(.22,.7,.25,1); }
        .welcome-slide { flex: 0 0 100%; min-width: 0; margin: 0; }
        .welcome-slide img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
        .welcome-slider-controls { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 9px; padding: 6px 9px; border-radius: 999px; background: rgba(25,15,38,.58); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 3px 12px rgba(0,0,0,.15); }
        .welcome-slider-controls button { border: 0; cursor: pointer; color: #f9e8ff; background: rgba(225,173,246,.16); }
        .welcome-slider-arrow { width: 28px; height: 28px; border-radius: 50%; font-size: 18px; }
        .welcome-slider-dot { width: 8px; height: 8px; padding: 0; border-radius: 20px; transition: width .3s, background .3s; }
        .welcome-slider-dot[aria-current="true"] { width: 24px; background: #e4a4d9; }
        .welcome-slider-controls button:focus-visible { outline: 2px solid #f1b9ec; outline-offset: 3px; }
        @media(max-width: 640px) { .dashboard-welcome { grid-template-columns: 1fr; } }
