
        /*==================================================
          KARSAZ DESIGN SYSTEM & CORE CSS
        ==================================================*/
        :root {
            --primary: #1b1464;
            --primary-light: #2d228c;
            --secondary: #5f27cd;
            --accent: #00d2d3;
            --accent-glow: rgba(0, 210, 211, 0.35);

            --white: #ffffff;
            --background: #f8fafc;
            --card-bg: rgba(255, 255, 255, 0.85);

            --text: #1f2937;
            --text-light: #6b7280;
            --text-muted: #9ca3af;

            --border: #e5e7eb;
            --border-glass: rgba(255, 255, 255, 0.4);

            --radius: 18px;
            --radius-lg: 22px;
            --radius-full: 9999px;

            --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
            --shadow: 0 10px 35px rgba(0, 0, 0, .08);
            --shadow-premium: 0 20px 50px rgba(27, 20, 100, 0.12), 0 10px 20px rgba(95, 39, 205, 0.08);

            --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

            --danger: #ff4757;
            --danger-bg: rgba(255, 71, 87, 0.08);
            --success: #10b981;
            --warning: #f59e0b;
        }

        /* Dark Theme Overrides */
        body.dark-mode {
            --primary: #818cf8;
            --primary-light: #6366f1;
            --secondary: #a78bfa;
            --accent: #22d3ee;

            --white: #1e293b;
            --background: #0f172a;
            --card-bg: rgba(30, 41, 59, 0.85);

            --text: #f8fafc;
            --text-light: #94a3b8;
            --text-muted: #64748b;

            --border: #334155;
            --border-glass: rgba(255, 255, 255, 0.08);

            --shadow: 0 10px 35px rgba(0, 0, 0, .4);
            --shadow-premium: 0 25px 60px rgba(0, 0, 0, 0.5);
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            direction: rtl;
            font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--background);
            color: var(--text);
            overflow-x: hidden;
            transition: background 0.3s ease, color 0.3s ease;
            min-height: 100vh;
        }

        img {
            display: block;
            max-width: 100%;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        ul {
            list-style: none;
        }

        button {
            border: none;
            background: none;
            cursor: pointer;
            font-family: inherit;
        }

        input {
            font-family: inherit;
            outline: none;
        }

        .ks-container {
            width: min(1400px, 92%);
            margin: auto;
        }

        /*==================================================
          HEADER & NAVBAR STYLES
        ==================================================*/
        .ks-header {
            position: sticky;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 999;
            background: rgba(255, 255, 255, 0.82);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
            transition: all 0.35s ease;
        }

        body.dark-mode .ks-header {
            background: rgba(15, 23, 42, 0.82);
        }

        .ks-header.scrolled {
            box-shadow: var(--shadow);
            background: rgba(255, 255, 255, 0.92);
        }

        body.dark-mode .ks-header.scrolled {
            background: rgba(15, 23, 42, 0.92);
        }

        .ks-navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 92px;
            gap: 40px;
            transition: height 0.35s ease;
        }

        .ks-header.scrolled .ks-navbar {
            height: 76px;
        }

        .ks-logo {
            flex-shrink: 0;
        }

        .ks-logo-text h1 {
            font-size: 34px;
            font-weight: 900;
            color: var(--primary);
            line-height: 1;
            letter-spacing: -0.5px;
        }

        .ks-logo-text span {
            display: block;
            margin-top: 6px;
            color: var(--text-light);
            font-size: 13px;
        }

        .ks-nav {
            flex: 1;
            display: flex;
            justify-content: center;
        }

        .ks-nav ul {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .ks-nav a {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 18px;
            border-radius: 14px;
            font-size: 15px;
            font-weight: 600;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            color: var(--text);
        }

        .ks-nav a:hover,
        .ks-nav a.active {
            color: var(--secondary);
            background: rgba(95, 39, 205, 0.06);
        }

        .ks-nav a::after {
            content: "";
            position: absolute;
            right: 16px;
            left: 16px;
            bottom: 4px;
            height: 3px;
            border-radius: 30px;
            background: linear-gradient(90deg, var(--secondary), var(--accent));
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .ks-nav a:hover::after,
        .ks-nav a.active::after {
            transform: scaleX(1);
        }

        .ks-actions {
            display: flex;
            align-items: center;
            gap: 14px;
            flex-shrink: 0;
            position: relative;
        }

        /* Legacy Login Button */
        .ks-login-btn {
            height: 48px;
            padding: 0 24px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #fff;
            border-radius: 50px;
            font-size: 15px;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            box-shadow: 0 10px 25px rgba(95, 39, 205, .25);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .ks-login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 32px rgba(95, 39, 205, .35);
        }

        .ks-mobile-btn {
            display: none;
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: var(--primary);
            color: #fff;
            font-size: 18px;
            transition: var(--transition);
        }

        .ks-mobile-btn:hover {
            background: var(--secondary);
        }

        /*==================================================
          PREMIUM USER PROFILE TRIGGER (DESKTOP)
        ==================================================*/
        .ks-user-profile-trigger {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 6px 14px 6px 8px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.4);
            border: 1px solid var(--border);
            cursor: pointer;
            user-select: none;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        body.dark-mode .ks-user-profile-trigger {
            background: rgba(30, 41, 59, 0.5);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .ks-user-profile-trigger:hover,
        .ks-user-profile-trigger.active {
            background: rgba(255, 255, 255, 0.9);
            border-color: rgba(95, 39, 205, 0.3);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(95, 39, 205, 0.08);
            transform: translateY(-1px);
        }

        body.dark-mode .ks-user-profile-trigger:hover,
        body.dark-mode .ks-user-profile-trigger.active {
            background: rgba(30, 41, 59, 0.9);
            border-color: rgba(129, 140, 248, 0.4);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(129, 140, 248, 0.15);
        }

        /* Avatar Container */
        .ks-trigger-avatar {
            position: relative;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            flex-shrink: 0;
            transition: transform 0.25s ease;
        }

        .ks-user-profile-trigger:hover .ks-trigger-avatar {
            transform: scale(1.06);
        }

        .ks-avatar-img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #ffffff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
            background: linear-gradient(135deg, #6366f1, #a855f7);
        }

        body.dark-mode .ks-avatar-img {
            border-color: #334155;
        }

        /* Online Status Indicator */
        .ks-online-badge {
            position: absolute;
            bottom: 1px;
            right: 1px;
            width: 11px;
            height: 11px;
            background-color: var(--success);
            border: 2px solid #ffffff;
            border-radius: 50%;
            box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
        }

        body.dark-mode .ks-online-badge {
            border-color: #1e293b;
        }

        /* User Info Labels */
        .ks-trigger-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: right;
            line-height: 1.25;
        }

        .ks-trigger-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.2px;
            white-space: nowrap;
        }

        .ks-trigger-badge {
            font-size: 11px;
            font-weight: 600;
            color: var(--secondary);
            display: flex;
            align-items: center;
            gap: 4px;
            margin-top: 2px;
        }

        body.dark-mode .ks-trigger-badge {
            color: var(--accent);
        }

        /* Rotating Arrow */
        .ks-trigger-arrow {
            font-size: 12px;
            color: var(--text-light);
            margin-right: 4px;
            margin-left: 2px;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .ks-user-profile-trigger.active .ks-trigger-arrow {
            transform: rotate(180deg);
            color: var(--secondary);
        }

        /*==================================================
          GLASSMORPHISM DROPDOWN MENU
        ==================================================*/
        .ks-dropdown-menu {
            position: absolute;
            top: calc(100% + 14px);
            left: 0;
            width: 320px;
            background: rgba(255, 255, 255, 0.88);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-premium);
            padding: 18px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(12px) scale(0.96);
            transform-origin: top left;
            transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 1000;
            max-height: calc(100vh - 120px);
            overflow-y: auto;
            scrollbar-width: thin;
        }

        body.dark-mode .ks-dropdown-menu {
            background: rgba(15, 23, 42, 0.90);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .ks-dropdown-menu.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        /* Dropdown Top Profile Header */
        .ks-dropdown-header {
            display: flex;
            align-items: center;
            gap: 14px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
            margin-bottom: 14px;
        }

        .ks-dropdown-avatar-wrap {
            position: relative;
            width: 54px;
            height: 54px;
            flex-shrink: 0;
        }

        .ks-dropdown-avatar-img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--white);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        }

        .ks-dropdown-user-details {
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .ks-dropdown-user-name {
            font-size: 16px;
            font-weight: 800;
            color: var(--text);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ks-dropdown-user-email {
            font-size: 12px;
            color: var(--text-light);
            margin-top: 1px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            direction: ltr;
            text-align: right;
        }

        .ks-membership-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-top: 6px;
            padding: 3px 10px;
            border-radius: 30px;
            font-size: 11px;
            font-weight: 700;
            background: linear-gradient(135deg, rgba(95, 39, 205, 0.12), rgba(0, 210, 211, 0.15));
            color: var(--secondary);
            border: 1px solid rgba(95, 39, 205, 0.2);
            width: fit-content;
        }

        body.dark-mode .ks-membership-badge {
            background: linear-gradient(135deg, rgba(129, 140, 248, 0.2), rgba(34, 211, 238, 0.2));
            color: var(--accent);
            border-color: rgba(34, 211, 238, 0.3);
        }

        /*==================================================
          QUICK STATS CARDS
        ==================================================*/
        .ks-stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 16px;
        }

        .ks-stat-card {
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 10px 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.25s ease;
        }

        body.dark-mode .ks-stat-card {
            background: rgba(30, 41, 59, 0.6);
            border-color: rgba(255, 255, 255, 0.06);
        }

        .ks-stat-card:hover {
            transform: translateY(-2px);
            background: var(--white);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
            border-color: rgba(95, 39, 205, 0.2);
        }

        .ks-stat-icon {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 13px;
            flex-shrink: 0;
        }

        .ks-stat-icon.wallet {
            background: linear-gradient(135deg, #10b981, #059669);
        }

        .ks-stat-icon.orders {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        }

        .ks-stat-icon.messages {
            background: linear-gradient(135deg, #8b5cf6, #6d28d9);
        }

        .ks-stat-icon.points {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }

        .ks-stat-content {
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .ks-stat-title {
            font-size: 10px;
            font-weight: 600;
            color: var(--text-light);
        }

        .ks-stat-value {
            font-size: 12px;
            font-weight: 800;
            color: var(--text);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /*==================================================
          DROPDOWN NAVIGATION ITEMS
        ==================================================*/
        .ks-menu-section {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .ks-menu-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            border-radius: 12px;
            color: var(--text);
            font-size: 13px;
            font-weight: 600;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .ks-menu-item:hover {
            background: rgba(95, 39, 205, 0.08);
            color: var(--secondary);
            transform: translateX(-3px);
        }

        body.dark-mode .ks-menu-item:hover {
            background: rgba(129, 140, 248, 0.15);
            color: var(--primary);
        }

        .ks-menu-item-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .ks-menu-icon {
            font-size: 15px;
            width: 20px;
            text-align: center;
            color: var(--text-light);
            transition: color 0.2s ease;
        }

        .ks-menu-item:hover .ks-menu-icon {
            color: var(--secondary);
        }

        body.dark-mode .ks-menu-item:hover .ks-menu-icon {
            color: var(--accent);
        }

        /* Badges */
        .ks-badge {
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 20px;
            line-height: 1.4;
        }

        .ks-badge-blue {
            background: rgba(59, 130, 246, 0.15);
            color: #2563eb;
        }

        .ks-badge-red {
            background: rgba(239, 68, 68, 0.15);
            color: #dc2626;
            animation: pulse 2s infinite;
        }

        .ks-badge-value {
            font-size: 11px;
            font-weight: 700;
            color: var(--success);
            background: rgba(16, 185, 129, 0.12);
            padding: 2px 8px;
            border-radius: 8px;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
                transform: scale(1);
            }

            50% {
                opacity: 0.7;
                transform: scale(1.05);
            }
        }

        .ks-menu-divider {
            height: 1px;
            background: var(--border);
            margin: 10px 0;
        }

        /*==================================================
          CONTROLS (DARK MODE & LANGUAGE)
        ==================================================*/
        .ks-control-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 600;
        }

        /* Switch Toggle Component */
        .ks-switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
        }

        .ks-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .ks-slider {
            position: absolute;
            cursor: pointer;
            inset: 0;
            background-color: #cbd5e1;
            transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            border-radius: 30px;
            display: flex;
            align-items: center;
            padding: 3px;
        }

        body.dark-mode .ks-slider {
            background-color: #475569;
        }

        .ks-slider:before {
            content: "";
            height: 18px;
            width: 18px;
            border-radius: 50%;
            background-color: white;
            transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        }

        input:checked+.ks-slider {
            background: linear-gradient(135deg, var(--secondary), var(--primary));
        }

        input:checked+.ks-slider:before {
            transform: translateX(-20px);
        }

        /* Language Switcher Pills */
        .ks-lang-group {
            display: flex;
            background: var(--border);
            padding: 3px;
            border-radius: 10px;
            gap: 2px;
        }

        .ks-lang-btn {
            font-size: 11px;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 8px;
            color: var(--text-light);
            transition: all 0.2s ease;
        }

        .ks-lang-btn.active {
            background: var(--white);
            color: var(--primary);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        }

        /* Logout Item */
        .ks-logout-item {
            color: var(--danger) !important;
            margin-top: 4px;
        }

        .ks-logout-item .ks-menu-icon {
            color: var(--danger) !important;
        }

        .ks-logout-item:hover {
            background: var(--danger-bg) !important;
            color: var(--danger) !important;
        }

        /*==================================================
          MOBILE MENU & USER PROFILE DRAWER
        ==================================================*/
        .ks-mobile-user-card {
            background: linear-gradient(135deg, rgba(95, 39, 205, 0.05), rgba(0, 210, 211, 0.05));
            border: 1px solid rgba(95, 39, 205, 0.15);
            border-radius: var(--radius);
            padding: 16px;
            margin-bottom: 16px;
        }

        body.dark-mode .ks-mobile-user-card {
            background: linear-gradient(135deg, rgba(129, 140, 248, 0.1), rgba(34, 211, 238, 0.05));
            border-color: rgba(255, 255, 255, 0.1);
        }

        .ks-mobile-user-top {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 14px;
        }

        .ks-mobile-user-avatar {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            position: relative;
            flex-shrink: 0;
        }

        .ks-mobile-user-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--white);
        }

        .ks-mobile-user-info h3 {
            font-size: 16px;
            font-weight: 800;
            color: var(--text);
        }

        .ks-mobile-user-info span {
            font-size: 12px;
            color: var(--secondary);
            font-weight: 600;
        }

        .ks-mobile-quick-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 6px;
            padding-top: 10px;
            border-top: 1px dashed var(--border);
        }

        .ks-mobile-stat-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            font-size: 10px;
            font-weight: 700;
            color: var(--text-light);
            background: rgba(255, 255, 255, 0.6);
            padding: 8px 4px;
            border-radius: 10px;
            transition: all 0.2s ease;
        }

        body.dark-mode .ks-mobile-stat-btn {
            background: rgba(30, 41, 59, 0.8);
        }

        .ks-mobile-stat-btn i {
            font-size: 14px;
            color: var(--secondary);
        }

        /*==================================================
          MODALS & OVERLAYS
        ==================================================*/
        .ks-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.55);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            opacity: 0;
            visibility: hidden;
            transition: var(--transition-smooth);
            z-index: 998;
        }

        .ks-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .ks-mobile-menu {
            position: fixed;
            top: 0;
            right: -360px;
            width: 340px;
            max-width: 90%;
            height: 100vh;
            background: var(--white);
            display: flex;
            flex-direction: column;
            transition: var(--transition-smooth);
            z-index: 999;
            box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        }

        .ks-mobile-menu.active {
            right: 0;
        }

        .ks-mobile-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 22px;
            border-bottom: 1px solid var(--border);
        }

        .ks-mobile-logo h2 {
            font-size: 26px;
            color: var(--primary);
            font-weight: 900;
        }

        #closeMobile {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: var(--background);
            color: var(--text);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ks-mobile-nav {
          /*  flex: 1;*/
            padding: 18px;
            overflow-y: auto;
        }

        .ks-mobile-nav ul {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .ks-mobile-nav a {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 16px;
            border-radius: 14px;
            font-size: 14px;
            font-weight: 600;
            color: var(--text);
            transition: var(--transition);
        }

        .ks-mobile-nav a:hover {
            background: rgba(95, 39, 205, 0.08);
            color: var(--secondary);
        }

        .ks-mobile-footer {
            padding: 20px;
            border-top: 1px solid var(--border);
        }

        /* Logout Popup Modal */
        .ks-logout-modal {
            position: fixed;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(8px);
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .ks-logout-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .ks-logout-box {
            background: var(--white);
            border-radius: 24px;
            padding: 28px;
            width: 100%;
            max-width: 400px;
            text-align: center;
            box-shadow: var(--shadow-premium);
            transform: scale(0.9) translateY(20px);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            border: 1px solid var(--border);
        }

        .ks-logout-modal.active .ks-logout-box {
            transform: scale(1) translateY(0);
        }

        .ks-logout-icon-wrap {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: var(--danger-bg);
            color: var(--danger);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
            margin: 0 auto 18px;
        }

        .ks-logout-box h3 {
            font-size: 18px;
            font-weight: 800;
            margin-bottom: 8px;
            color: var(--text);
        }

        .ks-logout-box p {
            font-size: 14px;
            color: var(--text-light);
            margin-bottom: 24px;
            line-height: 1.5;
        }

        .ks-logout-actions {
            display: flex;
            gap: 12px;
        }

        .ks-btn-cancel,
        .ks-btn-confirm {
            flex: 1;
            height: 48px;
            border-radius: 14px;
            font-size: 14px;
            font-weight: 700;
            transition: all 0.2s ease;
        }

        .ks-btn-cancel {
            background: var(--background);
            color: var(--text);
            border: 1px solid var(--border);
        }

        .ks-btn-cancel:hover {
            background: var(--border);
        }

        .ks-btn-confirm {
            background: var(--danger);
            color: white;
            box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
        }

        .ks-btn-confirm:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 25px rgba(255, 71, 87, 0.4);
        }

        /* Legacy Auth Modal */
        .ks-auth-modal {
            position: fixed;
            inset: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 25px;
            background: rgba(15, 23, 42, 0.5);
            backdrop-filter: blur(8px);
            opacity: 0;
            visibility: hidden;
            transition: .35s;
            z-index: 1000;
        }

        .ks-auth-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .ks-auth-box {
            width: 100%;
            max-width: 480px;
            background: var(--white);
            border-radius: 24px;
            padding: 32px;
            position: relative;
            box-shadow: var(--shadow-premium);
            transform: translateY(20px) scale(.96);
            transition: .35s;

        }

        .ks-auth-modal.active .ks-auth-box {
            transform: translateY(0) scale(1);
        }

        .ks-auth-close {
            position: absolute;
            top: 16px;
            left: 16px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--background);
            color: var(--text);
        }

        .ks-auth-tabs {
            display: flex;
            margin-bottom: 24px;
            background: var(--background);
            border-radius: 14px;
            padding: 4px;
        }

        .ks-auth-tabs button {
            flex: 1;
            height: 42px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 700;
            color: var(--text-light);
            transition: .3s;
        }

        .ks-auth-tabs button.active {
            background: var(--white);
            color: var(--primary);
            box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
        }

        .ks-tab-content {
            display: none;
        }

        .ks-tab-content.active {
            display: block;
        }

        .ks-form-group {
            margin-bottom: 16px;
        }

        .ks-form-group label {
            display: block;
            margin-bottom: 6px;
            font-size: 13px;
            font-weight: 600;

        }

        .ks-form-group input {
            width: 100%;
            height: 46px;
            border: 1px solid var(--border);
            background: var(--background);
            color: var(--text);
            border-radius: 12px;
            padding: 0 14px;
            font-size: 14px;
            transition: .3s;
        }

        .ks-form-group input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(95, 39, 205, .12);
        }

        .ks-submit {
            width: 100%;
            height: 48px;
            border-radius: 12px;
            color: #fff;
            font-size: 15px;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            transition: .35s;
            box-shadow: 0 10px 25px rgba(95, 39, 205, .25);
            margin-top: 10px;
        }

        /* Demo Page Content */
        .ks-demo-hero {
            padding: 100px 0;
            text-align: center;
            background: radial-gradient(circle at top center, rgba(95, 39, 205, 0.08) 0%, transparent 70%);
        }

        .ks-demo-hero h2 {
            font-size: 38px;
            font-weight: 900;
            margin-bottom: 16px;
            color: var(--primary);
        }

        body.dark-mode .ks-demo-hero h2 {
            color: var(--primary-light);
        }

        .ks-demo-hero p {
            font-size: 16px;
            color: var(--text-light);
            max-width: 600px;
            margin: 0 auto 30px;
            line-height: 1.7;
        }

        .ks-demo-btn-group {
            display: flex;
            justify-content: center;
            gap: 16px;
        }

        .ks-toggle-demo-btn {
            padding: 12px 24px;
            border-radius: 30px;
            background: var(--white);
            border: 1px solid var(--border);
            font-weight: 700;
            font-size: 14px;
            color: var(--text);
            box-shadow: var(--shadow-sm);
            transition: all 0.25s ease;
        }

        .ks-toggle-demo-btn:hover {
            border-color: var(--secondary);
            color: var(--secondary);
            transform: translateY(-2px);
        }

        /*==================================================
          RESPONSIVE ADJUSTMENTS
        ==================================================*/
        @media(max-width: 1100px) {
            .ks-nav {
                display: none;
            }

            .ks-mobile-btn {
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }

        @media(max-width: 768px) {
            .ks-navbar {
                height: 78px;
            }

            .ks-logo-text h1 {
                font-size: 28px;
            }

            .ks-logo-text span {
                font-size: 11px;
            }

            /* Hide Desktop Profile on Mobile & Show in Drawer */
            .ks-actions .ks-user-profile-trigger,
            .ks-actions .ks-login-btn {
                display: none !important;
            }

            .ks-dropdown-menu {
                display: none !important;
            }
        }

        @media(max-width: 576px) {
            .ks-container {
                width: 94%;
            }

            .ks-navbar {
                height: 72px;
            }

            .ks-logo-text h1 {
                font-size: 24px;
            }

            .ks-logo-text span {
                display: none;
            }
        }

        /* Utility Hidden State */
        .ks-hidden {
            display: none !important;
        }
