        .navbar,
        .footer {
            --spark-profile-purple: #7c3aed;
            --spark-profile-purple-dark: #5b21b6;
            --spark-profile-purple-light: #ede9fe;
            --spark-profile-blue: #3b82f6;
            --spark-profile-grad: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
            --spark-profile-text: #1f2937;
            --spark-profile-muted: #6b7280;
            --spark-profile-border: #e5e7eb;
            --spark-profile-white: #ffffff;
            --spark-profile-radius: 10px;
            --spark-profile-shadow-md: 0 4px 24px rgba(0, 0, 0, 0.10);
            --spark-profile-nav-h: 56px;
            font-family: 'Segoe UI', 'PingFang TC', 'Noto Sans TC', sans-serif;
            color: var(--spark-profile-text);
        }

        .navbar *,
        .navbar *::before,
        .navbar *::after,
        .footer *,
        .footer *::before,
        .footer *::after {
            box-sizing: border-box;
        }

        .navbar a,
        .footer a {
            color: inherit;
            text-decoration: none;
            transition: color .2s;
        }

        .navbar a:hover,
        .footer a:hover {
            color: var(--spark-profile-purple);
        }

        .navbar ul,
        .footer ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .navbar button {
            font-family: inherit;
        }

        .navbar {
            /* override Bootstrap's .navbar { display: flex } so nav-inner & main-nav stack vertically */
            display: block;
            background: var(--spark-profile-white);
            border-bottom: 1px solid var(--spark-profile-border);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
            padding: 0;
        }

        .navbar .nav-inner,
        .navbar .main-nav {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .navbar .nav-inner {
            height: var(--spark-profile-nav-h);
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .navbar .logo,
        .footer .logo {
            display: inline-flex;
            align-items: flex-end;
            gap: 8px;
            flex-shrink: 0;
            text-decoration: none;
        }

        .navbar .logo-mark {
            display: block;
            width: 184px;
            height: auto;
        }

        .footer .logo-mark {
            display: block;
            width: 238px;
            height: auto;
        }

        .navbar .logo-sub {
            display: none;
            margin-bottom: 0;
            background: var(--spark-profile-grad);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 17px;
            font-style: italic;
            font-weight: 700;
            line-height: 1;
            white-space: nowrap;
        }

        @media (min-width: 768px) {
            .navbar .logo-sub {
                display: inline;
            }
        }

        .navbar .search-wrap {
            margin-left: auto;
            width: 210px;
            height: 38px;
            display: flex;
            align-items: center;
            border: 1.5px solid var(--spark-profile-border);
            border-radius: 999px;
            overflow: hidden;
            padding: 0 4px;
            position: relative;
            flex-shrink: 0;
        }

        .navbar .search-input {
            flex: 1;
            min-width: 0;
            height: 100%;
            border: none;
            outline: none;
            padding: 0 38px 0 16px;
            font-size: 13px;
            background: transparent;
            color: var(--spark-profile-text);
            position: relative;
            z-index: 2;
        }

        .navbar .search-input::placeholder {
            color: transparent;
        }

        .navbar .search-marquee {
            position: absolute;
            left: 16px;
            right: 42px;
            top: 50%;
            transform: translateY(-50%);
            overflow: hidden;
            pointer-events: none;
            color: var(--spark-profile-text);
            font-size: 13px;
            line-height: 1;
            white-space: nowrap;
            z-index: 1;
        }

        .navbar .search-marquee span {
            display: inline-block;
            min-width: max-content;
            padding-left: 0;
            animation: none;
        }

        .navbar .search-wrap:focus-within .search-marquee,
        .navbar .search-input:not(:placeholder-shown) + .search-marquee {
            opacity: 0;
        }

        @keyframes spark-search-marquee {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-100%);
            }
        }

        .navbar .search-btn {
            border: none;
            background: transparent;
            width: 32px;
            height: 30px;
            padding: 0;
            cursor: pointer;
            font-size: 15px;
            color: var(--spark-profile-muted);
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 3;
            flex-shrink: 0;
        }

        .navbar .nav-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .navbar .btn-create {
            background:
                linear-gradient(var(--spark-profile-white), var(--spark-profile-white)) padding-box,
                linear-gradient(135deg, #c084fc 0%, #8b5cf6 45%, #6366f1 100%) border-box;
            color: var(--spark-profile-text);
            border: 3px solid transparent;
            border-radius: 999px;
            width: 100px;
            height: 38px;
            padding: 0;
            font-size: 15px;
            font-weight: 800;
            cursor: pointer;
            transition: box-shadow .2s, transform .15s;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
            box-shadow: 0 8px 22px rgba(124, 58, 237, 0.14);
        }

        .navbar .btn-create-marquee {
            display: block;
            width: 100%;
            overflow: hidden;
            line-height: 32px;
        }

        .navbar .btn-create-marquee span {
            display: inline-block;
            min-width: max-content;
            padding-left: 100%;
            animation: spark-create-marquee 5s linear infinite;
        }

        @keyframes spark-create-marquee {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-100%);
            }
        }

        .navbar .btn-create:hover {
            box-shadow: 0 10px 26px rgba(59, 130, 246, 0.18);
        }

        .navbar .nav-divider {
            display: block;
            width: 1px;
            height: 24px;
            background: var(--spark-profile-border);
            flex-shrink: 0;
        }

        .navbar .icon-btn {
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 4px;
            border-radius: 6px;
            transition: background .2s;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--spark-profile-text);
        }

        .navbar .icon-btn svg {
            width: 20px;
            height: 20px;
        }

        .navbar .icon-btn:hover,
        .navbar .user-avatar:hover {
            background: var(--spark-profile-purple-light);
        }

        .navbar .bell-badge {
            position: absolute;
            top: -1px;
            right: -1px;
            min-width: 13px;
            height: 13px;
            padding: 0 3px;
            border-radius: 999px;
            background: var(--spark-profile-blue);
            border: 1.5px solid var(--spark-profile-white);
            font-size: 8px;
            font-weight: 700;
            color: var(--spark-profile-white);
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .navbar .user-avatar {
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            color: var(--spark-profile-text);
            padding: 4px 8px;
            border-radius: 8px;
            transition: background .2s;
        }

        .navbar .avatar-svg {
            width: 20px;
            height: 20px;
            color: var(--spark-profile-text);
        }

        .navbar .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 6px;
            margin-left: auto;
        }

        .navbar .hamburger span {
            display: block;
            width: 22px;
            height: 2px;
            background: var(--spark-profile-text);
            border-radius: 2px;
            transition: all .3s;
        }

        .navbar .hamburger.open span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .navbar .hamburger.open span:nth-child(2) {
            opacity: 0;
        }

        .navbar .hamburger.open span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        .navbar .main-nav {
            background: var(--spark-profile-white);
            border-bottom: 1px solid var(--spark-profile-border);
            display: flex;
            align-items: center;
            flex-wrap: wrap;
        }

        .navbar .main-nav > a,
        .navbar .nav-dropdown .dropdown-trigger {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            padding: 10px 14px;
            font-size: 13.5px;
            font-weight: 500;
            color: var(--spark-profile-text);
            transition: color .2s;
            text-decoration: none;
            white-space: nowrap;
        }

        .navbar .main-nav > a:hover,
        .navbar .nav-dropdown .dropdown-trigger:hover {
            color: var(--spark-profile-purple);
        }

        .navbar .caret {
            display: inline-block;
            width: 6px;
            height: 6px;
            border-right: 1.5px solid currentColor;
            border-bottom: 1.5px solid currentColor;
            transform: rotate(45deg) translateY(-2px);
            vertical-align: middle;
            flex-shrink: 0;
        }

        .navbar .nav-dropdown {
            position: relative;
        }

        .navbar .dropdown-menu {
            display: none;
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            background: var(--spark-profile-white);
            border: 1px solid var(--spark-profile-border);
            border-radius: var(--spark-profile-radius);
            box-shadow: var(--spark-profile-shadow-md);
            min-width: 140px;
            z-index: 200;
        }

        .navbar .dropdown-menu li a {
            display: block;
            padding: 9px 16px;
            font-size: 13px;
            transition: background .15s;
        }

        .navbar .dropdown-menu li a:hover {
            background: var(--spark-profile-purple-light);
            color: var(--spark-profile-purple);
        }

        .navbar .nav-dropdown:hover .dropdown-menu {
            display: block;
        }

        .footer {
            background: var(--spark-profile-white);
            border-top: 1px solid var(--spark-profile-border);
            margin-top: auto;
        }

        .footer .footer-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 48px 20px 32px;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 36px;
        }

        .footer .brand-desc {
            font-size: 13px;
            color: var(--spark-profile-muted);
            line-height: 1.7;
            margin: 14px 0 18px;
            max-width: 260px;
        }

        .footer .social-links {
            display: flex;
            gap: 10px;
        }

        .footer .social-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border: 1.5px solid var(--spark-profile-border);
            border-radius: 8px;
            font-size: 14px;
            font-weight: 700;
            color: var(--spark-profile-muted);
            transition: all .2s;
            text-decoration: none;
        }

        .footer .social-icon:hover {
            border-color: var(--spark-profile-purple);
            color: var(--spark-profile-purple);
            background: var(--spark-profile-purple-light);
        }

        .footer .footer-col h4 {
            font-size: 14px;
            font-weight: 700;
            color: var(--spark-profile-text);
            margin-bottom: 16px;
        }

        .footer .footer-col ul li {
            margin-bottom: 10px;
        }

        .footer .footer-col ul li a {
            font-size: 13px;
            color: var(--spark-profile-muted);
            transition: color .2s;
        }

        .footer .footer-col ul li a:hover {
            color: var(--spark-profile-purple);
        }

        .footer .contact-desc {
            font-size: 13px;
            color: var(--spark-profile-muted);
            line-height: 1.6;
            margin-bottom: 16px;
        }

        .footer .btn-primary {
            display: inline-block;
            background: var(--spark-profile-grad);
            color: var(--spark-profile-white);
            border: none;
            border-radius: 8px;
            padding: 10px 22px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity .2s, transform .15s;
            text-align: center;
            text-decoration: none;
        }

        .footer .btn-primary:hover {
            opacity: .88;
            transform: translateY(-1px);
            color: var(--spark-profile-white);
        }

        .footer .btn-contact {
            padding: 9px 20px;
            font-size: 13px;
        }

        .footer .footer-bottom {
            max-width: 1200px;
            margin: 0 auto;
            padding: 16px 20px;
            border-top: 1px solid var(--spark-profile-border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 12px;
            color: var(--spark-profile-muted);
            flex-wrap: wrap;
            gap: 8px;
        }

        .footer .footer-links {
            display: flex;
            gap: 16px;
        }

        .footer .footer-links a {
            color: var(--spark-profile-muted);
        }

        .footer .footer-links a:hover {
            color: var(--spark-profile-purple);
        }

        @media (max-width: 900px) {
            .footer .footer-inner {
                grid-template-columns: 1fr 1fr;
                gap: 28px;
            }

            .footer .footer-brand {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 640px) {
            .navbar .search-wrap,
            .navbar .nav-actions .btn-create,
            .navbar .nav-actions .icon-btn {
                display: none;
            }

            .navbar .hamburger {
                display: flex;
            }

            .navbar .main-nav {
                display: none;
                flex-direction: column;
                align-items: stretch;
                padding: 8px 16px 12px;
                border-top: 1px solid var(--spark-profile-border);
            }

            .navbar .main-nav.open {
                display: flex;
            }

            .navbar .main-nav > a,
            .navbar .nav-dropdown .dropdown-trigger {
                padding: 10px 4px;
                border-bottom: 1px solid var(--spark-profile-border);
                font-size: 15px;
            }

            .navbar .nav-dropdown {
                width: 100%;
            }

            .navbar .dropdown-menu {
                position: static;
                box-shadow: none;
                border: none;
                border-radius: 0;
                padding-left: 12px;
                display: block;
            }

            .footer .footer-inner {
                grid-template-columns: 1fr;
                gap: 24px;
                padding: 32px 20px 24px;
            }

            .footer .footer-brand {
                grid-column: auto;
            }

            .footer .brand-desc {
                max-width: 100%;
            }

            .footer .footer-bottom {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 6px;
            }
        }

        /* Keep commodity page content aligned with the profile header/footer width. */
        .rbt-page-banner-wrapper .container,
        .rbt-section-overlayping-top .container {
            max-width: 1160px !important;
            padding-left: 20px !important;
            padding-right: 20px !important;
        }
