@media (max-width: 767.98px) {
        .am-account-screen {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 99980;
            overflow-y: auto;
            padding: 24px 20px 105px;
            background: #fafafa;
            box-sizing: border-box;
        }

        .am-account-screen.is-open {
            display: block;
        }

        body.am-account-screen-open {
            overflow: hidden;
        }

        .am-account-profile {
            text-align: center;
            padding: 12px 0 28px;
        }

        .am-account-avatar {
            width: 100px;
            height: 100px;
            margin: 0 auto 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #b7b7b7;
            color: #fff;
        }

        .am-account-avatar svg {
            width: 76px;
            height: 76px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.5;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .am-account-profile h2 {
            margin: 0;
            font-size: 23px;
            font-weight: 500;
            color: #111;
        }

        .am-account-group {
            margin-bottom: 24px;
            padding: 0 16px;
            background: #fff;
            border-radius: 22px;
            overflow: hidden;
        }

        .am-account-row {
            min-height: 80px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            border-bottom: 1px solid #f0f0f0;
            color: #111;
            text-decoration: none !important;
            font-size: 19px;
        }

        .am-account-row:last-child {
            border-bottom: 0;
        }

        .am-account-arrow {
            width: 25px;
            height: 25px;
            flex: 0 0 25px;
            fill: none;
            stroke: #999;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* Flip the arrow for right-to-left languages. */
        .am-account-screen[dir="rtl"] .am-account-arrow {
            transform: scaleX(-1);
        }

        .am-account-screen[dir="ltr"] .am-account-arrow {
            transform: none;
        }

        .am-account-language {
            display: flex;
            padding: 4px;
            border: 2px solid #ddd;
            border-radius: 30px;
            direction: ltr;
        }

        .am-account-language button {
            min-width: 48px;
            padding: 0;
            border: 0;
            border-radius: 24px;
            background: transparent;
            color: #222;
            cursor: pointer;
        }

        .am-account-language button.is-active {
            background: var(--bs-primary-color);
            color: #fff;
        }
        /* Account screen back button */
        .am-account-back {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            padding: 0;
            margin-bottom: 12px;
            background: transparent;
            border: none;
            border-radius: 50%;
            color: #222;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .am-account-back:hover {
            background-color: #f5f5f5;
        }

        .am-account-back svg {
            width: 24px;
            height: 24px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* RTL arrow direction */
        #amAccountScreen[dir="rtl"] .am-account-back svg {
            transform: rotate(180deg);
        }
    }
